]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Merge branch 'upstream'
[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.
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'
427 PACKAGE_STRING='linux nfs-utils 1.0.8'
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 HAVE_LIBWRAP HAVE_TCP_WRAPPER 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 GSSAPI_CFLAGS GSSAPI_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 ac_env_GSSAPI_CFLAGS_set=${GSSAPI_CFLAGS+set}
964 ac_env_GSSAPI_CFLAGS_value=$GSSAPI_CFLAGS
965 ac_cv_env_GSSAPI_CFLAGS_set=${GSSAPI_CFLAGS+set}
966 ac_cv_env_GSSAPI_CFLAGS_value=$GSSAPI_CFLAGS
967 ac_env_GSSAPI_LIBS_set=${GSSAPI_LIBS+set}
968 ac_env_GSSAPI_LIBS_value=$GSSAPI_LIBS
969 ac_cv_env_GSSAPI_LIBS_set=${GSSAPI_LIBS+set}
970 ac_cv_env_GSSAPI_LIBS_value=$GSSAPI_LIBS
971
972 #
973 # Report the --help message.
974 #
975 if test "$ac_init_help" = "long"; then
976   # Omit some internal or obsolete options to make the list less imposing.
977   # This message is too long to be a string in the A/UX 3.1 sh.
978   cat <<_ACEOF
979 \`configure' configures linux nfs-utils 1.0.8 to adapt to many kinds of systems.
980
981 Usage: $0 [OPTION]... [VAR=VALUE]...
982
983 To assign environment variables (e.g., CC, CFLAGS...), specify them as
984 VAR=VALUE.  See below for descriptions of some of the useful variables.
985
986 Defaults for the options are specified in brackets.
987
988 Configuration:
989   -h, --help              display this help and exit
990       --help=short        display options specific to this package
991       --help=recursive    display the short help of all the included packages
992   -V, --version           display version information and exit
993   -q, --quiet, --silent   do not print \`checking...' messages
994       --cache-file=FILE   cache test results in FILE [disabled]
995   -C, --config-cache      alias for \`--cache-file=config.cache'
996   -n, --no-create         do not create output files
997       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
998
999 _ACEOF
1000
1001   cat <<_ACEOF
1002 Installation directories:
1003   --prefix=PREFIX         install architecture-independent files in PREFIX
1004                           [$ac_default_prefix]
1005   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1006                           [PREFIX]
1007
1008 By default, \`make install' will install all the files in
1009 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1010 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1011 for instance \`--prefix=\$HOME'.
1012
1013 For better control, use the options below.
1014
1015 Fine tuning of the installation directories:
1016   --bindir=DIR           user executables [EPREFIX/bin]
1017   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1018   --libexecdir=DIR       program executables [EPREFIX/libexec]
1019   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1020   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1021   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1022   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1023   --libdir=DIR           object code libraries [EPREFIX/lib]
1024   --includedir=DIR       C header files [PREFIX/include]
1025   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1026   --infodir=DIR          info documentation [PREFIX/info]
1027   --mandir=DIR           man documentation [PREFIX/man]
1028 _ACEOF
1029
1030   cat <<\_ACEOF
1031
1032 Program names:
1033   --program-prefix=PREFIX            prepend PREFIX to installed program names
1034   --program-suffix=SUFFIX            append SUFFIX to installed program names
1035   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1036
1037 System types:
1038   --build=BUILD     configure for building on BUILD [guessed]
1039   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1040 _ACEOF
1041 fi
1042
1043 if test -n "$ac_init_help"; then
1044   case $ac_init_help in
1045      short | recursive ) echo "Configuration of linux nfs-utils 1.0.8:";;
1046    esac
1047   cat <<\_ACEOF
1048
1049 Optional Features:
1050   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1051   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1052   --enable-nfsv3          enable support for NFSv3 [default=yes]
1053   --enable-nfsv4          enable support for NFSv4 [default=yes]
1054   --enable-gss            enable support for rpcsec_gss [default=yes]
1055   --enable-kprefix        install progs as rpc.knfsd etc
1056   --enable-secure-statd   Only lockd can use statd (security)
1057   --enable-rquotad        enable rquotad [default=yes]
1058   --disable-dependency-tracking  speeds up one-time build
1059   --enable-dependency-tracking   do not reject slow dependency extractors
1060   --enable-shared[=PKGS]
1061                           build shared libraries [default=yes]
1062   --enable-static[=PKGS]
1063                           build static libraries [default=yes]
1064   --enable-fast-install[=PKGS]
1065                           optimize for fast installation [default=yes]
1066   --disable-libtool-lock  avoid locking (might break parallel builds)
1067
1068 Optional Packages:
1069   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1070   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1071   --with-release=XXX      set release to XXX [1]
1072   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1073   --with-statduser=rpcuser
1074                           statd to run under [rpcuser or nobody]
1075   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1076                  (optionally in PATH)
1077   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1078   --with-pic              try to use only PIC/non-PIC objects [default=use
1079                           both]
1080   --with-tags[=TAGS]
1081                           include additional configurations [automatic]
1082   --with-krb5=DIR         use Kerberos v5 installation in DIR
1083
1084 Some influential environment variables:
1085   CC          C compiler command
1086   CFLAGS      C compiler flags
1087   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1088               nonstandard directory <lib dir>
1089   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1090               headers in a nonstandard directory <include dir>
1091   CXX         C++ compiler command
1092   CXXFLAGS    C++ compiler flags
1093   CPP         C preprocessor
1094   CXXCPP      C++ preprocessor
1095   F77         Fortran 77 compiler command
1096   FFLAGS      Fortran 77 compiler flags
1097   PKG_CONFIG  path to pkg-config utility
1098   RPCSECGSS_CFLAGS
1099               C compiler flags for RPCSECGSS, overriding pkg-config
1100   RPCSECGSS_LIBS
1101               linker flags for RPCSECGSS, overriding pkg-config
1102   GSSAPI_CFLAGS
1103               C compiler flags for GSSAPI, overriding pkg-config
1104   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1105
1106 Use these variables to override the choices made by `configure' or to help
1107 it to find libraries and programs with nonstandard names/locations.
1108
1109 Report bugs to <nfs@lists.sf.net>.
1110 _ACEOF
1111 fi
1112
1113 if test "$ac_init_help" = "recursive"; then
1114   # If there are subdirs, report their specific --help.
1115   ac_popdir=`pwd`
1116   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117     test -d $ac_dir || continue
1118     ac_builddir=.
1119
1120 if test "$ac_dir" != .; then
1121   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122   # A "../" for each directory in $ac_dir_suffix.
1123   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1124 else
1125   ac_dir_suffix= ac_top_builddir=
1126 fi
1127
1128 case $srcdir in
1129   .)  # No --srcdir option.  We are building in place.
1130     ac_srcdir=.
1131     if test -z "$ac_top_builddir"; then
1132        ac_top_srcdir=.
1133     else
1134        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1135     fi ;;
1136   [\\/]* | ?:[\\/]* )  # Absolute path.
1137     ac_srcdir=$srcdir$ac_dir_suffix;
1138     ac_top_srcdir=$srcdir ;;
1139   *) # Relative path.
1140     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1142 esac
1143
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1146 case `pwd` in
1147 .) ac_abs_builddir="$ac_dir";;
1148 *)
1149   case "$ac_dir" in
1150   .) ac_abs_builddir=`pwd`;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1153   esac;;
1154 esac
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *)
1158   case ${ac_top_builddir}. in
1159   .) ac_abs_top_builddir=$ac_abs_builddir;;
1160   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1162   esac;;
1163 esac
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1166 *)
1167   case $ac_srcdir in
1168   .) ac_abs_srcdir=$ac_abs_builddir;;
1169   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1171   esac;;
1172 esac
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *)
1176   case $ac_top_srcdir in
1177   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1180   esac;;
1181 esac
1182
1183     cd $ac_dir
1184     # Check for guested configure; otherwise get Cygnus style configure.
1185     if test -f $ac_srcdir/configure.gnu; then
1186       echo
1187       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1188     elif test -f $ac_srcdir/configure; then
1189       echo
1190       $SHELL $ac_srcdir/configure  --help=recursive
1191     elif test -f $ac_srcdir/configure.ac ||
1192            test -f $ac_srcdir/configure.in; then
1193       echo
1194       $ac_configure --help
1195     else
1196       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1197     fi
1198     cd "$ac_popdir"
1199   done
1200 fi
1201
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1204   cat <<\_ACEOF
1205 linux nfs-utils configure 1.0.8
1206 generated by GNU Autoconf 2.59
1207
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1211 _ACEOF
1212   exit 0
1213 fi
1214 exec 5>config.log
1215 cat >&5 <<_ACEOF
1216 This file contains any messages produced by compilers while
1217 running configure, to aid debugging if configure makes a mistake.
1218
1219 It was created by linux nfs-utils $as_me 1.0.8, which was
1220 generated by GNU Autoconf 2.59.  Invocation command line was
1221
1222   $ $0 $@
1223
1224 _ACEOF
1225 {
1226 cat <<_ASUNAME
1227 ## --------- ##
1228 ## Platform. ##
1229 ## --------- ##
1230
1231 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1232 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1233 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1234 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1235 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1236
1237 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1238 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1239
1240 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1241 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1242 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1243 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1244 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1245 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1246 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1247
1248 _ASUNAME
1249
1250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1251 for as_dir in $PATH
1252 do
1253   IFS=$as_save_IFS
1254   test -z "$as_dir" && as_dir=.
1255   echo "PATH: $as_dir"
1256 done
1257
1258 } >&5
1259
1260 cat >&5 <<_ACEOF
1261
1262
1263 ## ----------- ##
1264 ## Core tests. ##
1265 ## ----------- ##
1266
1267 _ACEOF
1268
1269
1270 # Keep a trace of the command line.
1271 # Strip out --no-create and --no-recursion so they do not pile up.
1272 # Strip out --silent because we don't want to record it for future runs.
1273 # Also quote any args containing shell meta-characters.
1274 # Make two passes to allow for proper duplicate-argument suppression.
1275 ac_configure_args=
1276 ac_configure_args0=
1277 ac_configure_args1=
1278 ac_sep=
1279 ac_must_keep_next=false
1280 for ac_pass in 1 2
1281 do
1282   for ac_arg
1283   do
1284     case $ac_arg in
1285     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1286     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287     | -silent | --silent | --silen | --sile | --sil)
1288       continue ;;
1289     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1291     esac
1292     case $ac_pass in
1293     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1294     2)
1295       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1296       if test $ac_must_keep_next = true; then
1297         ac_must_keep_next=false # Got value, back to normal.
1298       else
1299         case $ac_arg in
1300           *=* | --config-cache | -C | -disable-* | --disable-* \
1301           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1302           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1303           | -with-* | --with-* | -without-* | --without-* | --x)
1304             case "$ac_configure_args0 " in
1305               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1306             esac
1307             ;;
1308           -* ) ac_must_keep_next=true ;;
1309         esac
1310       fi
1311       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1312       # Get rid of the leading space.
1313       ac_sep=" "
1314       ;;
1315     esac
1316   done
1317 done
1318 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1319 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1320
1321 # When interrupted or exit'd, cleanup temporary files, and complete
1322 # config.log.  We remove comments because anyway the quotes in there
1323 # would cause problems or look ugly.
1324 # WARNING: Be sure not to use single quotes in there, as some shells,
1325 # such as our DU 5.0 friend, will then `close' the trap.
1326 trap 'exit_status=$?
1327   # Save into config.log some information that might help in debugging.
1328   {
1329     echo
1330
1331     cat <<\_ASBOX
1332 ## ---------------- ##
1333 ## Cache variables. ##
1334 ## ---------------- ##
1335 _ASBOX
1336     echo
1337     # The following way of writing the cache mishandles newlines in values,
1338 {
1339   (set) 2>&1 |
1340     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1341     *ac_space=\ *)
1342       sed -n \
1343         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1344           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1345       ;;
1346     *)
1347       sed -n \
1348         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1349       ;;
1350     esac;
1351 }
1352     echo
1353
1354     cat <<\_ASBOX
1355 ## ----------------- ##
1356 ## Output variables. ##
1357 ## ----------------- ##
1358 _ASBOX
1359     echo
1360     for ac_var in $ac_subst_vars
1361     do
1362       eval ac_val=$`echo $ac_var`
1363       echo "$ac_var='"'"'$ac_val'"'"'"
1364     done | sort
1365     echo
1366
1367     if test -n "$ac_subst_files"; then
1368       cat <<\_ASBOX
1369 ## ------------- ##
1370 ## Output files. ##
1371 ## ------------- ##
1372 _ASBOX
1373       echo
1374       for ac_var in $ac_subst_files
1375       do
1376         eval ac_val=$`echo $ac_var`
1377         echo "$ac_var='"'"'$ac_val'"'"'"
1378       done | sort
1379       echo
1380     fi
1381
1382     if test -s confdefs.h; then
1383       cat <<\_ASBOX
1384 ## ----------- ##
1385 ## confdefs.h. ##
1386 ## ----------- ##
1387 _ASBOX
1388       echo
1389       sed "/^$/d" confdefs.h | sort
1390       echo
1391     fi
1392     test "$ac_signal" != 0 &&
1393       echo "$as_me: caught signal $ac_signal"
1394     echo "$as_me: exit $exit_status"
1395   } >&5
1396   rm -f core *.core &&
1397   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1398     exit $exit_status
1399      ' 0
1400 for ac_signal in 1 2 13 15; do
1401   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1402 done
1403 ac_signal=0
1404
1405 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1406 rm -rf conftest* confdefs.h
1407 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1408 echo >confdefs.h
1409
1410 # Predefined preprocessor variables.
1411
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_NAME "$PACKAGE_NAME"
1414 _ACEOF
1415
1416
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1419 _ACEOF
1420
1421
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1424 _ACEOF
1425
1426
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_STRING "$PACKAGE_STRING"
1429 _ACEOF
1430
1431
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1434 _ACEOF
1435
1436
1437 # Let the site file select an alternate cache file if it wants to.
1438 # Prefer explicitly selected file to automatically selected ones.
1439 if test -z "$CONFIG_SITE"; then
1440   if test "x$prefix" != xNONE; then
1441     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1442   else
1443     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1444   fi
1445 fi
1446 for ac_site_file in $CONFIG_SITE; do
1447   if test -r "$ac_site_file"; then
1448     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1449 echo "$as_me: loading site script $ac_site_file" >&6;}
1450     sed 's/^/| /' "$ac_site_file" >&5
1451     . "$ac_site_file"
1452   fi
1453 done
1454
1455 if test -r "$cache_file"; then
1456   # Some versions of bash will fail to source /dev/null (special
1457   # files actually), so we avoid doing that.
1458   if test -f "$cache_file"; then
1459     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1460 echo "$as_me: loading cache $cache_file" >&6;}
1461     case $cache_file in
1462       [\\/]* | ?:[\\/]* ) . $cache_file;;
1463       *)                      . ./$cache_file;;
1464     esac
1465   fi
1466 else
1467   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1468 echo "$as_me: creating cache $cache_file" >&6;}
1469   >$cache_file
1470 fi
1471
1472 # Check that the precious variables saved in the cache have kept the same
1473 # value.
1474 ac_cache_corrupted=false
1475 for ac_var in `(set) 2>&1 |
1476                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1477   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1478   eval ac_new_set=\$ac_env_${ac_var}_set
1479   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1480   eval ac_new_val="\$ac_env_${ac_var}_value"
1481   case $ac_old_set,$ac_new_set in
1482     set,)
1483       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1484 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1485       ac_cache_corrupted=: ;;
1486     ,set)
1487       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1488 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1489       ac_cache_corrupted=: ;;
1490     ,);;
1491     *)
1492       if test "x$ac_old_val" != "x$ac_new_val"; then
1493         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1494 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1495         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1496 echo "$as_me:   former value:  $ac_old_val" >&2;}
1497         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1498 echo "$as_me:   current value: $ac_new_val" >&2;}
1499         ac_cache_corrupted=:
1500       fi;;
1501   esac
1502   # Pass precious variables to config.status.
1503   if test "$ac_new_set" = set; then
1504     case $ac_new_val in
1505     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1506       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1507     *) ac_arg=$ac_var=$ac_new_val ;;
1508     esac
1509     case " $ac_configure_args " in
1510       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1511       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1512     esac
1513   fi
1514 done
1515 if $ac_cache_corrupted; then
1516   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1517 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1518   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1519 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1520    { (exit 1); exit 1; }; }
1521 fi
1522
1523 ac_ext=c
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555 ac_aux_dir=
1556 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1557   if test -f $ac_dir/install-sh; then
1558     ac_aux_dir=$ac_dir
1559     ac_install_sh="$ac_aux_dir/install-sh -c"
1560     break
1561   elif test -f $ac_dir/install.sh; then
1562     ac_aux_dir=$ac_dir
1563     ac_install_sh="$ac_aux_dir/install.sh -c"
1564     break
1565   elif test -f $ac_dir/shtool; then
1566     ac_aux_dir=$ac_dir
1567     ac_install_sh="$ac_aux_dir/shtool install -c"
1568     break
1569   fi
1570 done
1571 if test -z "$ac_aux_dir"; then
1572   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1573 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1574    { (exit 1); exit 1; }; }
1575 fi
1576 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1577 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1578 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1579
1580 # Make sure we can run config.sub.
1581 $ac_config_sub sun4 >/dev/null 2>&1 ||
1582   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1583 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1584    { (exit 1); exit 1; }; }
1585
1586 echo "$as_me:$LINENO: checking build system type" >&5
1587 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1588 if test "${ac_cv_build+set}" = set; then
1589   echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591   ac_cv_build_alias=$build_alias
1592 test -z "$ac_cv_build_alias" &&
1593   ac_cv_build_alias=`$ac_config_guess`
1594 test -z "$ac_cv_build_alias" &&
1595   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1596 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1597    { (exit 1); exit 1; }; }
1598 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1599   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1600 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1601    { (exit 1); exit 1; }; }
1602
1603 fi
1604 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1605 echo "${ECHO_T}$ac_cv_build" >&6
1606 build=$ac_cv_build
1607 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1608 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1609 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610
1611
1612 echo "$as_me:$LINENO: checking host system type" >&5
1613 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1614 if test "${ac_cv_host+set}" = set; then
1615   echo $ECHO_N "(cached) $ECHO_C" >&6
1616 else
1617   ac_cv_host_alias=$host_alias
1618 test -z "$ac_cv_host_alias" &&
1619   ac_cv_host_alias=$ac_cv_build_alias
1620 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1621   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1622 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1623    { (exit 1); exit 1; }; }
1624
1625 fi
1626 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1627 echo "${ECHO_T}$ac_cv_host" >&6
1628 host=$ac_cv_host
1629 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632
1633
1634
1635 case aclocal in
1636   [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal         ;;
1637   *)                      ac_macro_dir=$srcdir/aclocal ;;
1638 esac
1639 if test -d "$ac_macro_dir"; then :
1640 else
1641   { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
1642 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
1643    { (exit 1); exit 1; }; }
1644 fi
1645
1646 am__api_version="1.9"
1647 # Find a good install program.  We prefer a C program (faster),
1648 # so one script is as good as another.  But avoid the broken or
1649 # incompatible versions:
1650 # SysV /etc/install, /usr/sbin/install
1651 # SunOS /usr/etc/install
1652 # IRIX /sbin/install
1653 # AIX /bin/install
1654 # AmigaOS /C/install, which installs bootblocks on floppy discs
1655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1658 # OS/2's system install, which has a completely different semantic
1659 # ./install, which can be erroneously created by make from ./install.sh.
1660 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1661 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1662 if test -z "$INSTALL"; then
1663 if test "${ac_cv_path_install+set}" = set; then
1664   echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   # Account for people who put trailing slashes in PATH elements.
1672 case $as_dir/ in
1673   ./ | .// | /cC/* | \
1674   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1675   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1676   /usr/ucb/* ) ;;
1677   *)
1678     # OSF1 and SCO ODT 3.0 have their own names for install.
1679     # Don't use installbsd from OSF since it installs stuff as root
1680     # by default.
1681     for ac_prog in ginstall scoinst install; do
1682       for ac_exec_ext in '' $ac_executable_extensions; do
1683         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1684           if test $ac_prog = install &&
1685             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1686             # AIX install.  It has an incompatible calling convention.
1687             :
1688           elif test $ac_prog = install &&
1689             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690             # program-specific install script used by HP pwplus--don't use.
1691             :
1692           else
1693             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1694             break 3
1695           fi
1696         fi
1697       done
1698     done
1699     ;;
1700 esac
1701 done
1702
1703
1704 fi
1705   if test "${ac_cv_path_install+set}" = set; then
1706     INSTALL=$ac_cv_path_install
1707   else
1708     # As a last resort, use the slow shell script.  We don't cache a
1709     # path for INSTALL within a source directory, because that will
1710     # break other packages using the cache if that directory is
1711     # removed, or if the path is relative.
1712     INSTALL=$ac_install_sh
1713   fi
1714 fi
1715 echo "$as_me:$LINENO: result: $INSTALL" >&5
1716 echo "${ECHO_T}$INSTALL" >&6
1717
1718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1719 # It thinks the first close brace ends the variable substitution.
1720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1721
1722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1723
1724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1725
1726 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1727 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1728 # Just in case
1729 sleep 1
1730 echo timestamp > conftest.file
1731 # Do `set' in a subshell so we don't clobber the current shell's
1732 # arguments.  Must try -L first in case configure is actually a
1733 # symlink; some systems play weird games with the mod time of symlinks
1734 # (eg FreeBSD returns the mod time of the symlink's containing
1735 # directory).
1736 if (
1737    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1738    if test "$*" = "X"; then
1739       # -L didn't work.
1740       set X `ls -t $srcdir/configure conftest.file`
1741    fi
1742    rm -f conftest.file
1743    if test "$*" != "X $srcdir/configure conftest.file" \
1744       && test "$*" != "X conftest.file $srcdir/configure"; then
1745
1746       # If neither matched, then we have a broken ls.  This can happen
1747       # if, for instance, CONFIG_SHELL is bash and it inherits a
1748       # broken ls alias from the environment.  This has actually
1749       # happened.  Such a system could not be considered "sane".
1750       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1751 alias in your environment" >&5
1752 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1753 alias in your environment" >&2;}
1754    { (exit 1); exit 1; }; }
1755    fi
1756
1757    test "$2" = conftest.file
1758    )
1759 then
1760    # Ok.
1761    :
1762 else
1763    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1764 Check your system clock" >&5
1765 echo "$as_me: error: newly created file is older than distributed files!
1766 Check your system clock" >&2;}
1767    { (exit 1); exit 1; }; }
1768 fi
1769 echo "$as_me:$LINENO: result: yes" >&5
1770 echo "${ECHO_T}yes" >&6
1771 test "$program_prefix" != NONE &&
1772   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1773 # Use a double $ so make ignores it.
1774 test "$program_suffix" != NONE &&
1775   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1776 # Double any \ or $.  echo might interpret backslashes.
1777 # By default was `s,x,x', remove it if useless.
1778 cat <<\_ACEOF >conftest.sed
1779 s/[\\$]/&&/g;s/;s,x,x,$//
1780 _ACEOF
1781 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1782 rm conftest.sed
1783
1784 # expand $ac_aux_dir to an absolute path
1785 am_aux_dir=`cd $ac_aux_dir && pwd`
1786
1787 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1788 # Use eval to expand $SHELL
1789 if eval "$MISSING --run true"; then
1790   am_missing_run="$MISSING --run "
1791 else
1792   am_missing_run=
1793   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1794 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1795 fi
1796
1797 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1798   # We used to keeping the `.' as first argument, in order to
1799   # allow $(mkdir_p) to be used without argument.  As in
1800   #   $(mkdir_p) $(somedir)
1801   # where $(somedir) is conditionally defined.  However this is wrong
1802   # for two reasons:
1803   #  1. if the package is installed by a user who cannot write `.'
1804   #     make install will fail,
1805   #  2. the above comment should most certainly read
1806   #     $(mkdir_p) $(DESTDIR)$(somedir)
1807   #     so it does not work when $(somedir) is undefined and
1808   #     $(DESTDIR) is not.
1809   #  To support the latter case, we have to write
1810   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1811   #  so the `.' trick is pointless.
1812   mkdir_p='mkdir -p --'
1813 else
1814   # On NextStep and OpenStep, the `mkdir' command does not
1815   # recognize any option.  It will interpret all options as
1816   # directories to create, and then abort because `.' already
1817   # exists.
1818   for d in ./-p ./--version;
1819   do
1820     test -d $d && rmdir $d
1821   done
1822   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1823   if test -f "$ac_aux_dir/mkinstalldirs"; then
1824     mkdir_p='$(mkinstalldirs)'
1825   else
1826     mkdir_p='$(install_sh) -d'
1827   fi
1828 fi
1829
1830 for ac_prog in gawk mawk nawk awk
1831 do
1832   # Extract the first word of "$ac_prog", so it can be a program name with args.
1833 set dummy $ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_AWK+set}" = set; then
1837   echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839   if test -n "$AWK"; then
1840   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1841 else
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1844 do
1845   IFS=$as_save_IFS
1846   test -z "$as_dir" && as_dir=.
1847   for ac_exec_ext in '' $ac_executable_extensions; do
1848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849     ac_cv_prog_AWK="$ac_prog"
1850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851     break 2
1852   fi
1853 done
1854 done
1855
1856 fi
1857 fi
1858 AWK=$ac_cv_prog_AWK
1859 if test -n "$AWK"; then
1860   echo "$as_me:$LINENO: result: $AWK" >&5
1861 echo "${ECHO_T}$AWK" >&6
1862 else
1863   echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 fi
1866
1867   test -n "$AWK" && break
1868 done
1869
1870 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1871 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1872 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1873 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1874   echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876   cat >conftest.make <<\_ACEOF
1877 all:
1878         @echo 'ac_maketemp="$(MAKE)"'
1879 _ACEOF
1880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1881 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1882 if test -n "$ac_maketemp"; then
1883   eval ac_cv_prog_make_${ac_make}_set=yes
1884 else
1885   eval ac_cv_prog_make_${ac_make}_set=no
1886 fi
1887 rm -f conftest.make
1888 fi
1889 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1890   echo "$as_me:$LINENO: result: yes" >&5
1891 echo "${ECHO_T}yes" >&6
1892   SET_MAKE=
1893 else
1894   echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896   SET_MAKE="MAKE=${MAKE-make}"
1897 fi
1898
1899 rm -rf .tst 2>/dev/null
1900 mkdir .tst 2>/dev/null
1901 if test -d .tst; then
1902   am__leading_dot=.
1903 else
1904   am__leading_dot=_
1905 fi
1906 rmdir .tst 2>/dev/null
1907
1908 # test to see if srcdir already configured
1909 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1910    test -f $srcdir/config.status; then
1911   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1912 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1913    { (exit 1); exit 1; }; }
1914 fi
1915
1916 # test whether we have cygpath
1917 if test -z "$CYGPATH_W"; then
1918   if (cygpath --version) >/dev/null 2>/dev/null; then
1919     CYGPATH_W='cygpath -w'
1920   else
1921     CYGPATH_W=echo
1922   fi
1923 fi
1924
1925
1926 # Define the identity of the package.
1927  PACKAGE='nfs-utils'
1928  VERSION='1.0.8'
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE "$PACKAGE"
1933 _ACEOF
1934
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define VERSION "$VERSION"
1938 _ACEOF
1939
1940 # Some tools Automake needs.
1941
1942 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1943
1944
1945 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1946
1947
1948 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1949
1950
1951 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1952
1953
1954 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1955
1956 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1957
1958 # Installed binaries are usually stripped using `strip' when the user
1959 # run `make install-strip'.  However `strip' might not be the right
1960 # tool to use in cross-compilation environments, therefore Automake
1961 # will honor the `STRIP' environment variable to overrule this program.
1962 if test "$cross_compiling" != no; then
1963   if test -n "$ac_tool_prefix"; then
1964   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1965 set dummy ${ac_tool_prefix}strip; ac_word=$2
1966 echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968 if test "${ac_cv_prog_STRIP+set}" = set; then
1969   echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971   if test -n "$STRIP"; then
1972   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1973 else
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977   IFS=$as_save_IFS
1978   test -z "$as_dir" && as_dir=.
1979   for ac_exec_ext in '' $ac_executable_extensions; do
1980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983     break 2
1984   fi
1985 done
1986 done
1987
1988 fi
1989 fi
1990 STRIP=$ac_cv_prog_STRIP
1991 if test -n "$STRIP"; then
1992   echo "$as_me:$LINENO: result: $STRIP" >&5
1993 echo "${ECHO_T}$STRIP" >&6
1994 else
1995   echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6
1997 fi
1998
1999 fi
2000 if test -z "$ac_cv_prog_STRIP"; then
2001   ac_ct_STRIP=$STRIP
2002   # Extract the first word of "strip", so it can be a program name with args.
2003 set dummy strip; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$ac_ct_STRIP"; then
2010   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019     ac_cv_prog_ac_ct_STRIP="strip"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025
2026   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2027 fi
2028 fi
2029 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2030 if test -n "$ac_ct_STRIP"; then
2031   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2032 echo "${ECHO_T}$ac_ct_STRIP" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038   STRIP=$ac_ct_STRIP
2039 else
2040   STRIP="$ac_cv_prog_STRIP"
2041 fi
2042
2043 fi
2044 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2045
2046 # We need awk for the "check" target.  The system "awk" is bad on
2047 # some platforms.
2048 # Always define AMTAR for backward compatibility.
2049
2050 AMTAR=${AMTAR-"${am_missing_run}tar"}
2051
2052 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062 # Check whether --with-release or --without-release was given.
2063 if test "${with_release+set}" = set; then
2064   withval="$with_release"
2065   RELEASE=$withval
2066 else
2067   RELEASE=1
2068 fi;
2069
2070
2071 # Check whether --with-statedir or --without-statedir was given.
2072 if test "${with_statedir+set}" = set; then
2073   withval="$with_statedir"
2074   statedir=$withval
2075 else
2076   statedir=/var/lib/nfs
2077 fi;
2078
2079
2080 # Check whether --with-statduser or --without-statduser was given.
2081 if test "${with_statduser+set}" = set; then
2082   withval="$with_statduser"
2083   statduser=$withval
2084 else
2085   if test "x$cross_compiling" = "xno"; then
2086                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2087                         statduser=rpcuser
2088                 else
2089                         statduser=nobody
2090                 fi
2091         else
2092                 statduser=nobody
2093         fi
2094 fi;
2095
2096 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
2097 if test "${enable_nfsv3+set}" = set; then
2098   enableval="$enable_nfsv3"
2099   enable_nfsv3=$enableval
2100 else
2101   enable_nfsv3=yes
2102 fi;
2103         if test "$enable_nfsv3" = yes; then
2104
2105 cat >>confdefs.h <<\_ACEOF
2106 #define NFS3_SUPPORTED 1
2107 _ACEOF
2108
2109         else
2110                 enable_nfsv3=
2111         fi
2112
2113 # Check whether --enable-nfsv4 or --disable-nfsv4 was given.
2114 if test "${enable_nfsv4+set}" = set; then
2115   enableval="$enable_nfsv4"
2116   enable_nfsv4=$enableval
2117 else
2118   enable_nfsv4=yes
2119 fi;
2120         if test "$enable_nfsv4" = yes; then
2121
2122 cat >>confdefs.h <<\_ACEOF
2123 #define NFS4_SUPPORTED 1
2124 _ACEOF
2125
2126                 IDMAPD=idmapd
2127         else
2128                 enable_nfsv4=
2129                 IDMAPD=
2130         fi
2131
2132
2133
2134
2135 if test "$enable_nfsv4" = "yes"; then
2136   CONFIG_NFSV4_TRUE=
2137   CONFIG_NFSV4_FALSE='#'
2138 else
2139   CONFIG_NFSV4_TRUE='#'
2140   CONFIG_NFSV4_FALSE=
2141 fi
2142
2143 # Check whether --enable-gss or --disable-gss was given.
2144 if test "${enable_gss+set}" = set; then
2145   enableval="$enable_gss"
2146   enable_gss=$enableval
2147 else
2148   enable_gss=yes
2149 fi;
2150         if test "$enable_gss" = yes; then
2151
2152 cat >>confdefs.h <<\_ACEOF
2153 #define GSS_SUPPORTED 1
2154 _ACEOF
2155
2156                 GSSD=gssd
2157                 SVCGSSD=svcgssd
2158         else
2159                 enable_gss=
2160                 GSSD=
2161                 SVCGSSD=
2162         fi
2163
2164
2165
2166
2167
2168 if test "$enable_gss" = "yes"; then
2169   CONFIG_GSS_TRUE=
2170   CONFIG_GSS_FALSE='#'
2171 else
2172   CONFIG_GSS_TRUE='#'
2173   CONFIG_GSS_FALSE=
2174 fi
2175
2176 # Check whether --enable-kprefix or --disable-kprefix was given.
2177 if test "${enable_kprefix+set}" = set; then
2178   enableval="$enable_kprefix"
2179   test "$enableval" = "yes" && kprefix=k
2180 else
2181   kprefix=
2182 fi;
2183
2184 # Check whether --enable-secure-statd or --disable-secure-statd was given.
2185 if test "${enable_secure_statd+set}" = set; then
2186   enableval="$enable_secure_statd"
2187   test "$enableval" = "yes" && secure_statd=yes
2188 else
2189   secure_statd=no
2190 fi;
2191         if test "$secure_statd" = yes; then
2192
2193 cat >>confdefs.h <<\_ACEOF
2194 #define RESTRICTED_STATD 1
2195 _ACEOF
2196
2197         fi
2198
2199 # Check whether --enable-rquotad or --disable-rquotad was given.
2200 if test "${enable_rquotad+set}" = set; then
2201   enableval="$enable_rquotad"
2202   enable_rquotad=$enableval
2203 else
2204   enable_rquotad=yes
2205 fi;
2206         if test "$enable_rquotad" = yes; then
2207                 RQUOTAD=rquotad
2208         else
2209                 RQUOTAD=
2210         fi
2211
2212
2213 if test "$enable_rquotad" = "yes"; then
2214   CONFIG_RQUOTAD_TRUE=
2215   CONFIG_RQUOTAD_FALSE='#'
2216 else
2217   CONFIG_RQUOTAD_TRUE='#'
2218   CONFIG_RQUOTAD_FALSE=
2219 fi
2220
2221
2222 # Check whether user wants TCP wrappers support
2223 DEPDIR="${am__leading_dot}deps"
2224
2225           ac_config_commands="$ac_config_commands depfiles"
2226
2227
2228 am_make=${MAKE-make}
2229 cat > confinc << 'END'
2230 am__doit:
2231         @echo done
2232 .PHONY: am__doit
2233 END
2234 # If we don't find an include directive, just comment out the code.
2235 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2236 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2237 am__include="#"
2238 am__quote=
2239 _am_result=none
2240 # First try GNU make style include.
2241 echo "include confinc" > confmf
2242 # We grep out `Entering directory' and `Leaving directory'
2243 # messages which can occur if `w' ends up in MAKEFLAGS.
2244 # In particular we don't look at `^make:' because GNU make might
2245 # be invoked under some other name (usually "gmake"), in which
2246 # case it prints its new name instead of `make'.
2247 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2248    am__include=include
2249    am__quote=
2250    _am_result=GNU
2251 fi
2252 # Now try BSD make style include.
2253 if test "$am__include" = "#"; then
2254    echo '.include "confinc"' > confmf
2255    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2256       am__include=.include
2257       am__quote="\""
2258       _am_result=BSD
2259    fi
2260 fi
2261
2262
2263 echo "$as_me:$LINENO: result: $_am_result" >&5
2264 echo "${ECHO_T}$_am_result" >&6
2265 rm -f confinc confmf
2266
2267 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2268 if test "${enable_dependency_tracking+set}" = set; then
2269   enableval="$enable_dependency_tracking"
2270
2271 fi;
2272 if test "x$enable_dependency_tracking" != xno; then
2273   am_depcomp="$ac_aux_dir/depcomp"
2274   AMDEPBACKSLASH='\'
2275 fi
2276
2277
2278 if test "x$enable_dependency_tracking" != xno; then
2279   AMDEP_TRUE=
2280   AMDEP_FALSE='#'
2281 else
2282   AMDEP_TRUE='#'
2283   AMDEP_FALSE=
2284 fi
2285
2286
2287
2288 ac_ext=c
2289 ac_cpp='$CPP $CPPFLAGS'
2290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293 if test -n "$ac_tool_prefix"; then
2294   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2295 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_CC+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   if test -n "$CC"; then
2302   ac_cv_prog_CC="$CC" # Let the user override the test.
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2306 do
2307   IFS=$as_save_IFS
2308   test -z "$as_dir" && as_dir=.
2309   for ac_exec_ext in '' $ac_executable_extensions; do
2310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313     break 2
2314   fi
2315 done
2316 done
2317
2318 fi
2319 fi
2320 CC=$ac_cv_prog_CC
2321 if test -n "$CC"; then
2322   echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6
2324 else
2325   echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2327 fi
2328
2329 fi
2330 if test -z "$ac_cv_prog_CC"; then
2331   ac_ct_CC=$CC
2332   # Extract the first word of "gcc", so it can be a program name with args.
2333 set dummy gcc; ac_word=$2
2334 echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   if test -n "$ac_ct_CC"; then
2340   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345   IFS=$as_save_IFS
2346   test -z "$as_dir" && as_dir=.
2347   for ac_exec_ext in '' $ac_executable_extensions; do
2348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349     ac_cv_prog_ac_ct_CC="gcc"
2350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351     break 2
2352   fi
2353 done
2354 done
2355
2356 fi
2357 fi
2358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2359 if test -n "$ac_ct_CC"; then
2360   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2361 echo "${ECHO_T}$ac_ct_CC" >&6
2362 else
2363   echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6
2365 fi
2366
2367   CC=$ac_ct_CC
2368 else
2369   CC="$ac_cv_prog_CC"
2370 fi
2371
2372 if test -z "$CC"; then
2373   if test -n "$ac_tool_prefix"; then
2374   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2375 set dummy ${ac_tool_prefix}cc; ac_word=$2
2376 echo "$as_me:$LINENO: checking for $ac_word" >&5
2377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378 if test "${ac_cv_prog_CC+set}" = set; then
2379   echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381   if test -n "$CC"; then
2382   ac_cv_prog_CC="$CC" # Let the user override the test.
2383 else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387   IFS=$as_save_IFS
2388   test -z "$as_dir" && as_dir=.
2389   for ac_exec_ext in '' $ac_executable_extensions; do
2390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391     ac_cv_prog_CC="${ac_tool_prefix}cc"
2392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2393     break 2
2394   fi
2395 done
2396 done
2397
2398 fi
2399 fi
2400 CC=$ac_cv_prog_CC
2401 if test -n "$CC"; then
2402   echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6
2404 else
2405   echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2407 fi
2408
2409 fi
2410 if test -z "$ac_cv_prog_CC"; then
2411   ac_ct_CC=$CC
2412   # Extract the first word of "cc", so it can be a program name with args.
2413 set dummy cc; ac_word=$2
2414 echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   if test -n "$ac_ct_CC"; then
2420   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425   IFS=$as_save_IFS
2426   test -z "$as_dir" && as_dir=.
2427   for ac_exec_ext in '' $ac_executable_extensions; do
2428   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2429     ac_cv_prog_ac_ct_CC="cc"
2430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431     break 2
2432   fi
2433 done
2434 done
2435
2436 fi
2437 fi
2438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2439 if test -n "$ac_ct_CC"; then
2440   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2441 echo "${ECHO_T}$ac_ct_CC" >&6
2442 else
2443   echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6
2445 fi
2446
2447   CC=$ac_ct_CC
2448 else
2449   CC="$ac_cv_prog_CC"
2450 fi
2451
2452 fi
2453 if test -z "$CC"; then
2454   # Extract the first word of "cc", so it can be a program name with args.
2455 set dummy cc; ac_word=$2
2456 echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2458 if test "${ac_cv_prog_CC+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   if test -n "$CC"; then
2462   ac_cv_prog_CC="$CC" # Let the user override the test.
2463 else
2464   ac_prog_rejected=no
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468   IFS=$as_save_IFS
2469   test -z "$as_dir" && as_dir=.
2470   for ac_exec_ext in '' $ac_executable_extensions; do
2471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2473        ac_prog_rejected=yes
2474        continue
2475      fi
2476     ac_cv_prog_CC="cc"
2477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481 done
2482
2483 if test $ac_prog_rejected = yes; then
2484   # We found a bogon in the path, so make sure we never use it.
2485   set dummy $ac_cv_prog_CC
2486   shift
2487   if test $# != 0; then
2488     # We chose a different compiler from the bogus one.
2489     # However, it has the same basename, so the bogon will be chosen
2490     # first if we set CC to just the basename; use the full file name.
2491     shift
2492     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2493   fi
2494 fi
2495 fi
2496 fi
2497 CC=$ac_cv_prog_CC
2498 if test -n "$CC"; then
2499   echo "$as_me:$LINENO: result: $CC" >&5
2500 echo "${ECHO_T}$CC" >&6
2501 else
2502   echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2504 fi
2505
2506 fi
2507 if test -z "$CC"; then
2508   if test -n "$ac_tool_prefix"; then
2509   for ac_prog in cl
2510   do
2511     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2513 echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516   echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518   if test -n "$CC"; then
2519   ac_cv_prog_CC="$CC" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524   IFS=$as_save_IFS
2525   test -z "$as_dir" && as_dir=.
2526   for ac_exec_ext in '' $ac_executable_extensions; do
2527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530     break 2
2531   fi
2532 done
2533 done
2534
2535 fi
2536 fi
2537 CC=$ac_cv_prog_CC
2538 if test -n "$CC"; then
2539   echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6
2541 else
2542   echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6
2544 fi
2545
2546     test -n "$CC" && break
2547   done
2548 fi
2549 if test -z "$CC"; then
2550   ac_ct_CC=$CC
2551   for ac_prog in cl
2552 do
2553   # Extract the first word of "$ac_prog", so it can be a program name with args.
2554 set dummy $ac_prog; ac_word=$2
2555 echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2558   echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560   if test -n "$ac_ct_CC"; then
2561   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566   IFS=$as_save_IFS
2567   test -z "$as_dir" && as_dir=.
2568   for ac_exec_ext in '' $ac_executable_extensions; do
2569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570     ac_cv_prog_ac_ct_CC="$ac_prog"
2571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572     break 2
2573   fi
2574 done
2575 done
2576
2577 fi
2578 fi
2579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580 if test -n "$ac_ct_CC"; then
2581   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2582 echo "${ECHO_T}$ac_ct_CC" >&6
2583 else
2584   echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6
2586 fi
2587
2588   test -n "$ac_ct_CC" && break
2589 done
2590
2591   CC=$ac_ct_CC
2592 fi
2593
2594 fi
2595
2596
2597 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2598 See \`config.log' for more details." >&5
2599 echo "$as_me: error: no acceptable C compiler found in \$PATH
2600 See \`config.log' for more details." >&2;}
2601    { (exit 1); exit 1; }; }
2602
2603 # Provide some information about the compiler.
2604 echo "$as_me:$LINENO:" \
2605      "checking for C compiler version" >&5
2606 ac_compiler=`set X $ac_compile; echo $2`
2607 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2608   (eval $ac_compiler --version </dev/null >&5) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }
2612 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2613   (eval $ac_compiler -v </dev/null >&5) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }
2617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2618   (eval $ac_compiler -V </dev/null >&5) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }
2622
2623 cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629
2630 int
2631 main ()
2632 {
2633
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 ac_clean_files_save=$ac_clean_files
2639 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2640 # Try to create an executable without -o first, disregard a.out.
2641 # It will help us diagnose broken compilers, and finding out an intuition
2642 # of exeext.
2643 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2644 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2645 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2646 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2647   (eval $ac_link_default) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }; then
2651   # Find the output, starting from the most likely.  This scheme is
2652 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2653 # resort.
2654
2655 # Be careful to initialize this variable, since it used to be cached.
2656 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2657 ac_cv_exeext=
2658 # b.out is created by i960 compilers.
2659 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2660 do
2661   test -f "$ac_file" || continue
2662   case $ac_file in
2663     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2664         ;;
2665     conftest.$ac_ext )
2666         # This is the source file.
2667         ;;
2668     [ab].out )
2669         # We found the default executable, but exeext='' is most
2670         # certainly right.
2671         break;;
2672     *.* )
2673         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2674         # FIXME: I believe we export ac_cv_exeext for Libtool,
2675         # but it would be cool to find out if it's true.  Does anybody
2676         # maintain Libtool? --akim.
2677         export ac_cv_exeext
2678         break;;
2679     * )
2680         break;;
2681   esac
2682 done
2683 else
2684   echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2686
2687 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2688 See \`config.log' for more details." >&5
2689 echo "$as_me: error: C compiler cannot create executables
2690 See \`config.log' for more details." >&2;}
2691    { (exit 77); exit 77; }; }
2692 fi
2693
2694 ac_exeext=$ac_cv_exeext
2695 echo "$as_me:$LINENO: result: $ac_file" >&5
2696 echo "${ECHO_T}$ac_file" >&6
2697
2698 # Check the compiler produces executables we can run.  If not, either
2699 # the compiler is broken, or we cross compile.
2700 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2701 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2702 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2703 # If not cross compiling, check that we can run a simple program.
2704 if test "$cross_compiling" != yes; then
2705   if { ac_try='./$ac_file'
2706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707   (eval $ac_try) 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; }; then
2711     cross_compiling=no
2712   else
2713     if test "$cross_compiling" = maybe; then
2714         cross_compiling=yes
2715     else
2716         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2717 If you meant to cross compile, use \`--host'.
2718 See \`config.log' for more details." >&5
2719 echo "$as_me: error: cannot run C compiled programs.
2720 If you meant to cross compile, use \`--host'.
2721 See \`config.log' for more details." >&2;}
2722    { (exit 1); exit 1; }; }
2723     fi
2724   fi
2725 fi
2726 echo "$as_me:$LINENO: result: yes" >&5
2727 echo "${ECHO_T}yes" >&6
2728
2729 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2730 ac_clean_files=$ac_clean_files_save
2731 # Check the compiler produces executables we can run.  If not, either
2732 # the compiler is broken, or we cross compile.
2733 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2734 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2735 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2736 echo "${ECHO_T}$cross_compiling" >&6
2737
2738 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2739 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2741   (eval $ac_link) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; then
2745   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2746 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2747 # work properly (i.e., refer to `conftest.exe'), while it won't with
2748 # `rm'.
2749 for ac_file in conftest.exe conftest conftest.*; do
2750   test -f "$ac_file" || continue
2751   case $ac_file in
2752     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2753     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2754           export ac_cv_exeext
2755           break;;
2756     * ) break;;
2757   esac
2758 done
2759 else
2760   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2761 See \`config.log' for more details." >&5
2762 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2763 See \`config.log' for more details." >&2;}
2764    { (exit 1); exit 1; }; }
2765 fi
2766
2767 rm -f conftest$ac_cv_exeext
2768 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2769 echo "${ECHO_T}$ac_cv_exeext" >&6
2770
2771 rm -f conftest.$ac_ext
2772 EXEEXT=$ac_cv_exeext
2773 ac_exeext=$EXEEXT
2774 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2775 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2776 if test "${ac_cv_objext+set}" = set; then
2777   echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779   cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785
2786 int
2787 main ()
2788 {
2789
2790   ;
2791   return 0;
2792 }
2793 _ACEOF
2794 rm -f conftest.o conftest.obj
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796   (eval $ac_compile) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; then
2800   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2801   case $ac_file in
2802     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2803     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2804        break;;
2805   esac
2806 done
2807 else
2808   echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2812 See \`config.log' for more details." >&5
2813 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2814 See \`config.log' for more details." >&2;}
2815    { (exit 1); exit 1; }; }
2816 fi
2817
2818 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2819 fi
2820 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2821 echo "${ECHO_T}$ac_cv_objext" >&6
2822 OBJEXT=$ac_cv_objext
2823 ac_objext=$OBJEXT
2824 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2825 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2826 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h.  */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h.  */
2835
2836 int
2837 main ()
2838 {
2839 #ifndef __GNUC__
2840        choke me
2841 #endif
2842
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849   (eval $ac_compile) 2>conftest.er1
2850   ac_status=$?
2851   grep -v '^ *+' conftest.er1 >conftest.err
2852   rm -f conftest.er1
2853   cat conftest.err >&5
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); } &&
2856          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); }; } &&
2862          { ac_try='test -s conftest.$ac_objext'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; }; then
2868   ac_compiler_gnu=yes
2869 else
2870   echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 ac_compiler_gnu=no
2874 fi
2875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2877
2878 fi
2879 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2880 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2881 GCC=`test $ac_compiler_gnu = yes && echo yes`
2882 ac_test_CFLAGS=${CFLAGS+set}
2883 ac_save_CFLAGS=$CFLAGS
2884 CFLAGS="-g"
2885 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2886 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2887 if test "${ac_cv_prog_cc_g+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890   cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h.  */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h.  */
2896
2897 int
2898 main ()
2899 {
2900
2901   ;
2902   return 0;
2903 }
2904 _ACEOF
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907   (eval $ac_compile) 2>conftest.er1
2908   ac_status=$?
2909   grep -v '^ *+' conftest.er1 >conftest.err
2910   rm -f conftest.er1
2911   cat conftest.err >&5
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); } &&
2914          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916   (eval $ac_try) 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }; } &&
2920          { ac_try='test -s conftest.$ac_objext'
2921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922   (eval $ac_try) 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }; }; then
2926   ac_cv_prog_cc_g=yes
2927 else
2928   echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 ac_cv_prog_cc_g=no
2932 fi
2933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934 fi
2935 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2937 if test "$ac_test_CFLAGS" = set; then
2938   CFLAGS=$ac_save_CFLAGS
2939 elif test $ac_cv_prog_cc_g = yes; then
2940   if test "$GCC" = yes; then
2941     CFLAGS="-g -O2"
2942   else
2943     CFLAGS="-g"
2944   fi
2945 else
2946   if test "$GCC" = yes; then
2947     CFLAGS="-O2"
2948   else
2949     CFLAGS=
2950   fi
2951 fi
2952 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2953 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2954 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2955   echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957   ac_cv_prog_cc_stdc=no
2958 ac_save_CC=$CC
2959 cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h.  */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h.  */
2965 #include <stdarg.h>
2966 #include <stdio.h>
2967 #include <sys/types.h>
2968 #include <sys/stat.h>
2969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2970 struct buf { int x; };
2971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2972 static char *e (p, i)
2973      char **p;
2974      int i;
2975 {
2976   return p[i];
2977 }
2978 static char *f (char * (*g) (char **, int), char **p, ...)
2979 {
2980   char *s;
2981   va_list v;
2982   va_start (v,p);
2983   s = g (p, va_arg (v,int));
2984   va_end (v);
2985   return s;
2986 }
2987
2988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2989    function prototypes and stuff, but not '\xHH' hex character constants.
2990    These don't provoke an error unfortunately, instead are silently treated
2991    as 'x'.  The following induces an error, until -std1 is added to get
2992    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2993    array size at least.  It's necessary to write '\x00'==0 to get something
2994    that's true only with -std1.  */
2995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2996
2997 int test (int i, double x);
2998 struct s1 {int (*f) (int a);};
2999 struct s2 {int (*f) (double a);};
3000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3001 int argc;
3002 char **argv;
3003 int
3004 main ()
3005 {
3006 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3007   ;
3008   return 0;
3009 }
3010 _ACEOF
3011 # Don't try gcc -ansi; that turns off useful extensions and
3012 # breaks some systems' header files.
3013 # AIX                   -qlanglvl=ansi
3014 # Ultrix and OSF/1      -std1
3015 # HP-UX 10.20 and later -Ae
3016 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3017 # SVR4                  -Xc -D__EXTENSIONS__
3018 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3019 do
3020   CC="$ac_save_CC $ac_arg"
3021   rm -f conftest.$ac_objext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023   (eval $ac_compile) 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } &&
3030          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032   (eval $ac_try) 2>&5
3033   ac_status=$?
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); }; } &&
3036          { ac_try='test -s conftest.$ac_objext'
3037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038   (eval $ac_try) 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); }; }; then
3042   ac_cv_prog_cc_stdc=$ac_arg
3043 break
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 fi
3049 rm -f conftest.err conftest.$ac_objext
3050 done
3051 rm -f conftest.$ac_ext conftest.$ac_objext
3052 CC=$ac_save_CC
3053
3054 fi
3055
3056 case "x$ac_cv_prog_cc_stdc" in
3057   x|xno)
3058     echo "$as_me:$LINENO: result: none needed" >&5
3059 echo "${ECHO_T}none needed" >&6 ;;
3060   *)
3061     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3062 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3063     CC="$CC $ac_cv_prog_cc_stdc" ;;
3064 esac
3065
3066 # Some people use a C++ compiler to compile C.  Since we use `exit',
3067 # in C++ we need to declare it.  In case someone uses the same compiler
3068 # for both compiling C and C++ we need to have the C++ compiler decide
3069 # the declaration of exit, since it's the most demanding environment.
3070 cat >conftest.$ac_ext <<_ACEOF
3071 #ifndef __cplusplus
3072   choke me
3073 #endif
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077   (eval $ac_compile) 2>conftest.er1
3078   ac_status=$?
3079   grep -v '^ *+' conftest.er1 >conftest.err
3080   rm -f conftest.er1
3081   cat conftest.err >&5
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } &&
3084          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086   (eval $ac_try) 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; } &&
3090          { ac_try='test -s conftest.$ac_objext'
3091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092   (eval $ac_try) 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); }; }; then
3096   for ac_declaration in \
3097    '' \
3098    'extern "C" void std::exit (int) throw (); using std::exit;' \
3099    'extern "C" void std::exit (int); using std::exit;' \
3100    'extern "C" void exit (int) throw ();' \
3101    'extern "C" void exit (int);' \
3102    'void exit (int);'
3103 do
3104   cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h.  */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h.  */
3110 $ac_declaration
3111 #include <stdlib.h>
3112 int
3113 main ()
3114 {
3115 exit (42);
3116   ;
3117   return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122   (eval $ac_compile) 2>conftest.er1
3123   ac_status=$?
3124   grep -v '^ *+' conftest.er1 >conftest.err
3125   rm -f conftest.er1
3126   cat conftest.err >&5
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); } &&
3129          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131   (eval $ac_try) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }; } &&
3135          { ac_try='test -s conftest.$ac_objext'
3136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137   (eval $ac_try) 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }; }; then
3141   :
3142 else
3143   echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3145
3146 continue
3147 fi
3148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3149   cat >conftest.$ac_ext <<_ACEOF
3150 /* confdefs.h.  */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h.  */
3155 $ac_declaration
3156 int
3157 main ()
3158 {
3159 exit (42);
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166   (eval $ac_compile) 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } &&
3173          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175   (eval $ac_try) 2>&5
3176   ac_status=$?
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); }; } &&
3179          { ac_try='test -s conftest.$ac_objext'
3180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181   (eval $ac_try) 2>&5
3182   ac_status=$?
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); }; }; then
3185   break
3186 else
3187   echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 fi
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 done
3193 rm -f conftest*
3194 if test -n "$ac_declaration"; then
3195   echo '#ifdef __cplusplus' >>confdefs.h
3196   echo $ac_declaration      >>confdefs.h
3197   echo '#endif'             >>confdefs.h
3198 fi
3199
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204 fi
3205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211
3212 depcc="$CC"   am_compiler_list=
3213
3214 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3215 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3216 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3220   # We make a subdir and do the tests there.  Otherwise we can end up
3221   # making bogus files that we don't know about and never remove.  For
3222   # instance it was reported that on HP-UX the gcc test will end up
3223   # making a dummy file named `D' -- because `-MD' means `put the output
3224   # in D'.
3225   mkdir conftest.dir
3226   # Copy depcomp to subdir because otherwise we won't find it if we're
3227   # using a relative directory.
3228   cp "$am_depcomp" conftest.dir
3229   cd conftest.dir
3230   # We will build objects and dependencies in a subdirectory because
3231   # it helps to detect inapplicable dependency modes.  For instance
3232   # both Tru64's cc and ICC support -MD to output dependencies as a
3233   # side effect of compilation, but ICC will put the dependencies in
3234   # the current directory while Tru64 will put them in the object
3235   # directory.
3236   mkdir sub
3237
3238   am_cv_CC_dependencies_compiler_type=none
3239   if test "$am_compiler_list" = ""; then
3240      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3241   fi
3242   for depmode in $am_compiler_list; do
3243     # Setup a source with many dependencies, because some compilers
3244     # like to wrap large dependency lists on column 80 (with \), and
3245     # we should not choose a depcomp mode which is confused by this.
3246     #
3247     # We need to recreate these files for each test, as the compiler may
3248     # overwrite some of them when testing with obscure command lines.
3249     # This happens at least with the AIX C compiler.
3250     : > sub/conftest.c
3251     for i in 1 2 3 4 5 6; do
3252       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3253       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3254       # Solaris 8's {/usr,}/bin/sh.
3255       touch sub/conftst$i.h
3256     done
3257     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3258
3259     case $depmode in
3260     nosideeffect)
3261       # after this tag, mechanisms are not by side-effect, so they'll
3262       # only be used when explicitly requested
3263       if test "x$enable_dependency_tracking" = xyes; then
3264         continue
3265       else
3266         break
3267       fi
3268       ;;
3269     none) break ;;
3270     esac
3271     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3272     # mode.  It turns out that the SunPro C++ compiler does not properly
3273     # handle `-M -o', and we need to detect this.
3274     if depmode=$depmode \
3275        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3276        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3277        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3278          >/dev/null 2>conftest.err &&
3279        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3280        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3281        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3282       # icc doesn't choke on unknown options, it will just issue warnings
3283       # or remarks (even with -Werror).  So we grep stderr for any message
3284       # that says an option was ignored or not supported.
3285       # When given -MP, icc 7.0 and 7.1 complain thusly:
3286       #   icc: Command line warning: ignoring option '-M'; no argument required
3287       # The diagnosis changed in icc 8.0:
3288       #   icc: Command line remark: option '-MP' not supported
3289       if (grep 'ignoring option' conftest.err ||
3290           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3291         am_cv_CC_dependencies_compiler_type=$depmode
3292         break
3293       fi
3294     fi
3295   done
3296
3297   cd ..
3298   rm -rf conftest.dir
3299 else
3300   am_cv_CC_dependencies_compiler_type=none
3301 fi
3302
3303 fi
3304 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3305 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3306 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3307
3308
3309
3310 if
3311   test "x$enable_dependency_tracking" != xno \
3312   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3313   am__fastdepCC_TRUE=
3314   am__fastdepCC_FALSE='#'
3315 else
3316   am__fastdepCC_TRUE='#'
3317   am__fastdepCC_FALSE=
3318 fi
3319
3320
3321
3322
3323   TCPW_MSG="no"
3324
3325 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3326 if test "${with_tcp_wrappers+set}" = set; then
3327   withval="$with_tcp_wrappers"
3328
3329         if test "x$withval" != "xno" ; then
3330             saved_LIBS="$LIBS"
3331             saved_LDFLAGS="$LDFLAGS"
3332             saved_CPPFLAGS="$CPPFLAGS"
3333             if test -n "${withval}" -a "${withval}" != "yes"; then
3334                 if test -d "${withval}/lib"; then
3335                     if test -n "${need_dash_r}"; then
3336                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3337                     else
3338                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3339                     fi
3340                 else
3341                     if test -n "${need_dash_r}"; then
3342                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3343                     else
3344                         LDFLAGS="-L${withval} ${LDFLAGS}"
3345                     fi
3346                 fi
3347                 if test -d "${withval}/include"; then
3348                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3349                 else
3350                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3351                 fi
3352             fi
3353             LIBWRAP="-lwrap"
3354             LIBS="$LIBWRAP $LIBS"
3355             echo "$as_me:$LINENO: checking for libwrap" >&5
3356 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
3357             cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h.  */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h.  */
3363
3364                 #include <tcpd.h>
3365                 int deny_severity = 0, allow_severity = 0;
3366
3367 int
3368 main ()
3369 {
3370 hosts_access(0);
3371   ;
3372   return 0;
3373 }
3374 _ACEOF
3375 rm -f conftest.$ac_objext conftest$ac_exeext
3376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3377   (eval $ac_link) 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } &&
3384          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386   (eval $ac_try) 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); }; } &&
3390          { ac_try='test -s conftest$ac_exeext'
3391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392   (eval $ac_try) 2>&5
3393   ac_status=$?
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }; }; then
3396
3397                 echo "$as_me:$LINENO: result: yes" >&5
3398 echo "${ECHO_T}yes" >&6
3399
3400
3401 cat >>confdefs.h <<\_ACEOF
3402 #define LIBWRAP 1
3403 _ACEOF
3404
3405
3406 cat >>confdefs.h <<\_ACEOF
3407 #define HAVE_LIBWRAP 1
3408 _ACEOF
3409
3410
3411 cat >>confdefs.h <<\_ACEOF
3412 #define HAVE_TCP_WRAPPER 1
3413 _ACEOF
3414
3415                 TCPW_MSG="yes"
3416
3417 else
3418   echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421
3422                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3423 echo "$as_me: error: *** libwrap missing" >&2;}
3424    { (exit 1); exit 1; }; }
3425
3426
3427 fi
3428 rm -f conftest.err conftest.$ac_objext \
3429       conftest$ac_exeext conftest.$ac_ext
3430             LIBS="$saved_LIBS"
3431         fi
3432
3433
3434 fi;
3435
3436
3437
3438
3439
3440
3441           ac_config_headers="$ac_config_headers support/include/config.h"
3442
3443
3444 # Checks for programs.
3445 ac_ext=cc
3446 ac_cpp='$CXXCPP $CPPFLAGS'
3447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3450 if test -n "$ac_tool_prefix"; then
3451   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3452   do
3453     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3455 echo "$as_me:$LINENO: checking for $ac_word" >&5
3456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3457 if test "${ac_cv_prog_CXX+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   if test -n "$CXX"; then
3461   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466   IFS=$as_save_IFS
3467   test -z "$as_dir" && as_dir=.
3468   for ac_exec_ext in '' $ac_executable_extensions; do
3469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3472     break 2
3473   fi
3474 done
3475 done
3476
3477 fi
3478 fi
3479 CXX=$ac_cv_prog_CXX
3480 if test -n "$CXX"; then
3481   echo "$as_me:$LINENO: result: $CXX" >&5
3482 echo "${ECHO_T}$CXX" >&6
3483 else
3484   echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3486 fi
3487
3488     test -n "$CXX" && break
3489   done
3490 fi
3491 if test -z "$CXX"; then
3492   ac_ct_CXX=$CXX
3493   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3494 do
3495   # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy $ac_prog; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3500   echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502   if test -n "$ac_ct_CXX"; then
3503   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510   for ac_exec_ext in '' $ac_executable_extensions; do
3511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512     ac_cv_prog_ac_ct_CXX="$ac_prog"
3513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517 done
3518
3519 fi
3520 fi
3521 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3522 if test -n "$ac_ct_CXX"; then
3523   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3524 echo "${ECHO_T}$ac_ct_CXX" >&6
3525 else
3526   echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3528 fi
3529
3530   test -n "$ac_ct_CXX" && break
3531 done
3532 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3533
3534   CXX=$ac_ct_CXX
3535 fi
3536
3537
3538 # Provide some information about the compiler.
3539 echo "$as_me:$LINENO:" \
3540      "checking for C++ compiler version" >&5
3541 ac_compiler=`set X $ac_compile; echo $2`
3542 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3543   (eval $ac_compiler --version </dev/null >&5) 2>&5
3544   ac_status=$?
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); }
3547 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3548   (eval $ac_compiler -v </dev/null >&5) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }
3552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3553   (eval $ac_compiler -V </dev/null >&5) 2>&5
3554   ac_status=$?
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); }
3557
3558 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3559 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3560 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h.  */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h.  */
3569
3570 int
3571 main ()
3572 {
3573 #ifndef __GNUC__
3574        choke me
3575 #endif
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583   (eval $ac_compile) 2>conftest.er1
3584   ac_status=$?
3585   grep -v '^ *+' conftest.er1 >conftest.err
3586   rm -f conftest.er1
3587   cat conftest.err >&5
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } &&
3590          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592   (eval $ac_try) 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); }; } &&
3596          { ac_try='test -s conftest.$ac_objext'
3597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598   (eval $ac_try) 2>&5
3599   ac_status=$?
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); }; }; then
3602   ac_compiler_gnu=yes
3603 else
3604   echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 ac_compiler_gnu=no
3608 fi
3609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3610 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3611
3612 fi
3613 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3614 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3615 GXX=`test $ac_compiler_gnu = yes && echo yes`
3616 ac_test_CXXFLAGS=${CXXFLAGS+set}
3617 ac_save_CXXFLAGS=$CXXFLAGS
3618 CXXFLAGS="-g"
3619 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3620 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3621 if test "${ac_cv_prog_cxx_g+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624   cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h.  */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h.  */
3630
3631 int
3632 main ()
3633 {
3634
3635   ;
3636   return 0;
3637 }
3638 _ACEOF
3639 rm -f conftest.$ac_objext
3640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3641   (eval $ac_compile) 2>conftest.er1
3642   ac_status=$?
3643   grep -v '^ *+' conftest.er1 >conftest.err
3644   rm -f conftest.er1
3645   cat conftest.err >&5
3646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647   (exit $ac_status); } &&
3648          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650   (eval $ac_try) 2>&5
3651   ac_status=$?
3652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); }; } &&
3654          { ac_try='test -s conftest.$ac_objext'
3655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656   (eval $ac_try) 2>&5
3657   ac_status=$?
3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); }; }; then
3660   ac_cv_prog_cxx_g=yes
3661 else
3662   echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3664
3665 ac_cv_prog_cxx_g=no
3666 fi
3667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3668 fi
3669 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3670 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3671 if test "$ac_test_CXXFLAGS" = set; then
3672   CXXFLAGS=$ac_save_CXXFLAGS
3673 elif test $ac_cv_prog_cxx_g = yes; then
3674   if test "$GXX" = yes; then
3675     CXXFLAGS="-g -O2"
3676   else
3677     CXXFLAGS="-g"
3678   fi
3679 else
3680   if test "$GXX" = yes; then
3681     CXXFLAGS="-O2"
3682   else
3683     CXXFLAGS=
3684   fi
3685 fi
3686 for ac_declaration in \
3687    '' \
3688    'extern "C" void std::exit (int) throw (); using std::exit;' \
3689    'extern "C" void std::exit (int); using std::exit;' \
3690    'extern "C" void exit (int) throw ();' \
3691    'extern "C" void exit (int);' \
3692    'void exit (int);'
3693 do
3694   cat >conftest.$ac_ext <<_ACEOF
3695 /* confdefs.h.  */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h.  */
3700 $ac_declaration
3701 #include <stdlib.h>
3702 int
3703 main ()
3704 {
3705 exit (42);
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712   (eval $ac_compile) 2>conftest.er1
3713   ac_status=$?
3714   grep -v '^ *+' conftest.er1 >conftest.err
3715   rm -f conftest.er1
3716   cat conftest.err >&5
3717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718   (exit $ac_status); } &&
3719          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721   (eval $ac_try) 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }; } &&
3725          { ac_try='test -s conftest.$ac_objext'
3726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727   (eval $ac_try) 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); }; }; then
3731   :
3732 else
3733   echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736 continue
3737 fi
3738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3739   cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h.  */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h.  */
3745 $ac_declaration
3746 int
3747 main ()
3748 {
3749 exit (42);
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 rm -f conftest.$ac_objext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3756   (eval $ac_compile) 2>conftest.er1
3757   ac_status=$?
3758   grep -v '^ *+' conftest.er1 >conftest.err
3759   rm -f conftest.er1
3760   cat conftest.err >&5
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); } &&
3763          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765   (eval $ac_try) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); }; } &&
3769          { ac_try='test -s conftest.$ac_objext'
3770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; }; then
3775   break
3776 else
3777   echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3779
3780 fi
3781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3782 done
3783 rm -f conftest*
3784 if test -n "$ac_declaration"; then
3785   echo '#ifdef __cplusplus' >>confdefs.h
3786   echo $ac_declaration      >>confdefs.h
3787   echo '#endif'             >>confdefs.h
3788 fi
3789
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795
3796 depcc="$CXX"  am_compiler_list=
3797
3798 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3799 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3800 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3804   # We make a subdir and do the tests there.  Otherwise we can end up
3805   # making bogus files that we don't know about and never remove.  For
3806   # instance it was reported that on HP-UX the gcc test will end up
3807   # making a dummy file named `D' -- because `-MD' means `put the output
3808   # in D'.
3809   mkdir conftest.dir
3810   # Copy depcomp to subdir because otherwise we won't find it if we're
3811   # using a relative directory.
3812   cp "$am_depcomp" conftest.dir
3813   cd conftest.dir
3814   # We will build objects and dependencies in a subdirectory because
3815   # it helps to detect inapplicable dependency modes.  For instance
3816   # both Tru64's cc and ICC support -MD to output dependencies as a
3817   # side effect of compilation, but ICC will put the dependencies in
3818   # the current directory while Tru64 will put them in the object
3819   # directory.
3820   mkdir sub
3821
3822   am_cv_CXX_dependencies_compiler_type=none
3823   if test "$am_compiler_list" = ""; then
3824      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3825   fi
3826   for depmode in $am_compiler_list; do
3827     # Setup a source with many dependencies, because some compilers
3828     # like to wrap large dependency lists on column 80 (with \), and
3829     # we should not choose a depcomp mode which is confused by this.
3830     #
3831     # We need to recreate these files for each test, as the compiler may
3832     # overwrite some of them when testing with obscure command lines.
3833     # This happens at least with the AIX C compiler.
3834     : > sub/conftest.c
3835     for i in 1 2 3 4 5 6; do
3836       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3837       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3838       # Solaris 8's {/usr,}/bin/sh.
3839       touch sub/conftst$i.h
3840     done
3841     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3842
3843     case $depmode in
3844     nosideeffect)
3845       # after this tag, mechanisms are not by side-effect, so they'll
3846       # only be used when explicitly requested
3847       if test "x$enable_dependency_tracking" = xyes; then
3848         continue
3849       else
3850         break
3851       fi
3852       ;;
3853     none) break ;;
3854     esac
3855     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3856     # mode.  It turns out that the SunPro C++ compiler does not properly
3857     # handle `-M -o', and we need to detect this.
3858     if depmode=$depmode \
3859        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3860        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3861        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3862          >/dev/null 2>conftest.err &&
3863        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3864        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3865        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866       # icc doesn't choke on unknown options, it will just issue warnings
3867       # or remarks (even with -Werror).  So we grep stderr for any message
3868       # that says an option was ignored or not supported.
3869       # When given -MP, icc 7.0 and 7.1 complain thusly:
3870       #   icc: Command line warning: ignoring option '-M'; no argument required
3871       # The diagnosis changed in icc 8.0:
3872       #   icc: Command line remark: option '-MP' not supported
3873       if (grep 'ignoring option' conftest.err ||
3874           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3875         am_cv_CXX_dependencies_compiler_type=$depmode
3876         break
3877       fi
3878     fi
3879   done
3880
3881   cd ..
3882   rm -rf conftest.dir
3883 else
3884   am_cv_CXX_dependencies_compiler_type=none
3885 fi
3886
3887 fi
3888 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3889 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3890 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3891
3892
3893
3894 if
3895   test "x$enable_dependency_tracking" != xno \
3896   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3897   am__fastdepCXX_TRUE=
3898   am__fastdepCXX_FALSE='#'
3899 else
3900   am__fastdepCXX_TRUE='#'
3901   am__fastdepCXX_FALSE=
3902 fi
3903
3904
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910 if test -n "$ac_tool_prefix"; then
3911   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_prog_CC+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   if test -n "$CC"; then
3919   ac_cv_prog_CC="$CC" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_exec_ext in '' $ac_executable_extensions; do
3927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933 done
3934
3935 fi
3936 fi
3937 CC=$ac_cv_prog_CC
3938 if test -n "$CC"; then
3939   echo "$as_me:$LINENO: result: $CC" >&5
3940 echo "${ECHO_T}$CC" >&6
3941 else
3942   echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3944 fi
3945
3946 fi
3947 if test -z "$ac_cv_prog_CC"; then
3948   ac_ct_CC=$CC
3949   # Extract the first word of "gcc", so it can be a program name with args.
3950 set dummy gcc; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   if test -n "$ac_ct_CC"; then
3957   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962   IFS=$as_save_IFS
3963   test -z "$as_dir" && as_dir=.
3964   for ac_exec_ext in '' $ac_executable_extensions; do
3965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966     ac_cv_prog_ac_ct_CC="gcc"
3967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968     break 2
3969   fi
3970 done
3971 done
3972
3973 fi
3974 fi
3975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3976 if test -n "$ac_ct_CC"; then
3977   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3978 echo "${ECHO_T}$ac_ct_CC" >&6
3979 else
3980   echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3982 fi
3983
3984   CC=$ac_ct_CC
3985 else
3986   CC="$ac_cv_prog_CC"
3987 fi
3988
3989 if test -z "$CC"; then
3990   if test -n "$ac_tool_prefix"; then
3991   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3992 set dummy ${ac_tool_prefix}cc; ac_word=$2
3993 echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3995 if test "${ac_cv_prog_CC+set}" = set; then
3996   echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998   if test -n "$CC"; then
3999   ac_cv_prog_CC="$CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006   for ac_exec_ext in '' $ac_executable_extensions; do
4007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008     ac_cv_prog_CC="${ac_tool_prefix}cc"
4009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013 done
4014
4015 fi
4016 fi
4017 CC=$ac_cv_prog_CC
4018 if test -n "$CC"; then
4019   echo "$as_me:$LINENO: result: $CC" >&5
4020 echo "${ECHO_T}$CC" >&6
4021 else
4022   echo "$as_me:$LINENO: result: no" >&5
4023 echo "${ECHO_T}no" >&6
4024 fi
4025
4026 fi
4027 if test -z "$ac_cv_prog_CC"; then
4028   ac_ct_CC=$CC
4029   # Extract the first word of "cc", so it can be a program name with args.
4030 set dummy cc; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   if test -n "$ac_ct_CC"; then
4037   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042   IFS=$as_save_IFS
4043   test -z "$as_dir" && as_dir=.
4044   for ac_exec_ext in '' $ac_executable_extensions; do
4045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046     ac_cv_prog_ac_ct_CC="cc"
4047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048     break 2
4049   fi
4050 done
4051 done
4052
4053 fi
4054 fi
4055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4056 if test -n "$ac_ct_CC"; then
4057   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4058 echo "${ECHO_T}$ac_ct_CC" >&6
4059 else
4060   echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4062 fi
4063
4064   CC=$ac_ct_CC
4065 else
4066   CC="$ac_cv_prog_CC"
4067 fi
4068
4069 fi
4070 if test -z "$CC"; then
4071   # Extract the first word of "cc", so it can be a program name with args.
4072 set dummy cc; ac_word=$2
4073 echo "$as_me:$LINENO: checking for $ac_word" >&5
4074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4075 if test "${ac_cv_prog_CC+set}" = set; then
4076   echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078   if test -n "$CC"; then
4079   ac_cv_prog_CC="$CC" # Let the user override the test.
4080 else
4081   ac_prog_rejected=no
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085   IFS=$as_save_IFS
4086   test -z "$as_dir" && as_dir=.
4087   for ac_exec_ext in '' $ac_executable_extensions; do
4088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4090        ac_prog_rejected=yes
4091        continue
4092      fi
4093     ac_cv_prog_CC="cc"
4094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095     break 2
4096   fi
4097 done
4098 done
4099
4100 if test $ac_prog_rejected = yes; then
4101   # We found a bogon in the path, so make sure we never use it.
4102   set dummy $ac_cv_prog_CC
4103   shift
4104   if test $# != 0; then
4105     # We chose a different compiler from the bogus one.
4106     # However, it has the same basename, so the bogon will be chosen
4107     # first if we set CC to just the basename; use the full file name.
4108     shift
4109     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4110   fi
4111 fi
4112 fi
4113 fi
4114 CC=$ac_cv_prog_CC
4115 if test -n "$CC"; then
4116   echo "$as_me:$LINENO: result: $CC" >&5
4117 echo "${ECHO_T}$CC" >&6
4118 else
4119   echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4121 fi
4122
4123 fi
4124 if test -z "$CC"; then
4125   if test -n "$ac_tool_prefix"; then
4126   for ac_prog in cl
4127   do
4128     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4130 echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132 if test "${ac_cv_prog_CC+set}" = set; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   if test -n "$CC"; then
4136   ac_cv_prog_CC="$CC" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141   IFS=$as_save_IFS
4142   test -z "$as_dir" && as_dir=.
4143   for ac_exec_ext in '' $ac_executable_extensions; do
4144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150 done
4151
4152 fi
4153 fi
4154 CC=$ac_cv_prog_CC
4155 if test -n "$CC"; then
4156   echo "$as_me:$LINENO: result: $CC" >&5
4157 echo "${ECHO_T}$CC" >&6
4158 else
4159   echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6
4161 fi
4162
4163     test -n "$CC" && break
4164   done
4165 fi
4166 if test -z "$CC"; then
4167   ac_ct_CC=$CC
4168   for ac_prog in cl
4169 do
4170   # Extract the first word of "$ac_prog", so it can be a program name with args.
4171 set dummy $ac_prog; ac_word=$2
4172 echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4175   echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177   if test -n "$ac_ct_CC"; then
4178   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   test -z "$as_dir" && as_dir=.
4185   for ac_exec_ext in '' $ac_executable_extensions; do
4186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187     ac_cv_prog_ac_ct_CC="$ac_prog"
4188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189     break 2
4190   fi
4191 done
4192 done
4193
4194 fi
4195 fi
4196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4197 if test -n "$ac_ct_CC"; then
4198   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4199 echo "${ECHO_T}$ac_ct_CC" >&6
4200 else
4201   echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6
4203 fi
4204
4205   test -n "$ac_ct_CC" && break
4206 done
4207
4208   CC=$ac_ct_CC
4209 fi
4210
4211 fi
4212
4213
4214 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4215 See \`config.log' for more details." >&5
4216 echo "$as_me: error: no acceptable C compiler found in \$PATH
4217 See \`config.log' for more details." >&2;}
4218    { (exit 1); exit 1; }; }
4219
4220 # Provide some information about the compiler.
4221 echo "$as_me:$LINENO:" \
4222      "checking for C compiler version" >&5
4223 ac_compiler=`set X $ac_compile; echo $2`
4224 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4225   (eval $ac_compiler --version </dev/null >&5) 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); }
4229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4230   (eval $ac_compiler -v </dev/null >&5) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }
4234 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4235   (eval $ac_compiler -V </dev/null >&5) 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); }
4239
4240 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4241 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4242 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251
4252 int
4253 main ()
4254 {
4255 #ifndef __GNUC__
4256        choke me
4257 #endif
4258
4259   ;
4260   return 0;
4261 }
4262 _ACEOF
4263 rm -f conftest.$ac_objext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4265   (eval $ac_compile) 2>conftest.er1
4266   ac_status=$?
4267   grep -v '^ *+' conftest.er1 >conftest.err
4268   rm -f conftest.er1
4269   cat conftest.err >&5
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); } &&
4272          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274   (eval $ac_try) 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; } &&
4278          { ac_try='test -s conftest.$ac_objext'
4279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280   (eval $ac_try) 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; }; then
4284   ac_compiler_gnu=yes
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289 ac_compiler_gnu=no
4290 fi
4291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4292 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4293
4294 fi
4295 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4296 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4297 GCC=`test $ac_compiler_gnu = yes && echo yes`
4298 ac_test_CFLAGS=${CFLAGS+set}
4299 ac_save_CFLAGS=$CFLAGS
4300 CFLAGS="-g"
4301 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4302 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4303 if test "${ac_cv_prog_cc_g+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   cat >conftest.$ac_ext <<_ACEOF
4307 /* confdefs.h.  */
4308 _ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h.  */
4312
4313 int
4314 main ()
4315 {
4316
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 rm -f conftest.$ac_objext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4323   (eval $ac_compile) 2>conftest.er1
4324   ac_status=$?
4325   grep -v '^ *+' conftest.er1 >conftest.err
4326   rm -f conftest.er1
4327   cat conftest.err >&5
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); } &&
4330          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332   (eval $ac_try) 2>&5
4333   ac_status=$?
4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335   (exit $ac_status); }; } &&
4336          { ac_try='test -s conftest.$ac_objext'
4337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338   (eval $ac_try) 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); }; }; then
4342   ac_cv_prog_cc_g=yes
4343 else
4344   echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347 ac_cv_prog_cc_g=no
4348 fi
4349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4350 fi
4351 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4352 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4353 if test "$ac_test_CFLAGS" = set; then
4354   CFLAGS=$ac_save_CFLAGS
4355 elif test $ac_cv_prog_cc_g = yes; then
4356   if test "$GCC" = yes; then
4357     CFLAGS="-g -O2"
4358   else
4359     CFLAGS="-g"
4360   fi
4361 else
4362   if test "$GCC" = yes; then
4363     CFLAGS="-O2"
4364   else
4365     CFLAGS=
4366   fi
4367 fi
4368 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4369 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4370 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   ac_cv_prog_cc_stdc=no
4374 ac_save_CC=$CC
4375 cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h.  */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h.  */
4381 #include <stdarg.h>
4382 #include <stdio.h>
4383 #include <sys/types.h>
4384 #include <sys/stat.h>
4385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4386 struct buf { int x; };
4387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4388 static char *e (p, i)
4389      char **p;
4390      int i;
4391 {
4392   return p[i];
4393 }
4394 static char *f (char * (*g) (char **, int), char **p, ...)
4395 {
4396   char *s;
4397   va_list v;
4398   va_start (v,p);
4399   s = g (p, va_arg (v,int));
4400   va_end (v);
4401   return s;
4402 }
4403
4404 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4405    function prototypes and stuff, but not '\xHH' hex character constants.
4406    These don't provoke an error unfortunately, instead are silently treated
4407    as 'x'.  The following induces an error, until -std1 is added to get
4408    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4409    array size at least.  It's necessary to write '\x00'==0 to get something
4410    that's true only with -std1.  */
4411 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4412
4413 int test (int i, double x);
4414 struct s1 {int (*f) (int a);};
4415 struct s2 {int (*f) (double a);};
4416 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4417 int argc;
4418 char **argv;
4419 int
4420 main ()
4421 {
4422 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4423   ;
4424   return 0;
4425 }
4426 _ACEOF
4427 # Don't try gcc -ansi; that turns off useful extensions and
4428 # breaks some systems' header files.
4429 # AIX                   -qlanglvl=ansi
4430 # Ultrix and OSF/1      -std1
4431 # HP-UX 10.20 and later -Ae
4432 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4433 # SVR4                  -Xc -D__EXTENSIONS__
4434 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4435 do
4436   CC="$ac_save_CC $ac_arg"
4437   rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439   (eval $ac_compile) 2>conftest.er1
4440   ac_status=$?
4441   grep -v '^ *+' conftest.er1 >conftest.err
4442   rm -f conftest.er1
4443   cat conftest.err >&5
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); } &&
4446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448   (eval $ac_try) 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; } &&
4452          { ac_try='test -s conftest.$ac_objext'
4453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454   (eval $ac_try) 2>&5
4455   ac_status=$?
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); }; }; then
4458   ac_cv_prog_cc_stdc=$ac_arg
4459 break
4460 else
4461   echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4463
4464 fi
4465 rm -f conftest.err conftest.$ac_objext
4466 done
4467 rm -f conftest.$ac_ext conftest.$ac_objext
4468 CC=$ac_save_CC
4469
4470 fi
4471
4472 case "x$ac_cv_prog_cc_stdc" in
4473   x|xno)
4474     echo "$as_me:$LINENO: result: none needed" >&5
4475 echo "${ECHO_T}none needed" >&6 ;;
4476   *)
4477     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4478 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4479     CC="$CC $ac_cv_prog_cc_stdc" ;;
4480 esac
4481
4482 # Some people use a C++ compiler to compile C.  Since we use `exit',
4483 # in C++ we need to declare it.  In case someone uses the same compiler
4484 # for both compiling C and C++ we need to have the C++ compiler decide
4485 # the declaration of exit, since it's the most demanding environment.
4486 cat >conftest.$ac_ext <<_ACEOF
4487 #ifndef __cplusplus
4488   choke me
4489 #endif
4490 _ACEOF
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493   (eval $ac_compile) 2>conftest.er1
4494   ac_status=$?
4495   grep -v '^ *+' conftest.er1 >conftest.err
4496   rm -f conftest.er1
4497   cat conftest.err >&5
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); } &&
4500          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502   (eval $ac_try) 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; } &&
4506          { ac_try='test -s conftest.$ac_objext'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; }; then
4512   for ac_declaration in \
4513    '' \
4514    'extern "C" void std::exit (int) throw (); using std::exit;' \
4515    'extern "C" void std::exit (int); using std::exit;' \
4516    'extern "C" void exit (int) throw ();' \
4517    'extern "C" void exit (int);' \
4518    'void exit (int);'
4519 do
4520   cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526 $ac_declaration
4527 #include <stdlib.h>
4528 int
4529 main ()
4530 {
4531 exit (42);
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 rm -f conftest.$ac_objext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4538   (eval $ac_compile) 2>conftest.er1
4539   ac_status=$?
4540   grep -v '^ *+' conftest.er1 >conftest.err
4541   rm -f conftest.er1
4542   cat conftest.err >&5
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); } &&
4545          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547   (eval $ac_try) 2>&5
4548   ac_status=$?
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); }; } &&
4551          { ac_try='test -s conftest.$ac_objext'
4552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553   (eval $ac_try) 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }; }; then
4557   :
4558 else
4559   echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562 continue
4563 fi
4564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4565   cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h.  */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h.  */
4571 $ac_declaration
4572 int
4573 main ()
4574 {
4575 exit (42);
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582   (eval $ac_compile) 2>conftest.er1
4583   ac_status=$?
4584   grep -v '^ *+' conftest.er1 >conftest.err
4585   rm -f conftest.er1
4586   cat conftest.err >&5
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); } &&
4589          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591   (eval $ac_try) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }; } &&
4595          { ac_try='test -s conftest.$ac_objext'
4596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597   (eval $ac_try) 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; }; then
4601   break
4602 else
4603   echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 fi
4607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4608 done
4609 rm -f conftest*
4610 if test -n "$ac_declaration"; then
4611   echo '#ifdef __cplusplus' >>confdefs.h
4612   echo $ac_declaration      >>confdefs.h
4613   echo '#endif'             >>confdefs.h
4614 fi
4615
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 fi
4621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627
4628 depcc="$CC"   am_compiler_list=
4629
4630 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4631 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4632 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4636   # We make a subdir and do the tests there.  Otherwise we can end up
4637   # making bogus files that we don't know about and never remove.  For
4638   # instance it was reported that on HP-UX the gcc test will end up
4639   # making a dummy file named `D' -- because `-MD' means `put the output
4640   # in D'.
4641   mkdir conftest.dir
4642   # Copy depcomp to subdir because otherwise we won't find it if we're
4643   # using a relative directory.
4644   cp "$am_depcomp" conftest.dir
4645   cd conftest.dir
4646   # We will build objects and dependencies in a subdirectory because
4647   # it helps to detect inapplicable dependency modes.  For instance
4648   # both Tru64's cc and ICC support -MD to output dependencies as a
4649   # side effect of compilation, but ICC will put the dependencies in
4650   # the current directory while Tru64 will put them in the object
4651   # directory.
4652   mkdir sub
4653
4654   am_cv_CC_dependencies_compiler_type=none
4655   if test "$am_compiler_list" = ""; then
4656      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4657   fi
4658   for depmode in $am_compiler_list; do
4659     # Setup a source with many dependencies, because some compilers
4660     # like to wrap large dependency lists on column 80 (with \), and
4661     # we should not choose a depcomp mode which is confused by this.
4662     #
4663     # We need to recreate these files for each test, as the compiler may
4664     # overwrite some of them when testing with obscure command lines.
4665     # This happens at least with the AIX C compiler.
4666     : > sub/conftest.c
4667     for i in 1 2 3 4 5 6; do
4668       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4669       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4670       # Solaris 8's {/usr,}/bin/sh.
4671       touch sub/conftst$i.h
4672     done
4673     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4674
4675     case $depmode in
4676     nosideeffect)
4677       # after this tag, mechanisms are not by side-effect, so they'll
4678       # only be used when explicitly requested
4679       if test "x$enable_dependency_tracking" = xyes; then
4680         continue
4681       else
4682         break
4683       fi
4684       ;;
4685     none) break ;;
4686     esac
4687     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4688     # mode.  It turns out that the SunPro C++ compiler does not properly
4689     # handle `-M -o', and we need to detect this.
4690     if depmode=$depmode \
4691        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4692        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4693        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4694          >/dev/null 2>conftest.err &&
4695        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4696        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4697        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4698       # icc doesn't choke on unknown options, it will just issue warnings
4699       # or remarks (even with -Werror).  So we grep stderr for any message
4700       # that says an option was ignored or not supported.
4701       # When given -MP, icc 7.0 and 7.1 complain thusly:
4702       #   icc: Command line warning: ignoring option '-M'; no argument required
4703       # The diagnosis changed in icc 8.0:
4704       #   icc: Command line remark: option '-MP' not supported
4705       if (grep 'ignoring option' conftest.err ||
4706           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4707         am_cv_CC_dependencies_compiler_type=$depmode
4708         break
4709       fi
4710     fi
4711   done
4712
4713   cd ..
4714   rm -rf conftest.dir
4715 else
4716   am_cv_CC_dependencies_compiler_type=none
4717 fi
4718
4719 fi
4720 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4721 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4722 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4723
4724
4725
4726 if
4727   test "x$enable_dependency_tracking" != xno \
4728   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4729   am__fastdepCC_TRUE=
4730   am__fastdepCC_FALSE='#'
4731 else
4732   am__fastdepCC_TRUE='#'
4733   am__fastdepCC_FALSE=
4734 fi
4735
4736
4737 ac_ext=c
4738 ac_cpp='$CPP $CPPFLAGS'
4739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4743 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4744 # On Suns, sometimes $CPP names a directory.
4745 if test -n "$CPP" && test -d "$CPP"; then
4746   CPP=
4747 fi
4748 if test -z "$CPP"; then
4749   if test "${ac_cv_prog_CPP+set}" = set; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752       # Double quotes because CPP needs to be expanded
4753     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4754     do
4755       ac_preproc_ok=false
4756 for ac_c_preproc_warn_flag in '' yes
4757 do
4758   # Use a header file that comes with gcc, so configuring glibc
4759   # with a fresh cross-compiler works.
4760   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761   # <limits.h> exists even on freestanding compilers.
4762   # On the NeXT, cc -E runs the code through the compiler's parser,
4763   # not just through cpp. "Syntax error" is here to catch this case.
4764   cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h.  */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h.  */
4770 #ifdef __STDC__
4771 # include <limits.h>
4772 #else
4773 # include <assert.h>
4774 #endif
4775                      Syntax error
4776 _ACEOF
4777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4779   ac_status=$?
4780   grep -v '^ *+' conftest.er1 >conftest.err
4781   rm -f conftest.er1
4782   cat conftest.err >&5
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); } >/dev/null; then
4785   if test -s conftest.err; then
4786     ac_cpp_err=$ac_c_preproc_warn_flag
4787     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4788   else
4789     ac_cpp_err=
4790   fi
4791 else
4792   ac_cpp_err=yes
4793 fi
4794 if test -z "$ac_cpp_err"; then
4795   :
4796 else
4797   echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4799
4800   # Broken: fails on valid input.
4801 continue
4802 fi
4803 rm -f conftest.err conftest.$ac_ext
4804
4805   # OK, works on sane cases.  Now check whether non-existent headers
4806   # can be detected and how.
4807   cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h.  */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h.  */
4813 #include <ac_nonexistent.h>
4814 _ACEOF
4815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4817   ac_status=$?
4818   grep -v '^ *+' conftest.er1 >conftest.err
4819   rm -f conftest.er1
4820   cat conftest.err >&5
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); } >/dev/null; then
4823   if test -s conftest.err; then
4824     ac_cpp_err=$ac_c_preproc_warn_flag
4825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4826   else
4827     ac_cpp_err=
4828   fi
4829 else
4830   ac_cpp_err=yes
4831 fi
4832 if test -z "$ac_cpp_err"; then
4833   # Broken: success on invalid input.
4834 continue
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839   # Passes both tests.
4840 ac_preproc_ok=:
4841 break
4842 fi
4843 rm -f conftest.err conftest.$ac_ext
4844
4845 done
4846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4847 rm -f conftest.err conftest.$ac_ext
4848 if $ac_preproc_ok; then
4849   break
4850 fi
4851
4852     done
4853     ac_cv_prog_CPP=$CPP
4854
4855 fi
4856   CPP=$ac_cv_prog_CPP
4857 else
4858   ac_cv_prog_CPP=$CPP
4859 fi
4860 echo "$as_me:$LINENO: result: $CPP" >&5
4861 echo "${ECHO_T}$CPP" >&6
4862 ac_preproc_ok=false
4863 for ac_c_preproc_warn_flag in '' yes
4864 do
4865   # Use a header file that comes with gcc, so configuring glibc
4866   # with a fresh cross-compiler works.
4867   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868   # <limits.h> exists even on freestanding compilers.
4869   # On the NeXT, cc -E runs the code through the compiler's parser,
4870   # not just through cpp. "Syntax error" is here to catch this case.
4871   cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h.  */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h.  */
4877 #ifdef __STDC__
4878 # include <limits.h>
4879 #else
4880 # include <assert.h>
4881 #endif
4882                      Syntax error
4883 _ACEOF
4884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4885   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4886   ac_status=$?
4887   grep -v '^ *+' conftest.er1 >conftest.err
4888   rm -f conftest.er1
4889   cat conftest.err >&5
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); } >/dev/null; then
4892   if test -s conftest.err; then
4893     ac_cpp_err=$ac_c_preproc_warn_flag
4894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4895   else
4896     ac_cpp_err=
4897   fi
4898 else
4899   ac_cpp_err=yes
4900 fi
4901 if test -z "$ac_cpp_err"; then
4902   :
4903 else
4904   echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907   # Broken: fails on valid input.
4908 continue
4909 fi
4910 rm -f conftest.err conftest.$ac_ext
4911
4912   # OK, works on sane cases.  Now check whether non-existent headers
4913   # can be detected and how.
4914   cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h.  */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h.  */
4920 #include <ac_nonexistent.h>
4921 _ACEOF
4922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4924   ac_status=$?
4925   grep -v '^ *+' conftest.er1 >conftest.err
4926   rm -f conftest.er1
4927   cat conftest.err >&5
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); } >/dev/null; then
4930   if test -s conftest.err; then
4931     ac_cpp_err=$ac_c_preproc_warn_flag
4932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4933   else
4934     ac_cpp_err=
4935   fi
4936 else
4937   ac_cpp_err=yes
4938 fi
4939 if test -z "$ac_cpp_err"; then
4940   # Broken: success on invalid input.
4941 continue
4942 else
4943   echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946   # Passes both tests.
4947 ac_preproc_ok=:
4948 break
4949 fi
4950 rm -f conftest.err conftest.$ac_ext
4951
4952 done
4953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4954 rm -f conftest.err conftest.$ac_ext
4955 if $ac_preproc_ok; then
4956   :
4957 else
4958   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4959 See \`config.log' for more details." >&5
4960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4961 See \`config.log' for more details." >&2;}
4962    { (exit 1); exit 1; }; }
4963 fi
4964
4965 ac_ext=c
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970
4971 # Find a good install program.  We prefer a C program (faster),
4972 # so one script is as good as another.  But avoid the broken or
4973 # incompatible versions:
4974 # SysV /etc/install, /usr/sbin/install
4975 # SunOS /usr/etc/install
4976 # IRIX /sbin/install
4977 # AIX /bin/install
4978 # AmigaOS /C/install, which installs bootblocks on floppy discs
4979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4982 # OS/2's system install, which has a completely different semantic
4983 # ./install, which can be erroneously created by make from ./install.sh.
4984 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4985 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4986 if test -z "$INSTALL"; then
4987 if test "${ac_cv_path_install+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993   IFS=$as_save_IFS
4994   test -z "$as_dir" && as_dir=.
4995   # Account for people who put trailing slashes in PATH elements.
4996 case $as_dir/ in
4997   ./ | .// | /cC/* | \
4998   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4999   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5000   /usr/ucb/* ) ;;
5001   *)
5002     # OSF1 and SCO ODT 3.0 have their own names for install.
5003     # Don't use installbsd from OSF since it installs stuff as root
5004     # by default.
5005     for ac_prog in ginstall scoinst install; do
5006       for ac_exec_ext in '' $ac_executable_extensions; do
5007         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5008           if test $ac_prog = install &&
5009             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5010             # AIX install.  It has an incompatible calling convention.
5011             :
5012           elif test $ac_prog = install &&
5013             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5014             # program-specific install script used by HP pwplus--don't use.
5015             :
5016           else
5017             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5018             break 3
5019           fi
5020         fi
5021       done
5022     done
5023     ;;
5024 esac
5025 done
5026
5027
5028 fi
5029   if test "${ac_cv_path_install+set}" = set; then
5030     INSTALL=$ac_cv_path_install
5031   else
5032     # As a last resort, use the slow shell script.  We don't cache a
5033     # path for INSTALL within a source directory, because that will
5034     # break other packages using the cache if that directory is
5035     # removed, or if the path is relative.
5036     INSTALL=$ac_install_sh
5037   fi
5038 fi
5039 echo "$as_me:$LINENO: result: $INSTALL" >&5
5040 echo "${ECHO_T}$INSTALL" >&6
5041
5042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5043 # It thinks the first close brace ends the variable substitution.
5044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5045
5046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5047
5048 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5049
5050 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5051 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5052 LN_S=$as_ln_s
5053 if test "$LN_S" = "ln -s"; then
5054   echo "$as_me:$LINENO: result: yes" >&5
5055 echo "${ECHO_T}yes" >&6
5056 else
5057   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5058 echo "${ECHO_T}no, using $LN_S" >&6
5059 fi
5060
5061 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5062 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5063 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5064 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   cat >conftest.make <<\_ACEOF
5068 all:
5069         @echo 'ac_maketemp="$(MAKE)"'
5070 _ACEOF
5071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5072 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5073 if test -n "$ac_maketemp"; then
5074   eval ac_cv_prog_make_${ac_make}_set=yes
5075 else
5076   eval ac_cv_prog_make_${ac_make}_set=no
5077 fi
5078 rm -f conftest.make
5079 fi
5080 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5081   echo "$as_me:$LINENO: result: yes" >&5
5082 echo "${ECHO_T}yes" >&6
5083   SET_MAKE=
5084 else
5085   echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087   SET_MAKE="MAKE=${MAKE-make}"
5088 fi
5089
5090 # Check whether --enable-shared or --disable-shared was given.
5091 if test "${enable_shared+set}" = set; then
5092   enableval="$enable_shared"
5093   p=${PACKAGE-default}
5094     case $enableval in
5095     yes) enable_shared=yes ;;
5096     no) enable_shared=no ;;
5097     *)
5098       enable_shared=no
5099       # Look at the argument we got.  We use all the common list separators.
5100       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5101       for pkg in $enableval; do
5102         IFS="$lt_save_ifs"
5103         if test "X$pkg" = "X$p"; then
5104           enable_shared=yes
5105         fi
5106       done
5107       IFS="$lt_save_ifs"
5108       ;;
5109     esac
5110 else
5111   enable_shared=yes
5112 fi;
5113
5114 # Check whether --enable-static or --disable-static was given.
5115 if test "${enable_static+set}" = set; then
5116   enableval="$enable_static"
5117   p=${PACKAGE-default}
5118     case $enableval in
5119     yes) enable_static=yes ;;
5120     no) enable_static=no ;;
5121     *)
5122      enable_static=no
5123       # Look at the argument we got.  We use all the common list separators.
5124       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5125       for pkg in $enableval; do
5126         IFS="$lt_save_ifs"
5127         if test "X$pkg" = "X$p"; then
5128           enable_static=yes
5129         fi
5130       done
5131       IFS="$lt_save_ifs"
5132       ;;
5133     esac
5134 else
5135   enable_static=yes
5136 fi;
5137
5138 # Check whether --enable-fast-install or --disable-fast-install was given.
5139 if test "${enable_fast_install+set}" = set; then
5140   enableval="$enable_fast_install"
5141   p=${PACKAGE-default}
5142     case $enableval in
5143     yes) enable_fast_install=yes ;;
5144     no) enable_fast_install=no ;;
5145     *)
5146       enable_fast_install=no
5147       # Look at the argument we got.  We use all the common list separators.
5148       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5149       for pkg in $enableval; do
5150         IFS="$lt_save_ifs"
5151         if test "X$pkg" = "X$p"; then
5152           enable_fast_install=yes
5153         fi
5154       done
5155       IFS="$lt_save_ifs"
5156       ;;
5157     esac
5158 else
5159   enable_fast_install=yes
5160 fi;
5161
5162 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5163 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5164 if test "${lt_cv_path_SED+set}" = set; then
5165   echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167   # Loop through the user's path and test for sed and gsed.
5168 # Then use that list of sed's as ones to test for truncation.
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172   IFS=$as_save_IFS
5173   test -z "$as_dir" && as_dir=.
5174   for lt_ac_prog in sed gsed; do
5175     for ac_exec_ext in '' $ac_executable_extensions; do
5176       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5177         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5178       fi
5179     done
5180   done
5181 done
5182 lt_ac_max=0
5183 lt_ac_count=0
5184 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5185 # along with /bin/sed that truncates output.
5186 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5187   test ! -f $lt_ac_sed && continue
5188   cat /dev/null > conftest.in
5189   lt_ac_count=0
5190   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5191   # Check for GNU sed and select it if it is found.
5192   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5193     lt_cv_path_SED=$lt_ac_sed
5194     break
5195   fi
5196   while true; do
5197     cat conftest.in conftest.in >conftest.tmp
5198     mv conftest.tmp conftest.in
5199     cp conftest.in conftest.nl
5200     echo >>conftest.nl
5201     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5202     cmp -s conftest.out conftest.nl || break
5203     # 10000 chars as input seems more than enough
5204     test $lt_ac_count -gt 10 && break
5205     lt_ac_count=`expr $lt_ac_count + 1`
5206     if test $lt_ac_count -gt $lt_ac_max; then
5207       lt_ac_max=$lt_ac_count
5208       lt_cv_path_SED=$lt_ac_sed
5209     fi
5210   done
5211 done
5212
5213 fi
5214
5215 SED=$lt_cv_path_SED
5216 echo "$as_me:$LINENO: result: $SED" >&5
5217 echo "${ECHO_T}$SED" >&6
5218
5219 echo "$as_me:$LINENO: checking for egrep" >&5
5220 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5221 if test "${ac_cv_prog_egrep+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5225     then ac_cv_prog_egrep='grep -E'
5226     else ac_cv_prog_egrep='egrep'
5227     fi
5228 fi
5229 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5230 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5231  EGREP=$ac_cv_prog_egrep
5232
5233
5234
5235 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5236 if test "${with_gnu_ld+set}" = set; then
5237   withval="$with_gnu_ld"
5238   test "$withval" = no || with_gnu_ld=yes
5239 else
5240   with_gnu_ld=no
5241 fi;
5242 ac_prog=ld
5243 if test "$GCC" = yes; then
5244   # Check if gcc -print-prog-name=ld gives a path.
5245   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5246 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5247   case $host in
5248   *-*-mingw*)
5249     # gcc leaves a trailing carriage return which upsets mingw
5250     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5251   *)
5252     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5253   esac
5254   case $ac_prog in
5255     # Accept absolute paths.
5256     [\\/]* | ?:[\\/]*)
5257       re_direlt='/[^/][^/]*/\.\./'
5258       # Canonicalize the pathname of ld
5259       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5260       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5261         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5262       done
5263       test -z "$LD" && LD="$ac_prog"
5264       ;;
5265   "")
5266     # If it fails, then pretend we aren't using GCC.
5267     ac_prog=ld
5268     ;;
5269   *)
5270     # If it is relative, then search for the first ld in PATH.
5271     with_gnu_ld=unknown
5272     ;;
5273   esac
5274 elif test "$with_gnu_ld" = yes; then
5275   echo "$as_me:$LINENO: checking for GNU ld" >&5
5276 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5277 else
5278   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5279 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5280 fi
5281 if test "${lt_cv_path_LD+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   if test -z "$LD"; then
5285   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5286   for ac_dir in $PATH; do
5287     IFS="$lt_save_ifs"
5288     test -z "$ac_dir" && ac_dir=.
5289     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5290       lt_cv_path_LD="$ac_dir/$ac_prog"
5291       # Check to see if the program is GNU ld.  I'd rather use --version,
5292       # but apparently some variants of GNU ld only accept -v.
5293       # Break only if it was the GNU/non-GNU ld that we prefer.
5294       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5295       *GNU* | *'with BFD'*)
5296         test "$with_gnu_ld" != no && break
5297         ;;
5298       *)
5299         test "$with_gnu_ld" != yes && break
5300         ;;
5301       esac
5302     fi
5303   done
5304   IFS="$lt_save_ifs"
5305 else
5306   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5307 fi
5308 fi
5309
5310 LD="$lt_cv_path_LD"
5311 if test -n "$LD"; then
5312   echo "$as_me:$LINENO: result: $LD" >&5
5313 echo "${ECHO_T}$LD" >&6
5314 else
5315   echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6
5317 fi
5318 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5319 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5320    { (exit 1); exit 1; }; }
5321 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5322 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5323 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5327 case `$LD -v 2>&1 </dev/null` in
5328 *GNU* | *'with BFD'*)
5329   lt_cv_prog_gnu_ld=yes
5330   ;;
5331 *)
5332   lt_cv_prog_gnu_ld=no
5333   ;;
5334 esac
5335 fi
5336 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5337 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5338 with_gnu_ld=$lt_cv_prog_gnu_ld
5339
5340
5341 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5342 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5343 if test "${lt_cv_ld_reload_flag+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   lt_cv_ld_reload_flag='-r'
5347 fi
5348 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5349 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5350 reload_flag=$lt_cv_ld_reload_flag
5351 case $reload_flag in
5352 "" | " "*) ;;
5353 *) reload_flag=" $reload_flag" ;;
5354 esac
5355 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5356 case $host_os in
5357   darwin*)
5358     if test "$GCC" = yes; then
5359       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5360     else
5361       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5362     fi
5363     ;;
5364 esac
5365
5366 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5367 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5368 if test "${lt_cv_path_NM+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   if test -n "$NM"; then
5372   # Let the user override the test.
5373   lt_cv_path_NM="$NM"
5374 else
5375   lt_nm_to_check="${ac_tool_prefix}nm"
5376   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5377     lt_nm_to_check="$lt_nm_to_check nm"
5378   fi
5379   for lt_tmp_nm in $lt_nm_to_check; do
5380     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5381     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5382       IFS="$lt_save_ifs"
5383       test -z "$ac_dir" && ac_dir=.
5384       tmp_nm="$ac_dir/$lt_tmp_nm"
5385       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5386         # Check to see if the nm accepts a BSD-compat flag.
5387         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5388         #   nm: unknown option "B" ignored
5389         # Tru64's nm complains that /dev/null is an invalid object file
5390         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5391         */dev/null* | *'Invalid file or object type'*)
5392           lt_cv_path_NM="$tmp_nm -B"
5393           break
5394           ;;
5395         *)
5396           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5397           */dev/null*)
5398             lt_cv_path_NM="$tmp_nm -p"
5399             break
5400             ;;
5401           *)
5402             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5403             continue # so that we can try to find one that supports BSD flags
5404             ;;
5405           esac
5406           ;;
5407         esac
5408       fi
5409     done
5410     IFS="$lt_save_ifs"
5411   done
5412   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5413 fi
5414 fi
5415 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5416 echo "${ECHO_T}$lt_cv_path_NM" >&6
5417 NM="$lt_cv_path_NM"
5418
5419 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5420 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5421 if test "${lt_cv_deplibs_check_method+set}" = set; then
5422   echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424   lt_cv_file_magic_cmd='$MAGIC_CMD'
5425 lt_cv_file_magic_test_file=
5426 lt_cv_deplibs_check_method='unknown'
5427 # Need to set the preceding variable on all platforms that support
5428 # interlibrary dependencies.
5429 # 'none' -- dependencies not supported.
5430 # `unknown' -- same as none, but documents that we really don't know.
5431 # 'pass_all' -- all dependencies passed with no checks.
5432 # 'test_compile' -- check by making test program.
5433 # 'file_magic [[regex]]' -- check by looking for files in library path
5434 # which responds to the $file_magic_cmd with a given extended regex.
5435 # If you have `file' or equivalent on your system and you're not sure
5436 # whether `pass_all' will *always* work, you probably want this one.
5437
5438 case $host_os in
5439 aix4* | aix5*)
5440   lt_cv_deplibs_check_method=pass_all
5441   ;;
5442
5443 beos*)
5444   lt_cv_deplibs_check_method=pass_all
5445   ;;
5446
5447 bsdi[45]*)
5448   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5449   lt_cv_file_magic_cmd='/usr/bin/file -L'
5450   lt_cv_file_magic_test_file=/shlib/libc.so
5451   ;;
5452
5453 cygwin*)
5454   # func_win32_libid is a shell function defined in ltmain.sh
5455   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5456   lt_cv_file_magic_cmd='func_win32_libid'
5457   ;;
5458
5459 mingw* | pw32*)
5460   # Base MSYS/MinGW do not provide the 'file' command needed by
5461   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5462   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5463   lt_cv_file_magic_cmd='$OBJDUMP -f'
5464   ;;
5465
5466 darwin* | rhapsody*)
5467   lt_cv_deplibs_check_method=pass_all
5468   ;;
5469
5470 freebsd* | dragonfly*)
5471   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5472     case $host_cpu in
5473     i*86 )
5474       # Not sure whether the presence of OpenBSD here was a mistake.
5475       # Let's accept both of them until this is cleared up.
5476       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5477       lt_cv_file_magic_cmd=/usr/bin/file
5478       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5479       ;;
5480     esac
5481   else
5482     lt_cv_deplibs_check_method=pass_all
5483   fi
5484   ;;
5485
5486 gnu*)
5487   lt_cv_deplibs_check_method=pass_all
5488   ;;
5489
5490 hpux10.20* | hpux11*)
5491   lt_cv_file_magic_cmd=/usr/bin/file
5492   case $host_cpu in
5493   ia64*)
5494     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5495     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5496     ;;
5497   hppa*64*)
5498     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]'
5499     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5500     ;;
5501   *)
5502     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5503     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5504     ;;
5505   esac
5506   ;;
5507
5508 interix3*)
5509   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5510   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5511   ;;
5512
5513 irix5* | irix6* | nonstopux*)
5514   case $LD in
5515   *-32|*"-32 ") libmagic=32-bit;;
5516   *-n32|*"-n32 ") libmagic=N32;;
5517   *-64|*"-64 ") libmagic=64-bit;;
5518   *) libmagic=never-match;;
5519   esac
5520   lt_cv_deplibs_check_method=pass_all
5521   ;;
5522
5523 # This must be Linux ELF.
5524 linux* | k*bsd*-gnu)
5525   lt_cv_deplibs_check_method=pass_all
5526   ;;
5527
5528 netbsd* | netbsdelf*-gnu)
5529   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5530     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5531   else
5532     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5533   fi
5534   ;;
5535
5536 newos6*)
5537   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5538   lt_cv_file_magic_cmd=/usr/bin/file
5539   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5540   ;;
5541
5542 nto-qnx*)
5543   lt_cv_deplibs_check_method=unknown
5544   ;;
5545
5546 openbsd*)
5547   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5548     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5549   else
5550     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5551   fi
5552   ;;
5553
5554 osf3* | osf4* | osf5*)
5555   lt_cv_deplibs_check_method=pass_all
5556   ;;
5557
5558 solaris*)
5559   lt_cv_deplibs_check_method=pass_all
5560   ;;
5561
5562 sysv4 | sysv4.3*)
5563   case $host_vendor in
5564   motorola)
5565     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]'
5566     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5567     ;;
5568   ncr)
5569     lt_cv_deplibs_check_method=pass_all
5570     ;;
5571   sequent)
5572     lt_cv_file_magic_cmd='/bin/file'
5573     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5574     ;;
5575   sni)
5576     lt_cv_file_magic_cmd='/bin/file'
5577     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5578     lt_cv_file_magic_test_file=/lib/libc.so
5579     ;;
5580   siemens)
5581     lt_cv_deplibs_check_method=pass_all
5582     ;;
5583   pc)
5584     lt_cv_deplibs_check_method=pass_all
5585     ;;
5586   esac
5587   ;;
5588
5589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5590   lt_cv_deplibs_check_method=pass_all
5591   ;;
5592 esac
5593
5594 fi
5595 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5596 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5597 file_magic_cmd=$lt_cv_file_magic_cmd
5598 deplibs_check_method=$lt_cv_deplibs_check_method
5599 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5600
5601
5602
5603
5604 # If no C compiler was specified, use CC.
5605 LTCC=${LTCC-"$CC"}
5606
5607 # If no C compiler flags were specified, use CFLAGS.
5608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5609
5610 # Allow CC to be a program name with arguments.
5611 compiler=$CC
5612
5613 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5614 if test "${enable_libtool_lock+set}" = set; then
5615   enableval="$enable_libtool_lock"
5616
5617 fi;
5618 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5619
5620 # Some flags need to be propagated to the compiler or linker for good
5621 # libtool support.
5622 case $host in
5623 ia64-*-hpux*)
5624   # Find out which ABI we are using.
5625   echo 'int i;' > conftest.$ac_ext
5626   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627   (eval $ac_compile) 2>&5
5628   ac_status=$?
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); }; then
5631     case `/usr/bin/file conftest.$ac_objext` in
5632     *ELF-32*)
5633       HPUX_IA64_MODE="32"
5634       ;;
5635     *ELF-64*)
5636       HPUX_IA64_MODE="64"
5637       ;;
5638     esac
5639   fi
5640   rm -rf conftest*
5641   ;;
5642 *-*-irix6*)
5643   # Find out which ABI we are using.
5644   echo '#line 5644 "configure"' > conftest.$ac_ext
5645   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646   (eval $ac_compile) 2>&5
5647   ac_status=$?
5648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); }; then
5650    if test "$lt_cv_prog_gnu_ld" = yes; then
5651     case `/usr/bin/file conftest.$ac_objext` in
5652     *32-bit*)
5653       LD="${LD-ld} -melf32bsmip"
5654       ;;
5655     *N32*)
5656       LD="${LD-ld} -melf32bmipn32"
5657       ;;
5658     *64-bit*)
5659       LD="${LD-ld} -melf64bmip"
5660       ;;
5661     esac
5662    else
5663     case `/usr/bin/file conftest.$ac_objext` in
5664     *32-bit*)
5665       LD="${LD-ld} -32"
5666       ;;
5667     *N32*)
5668       LD="${LD-ld} -n32"
5669       ;;
5670     *64-bit*)
5671       LD="${LD-ld} -64"
5672       ;;
5673     esac
5674    fi
5675   fi
5676   rm -rf conftest*
5677   ;;
5678
5679 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5680   # Find out which ABI we are using.
5681   echo 'int i;' > conftest.$ac_ext
5682   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5683   (eval $ac_compile) 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); }; then
5687     case `/usr/bin/file conftest.o` in
5688     *32-bit*)
5689       case $host in
5690         x86_64-*linux*)
5691           LD="${LD-ld} -m elf_i386"
5692           ;;
5693         ppc64-*linux*|powerpc64-*linux*)
5694           LD="${LD-ld} -m elf32ppclinux"
5695           ;;
5696         s390x-*linux*)
5697           LD="${LD-ld} -m elf_s390"
5698           ;;
5699         sparc64-*linux*)
5700           LD="${LD-ld} -m elf32_sparc"
5701           ;;
5702       esac
5703       ;;
5704     *64-bit*)
5705       case $host in
5706         x86_64-*linux*)
5707           LD="${LD-ld} -m elf_x86_64"
5708           ;;
5709         ppc*-*linux*|powerpc*-*linux*)
5710           LD="${LD-ld} -m elf64ppc"
5711           ;;
5712         s390*-*linux*)
5713           LD="${LD-ld} -m elf64_s390"
5714           ;;
5715         sparc*-*linux*)
5716           LD="${LD-ld} -m elf64_sparc"
5717           ;;
5718       esac
5719       ;;
5720     esac
5721   fi
5722   rm -rf conftest*
5723   ;;
5724
5725 *-*-sco3.2v5*)
5726   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5727   SAVE_CFLAGS="$CFLAGS"
5728   CFLAGS="$CFLAGS -belf"
5729   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5730 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5731 if test "${lt_cv_cc_needs_belf+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   ac_ext=c
5735 ac_cpp='$CPP $CPPFLAGS'
5736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5739
5740      cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5746
5747 int
5748 main ()
5749 {
5750
5751   ;
5752   return 0;
5753 }
5754 _ACEOF
5755 rm -f conftest.$ac_objext conftest$ac_exeext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757   (eval $ac_link) 2>conftest.er1
5758   ac_status=$?
5759   grep -v '^ *+' conftest.er1 >conftest.err
5760   rm -f conftest.er1
5761   cat conftest.err >&5
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); } &&
5764          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766   (eval $ac_try) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }; } &&
5770          { ac_try='test -s conftest$ac_exeext'
5771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772   (eval $ac_try) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); }; }; then
5776   lt_cv_cc_needs_belf=yes
5777 else
5778   echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5780
5781 lt_cv_cc_needs_belf=no
5782 fi
5783 rm -f conftest.err conftest.$ac_objext \
5784       conftest$ac_exeext conftest.$ac_ext
5785      ac_ext=c
5786 ac_cpp='$CPP $CPPFLAGS'
5787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5790
5791 fi
5792 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5793 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5794   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5795     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5796     CFLAGS="$SAVE_CFLAGS"
5797   fi
5798   ;;
5799 sparc*-*solaris*)
5800   # Find out which ABI we are using.
5801   echo 'int i;' > conftest.$ac_ext
5802   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803   (eval $ac_compile) 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); }; then
5807     case `/usr/bin/file conftest.o` in
5808     *64-bit*)
5809       case $lt_cv_prog_gnu_ld in
5810       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5811       *)    LD="${LD-ld} -64" ;;
5812       esac
5813       ;;
5814     esac
5815   fi
5816   rm -rf conftest*
5817   ;;
5818
5819
5820 esac
5821
5822 need_locks="$enable_libtool_lock"
5823
5824
5825
5826 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5827 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5828 if test "${ac_cv_header_stdc+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837 #include <stdlib.h>
5838 #include <stdarg.h>
5839 #include <string.h>
5840 #include <float.h>
5841
5842 int
5843 main ()
5844 {
5845
5846   ;
5847   return 0;
5848 }
5849 _ACEOF
5850 rm -f conftest.$ac_objext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852   (eval $ac_compile) 2>conftest.er1
5853   ac_status=$?
5854   grep -v '^ *+' conftest.er1 >conftest.err
5855   rm -f conftest.er1
5856   cat conftest.err >&5
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); } &&
5859          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861   (eval $ac_try) 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); }; } &&
5865          { ac_try='test -s conftest.$ac_objext'
5866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867   (eval $ac_try) 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }; }; then
5871   ac_cv_header_stdc=yes
5872 else
5873   echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5875
5876 ac_cv_header_stdc=no
5877 fi
5878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5879
5880 if test $ac_cv_header_stdc = yes; then
5881   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5882   cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h.  */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h.  */
5888 #include <string.h>
5889
5890 _ACEOF
5891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5892   $EGREP "memchr" >/dev/null 2>&1; then
5893   :
5894 else
5895   ac_cv_header_stdc=no
5896 fi
5897 rm -f conftest*
5898
5899 fi
5900
5901 if test $ac_cv_header_stdc = yes; then
5902   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5903   cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h.  */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h.  */
5909 #include <stdlib.h>
5910
5911 _ACEOF
5912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5913   $EGREP "free" >/dev/null 2>&1; then
5914   :
5915 else
5916   ac_cv_header_stdc=no
5917 fi
5918 rm -f conftest*
5919
5920 fi
5921
5922 if test $ac_cv_header_stdc = yes; then
5923   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5924   if test "$cross_compiling" = yes; then
5925   :
5926 else
5927   cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933 #include <ctype.h>
5934 #if ((' ' & 0x0FF) == 0x020)
5935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5937 #else
5938 # define ISLOWER(c) \
5939                    (('a' <= (c) && (c) <= 'i') \
5940                      || ('j' <= (c) && (c) <= 'r') \
5941                      || ('s' <= (c) && (c) <= 'z'))
5942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5943 #endif
5944
5945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5946 int
5947 main ()
5948 {
5949   int i;
5950   for (i = 0; i < 256; i++)
5951     if (XOR (islower (i), ISLOWER (i))
5952         || toupper (i) != TOUPPER (i))
5953       exit(2);
5954   exit (0);
5955 }
5956 _ACEOF
5957 rm -f conftest$ac_exeext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959   (eval $ac_link) 2>&5
5960   ac_status=$?
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964   (eval $ac_try) 2>&5
5965   ac_status=$?
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); }; }; then
5968   :
5969 else
5970   echo "$as_me: program exited with status $ac_status" >&5
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5973
5974 ( exit $ac_status )
5975 ac_cv_header_stdc=no
5976 fi
5977 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5978 fi
5979 fi
5980 fi
5981 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5982 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5983 if test $ac_cv_header_stdc = yes; then
5984
5985 cat >>confdefs.h <<\_ACEOF
5986 #define STDC_HEADERS 1
5987 _ACEOF
5988
5989 fi
5990
5991 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6002                   inttypes.h stdint.h unistd.h
6003 do
6004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6005 echo "$as_me:$LINENO: checking for $ac_header" >&5
6006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6008   echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010   cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016 $ac_includes_default
6017
6018 #include <$ac_header>
6019 _ACEOF
6020 rm -f conftest.$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022   (eval $ac_compile) 2>conftest.er1
6023   ac_status=$?
6024   grep -v '^ *+' conftest.er1 >conftest.err
6025   rm -f conftest.er1
6026   cat conftest.err >&5
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } &&
6029          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031   (eval $ac_try) 2>&5
6032   ac_status=$?
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); }; } &&
6035          { ac_try='test -s conftest.$ac_objext'
6036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037   (eval $ac_try) 2>&5
6038   ac_status=$?
6039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040   (exit $ac_status); }; }; then
6041   eval "$as_ac_Header=yes"
6042 else
6043   echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6045
6046 eval "$as_ac_Header=no"
6047 fi
6048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6049 fi
6050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6053   cat >>confdefs.h <<_ACEOF
6054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6055 _ACEOF
6056
6057 fi
6058
6059 done
6060
6061
6062
6063 for ac_header in dlfcn.h
6064 do
6065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6067   echo "$as_me:$LINENO: checking for $ac_header" >&5
6068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 fi
6072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6074 else
6075   # Is the header compilable?
6076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h.  */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h.  */
6084 $ac_includes_default
6085 #include <$ac_header>
6086 _ACEOF
6087 rm -f conftest.$ac_objext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6089   (eval $ac_compile) 2>conftest.er1
6090   ac_status=$?
6091   grep -v '^ *+' conftest.er1 >conftest.err
6092   rm -f conftest.er1
6093   cat conftest.err >&5
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); } &&
6096          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098   (eval $ac_try) 2>&5
6099   ac_status=$?
6100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101   (exit $ac_status); }; } &&
6102          { ac_try='test -s conftest.$ac_objext'
6103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104   (eval $ac_try) 2>&5
6105   ac_status=$?
6106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107   (exit $ac_status); }; }; then
6108   ac_header_compiler=yes
6109 else
6110   echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6112
6113 ac_header_compiler=no
6114 fi
6115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6117 echo "${ECHO_T}$ac_header_compiler" >&6
6118
6119 # Is the header present?
6120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h.  */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h.  */
6128 #include <$ac_header>
6129 _ACEOF
6130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6132   ac_status=$?
6133   grep -v '^ *+' conftest.er1 >conftest.err
6134   rm -f conftest.er1
6135   cat conftest.err >&5
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); } >/dev/null; then
6138   if test -s conftest.err; then
6139     ac_cpp_err=$ac_c_preproc_warn_flag
6140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6141   else
6142     ac_cpp_err=
6143   fi
6144 else
6145   ac_cpp_err=yes
6146 fi
6147 if test -z "$ac_cpp_err"; then
6148   ac_header_preproc=yes
6149 else
6150   echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6152
6153   ac_header_preproc=no
6154 fi
6155 rm -f conftest.err conftest.$ac_ext
6156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6157 echo "${ECHO_T}$ac_header_preproc" >&6
6158
6159 # So?  What about this header?
6160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6161   yes:no: )
6162     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6166     ac_header_preproc=yes
6167     ;;
6168   no:yes:* )
6169     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6171     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6172 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6173     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6175     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6176 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6179     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6181     (
6182       cat <<\_ASBOX
6183 ## ------------------------------- ##
6184 ## Report this to nfs@lists.sf.net ##
6185 ## ------------------------------- ##
6186 _ASBOX
6187     ) |
6188       sed "s/^/$as_me: WARNING:     /" >&2
6189     ;;
6190 esac
6191 echo "$as_me:$LINENO: checking for $ac_header" >&5
6192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   eval "$as_ac_Header=\$ac_header_preproc"
6197 fi
6198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6200
6201 fi
6202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6203   cat >>confdefs.h <<_ACEOF
6204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6205 _ACEOF
6206
6207 fi
6208
6209 done
6210
6211
6212
6213 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6214     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6215     (test "X$CXX" != "Xg++"))) ; then
6216   ac_ext=cc
6217 ac_cpp='$CXXCPP $CPPFLAGS'
6218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6221 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6222 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6223 if test -z "$CXXCPP"; then
6224   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227       # Double quotes because CXXCPP needs to be expanded
6228     for CXXCPP in "$CXX -E" "/lib/cpp"
6229     do
6230       ac_preproc_ok=false
6231 for ac_cxx_preproc_warn_flag in '' yes
6232 do
6233   # Use a header file that comes with gcc, so configuring glibc
6234   # with a fresh cross-compiler works.
6235   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6236   # <limits.h> exists even on freestanding compilers.
6237   # On the NeXT, cc -E runs the code through the compiler's parser,
6238   # not just through cpp. "Syntax error" is here to catch this case.
6239   cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245 #ifdef __STDC__
6246 # include <limits.h>
6247 #else
6248 # include <assert.h>
6249 #endif
6250                      Syntax error
6251 _ACEOF
6252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6254   ac_status=$?
6255   grep -v '^ *+' conftest.er1 >conftest.err
6256   rm -f conftest.er1
6257   cat conftest.err >&5
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); } >/dev/null; then
6260   if test -s conftest.err; then
6261     ac_cpp_err=$ac_cxx_preproc_warn_flag
6262     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6263   else
6264     ac_cpp_err=
6265   fi
6266 else
6267   ac_cpp_err=yes
6268 fi
6269 if test -z "$ac_cpp_err"; then
6270   :
6271 else
6272   echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275   # Broken: fails on valid input.
6276 continue
6277 fi
6278 rm -f conftest.err conftest.$ac_ext
6279
6280   # OK, works on sane cases.  Now check whether non-existent headers
6281   # can be detected and how.
6282   cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h.  */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h.  */
6288 #include <ac_nonexistent.h>
6289 _ACEOF
6290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6291   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6292   ac_status=$?
6293   grep -v '^ *+' conftest.er1 >conftest.err
6294   rm -f conftest.er1
6295   cat conftest.err >&5
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); } >/dev/null; then
6298   if test -s conftest.err; then
6299     ac_cpp_err=$ac_cxx_preproc_warn_flag
6300     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6301   else
6302     ac_cpp_err=
6303   fi
6304 else
6305   ac_cpp_err=yes
6306 fi
6307 if test -z "$ac_cpp_err"; then
6308   # Broken: success on invalid input.
6309 continue
6310 else
6311   echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6313
6314   # Passes both tests.
6315 ac_preproc_ok=:
6316 break
6317 fi
6318 rm -f conftest.err conftest.$ac_ext
6319
6320 done
6321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6322 rm -f conftest.err conftest.$ac_ext
6323 if $ac_preproc_ok; then
6324   break
6325 fi
6326
6327     done
6328     ac_cv_prog_CXXCPP=$CXXCPP
6329
6330 fi
6331   CXXCPP=$ac_cv_prog_CXXCPP
6332 else
6333   ac_cv_prog_CXXCPP=$CXXCPP
6334 fi
6335 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6336 echo "${ECHO_T}$CXXCPP" >&6
6337 ac_preproc_ok=false
6338 for ac_cxx_preproc_warn_flag in '' yes
6339 do
6340   # Use a header file that comes with gcc, so configuring glibc
6341   # with a fresh cross-compiler works.
6342   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6343   # <limits.h> exists even on freestanding compilers.
6344   # On the NeXT, cc -E runs the code through the compiler's parser,
6345   # not just through cpp. "Syntax error" is here to catch this case.
6346   cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h.  */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h.  */
6352 #ifdef __STDC__
6353 # include <limits.h>
6354 #else
6355 # include <assert.h>
6356 #endif
6357                      Syntax error
6358 _ACEOF
6359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6361   ac_status=$?
6362   grep -v '^ *+' conftest.er1 >conftest.err
6363   rm -f conftest.er1
6364   cat conftest.err >&5
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); } >/dev/null; then
6367   if test -s conftest.err; then
6368     ac_cpp_err=$ac_cxx_preproc_warn_flag
6369     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6370   else
6371     ac_cpp_err=
6372   fi
6373 else
6374   ac_cpp_err=yes
6375 fi
6376 if test -z "$ac_cpp_err"; then
6377   :
6378 else
6379   echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6381
6382   # Broken: fails on valid input.
6383 continue
6384 fi
6385 rm -f conftest.err conftest.$ac_ext
6386
6387   # OK, works on sane cases.  Now check whether non-existent headers
6388   # can be detected and how.
6389   cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h.  */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h.  */
6395 #include <ac_nonexistent.h>
6396 _ACEOF
6397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6399   ac_status=$?
6400   grep -v '^ *+' conftest.er1 >conftest.err
6401   rm -f conftest.er1
6402   cat conftest.err >&5
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); } >/dev/null; then
6405   if test -s conftest.err; then
6406     ac_cpp_err=$ac_cxx_preproc_warn_flag
6407     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6408   else
6409     ac_cpp_err=
6410   fi
6411 else
6412   ac_cpp_err=yes
6413 fi
6414 if test -z "$ac_cpp_err"; then
6415   # Broken: success on invalid input.
6416 continue
6417 else
6418   echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421   # Passes both tests.
6422 ac_preproc_ok=:
6423 break
6424 fi
6425 rm -f conftest.err conftest.$ac_ext
6426
6427 done
6428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6429 rm -f conftest.err conftest.$ac_ext
6430 if $ac_preproc_ok; then
6431   :
6432 else
6433   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6434 See \`config.log' for more details." >&5
6435 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6436 See \`config.log' for more details." >&2;}
6437    { (exit 1); exit 1; }; }
6438 fi
6439
6440 ac_ext=cc
6441 ac_cpp='$CXXCPP $CPPFLAGS'
6442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6445
6446 fi
6447
6448
6449 ac_ext=f
6450 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6451 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6453 if test -n "$ac_tool_prefix"; then
6454   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6455   do
6456     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6458 echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6460 if test "${ac_cv_prog_F77+set}" = set; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   if test -n "$F77"; then
6464   ac_cv_prog_F77="$F77" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471   for ac_exec_ext in '' $ac_executable_extensions; do
6472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478 done
6479
6480 fi
6481 fi
6482 F77=$ac_cv_prog_F77
6483 if test -n "$F77"; then
6484   echo "$as_me:$LINENO: result: $F77" >&5
6485 echo "${ECHO_T}$F77" >&6
6486 else
6487   echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6
6489 fi
6490
6491     test -n "$F77" && break
6492   done
6493 fi
6494 if test -z "$F77"; then
6495   ac_ct_F77=$F77
6496   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6497 do
6498   # Extract the first word of "$ac_prog", so it can be a program name with args.
6499 set dummy $ac_prog; ac_word=$2
6500 echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6502 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505   if test -n "$ac_ct_F77"; then
6506   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511   IFS=$as_save_IFS
6512   test -z "$as_dir" && as_dir=.
6513   for ac_exec_ext in '' $ac_executable_extensions; do
6514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515     ac_cv_prog_ac_ct_F77="$ac_prog"
6516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517     break 2
6518   fi
6519 done
6520 done
6521
6522 fi
6523 fi
6524 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6525 if test -n "$ac_ct_F77"; then
6526   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6527 echo "${ECHO_T}$ac_ct_F77" >&6
6528 else
6529   echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6
6531 fi
6532
6533   test -n "$ac_ct_F77" && break
6534 done
6535
6536   F77=$ac_ct_F77
6537 fi
6538
6539
6540 # Provide some information about the compiler.
6541 echo "$as_me:6541:" \
6542      "checking for Fortran 77 compiler version" >&5
6543 ac_compiler=`set X $ac_compile; echo $2`
6544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6545   (eval $ac_compiler --version </dev/null >&5) 2>&5
6546   ac_status=$?
6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548   (exit $ac_status); }
6549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6550   (eval $ac_compiler -v </dev/null >&5) 2>&5
6551   ac_status=$?
6552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553   (exit $ac_status); }
6554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6555   (eval $ac_compiler -V </dev/null >&5) 2>&5
6556   ac_status=$?
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); }
6559 rm -f a.out
6560
6561 # If we don't use `.F' as extension, the preprocessor is not run on the
6562 # input file.  (Note that this only needs to work for GNU compilers.)
6563 ac_save_ext=$ac_ext
6564 ac_ext=F
6565 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6566 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6567 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   cat >conftest.$ac_ext <<_ACEOF
6571       program main
6572 #ifndef __GNUC__
6573        choke me
6574 #endif
6575
6576       end
6577 _ACEOF
6578 rm -f conftest.$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580   (eval $ac_compile) 2>conftest.er1
6581   ac_status=$?
6582   grep -v '^ *+' conftest.er1 >conftest.err
6583   rm -f conftest.er1
6584   cat conftest.err >&5
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } &&
6587          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589   (eval $ac_try) 2>&5
6590   ac_status=$?
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); }; } &&
6593          { ac_try='test -s conftest.$ac_objext'
6594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595   (eval $ac_try) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); }; }; then
6599   ac_compiler_gnu=yes
6600 else
6601   echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6603
6604 ac_compiler_gnu=no
6605 fi
6606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6607 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6608
6609 fi
6610 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6611 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6612 ac_ext=$ac_save_ext
6613 ac_test_FFLAGS=${FFLAGS+set}
6614 ac_save_FFLAGS=$FFLAGS
6615 FFLAGS=
6616 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6617 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6618 if test "${ac_cv_prog_f77_g+set}" = set; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   FFLAGS=-g
6622 cat >conftest.$ac_ext <<_ACEOF
6623       program main
6624
6625       end
6626 _ACEOF
6627 rm -f conftest.$ac_objext
6628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6629   (eval $ac_compile) 2>conftest.er1
6630   ac_status=$?
6631   grep -v '^ *+' conftest.er1 >conftest.err
6632   rm -f conftest.er1
6633   cat conftest.err >&5
6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); } &&
6636          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638   (eval $ac_try) 2>&5
6639   ac_status=$?
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); }; } &&
6642          { ac_try='test -s conftest.$ac_objext'
6643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644   (eval $ac_try) 2>&5
6645   ac_status=$?
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); }; }; then
6648   ac_cv_prog_f77_g=yes
6649 else
6650   echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653 ac_cv_prog_f77_g=no
6654 fi
6655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6656
6657 fi
6658 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6659 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6660 if test "$ac_test_FFLAGS" = set; then
6661   FFLAGS=$ac_save_FFLAGS
6662 elif test $ac_cv_prog_f77_g = yes; then
6663   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6664     FFLAGS="-g -O2"
6665   else
6666     FFLAGS="-g"
6667   fi
6668 else
6669   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6670     FFLAGS="-O2"
6671   else
6672     FFLAGS=
6673   fi
6674 fi
6675
6676 G77=`test $ac_compiler_gnu = yes && echo yes`
6677 ac_ext=c
6678 ac_cpp='$CPP $CPPFLAGS'
6679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6682
6683
6684
6685 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6686
6687 # find the maximum length of command line arguments
6688 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6689 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6690 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693     i=0
6694   teststring="ABCD"
6695
6696   case $build_os in
6697   msdosdjgpp*)
6698     # On DJGPP, this test can blow up pretty badly due to problems in libc
6699     # (any single argument exceeding 2000 bytes causes a buffer overrun
6700     # during glob expansion).  Even if it were fixed, the result of this
6701     # check would be larger than it should be.
6702     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6703     ;;
6704
6705   gnu*)
6706     # Under GNU Hurd, this test is not required because there is
6707     # no limit to the length of command line arguments.
6708     # Libtool will interpret -1 as no limit whatsoever
6709     lt_cv_sys_max_cmd_len=-1;
6710     ;;
6711
6712   cygwin* | mingw*)
6713     # On Win9x/ME, this test blows up -- it succeeds, but takes
6714     # about 5 minutes as the teststring grows exponentially.
6715     # Worse, since 9x/ME are not pre-emptively multitasking,
6716     # you end up with a "frozen" computer, even though with patience
6717     # the test eventually succeeds (with a max line length of 256k).
6718     # Instead, let's just punt: use the minimum linelength reported by
6719     # all of the supported platforms: 8192 (on NT/2K/XP).
6720     lt_cv_sys_max_cmd_len=8192;
6721     ;;
6722
6723   amigaos*)
6724     # On AmigaOS with pdksh, this test takes hours, literally.
6725     # So we just punt and use a minimum line length of 8192.
6726     lt_cv_sys_max_cmd_len=8192;
6727     ;;
6728
6729   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6730     # This has been around since 386BSD, at least.  Likely further.
6731     if test -x /sbin/sysctl; then
6732       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6733     elif test -x /usr/sbin/sysctl; then
6734       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6735     else
6736       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6737     fi
6738     # And add a safety zone
6739     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6740     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6741     ;;
6742
6743   interix*)
6744     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6745     lt_cv_sys_max_cmd_len=196608
6746     ;;
6747
6748   osf*)
6749     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6750     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6751     # nice to cause kernel panics so lets avoid the loop below.
6752     # First set a reasonable default.
6753     lt_cv_sys_max_cmd_len=16384
6754     #
6755     if test -x /sbin/sysconfig; then
6756       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6757         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6758       esac
6759     fi
6760     ;;
6761   sco3.2v5*)
6762     lt_cv_sys_max_cmd_len=102400
6763     ;;
6764   sysv5* | sco5v6* | sysv4.2uw2*)
6765     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6766     if test -n "$kargmax"; then
6767       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6768     else
6769       lt_cv_sys_max_cmd_len=32768
6770     fi
6771     ;;
6772   *)
6773     # If test is not a shell built-in, we'll probably end up computing a
6774     # maximum length that is only half of the actual maximum length, but
6775     # we can't tell.
6776     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6777     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6778                = "XX$teststring") >/dev/null 2>&1 &&
6779             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6780             lt_cv_sys_max_cmd_len=$new_result &&
6781             test $i != 17 # 1/2 MB should be enough
6782     do
6783       i=`expr $i + 1`
6784       teststring=$teststring$teststring
6785     done
6786     teststring=
6787     # Add a significant safety factor because C++ compilers can tack on massive
6788     # amounts of additional arguments before passing them to the linker.
6789     # It appears as though 1/2 is a usable value.
6790     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6791     ;;
6792   esac
6793
6794 fi
6795
6796 if test -n $lt_cv_sys_max_cmd_len ; then
6797   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6798 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6799 else
6800   echo "$as_me:$LINENO: result: none" >&5
6801 echo "${ECHO_T}none" >&6
6802 fi
6803
6804
6805
6806
6807 # Check for command to grab the raw symbol name followed by C symbol from nm.
6808 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6809 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6810 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6811   echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813
6814 # These are sane defaults that work on at least a few old systems.
6815 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6816
6817 # Character class describing NM global symbol codes.
6818 symcode='[BCDEGRST]'
6819
6820 # Regexp to match symbols that can be accessed directly from C.
6821 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6822
6823 # Transform an extracted symbol line into a proper C declaration
6824 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6825
6826 # Transform an extracted symbol line into symbol name and symbol address
6827 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'"
6828
6829 # Define system-specific variables.
6830 case $host_os in
6831 aix*)
6832   symcode='[BCDT]'
6833   ;;
6834 cygwin* | mingw* | pw32*)
6835   symcode='[ABCDGISTW]'
6836   ;;
6837 hpux*) # Its linker distinguishes data from code symbols
6838   if test "$host_cpu" = ia64; then
6839     symcode='[ABCDEGRST]'
6840   fi
6841   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6842   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'"
6843   ;;
6844 linux* | k*bsd*-gnu)
6845   if test "$host_cpu" = ia64; then
6846     symcode='[ABCDGIRSTW]'
6847     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6848     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'"
6849   fi
6850   ;;
6851 irix* | nonstopux*)
6852   symcode='[BCDEGRST]'
6853   ;;
6854 osf*)
6855   symcode='[BCDEGQRST]'
6856   ;;
6857 solaris*)
6858   symcode='[BDRT]'
6859   ;;
6860 sco3.2v5*)
6861   symcode='[DT]'
6862   ;;
6863 sysv4.2uw2*)
6864   symcode='[DT]'
6865   ;;
6866 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6867   symcode='[ABDT]'
6868   ;;
6869 sysv4)
6870   symcode='[DFNSTU]'
6871   ;;
6872 esac
6873
6874 # Handle CRLF in mingw tool chain
6875 opt_cr=
6876 case $build_os in
6877 mingw*)
6878   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6879   ;;
6880 esac
6881
6882 # If we're using GNU nm, then use its standard symbol codes.
6883 case `$NM -V 2>&1` in
6884 *GNU* | *'with BFD'*)
6885   symcode='[ABCDGIRSTW]' ;;
6886 esac
6887
6888 # Try without a prefix undercore, then with it.
6889 for ac_symprfx in "" "_"; do
6890
6891   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6892   symxfrm="\\1 $ac_symprfx\\2 \\2"
6893
6894   # Write the raw and C identifiers.
6895   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6896
6897   # Check to see that the pipe works correctly.
6898   pipe_works=no
6899
6900   rm -f conftest*
6901   cat > conftest.$ac_ext <<EOF
6902 #ifdef __cplusplus
6903 extern "C" {
6904 #endif
6905 char nm_test_var;
6906 void nm_test_func(){}
6907 #ifdef __cplusplus
6908 }
6909 #endif
6910 int main(){nm_test_var='a';nm_test_func();return(0);}
6911 EOF
6912
6913   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914   (eval $ac_compile) 2>&5
6915   ac_status=$?
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); }; then
6918     # Now try to grab the symbols.
6919     nlist=conftest.nm
6920     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6921   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); } && test -s "$nlist"; then
6925       # Try sorting and uniquifying the output.
6926       if sort "$nlist" | uniq > "$nlist"T; then
6927         mv -f "$nlist"T "$nlist"
6928       else
6929         rm -f "$nlist"T
6930       fi
6931
6932       # Make sure that we snagged all the symbols we need.
6933       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6934         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6935           cat <<EOF > conftest.$ac_ext
6936 #ifdef __cplusplus
6937 extern "C" {
6938 #endif
6939
6940 EOF
6941           # Now generate the symbol file.
6942           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6943
6944           cat <<EOF >> conftest.$ac_ext
6945 #if defined (__STDC__) && __STDC__
6946 # define lt_ptr_t void *
6947 #else
6948 # define lt_ptr_t char *
6949 # define const
6950 #endif
6951
6952 /* The mapping between symbol names and symbols. */
6953 const struct {
6954   const char *name;
6955   lt_ptr_t address;
6956 }
6957 lt_preloaded_symbols[] =
6958 {
6959 EOF
6960           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6961           cat <<\EOF >> conftest.$ac_ext
6962   {0, (lt_ptr_t) 0}
6963 };
6964
6965 #ifdef __cplusplus
6966 }
6967 #endif
6968 EOF
6969           # Now try linking the two files.
6970           mv conftest.$ac_objext conftstm.$ac_objext
6971           lt_save_LIBS="$LIBS"
6972           lt_save_CFLAGS="$CFLAGS"
6973           LIBS="conftstm.$ac_objext"
6974           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6975           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6976   (eval $ac_link) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6980             pipe_works=yes
6981           fi
6982           LIBS="$lt_save_LIBS"
6983           CFLAGS="$lt_save_CFLAGS"
6984         else
6985           echo "cannot find nm_test_func in $nlist" >&5
6986         fi
6987       else
6988         echo "cannot find nm_test_var in $nlist" >&5
6989       fi
6990     else
6991       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6992     fi
6993   else
6994     echo "$progname: failed program was:" >&5
6995     cat conftest.$ac_ext >&5
6996   fi
6997   rm -f conftest* conftst*
6998
6999   # Do not use the global_symbol_pipe unless it works.
7000   if test "$pipe_works" = yes; then
7001     break
7002   else
7003     lt_cv_sys_global_symbol_pipe=
7004   fi
7005 done
7006
7007 fi
7008
7009 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7010   lt_cv_sys_global_symbol_to_cdecl=
7011 fi
7012 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7013   echo "$as_me:$LINENO: result: failed" >&5
7014 echo "${ECHO_T}failed" >&6
7015 else
7016   echo "$as_me:$LINENO: result: ok" >&5
7017 echo "${ECHO_T}ok" >&6
7018 fi
7019
7020 echo "$as_me:$LINENO: checking for objdir" >&5
7021 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7022 if test "${lt_cv_objdir+set}" = set; then
7023   echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025   rm -f .libs 2>/dev/null
7026 mkdir .libs 2>/dev/null
7027 if test -d .libs; then
7028   lt_cv_objdir=.libs
7029 else
7030   # MS-DOS does not allow filenames that begin with a dot.
7031   lt_cv_objdir=_libs
7032 fi
7033 rmdir .libs 2>/dev/null
7034 fi
7035 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7036 echo "${ECHO_T}$lt_cv_objdir" >&6
7037 objdir=$lt_cv_objdir
7038
7039
7040
7041
7042
7043 case $host_os in
7044 aix3*)
7045   # AIX sometimes has problems with the GCC collect2 program.  For some
7046   # reason, if we set the COLLECT_NAMES environment variable, the problems
7047   # vanish in a puff of smoke.
7048   if test "X${COLLECT_NAMES+set}" != Xset; then
7049     COLLECT_NAMES=
7050     export COLLECT_NAMES
7051   fi
7052   ;;
7053 esac
7054
7055 # Sed substitution that helps us do robust quoting.  It backslashifies
7056 # metacharacters that are still active within double-quoted strings.
7057 Xsed='sed -e 1s/^X//'
7058 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7059
7060 # Same as above, but do not quote variable references.
7061 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7062
7063 # Sed substitution to delay expansion of an escaped shell variable in a
7064 # double_quote_subst'ed string.
7065 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7066
7067 # Sed substitution to avoid accidental globbing in evaled expressions
7068 no_glob_subst='s/\*/\\\*/g'
7069
7070 # Constants:
7071 rm="rm -f"
7072
7073 # Global variables:
7074 default_ofile=libtool
7075 can_build_shared=yes
7076
7077 # All known linkers require a `.a' archive for static linking (except MSVC,
7078 # which needs '.lib').
7079 libext=a
7080 ltmain="$ac_aux_dir/ltmain.sh"
7081 ofile="$default_ofile"
7082 with_gnu_ld="$lt_cv_prog_gnu_ld"
7083
7084 if test -n "$ac_tool_prefix"; then
7085   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}ar; ac_word=$2
7087 echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7089 if test "${ac_cv_prog_AR+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   if test -n "$AR"; then
7093   ac_cv_prog_AR="$AR" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100   for ac_exec_ext in '' $ac_executable_extensions; do
7101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102     ac_cv_prog_AR="${ac_tool_prefix}ar"
7103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107 done
7108
7109 fi
7110 fi
7111 AR=$ac_cv_prog_AR
7112 if test -n "$AR"; then
7113   echo "$as_me:$LINENO: result: $AR" >&5
7114 echo "${ECHO_T}$AR" >&6
7115 else
7116   echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6
7118 fi
7119
7120 fi
7121 if test -z "$ac_cv_prog_AR"; then
7122   ac_ct_AR=$AR
7123   # Extract the first word of "ar", so it can be a program name with args.
7124 set dummy ar; ac_word=$2
7125 echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7127 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   if test -n "$ac_ct_AR"; then
7131   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136   IFS=$as_save_IFS
7137   test -z "$as_dir" && as_dir=.
7138   for ac_exec_ext in '' $ac_executable_extensions; do
7139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140     ac_cv_prog_ac_ct_AR="ar"
7141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142     break 2
7143   fi
7144 done
7145 done
7146
7147   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7148 fi
7149 fi
7150 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7151 if test -n "$ac_ct_AR"; then
7152   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7153 echo "${ECHO_T}$ac_ct_AR" >&6
7154 else
7155   echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6
7157 fi
7158
7159   AR=$ac_ct_AR
7160 else
7161   AR="$ac_cv_prog_AR"
7162 fi
7163
7164 if test -n "$ac_tool_prefix"; then
7165   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7167 echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7169 if test "${ac_cv_prog_RANLIB+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   if test -n "$RANLIB"; then
7173   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180   for ac_exec_ext in '' $ac_executable_extensions; do
7181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187 done
7188
7189 fi
7190 fi
7191 RANLIB=$ac_cv_prog_RANLIB
7192 if test -n "$RANLIB"; then
7193   echo "$as_me:$LINENO: result: $RANLIB" >&5
7194 echo "${ECHO_T}$RANLIB" >&6
7195 else
7196   echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6
7198 fi
7199
7200 fi
7201 if test -z "$ac_cv_prog_RANLIB"; then
7202   ac_ct_RANLIB=$RANLIB
7203   # Extract the first word of "ranlib", so it can be a program name with args.
7204 set dummy ranlib; ac_word=$2
7205 echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   if test -n "$ac_ct_RANLIB"; then
7211   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218   for ac_exec_ext in '' $ac_executable_extensions; do
7219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220     ac_cv_prog_ac_ct_RANLIB="ranlib"
7221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225 done
7226
7227   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7228 fi
7229 fi
7230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7231 if test -n "$ac_ct_RANLIB"; then
7232   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7233 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7234 else
7235   echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6
7237 fi
7238
7239   RANLIB=$ac_ct_RANLIB
7240 else
7241   RANLIB="$ac_cv_prog_RANLIB"
7242 fi
7243
7244 if test -n "$ac_tool_prefix"; then
7245   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}strip; ac_word=$2
7247 echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7249 if test "${ac_cv_prog_STRIP+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   if test -n "$STRIP"; then
7253   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258   IFS=$as_save_IFS
7259   test -z "$as_dir" && as_dir=.
7260   for ac_exec_ext in '' $ac_executable_extensions; do
7261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264     break 2
7265   fi
7266 done
7267 done
7268
7269 fi
7270 fi
7271 STRIP=$ac_cv_prog_STRIP
7272 if test -n "$STRIP"; then
7273   echo "$as_me:$LINENO: result: $STRIP" >&5
7274 echo "${ECHO_T}$STRIP" >&6
7275 else
7276   echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6
7278 fi
7279
7280 fi
7281 if test -z "$ac_cv_prog_STRIP"; then
7282   ac_ct_STRIP=$STRIP
7283   # Extract the first word of "strip", so it can be a program name with args.
7284 set dummy strip; ac_word=$2
7285 echo "$as_me:$LINENO: checking for $ac_word" >&5
7286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7287 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7288   echo $ECHO_N "(cached) $ECHO_C" >&6
7289 else
7290   if test -n "$ac_ct_STRIP"; then
7291   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7292 else
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296   IFS=$as_save_IFS
7297   test -z "$as_dir" && as_dir=.
7298   for ac_exec_ext in '' $ac_executable_extensions; do
7299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300     ac_cv_prog_ac_ct_STRIP="strip"
7301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302     break 2
7303   fi
7304 done
7305 done
7306
7307   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7308 fi
7309 fi
7310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7311 if test -n "$ac_ct_STRIP"; then
7312   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7313 echo "${ECHO_T}$ac_ct_STRIP" >&6
7314 else
7315   echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6
7317 fi
7318
7319   STRIP=$ac_ct_STRIP
7320 else
7321   STRIP="$ac_cv_prog_STRIP"
7322 fi
7323
7324
7325 old_CC="$CC"
7326 old_CFLAGS="$CFLAGS"
7327
7328 # Set sane defaults for various variables
7329 test -z "$AR" && AR=ar
7330 test -z "$AR_FLAGS" && AR_FLAGS=cru
7331 test -z "$AS" && AS=as
7332 test -z "$CC" && CC=cc
7333 test -z "$LTCC" && LTCC=$CC
7334 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7335 test -z "$DLLTOOL" && DLLTOOL=dlltool
7336 test -z "$LD" && LD=ld
7337 test -z "$LN_S" && LN_S="ln -s"
7338 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7339 test -z "$NM" && NM=nm
7340 test -z "$SED" && SED=sed
7341 test -z "$OBJDUMP" && OBJDUMP=objdump
7342 test -z "$RANLIB" && RANLIB=:
7343 test -z "$STRIP" && STRIP=:
7344 test -z "$ac_objext" && ac_objext=o
7345
7346 # Determine commands to create old-style static archives.
7347 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7348 old_postinstall_cmds='chmod 644 $oldlib'
7349 old_postuninstall_cmds=
7350
7351 if test -n "$RANLIB"; then
7352   case $host_os in
7353   openbsd*)
7354     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7355     ;;
7356   *)
7357     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7358     ;;
7359   esac
7360   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7361 fi
7362
7363 for cc_temp in $compiler""; do
7364   case $cc_temp in
7365     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7366     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7367     \-*) ;;
7368     *) break;;
7369   esac
7370 done
7371 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7372
7373
7374 # Only perform the check for file, if the check method requires it
7375 case $deplibs_check_method in
7376 file_magic*)
7377   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7378     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7379 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7380 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   case $MAGIC_CMD in
7384 [\\/*] |  ?:[\\/]*)
7385   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7386   ;;
7387 *)
7388   lt_save_MAGIC_CMD="$MAGIC_CMD"
7389   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7390   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7391   for ac_dir in $ac_dummy; do
7392     IFS="$lt_save_ifs"
7393     test -z "$ac_dir" && ac_dir=.
7394     if test -f $ac_dir/${ac_tool_prefix}file; then
7395       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7396       if test -n "$file_magic_test_file"; then
7397         case $deplibs_check_method in
7398         "file_magic "*)
7399           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7400           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7401           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7402             $EGREP "$file_magic_regex" > /dev/null; then
7403             :
7404           else
7405             cat <<EOF 1>&2
7406
7407 *** Warning: the command libtool uses to detect shared libraries,
7408 *** $file_magic_cmd, produces output that libtool cannot recognize.
7409 *** The result is that libtool may fail to recognize shared libraries
7410 *** as such.  This will affect the creation of libtool libraries that
7411 *** depend on shared libraries, but programs linked with such libtool
7412 *** libraries will work regardless of this problem.  Nevertheless, you
7413 *** may want to report the problem to your system manager and/or to
7414 *** bug-libtool@gnu.org
7415
7416 EOF
7417           fi ;;
7418         esac
7419       fi
7420       break
7421     fi
7422   done
7423   IFS="$lt_save_ifs"
7424   MAGIC_CMD="$lt_save_MAGIC_CMD"
7425   ;;
7426 esac
7427 fi
7428
7429 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7430 if test -n "$MAGIC_CMD"; then
7431   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7432 echo "${ECHO_T}$MAGIC_CMD" >&6
7433 else
7434   echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6
7436 fi
7437
7438 if test -z "$lt_cv_path_MAGIC_CMD"; then
7439   if test -n "$ac_tool_prefix"; then
7440     echo "$as_me:$LINENO: checking for file" >&5
7441 echo $ECHO_N "checking for file... $ECHO_C" >&6
7442 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7443   echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445   case $MAGIC_CMD in
7446 [\\/*] |  ?:[\\/]*)
7447   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7448   ;;
7449 *)
7450   lt_save_MAGIC_CMD="$MAGIC_CMD"
7451   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7452   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7453   for ac_dir in $ac_dummy; do
7454     IFS="$lt_save_ifs"
7455     test -z "$ac_dir" && ac_dir=.
7456     if test -f $ac_dir/file; then
7457       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7458       if test -n "$file_magic_test_file"; then
7459         case $deplibs_check_method in
7460         "file_magic "*)
7461           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7462           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7463           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7464             $EGREP "$file_magic_regex" > /dev/null; then
7465             :
7466           else
7467             cat <<EOF 1>&2
7468
7469 *** Warning: the command libtool uses to detect shared libraries,
7470 *** $file_magic_cmd, produces output that libtool cannot recognize.
7471 *** The result is that libtool may fail to recognize shared libraries
7472 *** as such.  This will affect the creation of libtool libraries that
7473 *** depend on shared libraries, but programs linked with such libtool
7474 *** libraries will work regardless of this problem.  Nevertheless, you
7475 *** may want to report the problem to your system manager and/or to
7476 *** bug-libtool@gnu.org
7477
7478 EOF
7479           fi ;;
7480         esac
7481       fi
7482       break
7483     fi
7484   done
7485   IFS="$lt_save_ifs"
7486   MAGIC_CMD="$lt_save_MAGIC_CMD"
7487   ;;
7488 esac
7489 fi
7490
7491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7492 if test -n "$MAGIC_CMD"; then
7493   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7494 echo "${ECHO_T}$MAGIC_CMD" >&6
7495 else
7496   echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6
7498 fi
7499
7500   else
7501     MAGIC_CMD=:
7502   fi
7503 fi
7504
7505   fi
7506   ;;
7507 esac
7508
7509 enable_dlopen=no
7510 enable_win32_dll=no
7511
7512 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7513 if test "${enable_libtool_lock+set}" = set; then
7514   enableval="$enable_libtool_lock"
7515
7516 fi;
7517 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7518
7519
7520 # Check whether --with-pic or --without-pic was given.
7521 if test "${with_pic+set}" = set; then
7522   withval="$with_pic"
7523   pic_mode="$withval"
7524 else
7525   pic_mode=default
7526 fi;
7527 test -z "$pic_mode" && pic_mode=default
7528
7529 # Use C for the default configuration in the libtool script
7530 tagname=
7531 lt_save_CC="$CC"
7532 ac_ext=c
7533 ac_cpp='$CPP $CPPFLAGS'
7534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537
7538
7539 # Source file extension for C test sources.
7540 ac_ext=c
7541
7542 # Object file extension for compiled C test sources.
7543 objext=o
7544 objext=$objext
7545
7546 # Code to be used in simple compile tests
7547 lt_simple_compile_test_code="int some_variable = 0;\n"
7548
7549 # Code to be used in simple link tests
7550 lt_simple_link_test_code='int main(){return(0);}\n'
7551
7552
7553 # If no C compiler was specified, use CC.
7554 LTCC=${LTCC-"$CC"}
7555
7556 # If no C compiler flags were specified, use CFLAGS.
7557 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7558
7559 # Allow CC to be a program name with arguments.
7560 compiler=$CC
7561
7562
7563 # save warnings/boilerplate of simple test code
7564 ac_outfile=conftest.$ac_objext
7565 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7566 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7567 _lt_compiler_boilerplate=`cat conftest.err`
7568 $rm conftest*
7569
7570 ac_outfile=conftest.$ac_objext
7571 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7572 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7573 _lt_linker_boilerplate=`cat conftest.err`
7574 $rm conftest*
7575
7576
7577
7578 lt_prog_compiler_no_builtin_flag=
7579
7580 if test "$GCC" = yes; then
7581   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7582
7583
7584 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7585 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7586 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   lt_cv_prog_compiler_rtti_exceptions=no
7590   ac_outfile=conftest.$ac_objext
7591    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7592    lt_compiler_flag="-fno-rtti -fno-exceptions"
7593    # Insert the option either (1) after the last *FLAGS variable, or
7594    # (2) before a word containing "conftest.", or (3) at the end.
7595    # Note that $ac_compile itself does not contain backslashes and begins
7596    # with a dollar sign (not a hyphen), so the echo should work correctly.
7597    # The option is referenced via a variable to avoid confusing sed.
7598    lt_compile=`echo "$ac_compile" | $SED \
7599    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7600    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7601    -e 's:$: $lt_compiler_flag:'`
7602    (eval echo "\"\$as_me:7602: $lt_compile\"" >&5)
7603    (eval "$lt_compile" 2>conftest.err)
7604    ac_status=$?
7605    cat conftest.err >&5
7606    echo "$as_me:7606: \$? = $ac_status" >&5
7607    if (exit $ac_status) && test -s "$ac_outfile"; then
7608      # The compiler can only warn and ignore the option if not recognized
7609      # So say no if there are warnings other than the usual output.
7610      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7611      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7612      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7613        lt_cv_prog_compiler_rtti_exceptions=yes
7614      fi
7615    fi
7616    $rm conftest*
7617
7618 fi
7619 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7620 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7621
7622 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7623     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7624 else
7625     :
7626 fi
7627
7628 fi
7629
7630 lt_prog_compiler_wl=
7631 lt_prog_compiler_pic=
7632 lt_prog_compiler_static=
7633
7634 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7635 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7636
7637   if test "$GCC" = yes; then
7638     lt_prog_compiler_wl='-Wl,'
7639     lt_prog_compiler_static='-static'
7640
7641     case $host_os in
7642       aix*)
7643       # All AIX code is PIC.
7644       if test "$host_cpu" = ia64; then
7645         # AIX 5 now supports IA64 processor
7646         lt_prog_compiler_static='-Bstatic'
7647       fi
7648       ;;
7649
7650     amigaos*)
7651       # FIXME: we need at least 68020 code to build shared libraries, but
7652       # adding the `-m68020' flag to GCC prevents building anything better,
7653       # like `-m68040'.
7654       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7655       ;;
7656
7657     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7658       # PIC is the default for these OSes.
7659       ;;
7660
7661     mingw* | pw32* | os2*)
7662       # This hack is so that the source file can tell whether it is being
7663       # built for inclusion in a dll (and should export symbols for example).
7664       lt_prog_compiler_pic='-DDLL_EXPORT'
7665       ;;
7666
7667     darwin* | rhapsody*)
7668       # PIC is the default on this platform
7669       # Common symbols not allowed in MH_DYLIB files
7670       lt_prog_compiler_pic='-fno-common'
7671       ;;
7672
7673     interix3*)
7674       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7675       # Instead, we relocate shared libraries at runtime.
7676       ;;
7677
7678     msdosdjgpp*)
7679       # Just because we use GCC doesn't mean we suddenly get shared libraries
7680       # on systems that don't support them.
7681       lt_prog_compiler_can_build_shared=no
7682       enable_shared=no
7683       ;;
7684
7685     sysv4*MP*)
7686       if test -d /usr/nec; then
7687         lt_prog_compiler_pic=-Kconform_pic
7688       fi
7689       ;;
7690
7691     hpux*)
7692       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7693       # not for PA HP-UX.
7694       case $host_cpu in
7695       hppa*64*|ia64*)
7696         # +Z the default
7697         ;;
7698       *)
7699         lt_prog_compiler_pic='-fPIC'
7700         ;;
7701       esac
7702       ;;
7703
7704     *)
7705       lt_prog_compiler_pic='-fPIC'
7706       ;;
7707     esac
7708   else
7709     # PORTME Check for flag to pass linker flags through the system compiler.
7710     case $host_os in
7711     aix*)
7712       lt_prog_compiler_wl='-Wl,'
7713       if test "$host_cpu" = ia64; then
7714         # AIX 5 now supports IA64 processor
7715         lt_prog_compiler_static='-Bstatic'
7716       else
7717         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7718       fi
7719       ;;
7720       darwin*)
7721         # PIC is the default on this platform
7722         # Common symbols not allowed in MH_DYLIB files
7723        case $cc_basename in
7724          xlc*)
7725          lt_prog_compiler_pic='-qnocommon'
7726          lt_prog_compiler_wl='-Wl,'
7727          ;;
7728        esac
7729        ;;
7730
7731     mingw* | pw32* | os2*)
7732       # This hack is so that the source file can tell whether it is being
7733       # built for inclusion in a dll (and should export symbols for example).
7734       lt_prog_compiler_pic='-DDLL_EXPORT'
7735       ;;
7736
7737     hpux9* | hpux10* | hpux11*)
7738       lt_prog_compiler_wl='-Wl,'
7739       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7740       # not for PA HP-UX.
7741       case $host_cpu in
7742       hppa*64*|ia64*)
7743         # +Z the default
7744         ;;
7745       *)
7746         lt_prog_compiler_pic='+Z'
7747         ;;
7748       esac
7749       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7750       lt_prog_compiler_static='${wl}-a ${wl}archive'
7751       ;;
7752
7753     irix5* | irix6* | nonstopux*)
7754       lt_prog_compiler_wl='-Wl,'
7755       # PIC (with -KPIC) is the default.
7756       lt_prog_compiler_static='-non_shared'
7757       ;;
7758
7759     newsos6)
7760       lt_prog_compiler_pic='-KPIC'
7761       lt_prog_compiler_static='-Bstatic'
7762       ;;
7763
7764     linux* | k*bsd*-gnu)
7765       case $cc_basename in
7766       icc* | ecc*)
7767         lt_prog_compiler_wl='-Wl,'
7768         lt_prog_compiler_pic='-KPIC'
7769         lt_prog_compiler_static='-static'
7770         ;;
7771       pgcc* | pgf77* | pgf90* | pgf95*)
7772         # Portland Group compilers (*not* the Pentium gcc compiler,
7773         # which looks to be a dead project)
7774         lt_prog_compiler_wl='-Wl,'
7775         lt_prog_compiler_pic='-fpic'
7776         lt_prog_compiler_static='-Bstatic'
7777         ;;
7778       ccc*)
7779         lt_prog_compiler_wl='-Wl,'
7780         # All Alpha code is PIC.
7781         lt_prog_compiler_static='-non_shared'
7782         ;;
7783       esac
7784       ;;
7785
7786     osf3* | osf4* | osf5*)
7787       lt_prog_compiler_wl='-Wl,'
7788       # All OSF/1 code is PIC.
7789       lt_prog_compiler_static='-non_shared'
7790       ;;
7791
7792     solaris*)
7793       lt_prog_compiler_pic='-KPIC'
7794       lt_prog_compiler_static='-Bstatic'
7795       case $cc_basename in
7796       f77* | f90* | f95*)
7797         lt_prog_compiler_wl='-Qoption ld ';;
7798       *)
7799         lt_prog_compiler_wl='-Wl,';;
7800       esac
7801       ;;
7802
7803     sunos4*)
7804       lt_prog_compiler_wl='-Qoption ld '
7805       lt_prog_compiler_pic='-PIC'
7806       lt_prog_compiler_static='-Bstatic'
7807       ;;
7808
7809     sysv4 | sysv4.2uw2* | sysv4.3*)
7810       lt_prog_compiler_wl='-Wl,'
7811       lt_prog_compiler_pic='-KPIC'
7812       lt_prog_compiler_static='-Bstatic'
7813       ;;
7814
7815     sysv4*MP*)
7816       if test -d /usr/nec ;then
7817         lt_prog_compiler_pic='-Kconform_pic'
7818         lt_prog_compiler_static='-Bstatic'
7819       fi
7820       ;;
7821
7822     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7823       lt_prog_compiler_wl='-Wl,'
7824       lt_prog_compiler_pic='-KPIC'
7825       lt_prog_compiler_static='-Bstatic'
7826       ;;
7827
7828     unicos*)
7829       lt_prog_compiler_wl='-Wl,'
7830       lt_prog_compiler_can_build_shared=no
7831       ;;
7832
7833     uts4*)
7834       lt_prog_compiler_pic='-pic'
7835       lt_prog_compiler_static='-Bstatic'
7836       ;;
7837
7838     *)
7839       lt_prog_compiler_can_build_shared=no
7840       ;;
7841     esac
7842   fi
7843
7844 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7845 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7846
7847 #
7848 # Check to make sure the PIC flag actually works.
7849 #
7850 if test -n "$lt_prog_compiler_pic"; then
7851
7852 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7853 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7854 if test "${lt_prog_compiler_pic_works+set}" = set; then
7855   echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857   lt_prog_compiler_pic_works=no
7858   ac_outfile=conftest.$ac_objext
7859    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7860    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7861    # Insert the option either (1) after the last *FLAGS variable, or
7862    # (2) before a word containing "conftest.", or (3) at the end.
7863    # Note that $ac_compile itself does not contain backslashes and begins
7864    # with a dollar sign (not a hyphen), so the echo should work correctly.
7865    # The option is referenced via a variable to avoid confusing sed.
7866    lt_compile=`echo "$ac_compile" | $SED \
7867    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7868    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7869    -e 's:$: $lt_compiler_flag:'`
7870    (eval echo "\"\$as_me:7870: $lt_compile\"" >&5)
7871    (eval "$lt_compile" 2>conftest.err)
7872    ac_status=$?
7873    cat conftest.err >&5
7874    echo "$as_me:7874: \$? = $ac_status" >&5
7875    if (exit $ac_status) && test -s "$ac_outfile"; then
7876      # The compiler can only warn and ignore the option if not recognized
7877      # So say no if there are warnings other than the usual output.
7878      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7879      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7880      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7881        lt_prog_compiler_pic_works=yes
7882      fi
7883    fi
7884    $rm conftest*
7885
7886 fi
7887 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7888 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7889
7890 if test x"$lt_prog_compiler_pic_works" = xyes; then
7891     case $lt_prog_compiler_pic in
7892      "" | " "*) ;;
7893      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7894      esac
7895 else
7896     lt_prog_compiler_pic=
7897      lt_prog_compiler_can_build_shared=no
7898 fi
7899
7900 fi
7901 case $host_os in
7902   # For platforms which do not support PIC, -DPIC is meaningless:
7903   *djgpp*)
7904     lt_prog_compiler_pic=
7905     ;;
7906   *)
7907     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7908     ;;
7909 esac
7910
7911 #
7912 # Check to make sure the static flag actually works.
7913 #
7914 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7915 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7916 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7917 if test "${lt_prog_compiler_static_works+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   lt_prog_compiler_static_works=no
7921    save_LDFLAGS="$LDFLAGS"
7922    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7923    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7924    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7925      # The linker can only warn and ignore the option if not recognized
7926      # So say no if there are warnings
7927      if test -s conftest.err; then
7928        # Append any errors to the config.log.
7929        cat conftest.err 1>&5
7930        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7931        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932        if diff conftest.exp conftest.er2 >/dev/null; then
7933          lt_prog_compiler_static_works=yes
7934        fi
7935      else
7936        lt_prog_compiler_static_works=yes
7937      fi
7938    fi
7939    $rm conftest*
7940    LDFLAGS="$save_LDFLAGS"
7941
7942 fi
7943 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7944 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7945
7946 if test x"$lt_prog_compiler_static_works" = xyes; then
7947     :
7948 else
7949     lt_prog_compiler_static=
7950 fi
7951
7952
7953 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7954 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7955 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   lt_cv_prog_compiler_c_o=no
7959    $rm -r conftest 2>/dev/null
7960    mkdir conftest
7961    cd conftest
7962    mkdir out
7963    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7964
7965    lt_compiler_flag="-o out/conftest2.$ac_objext"
7966    # Insert the option either (1) after the last *FLAGS variable, or
7967    # (2) before a word containing "conftest.", or (3) at the end.
7968    # Note that $ac_compile itself does not contain backslashes and begins
7969    # with a dollar sign (not a hyphen), so the echo should work correctly.
7970    lt_compile=`echo "$ac_compile" | $SED \
7971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973    -e 's:$: $lt_compiler_flag:'`
7974    (eval echo "\"\$as_me:7974: $lt_compile\"" >&5)
7975    (eval "$lt_compile" 2>out/conftest.err)
7976    ac_status=$?
7977    cat out/conftest.err >&5
7978    echo "$as_me:7978: \$? = $ac_status" >&5
7979    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7980    then
7981      # The compiler can only warn and ignore the option if not recognized
7982      # So say no if there are warnings
7983      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7984      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7985      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7986        lt_cv_prog_compiler_c_o=yes
7987      fi
7988    fi
7989    chmod u+w . 2>&5
7990    $rm conftest*
7991    # SGI C++ compiler will create directory out/ii_files/ for
7992    # template instantiation
7993    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7994    $rm out/* && rmdir out
7995    cd ..
7996    rmdir conftest
7997    $rm conftest*
7998
7999 fi
8000 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8001 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8002
8003
8004 hard_links="nottested"
8005 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8006   # do not overwrite the value of need_locks provided by the user
8007   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8008 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8009   hard_links=yes
8010   $rm conftest*
8011   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8012   touch conftest.a
8013   ln conftest.a conftest.b 2>&5 || hard_links=no
8014   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8015   echo "$as_me:$LINENO: result: $hard_links" >&5
8016 echo "${ECHO_T}$hard_links" >&6
8017   if test "$hard_links" = no; then
8018     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8019 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8020     need_locks=warn
8021   fi
8022 else
8023   need_locks=no
8024 fi
8025
8026 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8027 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8028
8029   runpath_var=
8030   allow_undefined_flag=
8031   enable_shared_with_static_runtimes=no
8032   archive_cmds=
8033   archive_expsym_cmds=
8034   old_archive_From_new_cmds=
8035   old_archive_from_expsyms_cmds=
8036   export_dynamic_flag_spec=
8037   whole_archive_flag_spec=
8038   thread_safe_flag_spec=
8039   hardcode_libdir_flag_spec=
8040   hardcode_libdir_flag_spec_ld=
8041   hardcode_libdir_separator=
8042   hardcode_direct=no
8043   hardcode_minus_L=no
8044   hardcode_shlibpath_var=unsupported
8045   link_all_deplibs=unknown
8046   hardcode_automatic=no
8047   module_cmds=
8048   module_expsym_cmds=
8049   always_export_symbols=no
8050   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8051   # include_expsyms should be a list of space-separated symbols to be *always*
8052   # included in the symbol list
8053   include_expsyms=
8054   # exclude_expsyms can be an extended regexp of symbols to exclude
8055   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8056   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8057   # as well as any symbol that contains `d'.
8058   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8059   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8060   # platforms (ab)use it in PIC code, but their linkers get confused if
8061   # the symbol is explicitly referenced.  Since portable code cannot
8062   # rely on this symbol name, it's probably fine to never include it in
8063   # preloaded symbol tables.
8064   extract_expsyms_cmds=
8065   # Just being paranoid about ensuring that cc_basename is set.
8066   for cc_temp in $compiler""; do
8067   case $cc_temp in
8068     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8069     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8070     \-*) ;;
8071     *) break;;
8072   esac
8073 done
8074 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8075
8076   case $host_os in
8077   cygwin* | mingw* | pw32*)
8078     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8079     # When not using gcc, we currently assume that we are using
8080     # Microsoft Visual C++.
8081     if test "$GCC" != yes; then
8082       with_gnu_ld=no
8083     fi
8084     ;;
8085   interix*)
8086     # we just hope/assume this is gcc and not c89 (= MSVC++)
8087     with_gnu_ld=yes
8088     ;;
8089   openbsd*)
8090     with_gnu_ld=no
8091     ;;
8092   esac
8093
8094   ld_shlibs=yes
8095   if test "$with_gnu_ld" = yes; then
8096     # If archive_cmds runs LD, not CC, wlarc should be empty
8097     wlarc='${wl}'
8098
8099     # Set some defaults for GNU ld with shared library support. These
8100     # are reset later if shared libraries are not supported. Putting them
8101     # here allows them to be overridden if necessary.
8102     runpath_var=LD_RUN_PATH
8103     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8104     export_dynamic_flag_spec='${wl}--export-dynamic'
8105     # ancient GNU ld didn't support --whole-archive et. al.
8106     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8107         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8108       else
8109         whole_archive_flag_spec=
8110     fi
8111     supports_anon_versioning=no
8112     case `$LD -v 2>/dev/null` in
8113       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8114       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8115       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8116       *\ 2.11.*) ;; # other 2.11 versions
8117       *) supports_anon_versioning=yes ;;
8118     esac
8119
8120     # See if GNU ld supports shared libraries.
8121     case $host_os in
8122     aix3* | aix4* | aix5*)
8123       # On AIX/PPC, the GNU linker is very broken
8124       if test "$host_cpu" != ia64; then
8125         ld_shlibs=no
8126         cat <<EOF 1>&2
8127
8128 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8129 *** to be unable to reliably create shared libraries on AIX.
8130 *** Therefore, libtool is disabling shared libraries support.  If you
8131 *** really care for shared libraries, you may want to modify your PATH
8132 *** so that a non-GNU linker is found, and then restart.
8133
8134 EOF
8135       fi
8136       ;;
8137
8138     amigaos*)
8139       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)'
8140       hardcode_libdir_flag_spec='-L$libdir'
8141       hardcode_minus_L=yes
8142
8143       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8144       # that the semantics of dynamic libraries on AmigaOS, at least up
8145       # to version 4, is to share data among multiple programs linked
8146       # with the same dynamic library.  Since this doesn't match the
8147       # behavior of shared libraries on other platforms, we can't use
8148       # them.
8149       ld_shlibs=no
8150       ;;
8151
8152     beos*)
8153       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8154         allow_undefined_flag=unsupported
8155         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8156         # support --undefined.  This deserves some investigation.  FIXME
8157         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8158       else
8159         ld_shlibs=no
8160       fi
8161       ;;
8162
8163     cygwin* | mingw* | pw32*)
8164       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8165       # as there is no search path for DLLs.
8166       hardcode_libdir_flag_spec='-L$libdir'
8167       allow_undefined_flag=unsupported
8168       always_export_symbols=no
8169       enable_shared_with_static_runtimes=yes
8170       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8171
8172       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8173         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8174         # If the export-symbols file already is a .def file (1st line
8175         # is EXPORTS), use it as is; otherwise, prepend...
8176         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8177           cp $export_symbols $output_objdir/$soname.def;
8178         else
8179           echo EXPORTS > $output_objdir/$soname.def;
8180           cat $export_symbols >> $output_objdir/$soname.def;
8181         fi~
8182         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8183       else
8184         ld_shlibs=no
8185       fi
8186       ;;
8187
8188     interix3*)
8189       hardcode_direct=no
8190       hardcode_shlibpath_var=no
8191       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8192       export_dynamic_flag_spec='${wl}-E'
8193       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8194       # Instead, shared libraries are loaded at an image base (0x10000000 by
8195       # default) and relocated if they conflict, which is a slow very memory
8196       # consuming and fragmenting process.  To avoid this, we pick a random,
8197       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8198       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8199       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8200       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'
8201       ;;
8202
8203     linux* | k*bsd*-gnu)
8204       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205         tmp_addflag=
8206         case $cc_basename,$host_cpu in
8207         pgcc*)                          # Portland Group C compiler
8208           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'
8209           tmp_addflag=' $pic_flag'
8210           ;;
8211         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8212           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'
8213           tmp_addflag=' $pic_flag -Mnomain' ;;
8214         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8215           tmp_addflag=' -i_dynamic' ;;
8216         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8217           tmp_addflag=' -i_dynamic -nofor_main' ;;
8218         ifc* | ifort*)                  # Intel Fortran compiler
8219           tmp_addflag=' -nofor_main' ;;
8220         esac
8221         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8222
8223         if test $supports_anon_versioning = yes; then
8224           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8225   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8226   $echo "local: *; };" >> $output_objdir/$libname.ver~
8227           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8228         fi
8229         link_all_deplibs=no
8230       else
8231         ld_shlibs=no
8232       fi
8233       ;;
8234
8235     netbsd* | netbsdelf*-gnu)
8236       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8237         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8238         wlarc=
8239       else
8240         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8241         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8242       fi
8243       ;;
8244
8245     solaris*)
8246       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8247         ld_shlibs=no
8248         cat <<EOF 1>&2
8249
8250 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8251 *** create shared libraries on Solaris systems.  Therefore, libtool
8252 *** is disabling shared libraries support.  We urge you to upgrade GNU
8253 *** binutils to release 2.9.1 or newer.  Another option is to modify
8254 *** your PATH or compiler configuration so that the native linker is
8255 *** used, and then restart.
8256
8257 EOF
8258       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8259         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8261       else
8262         ld_shlibs=no
8263       fi
8264       ;;
8265
8266     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8267       case `$LD -v 2>&1` in
8268         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8269         ld_shlibs=no
8270         cat <<_LT_EOF 1>&2
8271
8272 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8273 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8274 *** is disabling shared libraries support.  We urge you to upgrade GNU
8275 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8276 *** your PATH or compiler configuration so that the native linker is
8277 *** used, and then restart.
8278
8279 _LT_EOF
8280         ;;
8281         *)
8282           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8283             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8284             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8285             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8286           else
8287             ld_shlibs=no
8288           fi
8289         ;;
8290       esac
8291       ;;
8292
8293     sunos4*)
8294       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8295       wlarc=
8296       hardcode_direct=yes
8297       hardcode_shlibpath_var=no
8298       ;;
8299
8300     *)
8301       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8302         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8303         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8304       else
8305         ld_shlibs=no
8306       fi
8307       ;;
8308     esac
8309
8310     if test "$ld_shlibs" = no; then
8311       runpath_var=
8312       hardcode_libdir_flag_spec=
8313       export_dynamic_flag_spec=
8314       whole_archive_flag_spec=
8315     fi
8316   else
8317     # PORTME fill in a description of your system's linker (not GNU ld)
8318     case $host_os in
8319     aix3*)
8320       allow_undefined_flag=unsupported
8321       always_export_symbols=yes
8322       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'
8323       # Note: this linker hardcodes the directories in LIBPATH if there
8324       # are no directories specified by -L.
8325       hardcode_minus_L=yes
8326       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8327         # Neither direct hardcoding nor static linking is supported with a
8328         # broken collect2.
8329         hardcode_direct=unsupported
8330       fi
8331       ;;
8332
8333     aix4* | aix5*)
8334       if test "$host_cpu" = ia64; then
8335         # On IA64, the linker does run time linking by default, so we don't
8336         # have to do anything special.
8337         aix_use_runtimelinking=no
8338         exp_sym_flag='-Bexport'
8339         no_entry_flag=""
8340       else
8341         # If we're using GNU nm, then we don't want the "-C" option.
8342         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8343         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8344           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'
8345         else
8346           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'
8347         fi
8348         aix_use_runtimelinking=no
8349
8350         # Test if we are trying to use run time linking or normal
8351         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8352         # need to do runtime linking.
8353         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8354           for ld_flag in $LDFLAGS; do
8355           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8356             aix_use_runtimelinking=yes
8357             break
8358           fi
8359           done
8360           ;;
8361         esac
8362
8363         exp_sym_flag='-bexport'
8364         no_entry_flag='-bnoentry'
8365       fi
8366
8367       # When large executables or shared objects are built, AIX ld can
8368       # have problems creating the table of contents.  If linking a library
8369       # or program results in "error TOC overflow" add -mminimal-toc to
8370       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8371       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8372
8373       archive_cmds=''
8374       hardcode_direct=yes
8375       hardcode_libdir_separator=':'
8376       link_all_deplibs=yes
8377
8378       if test "$GCC" = yes; then
8379         case $host_os in aix4.[012]|aix4.[012].*)
8380         # We only want to do this on AIX 4.2 and lower, the check
8381         # below for broken collect2 doesn't work under 4.3+
8382           collect2name=`${CC} -print-prog-name=collect2`
8383           if test -f "$collect2name" && \
8384            strings "$collect2name" | grep resolve_lib_name >/dev/null
8385           then
8386           # We have reworked collect2
8387           hardcode_direct=yes
8388           else
8389           # We have old collect2
8390           hardcode_direct=unsupported
8391           # It fails to find uninstalled libraries when the uninstalled
8392           # path is not listed in the libpath.  Setting hardcode_minus_L
8393           # to unsupported forces relinking
8394           hardcode_minus_L=yes
8395           hardcode_libdir_flag_spec='-L$libdir'
8396           hardcode_libdir_separator=
8397           fi
8398           ;;
8399         esac
8400         shared_flag='-shared'
8401         if test "$aix_use_runtimelinking" = yes; then
8402           shared_flag="$shared_flag "'${wl}-G'
8403         fi
8404       else
8405         # not using gcc
8406         if test "$host_cpu" = ia64; then
8407         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8408         # chokes on -Wl,-G. The following line is correct:
8409           shared_flag='-G'
8410         else
8411           if test "$aix_use_runtimelinking" = yes; then
8412             shared_flag='${wl}-G'
8413           else
8414             shared_flag='${wl}-bM:SRE'
8415           fi
8416         fi
8417       fi
8418
8419       # It seems that -bexpall does not export symbols beginning with
8420       # underscore (_), so it is better to generate a list of symbols to export.
8421       always_export_symbols=yes
8422       if test "$aix_use_runtimelinking" = yes; then
8423         # Warning - without using the other runtime loading flags (-brtl),
8424         # -berok will link without error, but may produce a broken library.
8425         allow_undefined_flag='-berok'
8426        # Determine the default libpath from the value encoded in an empty executable.
8427        cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h.  */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h.  */
8433
8434 int
8435 main ()
8436 {
8437
8438   ;
8439   return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext conftest$ac_exeext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8444   (eval $ac_link) 2>conftest.er1
8445   ac_status=$?
8446   grep -v '^ *+' conftest.er1 >conftest.err
8447   rm -f conftest.er1
8448   cat conftest.err >&5
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); } &&
8451          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453   (eval $ac_try) 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; } &&
8457          { ac_try='test -s conftest$ac_exeext'
8458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459   (eval $ac_try) 2>&5
8460   ac_status=$?
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); }; }; then
8463
8464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8465 }'`
8466 # Check for a 64-bit object if we didn't find anything.
8467 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; }
8468 }'`; fi
8469 else
8470   echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473 fi
8474 rm -f conftest.err conftest.$ac_objext \
8475       conftest$ac_exeext conftest.$ac_ext
8476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8477
8478        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8479         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"
8480        else
8481         if test "$host_cpu" = ia64; then
8482           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8483           allow_undefined_flag="-z nodefs"
8484           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"
8485         else
8486          # Determine the default libpath from the value encoded in an empty executable.
8487          cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493
8494 int
8495 main ()
8496 {
8497
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext conftest$ac_exeext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504   (eval $ac_link) 2>conftest.er1
8505   ac_status=$?
8506   grep -v '^ *+' conftest.er1 >conftest.err
8507   rm -f conftest.er1
8508   cat conftest.err >&5
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); } &&
8511          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513   (eval $ac_try) 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); }; } &&
8517          { ac_try='test -s conftest$ac_exeext'
8518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519   (eval $ac_try) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); }; }; then
8523
8524 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8525 }'`
8526 # Check for a 64-bit object if we didn't find anything.
8527 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; }
8528 }'`; fi
8529 else
8530   echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533 fi
8534 rm -f conftest.err conftest.$ac_objext \
8535       conftest$ac_exeext conftest.$ac_ext
8536 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8537
8538          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8539           # Warning - without using the other run time loading flags,
8540           # -berok will link without error, but may produce a broken library.
8541           no_undefined_flag=' ${wl}-bernotok'
8542           allow_undefined_flag=' ${wl}-berok'
8543           # Exported symbols can be pulled into shared objects from archives
8544           whole_archive_flag_spec='$convenience'
8545           archive_cmds_need_lc=yes
8546           # This is similar to how AIX traditionally builds its shared libraries.
8547           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'
8548         fi
8549       fi
8550       ;;
8551
8552     amigaos*)
8553       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)'
8554       hardcode_libdir_flag_spec='-L$libdir'
8555       hardcode_minus_L=yes
8556       # see comment about different semantics on the GNU ld section
8557       ld_shlibs=no
8558       ;;
8559
8560     bsdi[45]*)
8561       export_dynamic_flag_spec=-rdynamic
8562       ;;
8563
8564     cygwin* | mingw* | pw32*)
8565       # When not using gcc, we currently assume that we are using
8566       # Microsoft Visual C++.
8567       # hardcode_libdir_flag_spec is actually meaningless, as there is
8568       # no search path for DLLs.
8569       hardcode_libdir_flag_spec=' '
8570       allow_undefined_flag=unsupported
8571       # Tell ltmain to make .lib files, not .a files.
8572       libext=lib
8573       # Tell ltmain to make .dll files, not .so files.
8574       shrext_cmds=".dll"
8575       # FIXME: Setting linknames here is a bad hack.
8576       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8577       # The linker will automatically build a .lib file if we build a DLL.
8578       old_archive_From_new_cmds='true'
8579       # FIXME: Should let the user specify the lib program.
8580       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8581       fix_srcfile_path='`cygpath -w "$srcfile"`'
8582       enable_shared_with_static_runtimes=yes
8583       ;;
8584
8585     darwin* | rhapsody*)
8586       case $host_os in
8587         rhapsody* | darwin1.[012])
8588          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8589          ;;
8590        *) # Darwin 1.3 on
8591          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8592            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8593          else
8594            case ${MACOSX_DEPLOYMENT_TARGET} in
8595              10.[012])
8596                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8597                ;;
8598              10.*)
8599                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8600                ;;
8601            esac
8602          fi
8603          ;;
8604       esac
8605       archive_cmds_need_lc=no
8606       hardcode_direct=no
8607       hardcode_automatic=yes
8608       hardcode_shlibpath_var=unsupported
8609       whole_archive_flag_spec=''
8610       link_all_deplibs=yes
8611     if test "$GCC" = yes ; then
8612         output_verbose_link_cmd='echo'
8613         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8614       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8615       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8616       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}'
8617       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}'
8618     else
8619       case $cc_basename in
8620         xlc*)
8621          output_verbose_link_cmd='echo'
8622          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8623          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8624           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8625          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}'
8626           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}'
8627           ;;
8628        *)
8629          ld_shlibs=no
8630           ;;
8631       esac
8632     fi
8633       ;;
8634
8635     dgux*)
8636       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8637       hardcode_libdir_flag_spec='-L$libdir'
8638       hardcode_shlibpath_var=no
8639       ;;
8640
8641     freebsd1*)
8642       ld_shlibs=no
8643       ;;
8644
8645     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8646     # support.  Future versions do this automatically, but an explicit c++rt0.o
8647     # does not break anything, and helps significantly (at the cost of a little
8648     # extra space).
8649     freebsd2.2*)
8650       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8651       hardcode_libdir_flag_spec='-R$libdir'
8652       hardcode_direct=yes
8653       hardcode_shlibpath_var=no
8654       ;;
8655
8656     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8657     freebsd2*)
8658       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8659       hardcode_direct=yes
8660       hardcode_minus_L=yes
8661       hardcode_shlibpath_var=no
8662       ;;
8663
8664     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8665     freebsd* | dragonfly*)
8666       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8667       hardcode_libdir_flag_spec='-R$libdir'
8668       hardcode_direct=yes
8669       hardcode_shlibpath_var=no
8670       ;;
8671
8672     hpux9*)
8673       if test "$GCC" = yes; then
8674         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'
8675       else
8676         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'
8677       fi
8678       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8679       hardcode_libdir_separator=:
8680       hardcode_direct=yes
8681
8682       # hardcode_minus_L: Not really in the search PATH,
8683       # but as the default location of the library.
8684       hardcode_minus_L=yes
8685       export_dynamic_flag_spec='${wl}-E'
8686       ;;
8687
8688     hpux10*)
8689       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8690         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8691       else
8692         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8693       fi
8694       if test "$with_gnu_ld" = no; then
8695         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8696         hardcode_libdir_separator=:
8697
8698         hardcode_direct=yes
8699         export_dynamic_flag_spec='${wl}-E'
8700
8701         # hardcode_minus_L: Not really in the search PATH,
8702         # but as the default location of the library.
8703         hardcode_minus_L=yes
8704       fi
8705       ;;
8706
8707     hpux11*)
8708       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8709         case $host_cpu in
8710         hppa*64*)
8711           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712           ;;
8713         ia64*)
8714           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8715           ;;
8716         *)
8717           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8718           ;;
8719         esac
8720       else
8721         case $host_cpu in
8722         hppa*64*)
8723           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8724           ;;
8725         ia64*)
8726           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8727           ;;
8728         *)
8729           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8730           ;;
8731         esac
8732       fi
8733       if test "$with_gnu_ld" = no; then
8734         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8735         hardcode_libdir_separator=:
8736
8737         case $host_cpu in
8738         hppa*64*|ia64*)
8739           hardcode_libdir_flag_spec_ld='+b $libdir'
8740           hardcode_direct=no
8741           hardcode_shlibpath_var=no
8742           ;;
8743         *)
8744           hardcode_direct=yes
8745           export_dynamic_flag_spec='${wl}-E'
8746
8747           # hardcode_minus_L: Not really in the search PATH,
8748           # but as the default location of the library.
8749           hardcode_minus_L=yes
8750           ;;
8751         esac
8752       fi
8753       ;;
8754
8755     irix5* | irix6* | nonstopux*)
8756       if test "$GCC" = yes; then
8757         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'
8758       else
8759         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'
8760         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8761       fi
8762       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8763       hardcode_libdir_separator=:
8764       link_all_deplibs=yes
8765       ;;
8766
8767     netbsd* | netbsdelf*-gnu)
8768       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8769         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8770       else
8771         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8772       fi
8773       hardcode_libdir_flag_spec='-R$libdir'
8774       hardcode_direct=yes
8775       hardcode_shlibpath_var=no
8776       ;;
8777
8778     newsos6)
8779       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780       hardcode_direct=yes
8781       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8782       hardcode_libdir_separator=:
8783       hardcode_shlibpath_var=no
8784       ;;
8785
8786     openbsd*)
8787       hardcode_direct=yes
8788       hardcode_shlibpath_var=no
8789       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8790         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8791         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8792         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8793         export_dynamic_flag_spec='${wl}-E'
8794       else
8795        case $host_os in
8796          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8797            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8798            hardcode_libdir_flag_spec='-R$libdir'
8799            ;;
8800          *)
8801            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8802            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8803            ;;
8804        esac
8805       fi
8806       ;;
8807
8808     os2*)
8809       hardcode_libdir_flag_spec='-L$libdir'
8810       hardcode_minus_L=yes
8811       allow_undefined_flag=unsupported
8812       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'
8813       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8814       ;;
8815
8816     osf3*)
8817       if test "$GCC" = yes; then
8818         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8819         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'
8820       else
8821         allow_undefined_flag=' -expect_unresolved \*'
8822         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'
8823       fi
8824       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825       hardcode_libdir_separator=:
8826       ;;
8827
8828     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8829       if test "$GCC" = yes; then
8830         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8831         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'
8832         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833       else
8834         allow_undefined_flag=' -expect_unresolved \*'
8835         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'
8836         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8837         $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'
8838
8839         # Both c and cxx compiler support -rpath directly
8840         hardcode_libdir_flag_spec='-rpath $libdir'
8841       fi
8842       hardcode_libdir_separator=:
8843       ;;
8844
8845     solaris*)
8846       no_undefined_flag=' -z text'
8847       if test "$GCC" = yes; then
8848         wlarc='${wl}'
8849         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8851           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8852       else
8853         wlarc=''
8854         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8856         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8857       fi
8858       hardcode_libdir_flag_spec='-R$libdir'
8859       hardcode_shlibpath_var=no
8860       case $host_os in
8861       solaris2.[0-5] | solaris2.[0-5].*) ;;
8862       *)
8863         # The compiler driver will combine linker options so we
8864         # cannot just pass the convience library names through
8865         # without $wl, iff we do not link with $LD.
8866         # Luckily, gcc supports the same syntax we need for Sun Studio.
8867         # Supported since Solaris 2.6 (maybe 2.5.1?)
8868         case $wlarc in
8869         '')
8870           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8871         *)
8872           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' ;;
8873         esac ;;
8874       esac
8875       link_all_deplibs=yes
8876       ;;
8877
8878     sunos4*)
8879       if test "x$host_vendor" = xsequent; then
8880         # Use $CC to link under sequent, because it throws in some extra .o
8881         # files that make .init and .fini sections work.
8882         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8883       else
8884         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8885       fi
8886       hardcode_libdir_flag_spec='-L$libdir'
8887       hardcode_direct=yes
8888       hardcode_minus_L=yes
8889       hardcode_shlibpath_var=no
8890       ;;
8891
8892     sysv4)
8893       case $host_vendor in
8894         sni)
8895           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896           hardcode_direct=yes # is this really true???
8897         ;;
8898         siemens)
8899           ## LD is ld it makes a PLAMLIB
8900           ## CC just makes a GrossModule.
8901           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8902           reload_cmds='$CC -r -o $output$reload_objs'
8903           hardcode_direct=no
8904         ;;
8905         motorola)
8906           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8908         ;;
8909       esac
8910       runpath_var='LD_RUN_PATH'
8911       hardcode_shlibpath_var=no
8912       ;;
8913
8914     sysv4.3*)
8915       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916       hardcode_shlibpath_var=no
8917       export_dynamic_flag_spec='-Bexport'
8918       ;;
8919
8920     sysv4*MP*)
8921       if test -d /usr/nec; then
8922         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923         hardcode_shlibpath_var=no
8924         runpath_var=LD_RUN_PATH
8925         hardcode_runpath_var=yes
8926         ld_shlibs=yes
8927       fi
8928       ;;
8929
8930     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8931       no_undefined_flag='${wl}-z,text'
8932       archive_cmds_need_lc=no
8933       hardcode_shlibpath_var=no
8934       runpath_var='LD_RUN_PATH'
8935
8936       if test "$GCC" = yes; then
8937         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8938         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8939       else
8940         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8941         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8942       fi
8943       ;;
8944
8945     sysv5* | sco3.2v5* | sco5v6*)
8946       # Note: We can NOT use -z defs as we might desire, because we do not
8947       # link with -lc, and that would cause any symbols used from libc to
8948       # always be unresolved, which means just about no library would
8949       # ever link correctly.  If we're not using GNU ld we use -z text
8950       # though, which does catch some bad symbols but isn't as heavy-handed
8951       # as -z defs.
8952       no_undefined_flag='${wl}-z,text'
8953       allow_undefined_flag='${wl}-z,nodefs'
8954       archive_cmds_need_lc=no
8955       hardcode_shlibpath_var=no
8956       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8957       hardcode_libdir_separator=':'
8958       link_all_deplibs=yes
8959       export_dynamic_flag_spec='${wl}-Bexport'
8960       runpath_var='LD_RUN_PATH'
8961
8962       if test "$GCC" = yes; then
8963         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8964         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8965       else
8966         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8967         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8968       fi
8969       ;;
8970
8971     uts4*)
8972       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8973       hardcode_libdir_flag_spec='-L$libdir'
8974       hardcode_shlibpath_var=no
8975       ;;
8976
8977     *)
8978       ld_shlibs=no
8979       ;;
8980     esac
8981   fi
8982
8983 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8984 echo "${ECHO_T}$ld_shlibs" >&6
8985 test "$ld_shlibs" = no && can_build_shared=no
8986
8987 #
8988 # Do we need to explicitly link libc?
8989 #
8990 case "x$archive_cmds_need_lc" in
8991 x|xyes)
8992   # Assume -lc should be added
8993   archive_cmds_need_lc=yes
8994
8995   if test "$enable_shared" = yes && test "$GCC" = yes; then
8996     case $archive_cmds in
8997     *'~'*)
8998       # FIXME: we may have to deal with multi-command sequences.
8999       ;;
9000     '$CC '*)
9001       # Test whether the compiler implicitly links with -lc since on some
9002       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9003       # to ld, don't add -lc before -lgcc.
9004       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9005 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9006       $rm conftest*
9007       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9008
9009       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9010   (eval $ac_compile) 2>&5
9011   ac_status=$?
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); } 2>conftest.err; then
9014         soname=conftest
9015         lib=conftest
9016         libobjs=conftest.$ac_objext
9017         deplibs=
9018         wl=$lt_prog_compiler_wl
9019         pic_flag=$lt_prog_compiler_pic
9020         compiler_flags=-v
9021         linker_flags=-v
9022         verstring=
9023         output_objdir=.
9024         libname=conftest
9025         lt_save_allow_undefined_flag=$allow_undefined_flag
9026         allow_undefined_flag=
9027         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9028   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9029   ac_status=$?
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); }
9032         then
9033           archive_cmds_need_lc=no
9034         else
9035           archive_cmds_need_lc=yes
9036         fi
9037         allow_undefined_flag=$lt_save_allow_undefined_flag
9038       else
9039         cat conftest.err 1>&5
9040       fi
9041       $rm conftest*
9042       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9043 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9044       ;;
9045     esac
9046   fi
9047   ;;
9048 esac
9049
9050 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9051 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9052 library_names_spec=
9053 libname_spec='lib$name'
9054 soname_spec=
9055 shrext_cmds=".so"
9056 postinstall_cmds=
9057 postuninstall_cmds=
9058 finish_cmds=
9059 finish_eval=
9060 shlibpath_var=
9061 shlibpath_overrides_runpath=unknown
9062 version_type=none
9063 dynamic_linker="$host_os ld.so"
9064 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9065 if test "$GCC" = yes; then
9066   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9067   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9068     # if the path contains ";" then we assume it to be the separator
9069     # otherwise default to the standard path separator (i.e. ":") - it is
9070     # assumed that no part of a normal pathname contains ";" but that should
9071     # okay in the real world where ";" in dirpaths is itself problematic.
9072     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9073   else
9074     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9075   fi
9076 else
9077   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9078 fi
9079 need_lib_prefix=unknown
9080 hardcode_into_libs=no
9081
9082 # when you set need_version to no, make sure it does not cause -set_version
9083 # flags to be left without arguments
9084 need_version=unknown
9085
9086 case $host_os in
9087 aix3*)
9088   version_type=linux
9089   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9090   shlibpath_var=LIBPATH
9091
9092   # AIX 3 has no versioning support, so we append a major version to the name.
9093   soname_spec='${libname}${release}${shared_ext}$major'
9094   ;;
9095
9096 aix4* | aix5*)
9097   version_type=linux
9098   need_lib_prefix=no
9099   need_version=no
9100   hardcode_into_libs=yes
9101   if test "$host_cpu" = ia64; then
9102     # AIX 5 supports IA64
9103     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9104     shlibpath_var=LD_LIBRARY_PATH
9105   else
9106     # With GCC up to 2.95.x, collect2 would create an import file
9107     # for dependence libraries.  The import file would start with
9108     # the line `#! .'.  This would cause the generated library to
9109     # depend on `.', always an invalid library.  This was fixed in
9110     # development snapshots of GCC prior to 3.0.
9111     case $host_os in
9112       aix4 | aix4.[01] | aix4.[01].*)
9113       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9114            echo ' yes '
9115            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9116         :
9117       else
9118         can_build_shared=no
9119       fi
9120       ;;
9121     esac
9122     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9123     # soname into executable. Probably we can add versioning support to
9124     # collect2, so additional links can be useful in future.
9125     if test "$aix_use_runtimelinking" = yes; then
9126       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9127       # instead of lib<name>.a to let people know that these are not
9128       # typical AIX shared libraries.
9129       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130     else
9131       # We preserve .a as extension for shared libraries through AIX4.2
9132       # and later when we are not doing run time linking.
9133       library_names_spec='${libname}${release}.a $libname.a'
9134       soname_spec='${libname}${release}${shared_ext}$major'
9135     fi
9136     shlibpath_var=LIBPATH
9137   fi
9138   ;;
9139
9140 amigaos*)
9141   library_names_spec='$libname.ixlibrary $libname.a'
9142   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9143   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'
9144   ;;
9145
9146 beos*)
9147   library_names_spec='${libname}${shared_ext}'
9148   dynamic_linker="$host_os ld.so"
9149   shlibpath_var=LIBRARY_PATH
9150   ;;
9151
9152 bsdi[45]*)
9153   version_type=linux
9154   need_version=no
9155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156   soname_spec='${libname}${release}${shared_ext}$major'
9157   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9158   shlibpath_var=LD_LIBRARY_PATH
9159   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9160   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9161   # the default ld.so.conf also contains /usr/contrib/lib and
9162   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9163   # libtool to hard-code these into programs
9164   ;;
9165
9166 cygwin* | mingw* | pw32*)
9167   version_type=windows
9168   shrext_cmds=".dll"
9169   need_version=no
9170   need_lib_prefix=no
9171
9172   case $GCC,$host_os in
9173   yes,cygwin* | yes,mingw* | yes,pw32*)
9174     library_names_spec='$libname.dll.a'
9175     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9176     postinstall_cmds='base_file=`basename \${file}`~
9177       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9178       dldir=$destdir/`dirname \$dlpath`~
9179       test -d \$dldir || mkdir -p \$dldir~
9180       $install_prog $dir/$dlname \$dldir/$dlname~
9181       chmod a+x \$dldir/$dlname'
9182     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9183       dlpath=$dir/\$dldll~
9184        $rm \$dlpath'
9185     shlibpath_overrides_runpath=yes
9186
9187     case $host_os in
9188     cygwin*)
9189       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9190       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9191       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9192       ;;
9193     mingw*)
9194       # MinGW DLLs use traditional 'lib' prefix
9195       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9196       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9197       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9198         # It is most probably a Windows format PATH printed by
9199         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9200         # path with ; separators, and with drive letters. We can handle the
9201         # drive letters (cygwin fileutils understands them), so leave them,
9202         # especially as we might pass files found there to a mingw objdump,
9203         # which wouldn't understand a cygwinified path. Ahh.
9204         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9205       else
9206         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9207       fi
9208       ;;
9209     pw32*)
9210       # pw32 DLLs use 'pw' prefix rather than 'lib'
9211       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9212       ;;
9213     esac
9214     ;;
9215
9216   *)
9217     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9218     ;;
9219   esac
9220   dynamic_linker='Win32 ld.exe'
9221   # FIXME: first we should search . and the directory the executable is in
9222   shlibpath_var=PATH
9223   ;;
9224
9225 darwin* | rhapsody*)
9226   dynamic_linker="$host_os dyld"
9227   version_type=darwin
9228   need_lib_prefix=no
9229   need_version=no
9230   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9231   soname_spec='${libname}${release}${major}$shared_ext'
9232   shlibpath_overrides_runpath=yes
9233   shlibpath_var=DYLD_LIBRARY_PATH
9234   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9235   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9236   if test "$GCC" = yes; then
9237     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"`
9238   else
9239     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9240   fi
9241   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9242   ;;
9243
9244 dgux*)
9245   version_type=linux
9246   need_lib_prefix=no
9247   need_version=no
9248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9249   soname_spec='${libname}${release}${shared_ext}$major'
9250   shlibpath_var=LD_LIBRARY_PATH
9251   ;;
9252
9253 freebsd1*)
9254   dynamic_linker=no
9255   ;;
9256
9257 freebsd* | dragonfly*)
9258   # DragonFly does not have aout.  When/if they implement a new
9259   # versioning mechanism, adjust this.
9260   if test -x /usr/bin/objformat; then
9261     objformat=`/usr/bin/objformat`
9262   else
9263     case $host_os in
9264     freebsd[123]*) objformat=aout ;;
9265     *) objformat=elf ;;
9266     esac
9267   fi
9268   version_type=freebsd-$objformat
9269   case $version_type in
9270     freebsd-elf*)
9271       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9272       need_version=no
9273       need_lib_prefix=no
9274       ;;
9275     freebsd-*)
9276       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9277       need_version=yes
9278       ;;
9279   esac
9280   shlibpath_var=LD_LIBRARY_PATH
9281   case $host_os in
9282   freebsd2*)
9283     shlibpath_overrides_runpath=yes
9284     ;;
9285   freebsd3.[01]* | freebsdelf3.[01]*)
9286     shlibpath_overrides_runpath=yes
9287     hardcode_into_libs=yes
9288     ;;
9289   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9290   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9291     shlibpath_overrides_runpath=no
9292     hardcode_into_libs=yes
9293     ;;
9294   freebsd*) # from 4.6 on
9295     shlibpath_overrides_runpath=yes
9296     hardcode_into_libs=yes
9297     ;;
9298   esac
9299   ;;
9300
9301 gnu*)
9302   version_type=linux
9303   need_lib_prefix=no
9304   need_version=no
9305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9306   soname_spec='${libname}${release}${shared_ext}$major'
9307   shlibpath_var=LD_LIBRARY_PATH
9308   hardcode_into_libs=yes
9309   ;;
9310
9311 hpux9* | hpux10* | hpux11*)
9312   # Give a soname corresponding to the major version so that dld.sl refuses to
9313   # link against other versions.
9314   version_type=sunos
9315   need_lib_prefix=no
9316   need_version=no
9317   case $host_cpu in
9318   ia64*)
9319     shrext_cmds='.so'
9320     hardcode_into_libs=yes
9321     dynamic_linker="$host_os dld.so"
9322     shlibpath_var=LD_LIBRARY_PATH
9323     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325     soname_spec='${libname}${release}${shared_ext}$major'
9326     if test "X$HPUX_IA64_MODE" = X32; then
9327       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9328     else
9329       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9330     fi
9331     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9332     ;;
9333    hppa*64*)
9334      shrext_cmds='.sl'
9335      hardcode_into_libs=yes
9336      dynamic_linker="$host_os dld.sl"
9337      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9338      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9339      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340      soname_spec='${libname}${release}${shared_ext}$major'
9341      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9342      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9343      ;;
9344    *)
9345     shrext_cmds='.sl'
9346     dynamic_linker="$host_os dld.sl"
9347     shlibpath_var=SHLIB_PATH
9348     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9349     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350     soname_spec='${libname}${release}${shared_ext}$major'
9351     ;;
9352   esac
9353   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9354   postinstall_cmds='chmod 555 $lib'
9355   ;;
9356
9357 interix3*)
9358   version_type=linux
9359   need_lib_prefix=no
9360   need_version=no
9361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9362   soname_spec='${libname}${release}${shared_ext}$major'
9363   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9364   shlibpath_var=LD_LIBRARY_PATH
9365   shlibpath_overrides_runpath=no
9366   hardcode_into_libs=yes
9367   ;;
9368
9369 irix5* | irix6* | nonstopux*)
9370   case $host_os in
9371     nonstopux*) version_type=nonstopux ;;
9372     *)
9373         if test "$lt_cv_prog_gnu_ld" = yes; then
9374                 version_type=linux
9375         else
9376                 version_type=irix
9377         fi ;;
9378   esac
9379   need_lib_prefix=no
9380   need_version=no
9381   soname_spec='${libname}${release}${shared_ext}$major'
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9383   case $host_os in
9384   irix5* | nonstopux*)
9385     libsuff= shlibsuff=
9386     ;;
9387   *)
9388     case $LD in # libtool.m4 will add one of these switches to LD
9389     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9390       libsuff= shlibsuff= libmagic=32-bit;;
9391     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9392       libsuff=32 shlibsuff=N32 libmagic=N32;;
9393     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9394       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9395     *) libsuff= shlibsuff= libmagic=never-match;;
9396     esac
9397     ;;
9398   esac
9399   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9400   shlibpath_overrides_runpath=no
9401   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9402   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9403   hardcode_into_libs=yes
9404   ;;
9405
9406 # No shared lib support for Linux oldld, aout, or coff.
9407 linux*oldld* | linux*aout* | linux*coff*)
9408   dynamic_linker=no
9409   ;;
9410
9411 # This must be Linux ELF.
9412 linux* | k*bsd*-gnu)
9413   version_type=linux
9414   need_lib_prefix=no
9415   need_version=no
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417   soname_spec='${libname}${release}${shared_ext}$major'
9418   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9419   shlibpath_var=LD_LIBRARY_PATH
9420   shlibpath_overrides_runpath=no
9421   # This implies no fast_install, which is unacceptable.
9422   # Some rework will be needed to allow for fast_install
9423   # before this can be enabled.
9424   hardcode_into_libs=yes
9425
9426   # Append ld.so.conf contents to the search path
9427   if test -f /etc/ld.so.conf; then
9428     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' ' '`
9429     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9430   fi
9431
9432   # We used to test for /lib/ld.so.1 and disable shared libraries on
9433   # powerpc, because MkLinux only supported shared libraries with the
9434   # GNU dynamic linker.  Since this was broken with cross compilers,
9435   # most powerpc-linux boxes support dynamic linking these days and
9436   # people can always --disable-shared, the test was removed, and we
9437   # assume the GNU/Linux dynamic linker is in use.
9438   dynamic_linker='GNU/Linux ld.so'
9439   ;;
9440
9441 netbsdelf*-gnu)
9442   version_type=linux
9443   need_lib_prefix=no
9444   need_version=no
9445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9446   soname_spec='${libname}${release}${shared_ext}$major'
9447   shlibpath_var=LD_LIBRARY_PATH
9448   shlibpath_overrides_runpath=no
9449   hardcode_into_libs=yes
9450   dynamic_linker='NetBSD ld.elf_so'
9451   ;;
9452
9453 netbsd*)
9454   version_type=sunos
9455   need_lib_prefix=no
9456   need_version=no
9457   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9459     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9460     dynamic_linker='NetBSD (a.out) ld.so'
9461   else
9462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463     soname_spec='${libname}${release}${shared_ext}$major'
9464     dynamic_linker='NetBSD ld.elf_so'
9465   fi
9466   shlibpath_var=LD_LIBRARY_PATH
9467   shlibpath_overrides_runpath=yes
9468   hardcode_into_libs=yes
9469   ;;
9470
9471 newsos6)
9472   version_type=linux
9473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474   shlibpath_var=LD_LIBRARY_PATH
9475   shlibpath_overrides_runpath=yes
9476   ;;
9477
9478 nto-qnx*)
9479   version_type=linux
9480   need_lib_prefix=no
9481   need_version=no
9482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483   soname_spec='${libname}${release}${shared_ext}$major'
9484   shlibpath_var=LD_LIBRARY_PATH
9485   shlibpath_overrides_runpath=yes
9486   ;;
9487
9488 openbsd*)
9489   version_type=sunos
9490   sys_lib_dlsearch_path_spec="/usr/lib"
9491   need_lib_prefix=no
9492   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9493   case $host_os in
9494     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9495     *)                         need_version=no  ;;
9496   esac
9497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9498   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9499   shlibpath_var=LD_LIBRARY_PATH
9500   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9501     case $host_os in
9502       openbsd2.[89] | openbsd2.[89].*)
9503         shlibpath_overrides_runpath=no
9504         ;;
9505       *)
9506         shlibpath_overrides_runpath=yes
9507         ;;
9508       esac
9509   else
9510     shlibpath_overrides_runpath=yes
9511   fi
9512   ;;
9513
9514 os2*)
9515   libname_spec='$name'
9516   shrext_cmds=".dll"
9517   need_lib_prefix=no
9518   library_names_spec='$libname${shared_ext} $libname.a'
9519   dynamic_linker='OS/2 ld.exe'
9520   shlibpath_var=LIBPATH
9521   ;;
9522
9523 osf3* | osf4* | osf5*)
9524   version_type=osf
9525   need_lib_prefix=no
9526   need_version=no
9527   soname_spec='${libname}${release}${shared_ext}$major'
9528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529   shlibpath_var=LD_LIBRARY_PATH
9530   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9531   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9532   ;;
9533
9534 solaris*)
9535   version_type=linux
9536   need_lib_prefix=no
9537   need_version=no
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   shlibpath_overrides_runpath=yes
9542   hardcode_into_libs=yes
9543   # ldd complains unless libraries are executable
9544   postinstall_cmds='chmod +x $lib'
9545   ;;
9546
9547 sunos4*)
9548   version_type=sunos
9549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9550   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9551   shlibpath_var=LD_LIBRARY_PATH
9552   shlibpath_overrides_runpath=yes
9553   if test "$with_gnu_ld" = yes; then
9554     need_lib_prefix=no
9555   fi
9556   need_version=yes
9557   ;;
9558
9559 sysv4 | sysv4.3*)
9560   version_type=linux
9561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562   soname_spec='${libname}${release}${shared_ext}$major'
9563   shlibpath_var=LD_LIBRARY_PATH
9564   case $host_vendor in
9565     sni)
9566       shlibpath_overrides_runpath=no
9567       need_lib_prefix=no
9568       export_dynamic_flag_spec='${wl}-Blargedynsym'
9569       runpath_var=LD_RUN_PATH
9570       ;;
9571     siemens)
9572       need_lib_prefix=no
9573       ;;
9574     motorola)
9575       need_lib_prefix=no
9576       need_version=no
9577       shlibpath_overrides_runpath=no
9578       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9579       ;;
9580   esac
9581   ;;
9582
9583 sysv4*MP*)
9584   if test -d /usr/nec ;then
9585     version_type=linux
9586     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9587     soname_spec='$libname${shared_ext}.$major'
9588     shlibpath_var=LD_LIBRARY_PATH
9589   fi
9590   ;;
9591
9592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9593   version_type=freebsd-elf
9594   need_lib_prefix=no
9595   need_version=no
9596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9597   soname_spec='${libname}${release}${shared_ext}$major'
9598   shlibpath_var=LD_LIBRARY_PATH
9599   hardcode_into_libs=yes
9600   if test "$with_gnu_ld" = yes; then
9601     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9602     shlibpath_overrides_runpath=no
9603   else
9604     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9605     shlibpath_overrides_runpath=yes
9606     case $host_os in
9607       sco3.2v5*)
9608         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9609         ;;
9610     esac
9611   fi
9612   sys_lib_dlsearch_path_spec='/usr/lib'
9613   ;;
9614
9615 uts4*)
9616   version_type=linux
9617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618   soname_spec='${libname}${release}${shared_ext}$major'
9619   shlibpath_var=LD_LIBRARY_PATH
9620   ;;
9621
9622 *)
9623   dynamic_linker=no
9624   ;;
9625 esac
9626 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9627 echo "${ECHO_T}$dynamic_linker" >&6
9628 test "$dynamic_linker" = no && can_build_shared=no
9629
9630 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9631 if test "$GCC" = yes; then
9632   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9633 fi
9634
9635 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9636 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9637 hardcode_action=
9638 if test -n "$hardcode_libdir_flag_spec" || \
9639    test -n "$runpath_var" || \
9640    test "X$hardcode_automatic" = "Xyes" ; then
9641
9642   # We can hardcode non-existant directories.
9643   if test "$hardcode_direct" != no &&
9644      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9645      # have to relink, otherwise we might link with an installed library
9646      # when we should be linking with a yet-to-be-installed one
9647      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9648      test "$hardcode_minus_L" != no; then
9649     # Linking always hardcodes the temporary library directory.
9650     hardcode_action=relink
9651   else
9652     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9653     hardcode_action=immediate
9654   fi
9655 else
9656   # We cannot hardcode anything, or else we can only hardcode existing
9657   # directories.
9658   hardcode_action=unsupported
9659 fi
9660 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9661 echo "${ECHO_T}$hardcode_action" >&6
9662
9663 if test "$hardcode_action" = relink; then
9664   # Fast installation is not supported
9665   enable_fast_install=no
9666 elif test "$shlibpath_overrides_runpath" = yes ||
9667      test "$enable_shared" = no; then
9668   # Fast installation is not necessary
9669   enable_fast_install=needless
9670 fi
9671
9672 striplib=
9673 old_striplib=
9674 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9675 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9676 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9677   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9678   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9679   echo "$as_me:$LINENO: result: yes" >&5
9680 echo "${ECHO_T}yes" >&6
9681 else
9682 # FIXME - insert some real tests, host_os isn't really good enough
9683   case $host_os in
9684    darwin*)
9685        if test -n "$STRIP" ; then
9686          striplib="$STRIP -x"
9687          echo "$as_me:$LINENO: result: yes" >&5
9688 echo "${ECHO_T}yes" >&6
9689        else
9690   echo "$as_me:$LINENO: result: no" >&5
9691 echo "${ECHO_T}no" >&6
9692 fi
9693        ;;
9694    *)
9695   echo "$as_me:$LINENO: result: no" >&5
9696 echo "${ECHO_T}no" >&6
9697     ;;
9698   esac
9699 fi
9700
9701 if test "x$enable_dlopen" != xyes; then
9702   enable_dlopen=unknown
9703   enable_dlopen_self=unknown
9704   enable_dlopen_self_static=unknown
9705 else
9706   lt_cv_dlopen=no
9707   lt_cv_dlopen_libs=
9708
9709   case $host_os in
9710   beos*)
9711     lt_cv_dlopen="load_add_on"
9712     lt_cv_dlopen_libs=
9713     lt_cv_dlopen_self=yes
9714     ;;
9715
9716   mingw* | pw32*)
9717     lt_cv_dlopen="LoadLibrary"
9718     lt_cv_dlopen_libs=
9719    ;;
9720
9721   cygwin*)
9722     lt_cv_dlopen="dlopen"
9723     lt_cv_dlopen_libs=
9724    ;;
9725
9726   darwin*)
9727   # if libdl is installed we need to link against it
9728     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9729 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9730 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9731   echo $ECHO_N "(cached) $ECHO_C" >&6
9732 else
9733   ac_check_lib_save_LIBS=$LIBS
9734 LIBS="-ldl  $LIBS"
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h.  */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h.  */
9741
9742 /* Override any gcc2 internal prototype to avoid an error.  */
9743 #ifdef __cplusplus
9744 extern "C"
9745 #endif
9746 /* We use char because int might match the return type of a gcc2
9747    builtin and then its argument prototype would still apply.  */
9748 char dlopen ();
9749 int
9750 main ()
9751 {
9752 dlopen ();
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759   (eval $ac_link) 2>conftest.er1
9760   ac_status=$?
9761   grep -v '^ *+' conftest.er1 >conftest.err
9762   rm -f conftest.er1
9763   cat conftest.err >&5
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); } &&
9766          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; } &&
9772          { ac_try='test -s conftest$ac_exeext'
9773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774   (eval $ac_try) 2>&5
9775   ac_status=$?
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); }; }; then
9778   ac_cv_lib_dl_dlopen=yes
9779 else
9780   echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783 ac_cv_lib_dl_dlopen=no
9784 fi
9785 rm -f conftest.err conftest.$ac_objext \
9786       conftest$ac_exeext conftest.$ac_ext
9787 LIBS=$ac_check_lib_save_LIBS
9788 fi
9789 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9790 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9791 if test $ac_cv_lib_dl_dlopen = yes; then
9792   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9793 else
9794
9795     lt_cv_dlopen="dyld"
9796     lt_cv_dlopen_libs=
9797     lt_cv_dlopen_self=yes
9798
9799 fi
9800
9801    ;;
9802
9803   *)
9804     echo "$as_me:$LINENO: checking for shl_load" >&5
9805 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9806 if test "${ac_cv_func_shl_load+set}" = set; then
9807   echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809   cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h.  */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h.  */
9815 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9817 #define shl_load innocuous_shl_load
9818
9819 /* System header to define __stub macros and hopefully few prototypes,
9820     which can conflict with char shl_load (); below.
9821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9822     <limits.h> exists even on freestanding compilers.  */
9823
9824 #ifdef __STDC__
9825 # include <limits.h>
9826 #else
9827 # include <assert.h>
9828 #endif
9829
9830 #undef shl_load
9831
9832 /* Override any gcc2 internal prototype to avoid an error.  */
9833 #ifdef __cplusplus
9834 extern "C"
9835 {
9836 #endif
9837 /* We use char because int might match the return type of a gcc2
9838    builtin and then its argument prototype would still apply.  */
9839 char shl_load ();
9840 /* The GNU C library defines this for functions which it implements
9841     to always fail with ENOSYS.  Some functions are actually named
9842     something starting with __ and the normal name is an alias.  */
9843 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9844 choke me
9845 #else
9846 char (*f) () = shl_load;
9847 #endif
9848 #ifdef __cplusplus
9849 }
9850 #endif
9851
9852 int
9853 main ()
9854 {
9855 return f != shl_load;
9856   ;
9857   return 0;
9858 }
9859 _ACEOF
9860 rm -f conftest.$ac_objext conftest$ac_exeext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9862   (eval $ac_link) 2>conftest.er1
9863   ac_status=$?
9864   grep -v '^ *+' conftest.er1 >conftest.err
9865   rm -f conftest.er1
9866   cat conftest.err >&5
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); } &&
9869          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; } &&
9875          { ac_try='test -s conftest$ac_exeext'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_cv_func_shl_load=yes
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 ac_cv_func_shl_load=no
9887 fi
9888 rm -f conftest.err conftest.$ac_objext \
9889       conftest$ac_exeext conftest.$ac_ext
9890 fi
9891 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9892 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9893 if test $ac_cv_func_shl_load = yes; then
9894   lt_cv_dlopen="shl_load"
9895 else
9896   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9897 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9898 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9899   echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901   ac_check_lib_save_LIBS=$LIBS
9902 LIBS="-ldld  $LIBS"
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h.  */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h.  */
9909
9910 /* Override any gcc2 internal prototype to avoid an error.  */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 /* We use char because int might match the return type of a gcc2
9915    builtin and then its argument prototype would still apply.  */
9916 char shl_load ();
9917 int
9918 main ()
9919 {
9920 shl_load ();
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927   (eval $ac_link) 2>conftest.er1
9928   ac_status=$?
9929   grep -v '^ *+' conftest.er1 >conftest.err
9930   rm -f conftest.er1
9931   cat conftest.err >&5
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } &&
9934          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936   (eval $ac_try) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; } &&
9940          { ac_try='test -s conftest$ac_exeext'
9941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942   (eval $ac_try) 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; }; then
9946   ac_cv_lib_dld_shl_load=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 ac_cv_lib_dld_shl_load=no
9952 fi
9953 rm -f conftest.err conftest.$ac_objext \
9954       conftest$ac_exeext conftest.$ac_ext
9955 LIBS=$ac_check_lib_save_LIBS
9956 fi
9957 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9958 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9959 if test $ac_cv_lib_dld_shl_load = yes; then
9960   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9961 else
9962   echo "$as_me:$LINENO: checking for dlopen" >&5
9963 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9964 if test "${ac_cv_func_dlopen+set}" = set; then
9965   echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967   cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h.  */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h.  */
9973 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9975 #define dlopen innocuous_dlopen
9976
9977 /* System header to define __stub macros and hopefully few prototypes,
9978     which can conflict with char dlopen (); below.
9979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980     <limits.h> exists even on freestanding compilers.  */
9981
9982 #ifdef __STDC__
9983 # include <limits.h>
9984 #else
9985 # include <assert.h>
9986 #endif
9987
9988 #undef dlopen
9989
9990 /* Override any gcc2 internal prototype to avoid an error.  */
9991 #ifdef __cplusplus
9992 extern "C"
9993 {
9994 #endif
9995 /* We use char because int might match the return type of a gcc2
9996    builtin and then its argument prototype would still apply.  */
9997 char dlopen ();
9998 /* The GNU C library defines this for functions which it implements
9999     to always fail with ENOSYS.  Some functions are actually named
10000     something starting with __ and the normal name is an alias.  */
10001 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10002 choke me
10003 #else
10004 char (*f) () = dlopen;
10005 #endif
10006 #ifdef __cplusplus
10007 }
10008 #endif
10009
10010 int
10011 main ()
10012 {
10013 return f != dlopen;
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020   (eval $ac_link) 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029   (eval $ac_try) 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; } &&
10033          { ac_try='test -s conftest$ac_exeext'
10034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035   (eval $ac_try) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); }; }; then
10039   ac_cv_func_dlopen=yes
10040 else
10041   echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10043
10044 ac_cv_func_dlopen=no
10045 fi
10046 rm -f conftest.err conftest.$ac_objext \
10047       conftest$ac_exeext conftest.$ac_ext
10048 fi
10049 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10050 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10051 if test $ac_cv_func_dlopen = yes; then
10052   lt_cv_dlopen="dlopen"
10053 else
10054   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10055 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10056 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10057   echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059   ac_check_lib_save_LIBS=$LIBS
10060 LIBS="-ldl  $LIBS"
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h.  */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h.  */
10067
10068 /* Override any gcc2 internal prototype to avoid an error.  */
10069 #ifdef __cplusplus
10070 extern "C"
10071 #endif
10072 /* We use char because int might match the return type of a gcc2
10073    builtin and then its argument prototype would still apply.  */
10074 char dlopen ();
10075 int
10076 main ()
10077 {
10078 dlopen ();
10079   ;
10080   return 0;
10081 }
10082 _ACEOF
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085   (eval $ac_link) 2>conftest.er1
10086   ac_status=$?
10087   grep -v '^ *+' conftest.er1 >conftest.err
10088   rm -f conftest.er1
10089   cat conftest.err >&5
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); } &&
10092          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094   (eval $ac_try) 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); }; } &&
10098          { ac_try='test -s conftest$ac_exeext'
10099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100   (eval $ac_try) 2>&5
10101   ac_status=$?
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); }; }; then
10104   ac_cv_lib_dl_dlopen=yes
10105 else
10106   echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 ac_cv_lib_dl_dlopen=no
10110 fi
10111 rm -f conftest.err conftest.$ac_objext \
10112       conftest$ac_exeext conftest.$ac_ext
10113 LIBS=$ac_check_lib_save_LIBS
10114 fi
10115 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10116 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10117 if test $ac_cv_lib_dl_dlopen = yes; then
10118   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10119 else
10120   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10121 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10122 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10123   echo $ECHO_N "(cached) $ECHO_C" >&6
10124 else
10125   ac_check_lib_save_LIBS=$LIBS
10126 LIBS="-lsvld  $LIBS"
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h.  */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h.  */
10133
10134 /* Override any gcc2 internal prototype to avoid an error.  */
10135 #ifdef __cplusplus
10136 extern "C"
10137 #endif
10138 /* We use char because int might match the return type of a gcc2
10139    builtin and then its argument prototype would still apply.  */
10140 char dlopen ();
10141 int
10142 main ()
10143 {
10144 dlopen ();
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10151   (eval $ac_link) 2>conftest.er1
10152   ac_status=$?
10153   grep -v '^ *+' conftest.er1 >conftest.err
10154   rm -f conftest.er1
10155   cat conftest.err >&5
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); } &&
10158          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160   (eval $ac_try) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; } &&
10164          { ac_try='test -s conftest$ac_exeext'
10165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166   (eval $ac_try) 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); }; }; then
10170   ac_cv_lib_svld_dlopen=yes
10171 else
10172   echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175 ac_cv_lib_svld_dlopen=no
10176 fi
10177 rm -f conftest.err conftest.$ac_objext \
10178       conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10180 fi
10181 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10182 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10183 if test $ac_cv_lib_svld_dlopen = yes; then
10184   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10185 else
10186   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10187 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10188 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10189   echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191   ac_check_lib_save_LIBS=$LIBS
10192 LIBS="-ldld  $LIBS"
10193 cat >conftest.$ac_ext <<_ACEOF
10194 /* confdefs.h.  */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h.  */
10199
10200 /* Override any gcc2 internal prototype to avoid an error.  */
10201 #ifdef __cplusplus
10202 extern "C"
10203 #endif
10204 /* We use char because int might match the return type of a gcc2
10205    builtin and then its argument prototype would still apply.  */
10206 char dld_link ();
10207 int
10208 main ()
10209 {
10210 dld_link ();
10211   ;
10212   return 0;
10213 }
10214 _ACEOF
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10217   (eval $ac_link) 2>conftest.er1
10218   ac_status=$?
10219   grep -v '^ *+' conftest.er1 >conftest.err
10220   rm -f conftest.er1
10221   cat conftest.err >&5
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); } &&
10224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226   (eval $ac_try) 2>&5
10227   ac_status=$?
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); }; } &&
10230          { ac_try='test -s conftest$ac_exeext'
10231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232   (eval $ac_try) 2>&5
10233   ac_status=$?
10234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235   (exit $ac_status); }; }; then
10236   ac_cv_lib_dld_dld_link=yes
10237 else
10238   echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10240
10241 ac_cv_lib_dld_dld_link=no
10242 fi
10243 rm -f conftest.err conftest.$ac_objext \
10244       conftest$ac_exeext conftest.$ac_ext
10245 LIBS=$ac_check_lib_save_LIBS
10246 fi
10247 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10248 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10249 if test $ac_cv_lib_dld_dld_link = yes; then
10250   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10251 fi
10252
10253
10254 fi
10255
10256
10257 fi
10258
10259
10260 fi
10261
10262
10263 fi
10264
10265
10266 fi
10267
10268     ;;
10269   esac
10270
10271   if test "x$lt_cv_dlopen" != xno; then
10272     enable_dlopen=yes
10273   else
10274     enable_dlopen=no
10275   fi
10276
10277   case $lt_cv_dlopen in
10278   dlopen)
10279     save_CPPFLAGS="$CPPFLAGS"
10280     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10281
10282     save_LDFLAGS="$LDFLAGS"
10283     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10284
10285     save_LIBS="$LIBS"
10286     LIBS="$lt_cv_dlopen_libs $LIBS"
10287
10288     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10289 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10290 if test "${lt_cv_dlopen_self+set}" = set; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293           if test "$cross_compiling" = yes; then :
10294   lt_cv_dlopen_self=cross
10295 else
10296   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10297   lt_status=$lt_dlunknown
10298   cat > conftest.$ac_ext <<EOF
10299 #line 10299 "configure"
10300 #include "confdefs.h"
10301
10302 #if HAVE_DLFCN_H
10303 #include <dlfcn.h>
10304 #endif
10305
10306 #include <stdio.h>
10307
10308 #ifdef RTLD_GLOBAL
10309 #  define LT_DLGLOBAL           RTLD_GLOBAL
10310 #else
10311 #  ifdef DL_GLOBAL
10312 #    define LT_DLGLOBAL         DL_GLOBAL
10313 #  else
10314 #    define LT_DLGLOBAL         0
10315 #  endif
10316 #endif
10317
10318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10319    find out it does not work in some platform. */
10320 #ifndef LT_DLLAZY_OR_NOW
10321 #  ifdef RTLD_LAZY
10322 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10323 #  else
10324 #    ifdef DL_LAZY
10325 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10326 #    else
10327 #      ifdef RTLD_NOW
10328 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10329 #      else
10330 #        ifdef DL_NOW
10331 #          define LT_DLLAZY_OR_NOW      DL_NOW
10332 #        else
10333 #          define LT_DLLAZY_OR_NOW      0
10334 #        endif
10335 #      endif
10336 #    endif
10337 #  endif
10338 #endif
10339
10340 #ifdef __cplusplus
10341 extern "C" void exit (int);
10342 #endif
10343
10344 void fnord() { int i=42;}
10345 int main ()
10346 {
10347   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10348   int status = $lt_dlunknown;
10349
10350   if (self)
10351     {
10352       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10353       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10354       /* dlclose (self); */
10355     }
10356   else
10357     puts (dlerror ());
10358
10359     exit (status);
10360 }
10361 EOF
10362   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363   (eval $ac_link) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10367     (./conftest; exit; ) >&5 2>/dev/null
10368     lt_status=$?
10369     case x$lt_status in
10370       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10371       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10372       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10373     esac
10374   else :
10375     # compilation failed
10376     lt_cv_dlopen_self=no
10377   fi
10378 fi
10379 rm -fr conftest*
10380
10381
10382 fi
10383 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10384 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10385
10386     if test "x$lt_cv_dlopen_self" = xyes; then
10387       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10388       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10389 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10390 if test "${lt_cv_dlopen_self_static+set}" = set; then
10391   echo $ECHO_N "(cached) $ECHO_C" >&6
10392 else
10393           if test "$cross_compiling" = yes; then :
10394   lt_cv_dlopen_self_static=cross
10395 else
10396   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10397   lt_status=$lt_dlunknown
10398   cat > conftest.$ac_ext <<EOF
10399 #line 10399 "configure"
10400 #include "confdefs.h"
10401
10402 #if HAVE_DLFCN_H
10403 #include <dlfcn.h>
10404 #endif
10405
10406 #include <stdio.h>
10407
10408 #ifdef RTLD_GLOBAL
10409 #  define LT_DLGLOBAL           RTLD_GLOBAL
10410 #else
10411 #  ifdef DL_GLOBAL
10412 #    define LT_DLGLOBAL         DL_GLOBAL
10413 #  else
10414 #    define LT_DLGLOBAL         0
10415 #  endif
10416 #endif
10417
10418 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10419    find out it does not work in some platform. */
10420 #ifndef LT_DLLAZY_OR_NOW
10421 #  ifdef RTLD_LAZY
10422 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10423 #  else
10424 #    ifdef DL_LAZY
10425 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10426 #    else
10427 #      ifdef RTLD_NOW
10428 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10429 #      else
10430 #        ifdef DL_NOW
10431 #          define LT_DLLAZY_OR_NOW      DL_NOW
10432 #        else
10433 #          define LT_DLLAZY_OR_NOW      0
10434 #        endif
10435 #      endif
10436 #    endif
10437 #  endif
10438 #endif
10439
10440 #ifdef __cplusplus
10441 extern "C" void exit (int);
10442 #endif
10443
10444 void fnord() { int i=42;}
10445 int main ()
10446 {
10447   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10448   int status = $lt_dlunknown;
10449
10450   if (self)
10451     {
10452       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10453       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10454       /* dlclose (self); */
10455     }
10456   else
10457     puts (dlerror ());
10458
10459     exit (status);
10460 }
10461 EOF
10462   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463   (eval $ac_link) 2>&5
10464   ac_status=$?
10465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10467     (./conftest; exit; ) >&5 2>/dev/null
10468     lt_status=$?
10469     case x$lt_status in
10470       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10471       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10472       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10473     esac
10474   else :
10475     # compilation failed
10476     lt_cv_dlopen_self_static=no
10477   fi
10478 fi
10479 rm -fr conftest*
10480
10481
10482 fi
10483 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10484 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10485     fi
10486
10487     CPPFLAGS="$save_CPPFLAGS"
10488     LDFLAGS="$save_LDFLAGS"
10489     LIBS="$save_LIBS"
10490     ;;
10491   esac
10492
10493   case $lt_cv_dlopen_self in
10494   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10495   *) enable_dlopen_self=unknown ;;
10496   esac
10497
10498   case $lt_cv_dlopen_self_static in
10499   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10500   *) enable_dlopen_self_static=unknown ;;
10501   esac
10502 fi
10503
10504
10505 # Report which library types will actually be built
10506 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10507 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10508 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10509 echo "${ECHO_T}$can_build_shared" >&6
10510
10511 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10512 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10513 test "$can_build_shared" = "no" && enable_shared=no
10514
10515 # On AIX, shared libraries and static libraries use the same namespace, and
10516 # are all built from PIC.
10517 case $host_os in
10518 aix3*)
10519   test "$enable_shared" = yes && enable_static=no
10520   if test -n "$RANLIB"; then
10521     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10522     postinstall_cmds='$RANLIB $lib'
10523   fi
10524   ;;
10525
10526 aix4* | aix5*)
10527   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10528     test "$enable_shared" = yes && enable_static=no
10529   fi
10530     ;;
10531 esac
10532 echo "$as_me:$LINENO: result: $enable_shared" >&5
10533 echo "${ECHO_T}$enable_shared" >&6
10534
10535 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10536 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10537 # Make sure either enable_shared or enable_static is yes.
10538 test "$enable_shared" = yes || enable_static=yes
10539 echo "$as_me:$LINENO: result: $enable_static" >&5
10540 echo "${ECHO_T}$enable_static" >&6
10541
10542 # The else clause should only fire when bootstrapping the
10543 # libtool distribution, otherwise you forgot to ship ltmain.sh
10544 # with your package, and you will get complaints that there are
10545 # no rules to generate ltmain.sh.
10546 if test -f "$ltmain"; then
10547   # See if we are running on zsh, and set the options which allow our commands through
10548   # without removal of \ escapes.
10549   if test -n "${ZSH_VERSION+set}" ; then
10550     setopt NO_GLOB_SUBST
10551   fi
10552   # Now quote all the things that may contain metacharacters while being
10553   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10554   # variables and quote the copies for generation of the libtool script.
10555   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10556     SED SHELL STRIP \
10557     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10558     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10559     deplibs_check_method reload_flag reload_cmds need_locks \
10560     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10561     lt_cv_sys_global_symbol_to_c_name_address \
10562     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10563     old_postinstall_cmds old_postuninstall_cmds \
10564     compiler \
10565     CC \
10566     LD \
10567     lt_prog_compiler_wl \
10568     lt_prog_compiler_pic \
10569     lt_prog_compiler_static \
10570     lt_prog_compiler_no_builtin_flag \
10571     export_dynamic_flag_spec \
10572     thread_safe_flag_spec \
10573     whole_archive_flag_spec \
10574     enable_shared_with_static_runtimes \
10575     old_archive_cmds \
10576     old_archive_from_new_cmds \
10577     predep_objects \
10578     postdep_objects \
10579     predeps \
10580     postdeps \
10581     compiler_lib_search_path \
10582     archive_cmds \
10583     archive_expsym_cmds \
10584     postinstall_cmds \
10585     postuninstall_cmds \
10586     old_archive_from_expsyms_cmds \
10587     allow_undefined_flag \
10588     no_undefined_flag \
10589     export_symbols_cmds \
10590     hardcode_libdir_flag_spec \
10591     hardcode_libdir_flag_spec_ld \
10592     hardcode_libdir_separator \
10593     hardcode_automatic \
10594     module_cmds \
10595     module_expsym_cmds \
10596     lt_cv_prog_compiler_c_o \
10597     exclude_expsyms \
10598     include_expsyms; do
10599
10600     case $var in
10601     old_archive_cmds | \
10602     old_archive_from_new_cmds | \
10603     archive_cmds | \
10604     archive_expsym_cmds | \
10605     module_cmds | \
10606     module_expsym_cmds | \
10607     old_archive_from_expsyms_cmds | \
10608     export_symbols_cmds | \
10609     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10610     postinstall_cmds | postuninstall_cmds | \
10611     old_postinstall_cmds | old_postuninstall_cmds | \
10612     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10613       # Double-quote double-evaled strings.
10614       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10615       ;;
10616     *)
10617       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10618       ;;
10619     esac
10620   done
10621
10622   case $lt_echo in
10623   *'\$0 --fallback-echo"')
10624     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10625     ;;
10626   esac
10627
10628 cfgfile="${ofile}T"
10629   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10630   $rm -f "$cfgfile"
10631   { echo "$as_me:$LINENO: creating $ofile" >&5
10632 echo "$as_me: creating $ofile" >&6;}
10633
10634   cat <<__EOF__ >> "$cfgfile"
10635 #! $SHELL
10636
10637 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10638 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10639 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10640 #
10641 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10642 # Free Software Foundation, Inc.
10643 #
10644 # This file is part of GNU Libtool:
10645 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10646 #
10647 # This program is free software; you can redistribute it and/or modify
10648 # it under the terms of the GNU General Public License as published by
10649 # the Free Software Foundation; either version 2 of the License, or
10650 # (at your option) any later version.
10651 #
10652 # This program is distributed in the hope that it will be useful, but
10653 # WITHOUT ANY WARRANTY; without even the implied warranty of
10654 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10655 # General Public License for more details.
10656 #
10657 # You should have received a copy of the GNU General Public License
10658 # along with this program; if not, write to the Free Software
10659 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10660 #
10661 # As a special exception to the GNU General Public License, if you
10662 # distribute this file as part of a program that contains a
10663 # configuration script generated by Autoconf, you may include it under
10664 # the same distribution terms that you use for the rest of that program.
10665
10666 # A sed program that does not truncate output.
10667 SED=$lt_SED
10668
10669 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10670 Xsed="$SED -e 1s/^X//"
10671
10672 # The HP-UX ksh and POSIX shell print the target directory to stdout
10673 # if CDPATH is set.
10674 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10675
10676 # The names of the tagged configurations supported by this script.
10677 available_tags=
10678
10679 # ### BEGIN LIBTOOL CONFIG
10680
10681 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10682
10683 # Shell to use when invoking shell scripts.
10684 SHELL=$lt_SHELL
10685
10686 # Whether or not to build shared libraries.
10687 build_libtool_libs=$enable_shared
10688
10689 # Whether or not to build static libraries.
10690 build_old_libs=$enable_static
10691
10692 # Whether or not to add -lc for building shared libraries.
10693 build_libtool_need_lc=$archive_cmds_need_lc
10694
10695 # Whether or not to disallow shared libs when runtime libs are static
10696 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10697
10698 # Whether or not to optimize for fast installation.
10699 fast_install=$enable_fast_install
10700
10701 # The host system.
10702 host_alias=$host_alias
10703 host=$host
10704 host_os=$host_os
10705
10706 # The build system.
10707 build_alias=$build_alias
10708 build=$build
10709 build_os=$build_os
10710
10711 # An echo program that does not interpret backslashes.
10712 echo=$lt_echo
10713
10714 # The archiver.
10715 AR=$lt_AR
10716 AR_FLAGS=$lt_AR_FLAGS
10717
10718 # A C compiler.
10719 LTCC=$lt_LTCC
10720
10721 # LTCC compiler flags.
10722 LTCFLAGS=$lt_LTCFLAGS
10723
10724 # A language-specific compiler.
10725 CC=$lt_compiler
10726
10727 # Is the compiler the GNU C compiler?
10728 with_gcc=$GCC
10729
10730 # An ERE matcher.
10731 EGREP=$lt_EGREP
10732
10733 # The linker used to build libraries.
10734 LD=$lt_LD
10735
10736 # Whether we need hard or soft links.
10737 LN_S=$lt_LN_S
10738
10739 # A BSD-compatible nm program.
10740 NM=$lt_NM
10741
10742 # A symbol stripping program
10743 STRIP=$lt_STRIP
10744
10745 # Used to examine libraries when file_magic_cmd begins "file"
10746 MAGIC_CMD=$MAGIC_CMD
10747
10748 # Used on cygwin: DLL creation program.
10749 DLLTOOL="$DLLTOOL"
10750
10751 # Used on cygwin: object dumper.
10752 OBJDUMP="$OBJDUMP"
10753
10754 # Used on cygwin: assembler.
10755 AS="$AS"
10756
10757 # The name of the directory that contains temporary libtool files.
10758 objdir=$objdir
10759
10760 # How to create reloadable object files.
10761 reload_flag=$lt_reload_flag
10762 reload_cmds=$lt_reload_cmds
10763
10764 # How to pass a linker flag through the compiler.
10765 wl=$lt_lt_prog_compiler_wl
10766
10767 # Object file suffix (normally "o").
10768 objext="$ac_objext"
10769
10770 # Old archive suffix (normally "a").
10771 libext="$libext"
10772
10773 # Shared library suffix (normally ".so").
10774 shrext_cmds='$shrext_cmds'
10775
10776 # Executable file suffix (normally "").
10777 exeext="$exeext"
10778
10779 # Additional compiler flags for building library objects.
10780 pic_flag=$lt_lt_prog_compiler_pic
10781 pic_mode=$pic_mode
10782
10783 # What is the maximum length of a command?
10784 max_cmd_len=$lt_cv_sys_max_cmd_len
10785
10786 # Does compiler simultaneously support -c and -o options?
10787 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10788
10789 # Must we lock files when doing compilation?
10790 need_locks=$lt_need_locks
10791
10792 # Do we need the lib prefix for modules?
10793 need_lib_prefix=$need_lib_prefix
10794
10795 # Do we need a version for libraries?
10796 need_version=$need_version
10797
10798 # Whether dlopen is supported.
10799 dlopen_support=$enable_dlopen
10800
10801 # Whether dlopen of programs is supported.
10802 dlopen_self=$enable_dlopen_self
10803
10804 # Whether dlopen of statically linked programs is supported.
10805 dlopen_self_static=$enable_dlopen_self_static
10806
10807 # Compiler flag to prevent dynamic linking.
10808 link_static_flag=$lt_lt_prog_compiler_static
10809
10810 # Compiler flag to turn off builtin functions.
10811 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10812
10813 # Compiler flag to allow reflexive dlopens.
10814 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10815
10816 # Compiler flag to generate shared objects directly from archives.
10817 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10818
10819 # Compiler flag to generate thread-safe objects.
10820 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10821
10822 # Library versioning type.
10823 version_type=$version_type
10824
10825 # Format of library name prefix.
10826 libname_spec=$lt_libname_spec
10827
10828 # List of archive names.  First name is the real one, the rest are links.
10829 # The last name is the one that the linker finds with -lNAME.
10830 library_names_spec=$lt_library_names_spec
10831
10832 # The coded name of the library, if different from the real name.
10833 soname_spec=$lt_soname_spec
10834
10835 # Commands used to build and install an old-style archive.
10836 RANLIB=$lt_RANLIB
10837 old_archive_cmds=$lt_old_archive_cmds
10838 old_postinstall_cmds=$lt_old_postinstall_cmds
10839 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10840
10841 # Create an old-style archive from a shared archive.
10842 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10843
10844 # Create a temporary old-style archive to link instead of a shared archive.
10845 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10846
10847 # Commands used to build and install a shared archive.
10848 archive_cmds=$lt_archive_cmds
10849 archive_expsym_cmds=$lt_archive_expsym_cmds
10850 postinstall_cmds=$lt_postinstall_cmds
10851 postuninstall_cmds=$lt_postuninstall_cmds
10852
10853 # Commands used to build a loadable module (assumed same as above if empty)
10854 module_cmds=$lt_module_cmds
10855 module_expsym_cmds=$lt_module_expsym_cmds
10856
10857 # Commands to strip libraries.
10858 old_striplib=$lt_old_striplib
10859 striplib=$lt_striplib
10860
10861 # Dependencies to place before the objects being linked to create a
10862 # shared library.
10863 predep_objects=$lt_predep_objects
10864
10865 # Dependencies to place after the objects being linked to create a
10866 # shared library.
10867 postdep_objects=$lt_postdep_objects
10868
10869 # Dependencies to place before the objects being linked to create a
10870 # shared library.
10871 predeps=$lt_predeps
10872
10873 # Dependencies to place after the objects being linked to create a
10874 # shared library.
10875 postdeps=$lt_postdeps
10876
10877 # The library search path used internally by the compiler when linking
10878 # a shared library.
10879 compiler_lib_search_path=$lt_compiler_lib_search_path
10880
10881 # Method to check whether dependent libraries are shared objects.
10882 deplibs_check_method=$lt_deplibs_check_method
10883
10884 # Command to use when deplibs_check_method == file_magic.
10885 file_magic_cmd=$lt_file_magic_cmd
10886
10887 # Flag that allows shared libraries with undefined symbols to be built.
10888 allow_undefined_flag=$lt_allow_undefined_flag
10889
10890 # Flag that forces no undefined symbols.
10891 no_undefined_flag=$lt_no_undefined_flag
10892
10893 # Commands used to finish a libtool library installation in a directory.
10894 finish_cmds=$lt_finish_cmds
10895
10896 # Same as above, but a single script fragment to be evaled but not shown.
10897 finish_eval=$lt_finish_eval
10898
10899 # Take the output of nm and produce a listing of raw symbols and C names.
10900 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10901
10902 # Transform the output of nm in a proper C declaration
10903 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10904
10905 # Transform the output of nm in a C name address pair
10906 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10907
10908 # This is the shared library runtime path variable.
10909 runpath_var=$runpath_var
10910
10911 # This is the shared library path variable.
10912 shlibpath_var=$shlibpath_var
10913
10914 # Is shlibpath searched before the hard-coded library search path?
10915 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10916
10917 # How to hardcode a shared library path into an executable.
10918 hardcode_action=$hardcode_action
10919
10920 # Whether we should hardcode library paths into libraries.
10921 hardcode_into_libs=$hardcode_into_libs
10922
10923 # Flag to hardcode \$libdir into a binary during linking.
10924 # This must work even if \$libdir does not exist.
10925 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10926
10927 # If ld is used when linking, flag to hardcode \$libdir into
10928 # a binary during linking. This must work even if \$libdir does
10929 # not exist.
10930 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10931
10932 # Whether we need a single -rpath flag with a separated argument.
10933 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10934
10935 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10936 # resulting binary.
10937 hardcode_direct=$hardcode_direct
10938
10939 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10940 # resulting binary.
10941 hardcode_minus_L=$hardcode_minus_L
10942
10943 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10944 # the resulting binary.
10945 hardcode_shlibpath_var=$hardcode_shlibpath_var
10946
10947 # Set to yes if building a shared library automatically hardcodes DIR into the library
10948 # and all subsequent libraries and executables linked against it.
10949 hardcode_automatic=$hardcode_automatic
10950
10951 # Variables whose values should be saved in libtool wrapper scripts and
10952 # restored at relink time.
10953 variables_saved_for_relink="$variables_saved_for_relink"
10954
10955 # Whether libtool must link a program against all its dependency libraries.
10956 link_all_deplibs=$link_all_deplibs
10957
10958 # Compile-time system search path for libraries
10959 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10960
10961 # Run-time system search path for libraries
10962 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10963
10964 # Fix the shell variable \$srcfile for the compiler.
10965 fix_srcfile_path="$fix_srcfile_path"
10966
10967 # Set to yes if exported symbols are required.
10968 always_export_symbols=$always_export_symbols
10969
10970 # The commands to list exported symbols.
10971 export_symbols_cmds=$lt_export_symbols_cmds
10972
10973 # The commands to extract the exported symbol list from a shared archive.
10974 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10975
10976 # Symbols that should not be listed in the preloaded symbols.
10977 exclude_expsyms=$lt_exclude_expsyms
10978
10979 # Symbols that must always be exported.
10980 include_expsyms=$lt_include_expsyms
10981
10982 # ### END LIBTOOL CONFIG
10983
10984 __EOF__
10985
10986
10987   case $host_os in
10988   aix3*)
10989     cat <<\EOF >> "$cfgfile"
10990
10991 # AIX sometimes has problems with the GCC collect2 program.  For some
10992 # reason, if we set the COLLECT_NAMES environment variable, the problems
10993 # vanish in a puff of smoke.
10994 if test "X${COLLECT_NAMES+set}" != Xset; then
10995   COLLECT_NAMES=
10996   export COLLECT_NAMES
10997 fi
10998 EOF
10999     ;;
11000   esac
11001
11002   # We use sed instead of cat because bash on DJGPP gets confused if
11003   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11004   # text mode, it properly converts lines to CR/LF.  This bash problem
11005   # is reportedly fixed, but why not run on old versions too?
11006   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11007
11008   mv -f "$cfgfile" "$ofile" || \
11009     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11010   chmod +x "$ofile"
11011
11012 else
11013   # If there is no Makefile yet, we rely on a make rule to execute
11014   # `config.status --recheck' to rerun these tests and create the
11015   # libtool script then.
11016   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11017   if test -f "$ltmain_in"; then
11018     test -f Makefile && make "$ltmain"
11019   fi
11020 fi
11021
11022
11023 ac_ext=c
11024 ac_cpp='$CPP $CPPFLAGS'
11025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11028
11029 CC="$lt_save_CC"
11030
11031
11032 # Check whether --with-tags or --without-tags was given.
11033 if test "${with_tags+set}" = set; then
11034   withval="$with_tags"
11035   tagnames="$withval"
11036 fi;
11037
11038 if test -f "$ltmain" && test -n "$tagnames"; then
11039   if test ! -f "${ofile}"; then
11040     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11041 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11042   fi
11043
11044   if test -z "$LTCC"; then
11045     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11046     if test -z "$LTCC"; then
11047       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11048 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11049     else
11050       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11051 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11052     fi
11053   fi
11054   if test -z "$LTCFLAGS"; then
11055     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11056   fi
11057
11058   # Extract list of available tagged configurations in $ofile.
11059   # Note that this assumes the entire list is on one line.
11060   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11061
11062   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11063   for tagname in $tagnames; do
11064     IFS="$lt_save_ifs"
11065     # Check whether tagname contains only valid characters
11066     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11067     "") ;;
11068     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11069 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11070    { (exit 1); exit 1; }; }
11071         ;;
11072     esac
11073
11074     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11075     then
11076       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11077 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11078    { (exit 1); exit 1; }; }
11079     fi
11080
11081     # Update the list of available tags.
11082     if test -n "$tagname"; then
11083       echo appending configuration tag \"$tagname\" to $ofile
11084
11085       case $tagname in
11086       CXX)
11087         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11088             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11089             (test "X$CXX" != "Xg++"))) ; then
11090           ac_ext=cc
11091 ac_cpp='$CXXCPP $CPPFLAGS'
11092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11095
11096
11097
11098
11099 archive_cmds_need_lc_CXX=no
11100 allow_undefined_flag_CXX=
11101 always_export_symbols_CXX=no
11102 archive_expsym_cmds_CXX=
11103 export_dynamic_flag_spec_CXX=
11104 hardcode_direct_CXX=no
11105 hardcode_libdir_flag_spec_CXX=
11106 hardcode_libdir_flag_spec_ld_CXX=
11107 hardcode_libdir_separator_CXX=
11108 hardcode_minus_L_CXX=no
11109 hardcode_shlibpath_var_CXX=unsupported
11110 hardcode_automatic_CXX=no
11111 module_cmds_CXX=
11112 module_expsym_cmds_CXX=
11113 link_all_deplibs_CXX=unknown
11114 old_archive_cmds_CXX=$old_archive_cmds
11115 no_undefined_flag_CXX=
11116 whole_archive_flag_spec_CXX=
11117 enable_shared_with_static_runtimes_CXX=no
11118
11119 # Dependencies to place before and after the object being linked:
11120 predep_objects_CXX=
11121 postdep_objects_CXX=
11122 predeps_CXX=
11123 postdeps_CXX=
11124 compiler_lib_search_path_CXX=
11125
11126 # Source file extension for C++ test sources.
11127 ac_ext=cpp
11128
11129 # Object file extension for compiled C++ test sources.
11130 objext=o
11131 objext_CXX=$objext
11132
11133 # Code to be used in simple compile tests
11134 lt_simple_compile_test_code="int some_variable = 0;\n"
11135
11136 # Code to be used in simple link tests
11137 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11138
11139 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11140
11141 # If no C compiler was specified, use CC.
11142 LTCC=${LTCC-"$CC"}
11143
11144 # If no C compiler flags were specified, use CFLAGS.
11145 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11146
11147 # Allow CC to be a program name with arguments.
11148 compiler=$CC
11149
11150
11151 # save warnings/boilerplate of simple test code
11152 ac_outfile=conftest.$ac_objext
11153 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11154 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11155 _lt_compiler_boilerplate=`cat conftest.err`
11156 $rm conftest*
11157
11158 ac_outfile=conftest.$ac_objext
11159 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11160 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11161 _lt_linker_boilerplate=`cat conftest.err`
11162 $rm conftest*
11163
11164
11165 # Allow CC to be a program name with arguments.
11166 lt_save_CC=$CC
11167 lt_save_LD=$LD
11168 lt_save_GCC=$GCC
11169 GCC=$GXX
11170 lt_save_with_gnu_ld=$with_gnu_ld
11171 lt_save_path_LD=$lt_cv_path_LD
11172 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11173   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11174 else
11175   $as_unset lt_cv_prog_gnu_ld
11176 fi
11177 if test -n "${lt_cv_path_LDCXX+set}"; then
11178   lt_cv_path_LD=$lt_cv_path_LDCXX
11179 else
11180   $as_unset lt_cv_path_LD
11181 fi
11182 test -z "${LDCXX+set}" || LD=$LDCXX
11183 CC=${CXX-"c++"}
11184 compiler=$CC
11185 compiler_CXX=$CC
11186 for cc_temp in $compiler""; do
11187   case $cc_temp in
11188     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11189     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11190     \-*) ;;
11191     *) break;;
11192   esac
11193 done
11194 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11195
11196
11197 # We don't want -fno-exception wen compiling C++ code, so set the
11198 # no_builtin_flag separately
11199 if test "$GXX" = yes; then
11200   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11201 else
11202   lt_prog_compiler_no_builtin_flag_CXX=
11203 fi
11204
11205 if test "$GXX" = yes; then
11206   # Set up default GNU C++ configuration
11207
11208
11209 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11210 if test "${with_gnu_ld+set}" = set; then
11211   withval="$with_gnu_ld"
11212   test "$withval" = no || with_gnu_ld=yes
11213 else
11214   with_gnu_ld=no
11215 fi;
11216 ac_prog=ld
11217 if test "$GCC" = yes; then
11218   # Check if gcc -print-prog-name=ld gives a path.
11219   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11220 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11221   case $host in
11222   *-*-mingw*)
11223     # gcc leaves a trailing carriage return which upsets mingw
11224     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11225   *)
11226     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11227   esac
11228   case $ac_prog in
11229     # Accept absolute paths.
11230     [\\/]* | ?:[\\/]*)
11231       re_direlt='/[^/][^/]*/\.\./'
11232       # Canonicalize the pathname of ld
11233       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11234       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11235         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11236       done
11237       test -z "$LD" && LD="$ac_prog"
11238       ;;
11239   "")
11240     # If it fails, then pretend we aren't using GCC.
11241     ac_prog=ld
11242     ;;
11243   *)
11244     # If it is relative, then search for the first ld in PATH.
11245     with_gnu_ld=unknown
11246     ;;
11247   esac
11248 elif test "$with_gnu_ld" = yes; then
11249   echo "$as_me:$LINENO: checking for GNU ld" >&5
11250 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11251 else
11252   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11253 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11254 fi
11255 if test "${lt_cv_path_LD+set}" = set; then
11256   echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258   if test -z "$LD"; then
11259   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11260   for ac_dir in $PATH; do
11261     IFS="$lt_save_ifs"
11262     test -z "$ac_dir" && ac_dir=.
11263     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11264       lt_cv_path_LD="$ac_dir/$ac_prog"
11265       # Check to see if the program is GNU ld.  I'd rather use --version,
11266       # but apparently some variants of GNU ld only accept -v.
11267       # Break only if it was the GNU/non-GNU ld that we prefer.
11268       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11269       *GNU* | *'with BFD'*)
11270         test "$with_gnu_ld" != no && break
11271         ;;
11272       *)
11273         test "$with_gnu_ld" != yes && break
11274         ;;
11275       esac
11276     fi
11277   done
11278   IFS="$lt_save_ifs"
11279 else
11280   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11281 fi
11282 fi
11283
11284 LD="$lt_cv_path_LD"
11285 if test -n "$LD"; then
11286   echo "$as_me:$LINENO: result: $LD" >&5
11287 echo "${ECHO_T}$LD" >&6
11288 else
11289   echo "$as_me:$LINENO: result: no" >&5
11290 echo "${ECHO_T}no" >&6
11291 fi
11292 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11293 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11294    { (exit 1); exit 1; }; }
11295 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11296 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11297 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11298   echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11301 case `$LD -v 2>&1 </dev/null` in
11302 *GNU* | *'with BFD'*)
11303   lt_cv_prog_gnu_ld=yes
11304   ;;
11305 *)
11306   lt_cv_prog_gnu_ld=no
11307   ;;
11308 esac
11309 fi
11310 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11311 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11312 with_gnu_ld=$lt_cv_prog_gnu_ld
11313
11314
11315
11316   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11317   # archiving commands below assume that GNU ld is being used.
11318   if test "$with_gnu_ld" = yes; then
11319     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11320     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'
11321
11322     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11323     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11324
11325     # If archive_cmds runs LD, not CC, wlarc should be empty
11326     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11327     #     investigate it a little bit more. (MM)
11328     wlarc='${wl}'
11329
11330     # ancient GNU ld didn't support --whole-archive et. al.
11331     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11332         grep 'no-whole-archive' > /dev/null; then
11333       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11334     else
11335       whole_archive_flag_spec_CXX=
11336     fi
11337   else
11338     with_gnu_ld=no
11339     wlarc=
11340
11341     # A generic and very simple default shared library creation
11342     # command for GNU C++ for the case where it uses the native
11343     # linker, instead of GNU ld.  If possible, this setting should
11344     # overridden to take advantage of the native linker features on
11345     # the platform it is being used on.
11346     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11347   fi
11348
11349   # Commands to make compiler produce verbose output that lists
11350   # what "hidden" libraries, object files and flags are used when
11351   # linking a shared library.
11352   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11353
11354 else
11355   GXX=no
11356   with_gnu_ld=no
11357   wlarc=
11358 fi
11359
11360 # PORTME: fill in a description of your system's C++ link characteristics
11361 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11362 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11363 ld_shlibs_CXX=yes
11364 case $host_os in
11365   aix3*)
11366     # FIXME: insert proper C++ library support
11367     ld_shlibs_CXX=no
11368     ;;
11369   aix4* | aix5*)
11370     if test "$host_cpu" = ia64; then
11371       # On IA64, the linker does run time linking by default, so we don't
11372       # have to do anything special.
11373       aix_use_runtimelinking=no
11374       exp_sym_flag='-Bexport'
11375       no_entry_flag=""
11376     else
11377       aix_use_runtimelinking=no
11378
11379       # Test if we are trying to use run time linking or normal
11380       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11381       # need to do runtime linking.
11382       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11383         for ld_flag in $LDFLAGS; do
11384           case $ld_flag in
11385           *-brtl*)
11386             aix_use_runtimelinking=yes
11387             break
11388             ;;
11389           esac
11390         done
11391         ;;
11392       esac
11393
11394       exp_sym_flag='-bexport'
11395       no_entry_flag='-bnoentry'
11396     fi
11397
11398     # When large executables or shared objects are built, AIX ld can
11399     # have problems creating the table of contents.  If linking a library
11400     # or program results in "error TOC overflow" add -mminimal-toc to
11401     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11402     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11403
11404     archive_cmds_CXX=''
11405     hardcode_direct_CXX=yes
11406     hardcode_libdir_separator_CXX=':'
11407     link_all_deplibs_CXX=yes
11408
11409     if test "$GXX" = yes; then
11410       case $host_os in aix4.[012]|aix4.[012].*)
11411       # We only want to do this on AIX 4.2 and lower, the check
11412       # below for broken collect2 doesn't work under 4.3+
11413         collect2name=`${CC} -print-prog-name=collect2`
11414         if test -f "$collect2name" && \
11415            strings "$collect2name" | grep resolve_lib_name >/dev/null
11416         then
11417           # We have reworked collect2
11418           hardcode_direct_CXX=yes
11419         else
11420           # We have old collect2
11421           hardcode_direct_CXX=unsupported
11422           # It fails to find uninstalled libraries when the uninstalled
11423           # path is not listed in the libpath.  Setting hardcode_minus_L
11424           # to unsupported forces relinking
11425           hardcode_minus_L_CXX=yes
11426           hardcode_libdir_flag_spec_CXX='-L$libdir'
11427           hardcode_libdir_separator_CXX=
11428         fi
11429         ;;
11430       esac
11431       shared_flag='-shared'
11432       if test "$aix_use_runtimelinking" = yes; then
11433         shared_flag="$shared_flag "'${wl}-G'
11434       fi
11435     else
11436       # not using gcc
11437       if test "$host_cpu" = ia64; then
11438         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11439         # chokes on -Wl,-G. The following line is correct:
11440         shared_flag='-G'
11441       else
11442         if test "$aix_use_runtimelinking" = yes; then
11443           shared_flag='${wl}-G'
11444         else
11445           shared_flag='${wl}-bM:SRE'
11446         fi
11447       fi
11448     fi
11449
11450     # It seems that -bexpall does not export symbols beginning with
11451     # underscore (_), so it is better to generate a list of symbols to export.
11452     always_export_symbols_CXX=yes
11453     if test "$aix_use_runtimelinking" = yes; then
11454       # Warning - without using the other runtime loading flags (-brtl),
11455       # -berok will link without error, but may produce a broken library.
11456       allow_undefined_flag_CXX='-berok'
11457       # Determine the default libpath from the value encoded in an empty executable.
11458       cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h.  */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h.  */
11464
11465 int
11466 main ()
11467 {
11468
11469   ;
11470   return 0;
11471 }
11472 _ACEOF
11473 rm -f conftest.$ac_objext conftest$ac_exeext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11475   (eval $ac_link) 2>conftest.er1
11476   ac_status=$?
11477   grep -v '^ *+' conftest.er1 >conftest.err
11478   rm -f conftest.er1
11479   cat conftest.err >&5
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); } &&
11482          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484   (eval $ac_try) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); }; } &&
11488          { ac_try='test -s conftest$ac_exeext'
11489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490   (eval $ac_try) 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; }; then
11494
11495 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11496 }'`
11497 # Check for a 64-bit object if we didn't find anything.
11498 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; }
11499 }'`; fi
11500 else
11501   echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504 fi
11505 rm -f conftest.err conftest.$ac_objext \
11506       conftest$ac_exeext conftest.$ac_ext
11507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11508
11509       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11510
11511       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"
11512      else
11513       if test "$host_cpu" = ia64; then
11514         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11515         allow_undefined_flag_CXX="-z nodefs"
11516         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"
11517       else
11518         # Determine the default libpath from the value encoded in an empty executable.
11519         cat >conftest.$ac_ext <<_ACEOF
11520 /* confdefs.h.  */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h.  */
11525
11526 int
11527 main ()
11528 {
11529
11530   ;
11531   return 0;
11532 }
11533 _ACEOF
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11536   (eval $ac_link) 2>conftest.er1
11537   ac_status=$?
11538   grep -v '^ *+' conftest.er1 >conftest.err
11539   rm -f conftest.er1
11540   cat conftest.err >&5
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } &&
11543          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545   (eval $ac_try) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); }; } &&
11549          { ac_try='test -s conftest$ac_exeext'
11550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551   (eval $ac_try) 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; }; then
11555
11556 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11557 }'`
11558 # Check for a 64-bit object if we didn't find anything.
11559 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; }
11560 }'`; fi
11561 else
11562   echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565 fi
11566 rm -f conftest.err conftest.$ac_objext \
11567       conftest$ac_exeext conftest.$ac_ext
11568 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11569
11570         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11571         # Warning - without using the other run time loading flags,
11572         # -berok will link without error, but may produce a broken library.
11573         no_undefined_flag_CXX=' ${wl}-bernotok'
11574         allow_undefined_flag_CXX=' ${wl}-berok'
11575         # Exported symbols can be pulled into shared objects from archives
11576         whole_archive_flag_spec_CXX='$convenience'
11577         archive_cmds_need_lc_CXX=yes
11578         # This is similar to how AIX traditionally builds its shared libraries.
11579         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'
11580       fi
11581     fi
11582     ;;
11583
11584   beos*)
11585     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11586       allow_undefined_flag_CXX=unsupported
11587       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11588       # support --undefined.  This deserves some investigation.  FIXME
11589       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11590     else
11591       ld_shlibs_CXX=no
11592     fi
11593     ;;
11594
11595   chorus*)
11596     case $cc_basename in
11597       *)
11598         # FIXME: insert proper C++ library support
11599         ld_shlibs_CXX=no
11600         ;;
11601     esac
11602     ;;
11603
11604   cygwin* | mingw* | pw32*)
11605     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11606     # as there is no search path for DLLs.
11607     hardcode_libdir_flag_spec_CXX='-L$libdir'
11608     allow_undefined_flag_CXX=unsupported
11609     always_export_symbols_CXX=no
11610     enable_shared_with_static_runtimes_CXX=yes
11611
11612     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11613       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'
11614       # If the export-symbols file already is a .def file (1st line
11615       # is EXPORTS), use it as is; otherwise, prepend...
11616       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11617         cp $export_symbols $output_objdir/$soname.def;
11618       else
11619         echo EXPORTS > $output_objdir/$soname.def;
11620         cat $export_symbols >> $output_objdir/$soname.def;
11621       fi~
11622       $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'
11623     else
11624       ld_shlibs_CXX=no
11625     fi
11626   ;;
11627       darwin* | rhapsody*)
11628         case $host_os in
11629         rhapsody* | darwin1.[012])
11630          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11631          ;;
11632        *) # Darwin 1.3 on
11633          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11634            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11635          else
11636            case ${MACOSX_DEPLOYMENT_TARGET} in
11637              10.[012])
11638                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11639                ;;
11640              10.*)
11641                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11642                ;;
11643            esac
11644          fi
11645          ;;
11646         esac
11647       archive_cmds_need_lc_CXX=no
11648       hardcode_direct_CXX=no
11649       hardcode_automatic_CXX=yes
11650       hardcode_shlibpath_var_CXX=unsupported
11651       whole_archive_flag_spec_CXX=''
11652       link_all_deplibs_CXX=yes
11653
11654     if test "$GXX" = yes ; then
11655       lt_int_apple_cc_single_mod=no
11656       output_verbose_link_cmd='echo'
11657       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11658        lt_int_apple_cc_single_mod=yes
11659       fi
11660       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11661        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11662       else
11663           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'
11664         fi
11665         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11666         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11667           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11668             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}'
11669           else
11670             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}'
11671           fi
11672             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}'
11673       else
11674       case $cc_basename in
11675         xlc*)
11676          output_verbose_link_cmd='echo'
11677           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'
11678           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11679           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11680           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}'
11681           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}'
11682           ;;
11683        *)
11684          ld_shlibs_CXX=no
11685           ;;
11686       esac
11687       fi
11688         ;;
11689
11690   dgux*)
11691     case $cc_basename in
11692       ec++*)
11693         # FIXME: insert proper C++ library support
11694         ld_shlibs_CXX=no
11695         ;;
11696       ghcx*)
11697         # Green Hills C++ Compiler
11698         # FIXME: insert proper C++ library support
11699         ld_shlibs_CXX=no
11700         ;;
11701       *)
11702         # FIXME: insert proper C++ library support
11703         ld_shlibs_CXX=no
11704         ;;
11705     esac
11706     ;;
11707   freebsd[12]*)
11708     # C++ shared libraries reported to be fairly broken before switch to ELF
11709     ld_shlibs_CXX=no
11710     ;;
11711   freebsd-elf*)
11712     archive_cmds_need_lc_CXX=no
11713     ;;
11714   freebsd* | dragonfly*)
11715     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11716     # conventions
11717     ld_shlibs_CXX=yes
11718     ;;
11719   gnu*)
11720     ;;
11721   hpux9*)
11722     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11723     hardcode_libdir_separator_CXX=:
11724     export_dynamic_flag_spec_CXX='${wl}-E'
11725     hardcode_direct_CXX=yes
11726     hardcode_minus_L_CXX=yes # Not in the search PATH,
11727                                 # but as the default
11728                                 # location of the library.
11729
11730     case $cc_basename in
11731     CC*)
11732       # FIXME: insert proper C++ library support
11733       ld_shlibs_CXX=no
11734       ;;
11735     aCC*)
11736       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'
11737       # Commands to make compiler produce verbose output that lists
11738       # what "hidden" libraries, object files and flags are used when
11739       # linking a shared library.
11740       #
11741       # There doesn't appear to be a way to prevent this compiler from
11742       # explicitly linking system object files so we need to strip them
11743       # from the output so that they don't get included in the library
11744       # dependencies.
11745       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'
11746       ;;
11747     *)
11748       if test "$GXX" = yes; then
11749         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'
11750       else
11751         # FIXME: insert proper C++ library support
11752         ld_shlibs_CXX=no
11753       fi
11754       ;;
11755     esac
11756     ;;
11757   hpux10*|hpux11*)
11758     if test $with_gnu_ld = no; then
11759       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11760       hardcode_libdir_separator_CXX=:
11761
11762       case $host_cpu in
11763       hppa*64*|ia64*)
11764         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11765         ;;
11766       *)
11767         export_dynamic_flag_spec_CXX='${wl}-E'
11768         ;;
11769       esac
11770     fi
11771     case $host_cpu in
11772     hppa*64*|ia64*)
11773       hardcode_direct_CXX=no
11774       hardcode_shlibpath_var_CXX=no
11775       ;;
11776     *)
11777       hardcode_direct_CXX=yes
11778       hardcode_minus_L_CXX=yes # Not in the search PATH,
11779                                               # but as the default
11780                                               # location of the library.
11781       ;;
11782     esac
11783
11784     case $cc_basename in
11785       CC*)
11786         # FIXME: insert proper C++ library support
11787         ld_shlibs_CXX=no
11788         ;;
11789       aCC*)
11790         case $host_cpu in
11791         hppa*64*)
11792           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11793           ;;
11794         ia64*)
11795           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11796           ;;
11797         *)
11798           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11799           ;;
11800         esac
11801         # Commands to make compiler produce verbose output that lists
11802         # what "hidden" libraries, object files and flags are used when
11803         # linking a shared library.
11804         #
11805         # There doesn't appear to be a way to prevent this compiler from
11806         # explicitly linking system object files so we need to strip them
11807         # from the output so that they don't get included in the library
11808         # dependencies.
11809         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'
11810         ;;
11811       *)
11812         if test "$GXX" = yes; then
11813           if test $with_gnu_ld = no; then
11814             case $host_cpu in
11815             hppa*64*)
11816               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11817               ;;
11818             ia64*)
11819               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11820               ;;
11821             *)
11822               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'
11823               ;;
11824             esac
11825           fi
11826         else
11827           # FIXME: insert proper C++ library support
11828           ld_shlibs_CXX=no
11829         fi
11830         ;;
11831     esac
11832     ;;
11833   interix3*)
11834     hardcode_direct_CXX=no
11835     hardcode_shlibpath_var_CXX=no
11836     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11837     export_dynamic_flag_spec_CXX='${wl}-E'
11838     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11839     # Instead, shared libraries are loaded at an image base (0x10000000 by
11840     # default) and relocated if they conflict, which is a slow very memory
11841     # consuming and fragmenting process.  To avoid this, we pick a random,
11842     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11843     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11844     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'
11845     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'
11846     ;;
11847   irix5* | irix6*)
11848     case $cc_basename in
11849       CC*)
11850         # SGI C++
11851         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'
11852
11853         # Archives containing C++ object files must be created using
11854         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11855         # necessary to make sure instantiated templates are included
11856         # in the archive.
11857         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11858         ;;
11859       *)
11860         if test "$GXX" = yes; then
11861           if test "$with_gnu_ld" = no; then
11862             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'
11863           else
11864             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'
11865           fi
11866         fi
11867         link_all_deplibs_CXX=yes
11868         ;;
11869     esac
11870     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11871     hardcode_libdir_separator_CXX=:
11872     ;;
11873   linux* | k*bsd*-gnu)
11874     case $cc_basename in
11875       KCC*)
11876         # Kuck and Associates, Inc. (KAI) C++ Compiler
11877
11878         # KCC will only create a shared library if the output file
11879         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11880         # to its proper name (with version) after linking.
11881         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'
11882         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'
11883         # Commands to make compiler produce verbose output that lists
11884         # what "hidden" libraries, object files and flags are used when
11885         # linking a shared library.
11886         #
11887         # There doesn't appear to be a way to prevent this compiler from
11888         # explicitly linking system object files so we need to strip them
11889         # from the output so that they don't get included in the library
11890         # dependencies.
11891         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'
11892
11893         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11894         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11895
11896         # Archives containing C++ object files must be created using
11897         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11898         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11899         ;;
11900       icpc*)
11901         # Intel C++
11902         with_gnu_ld=yes
11903         # version 8.0 and above of icpc choke on multiply defined symbols
11904         # if we add $predep_objects and $postdep_objects, however 7.1 and
11905         # earlier do not add the objects themselves.
11906         case `$CC -V 2>&1` in
11907         *"Version 7."*)
11908           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11909           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'
11910           ;;
11911         *)  # Version 8.0 or newer
11912           tmp_idyn=
11913           case $host_cpu in
11914             ia64*) tmp_idyn=' -i_dynamic';;
11915           esac
11916           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11917           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'
11918           ;;
11919         esac
11920         archive_cmds_need_lc_CXX=no
11921         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11922         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11923         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11924         ;;
11925       pgCC*)
11926         # Portland Group C++ compiler
11927         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11928         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'
11929
11930         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11931         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11932         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'
11933         ;;
11934       cxx*)
11935         # Compaq C++
11936         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11937         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'
11938
11939         runpath_var=LD_RUN_PATH
11940         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11941         hardcode_libdir_separator_CXX=:
11942
11943         # Commands to make compiler produce verbose output that lists
11944         # what "hidden" libraries, object files and flags are used when
11945         # linking a shared library.
11946         #
11947         # There doesn't appear to be a way to prevent this compiler from
11948         # explicitly linking system object files so we need to strip them
11949         # from the output so that they don't get included in the library
11950         # dependencies.
11951         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'
11952         ;;
11953     esac
11954     ;;
11955   lynxos*)
11956     # FIXME: insert proper C++ library support
11957     ld_shlibs_CXX=no
11958     ;;
11959   m88k*)
11960     # FIXME: insert proper C++ library support
11961     ld_shlibs_CXX=no
11962     ;;
11963   mvs*)
11964     case $cc_basename in
11965       cxx*)
11966         # FIXME: insert proper C++ library support
11967         ld_shlibs_CXX=no
11968         ;;
11969       *)
11970         # FIXME: insert proper C++ library support
11971         ld_shlibs_CXX=no
11972         ;;
11973     esac
11974     ;;
11975   netbsd* | netbsdelf*-gnu)
11976     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11977       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11978       wlarc=
11979       hardcode_libdir_flag_spec_CXX='-R$libdir'
11980       hardcode_direct_CXX=yes
11981       hardcode_shlibpath_var_CXX=no
11982     fi
11983     # Workaround some broken pre-1.5 toolchains
11984     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11985     ;;
11986   openbsd2*)
11987     # C++ shared libraries are fairly broken
11988     ld_shlibs_CXX=no
11989     ;;
11990   openbsd*)
11991     hardcode_direct_CXX=yes
11992     hardcode_shlibpath_var_CXX=no
11993     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11994     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11995     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11996       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11997       export_dynamic_flag_spec_CXX='${wl}-E'
11998       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11999     fi
12000     output_verbose_link_cmd='echo'
12001     ;;
12002   osf3*)
12003     case $cc_basename in
12004       KCC*)
12005         # Kuck and Associates, Inc. (KAI) C++ Compiler
12006
12007         # KCC will only create a shared library if the output file
12008         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12009         # to its proper name (with version) after linking.
12010         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'
12011
12012         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12013         hardcode_libdir_separator_CXX=:
12014
12015         # Archives containing C++ object files must be created using
12016         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12017         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12018
12019         ;;
12020       RCC*)
12021         # Rational C++ 2.4.1
12022         # FIXME: insert proper C++ library support
12023         ld_shlibs_CXX=no
12024         ;;
12025       cxx*)
12026         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12027         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'
12028
12029         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12030         hardcode_libdir_separator_CXX=:
12031
12032         # Commands to make compiler produce verbose output that lists
12033         # what "hidden" libraries, object files and flags are used when
12034         # linking a shared library.
12035         #
12036         # There doesn't appear to be a way to prevent this compiler from
12037         # explicitly linking system object files so we need to strip them
12038         # from the output so that they don't get included in the library
12039         # dependencies.
12040         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'
12041         ;;
12042       *)
12043         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12044           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12045           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'
12046
12047           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12048           hardcode_libdir_separator_CXX=:
12049
12050           # Commands to make compiler produce verbose output that lists
12051           # what "hidden" libraries, object files and flags are used when
12052           # linking a shared library.
12053           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12054
12055         else
12056           # FIXME: insert proper C++ library support
12057           ld_shlibs_CXX=no
12058         fi
12059         ;;
12060     esac
12061     ;;
12062   osf4* | osf5*)
12063     case $cc_basename in
12064       KCC*)
12065         # Kuck and Associates, Inc. (KAI) C++ Compiler
12066
12067         # KCC will only create a shared library if the output file
12068         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12069         # to its proper name (with version) after linking.
12070         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'
12071
12072         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12073         hardcode_libdir_separator_CXX=:
12074
12075         # Archives containing C++ object files must be created using
12076         # the KAI C++ compiler.
12077         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12078         ;;
12079       RCC*)
12080         # Rational C++ 2.4.1
12081         # FIXME: insert proper C++ library support
12082         ld_shlibs_CXX=no
12083         ;;
12084       cxx*)
12085         allow_undefined_flag_CXX=' -expect_unresolved \*'
12086         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'
12087         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12088           echo "-hidden">> $lib.exp~
12089           $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~
12090           $rm $lib.exp'
12091
12092         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12093         hardcode_libdir_separator_CXX=:
12094
12095         # Commands to make compiler produce verbose output that lists
12096         # what "hidden" libraries, object files and flags are used when
12097         # linking a shared library.
12098         #
12099         # There doesn't appear to be a way to prevent this compiler from
12100         # explicitly linking system object files so we need to strip them
12101         # from the output so that they don't get included in the library
12102         # dependencies.
12103         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'
12104         ;;
12105       *)
12106         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12107           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12108          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'
12109
12110           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12111           hardcode_libdir_separator_CXX=:
12112
12113           # Commands to make compiler produce verbose output that lists
12114           # what "hidden" libraries, object files and flags are used when
12115           # linking a shared library.
12116           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12117
12118         else
12119           # FIXME: insert proper C++ library support
12120           ld_shlibs_CXX=no
12121         fi
12122         ;;
12123     esac
12124     ;;
12125   psos*)
12126     # FIXME: insert proper C++ library support
12127     ld_shlibs_CXX=no
12128     ;;
12129   sunos4*)
12130     case $cc_basename in
12131       CC*)
12132         # Sun C++ 4.x
12133         # FIXME: insert proper C++ library support
12134         ld_shlibs_CXX=no
12135         ;;
12136       lcc*)
12137         # Lucid
12138         # FIXME: insert proper C++ library support
12139         ld_shlibs_CXX=no
12140         ;;
12141       *)
12142         # FIXME: insert proper C++ library support
12143         ld_shlibs_CXX=no
12144         ;;
12145     esac
12146     ;;
12147   solaris*)
12148     case $cc_basename in
12149       CC*)
12150         # Sun C++ 4.2, 5.x and Centerline C++
12151         archive_cmds_need_lc_CXX=yes
12152         no_undefined_flag_CXX=' -zdefs'
12153         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12154         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12155         $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'
12156
12157         hardcode_libdir_flag_spec_CXX='-R$libdir'
12158         hardcode_shlibpath_var_CXX=no
12159         case $host_os in
12160           solaris2.[0-5] | solaris2.[0-5].*) ;;
12161           *)
12162             # The C++ compiler is used as linker so we must use $wl
12163             # flag to pass the commands to the underlying system
12164             # linker. We must also pass each convience library through
12165             # to the system linker between allextract/defaultextract.
12166             # The C++ compiler will combine linker options so we
12167             # cannot just pass the convience library names through
12168             # without $wl.
12169             # Supported since Solaris 2.6 (maybe 2.5.1?)
12170             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'
12171             ;;
12172         esac
12173         link_all_deplibs_CXX=yes
12174
12175         output_verbose_link_cmd='echo'
12176
12177         # Archives containing C++ object files must be created using
12178         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12179         # necessary to make sure instantiated templates are included
12180         # in the archive.
12181         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12182         ;;
12183       gcx*)
12184         # Green Hills C++ Compiler
12185         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12186
12187         # The C++ compiler must be used to create the archive.
12188         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12189         ;;
12190       *)
12191         # GNU C++ compiler with Solaris linker
12192         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12193           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12194           if $CC --version | grep -v '^2\.7' > /dev/null; then
12195             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12196             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12197                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12198
12199             # Commands to make compiler produce verbose output that lists
12200             # what "hidden" libraries, object files and flags are used when
12201             # linking a shared library.
12202             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12203           else
12204             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12205             # platform.
12206             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12207             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12208                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12209
12210             # Commands to make compiler produce verbose output that lists
12211             # what "hidden" libraries, object files and flags are used when
12212             # linking a shared library.
12213             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12214           fi
12215
12216           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12217         fi
12218         ;;
12219     esac
12220     ;;
12221   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12222     no_undefined_flag_CXX='${wl}-z,text'
12223     archive_cmds_need_lc_CXX=no
12224     hardcode_shlibpath_var_CXX=no
12225     runpath_var='LD_RUN_PATH'
12226
12227     case $cc_basename in
12228       CC*)
12229         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12230         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12231         ;;
12232       *)
12233         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12234         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12235         ;;
12236     esac
12237     ;;
12238   sysv5* | sco3.2v5* | sco5v6*)
12239     # Note: We can NOT use -z defs as we might desire, because we do not
12240     # link with -lc, and that would cause any symbols used from libc to
12241     # always be unresolved, which means just about no library would
12242     # ever link correctly.  If we're not using GNU ld we use -z text
12243     # though, which does catch some bad symbols but isn't as heavy-handed
12244     # as -z defs.
12245     # For security reasons, it is highly recommended that you always
12246     # use absolute paths for naming shared libraries, and exclude the
12247     # DT_RUNPATH tag from executables and libraries.  But doing so
12248     # requires that you compile everything twice, which is a pain.
12249     # So that behaviour is only enabled if SCOABSPATH is set to a
12250     # non-empty value in the environment.  Most likely only useful for
12251     # creating official distributions of packages.
12252     # This is a hack until libtool officially supports absolute path
12253     # names for shared libraries.
12254     no_undefined_flag_CXX='${wl}-z,text'
12255     allow_undefined_flag_CXX='${wl}-z,nodefs'
12256     archive_cmds_need_lc_CXX=no
12257     hardcode_shlibpath_var_CXX=no
12258     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12259     hardcode_libdir_separator_CXX=':'
12260     link_all_deplibs_CXX=yes
12261     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12262     runpath_var='LD_RUN_PATH'
12263
12264     case $cc_basename in
12265       CC*)
12266         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12267         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12268         ;;
12269       *)
12270         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12271         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12272         ;;
12273     esac
12274     ;;
12275   tandem*)
12276     case $cc_basename in
12277       NCC*)
12278         # NonStop-UX NCC 3.20
12279         # FIXME: insert proper C++ library support
12280         ld_shlibs_CXX=no
12281         ;;
12282       *)
12283         # FIXME: insert proper C++ library support
12284         ld_shlibs_CXX=no
12285         ;;
12286     esac
12287     ;;
12288   vxworks*)
12289     # FIXME: insert proper C++ library support
12290     ld_shlibs_CXX=no
12291     ;;
12292   *)
12293     # FIXME: insert proper C++ library support
12294     ld_shlibs_CXX=no
12295     ;;
12296 esac
12297 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12298 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12299 test "$ld_shlibs_CXX" = no && can_build_shared=no
12300
12301 GCC_CXX="$GXX"
12302 LD_CXX="$LD"
12303
12304
12305 cat > conftest.$ac_ext <<EOF
12306 class Foo
12307 {
12308 public:
12309   Foo (void) { a = 0; }
12310 private:
12311   int a;
12312 };
12313 EOF
12314
12315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316   (eval $ac_compile) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; then
12320   # Parse the compiler output and extract the necessary
12321   # objects, libraries and library flags.
12322
12323   # Sentinel used to keep track of whether or not we are before
12324   # the conftest object file.
12325   pre_test_object_deps_done=no
12326
12327   # The `*' in the case matches for architectures that use `case' in
12328   # $output_verbose_cmd can trigger glob expansion during the loop
12329   # eval without this substitution.
12330   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12331
12332   for p in `eval $output_verbose_link_cmd`; do
12333     case $p in
12334
12335     -L* | -R* | -l*)
12336        # Some compilers place space between "-{L,R}" and the path.
12337        # Remove the space.
12338        if test $p = "-L" \
12339           || test $p = "-R"; then
12340          prev=$p
12341          continue
12342        else
12343          prev=
12344        fi
12345
12346        if test "$pre_test_object_deps_done" = no; then
12347          case $p in
12348          -L* | -R*)
12349            # Internal compiler library paths should come after those
12350            # provided the user.  The postdeps already come after the
12351            # user supplied libs so there is no need to process them.
12352            if test -z "$compiler_lib_search_path_CXX"; then
12353              compiler_lib_search_path_CXX="${prev}${p}"
12354            else
12355              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12356            fi
12357            ;;
12358          # The "-l" case would never come before the object being
12359          # linked, so don't bother handling this case.
12360          esac
12361        else
12362          if test -z "$postdeps_CXX"; then
12363            postdeps_CXX="${prev}${p}"
12364          else
12365            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12366          fi
12367        fi
12368        ;;
12369
12370     *.$objext)
12371        # This assumes that the test object file only shows up
12372        # once in the compiler output.
12373        if test "$p" = "conftest.$objext"; then
12374          pre_test_object_deps_done=yes
12375          continue
12376        fi
12377
12378        if test "$pre_test_object_deps_done" = no; then
12379          if test -z "$predep_objects_CXX"; then
12380            predep_objects_CXX="$p"
12381          else
12382            predep_objects_CXX="$predep_objects_CXX $p"
12383          fi
12384        else
12385          if test -z "$postdep_objects_CXX"; then
12386            postdep_objects_CXX="$p"
12387          else
12388            postdep_objects_CXX="$postdep_objects_CXX $p"
12389          fi
12390        fi
12391        ;;
12392
12393     *) ;; # Ignore the rest.
12394
12395     esac
12396   done
12397
12398   # Clean up.
12399   rm -f a.out a.exe
12400 else
12401   echo "libtool.m4: error: problem compiling CXX test program"
12402 fi
12403
12404 $rm -f confest.$objext
12405
12406 # PORTME: override above test on systems where it is broken
12407 case $host_os in
12408 interix3*)
12409   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12410   # hack all around it, let's just trust "g++" to DTRT.
12411   predep_objects_CXX=
12412   postdep_objects_CXX=
12413   postdeps_CXX=
12414   ;;
12415
12416 solaris*)
12417   case $cc_basename in
12418   CC*)
12419     # Adding this requires a known-good setup of shared libraries for
12420     # Sun compiler versions before 5.6, else PIC objects from an old
12421     # archive will be linked into the output, leading to subtle bugs.
12422     postdeps_CXX='-lCstd -lCrun'
12423     ;;
12424   esac
12425   ;;
12426 esac
12427
12428
12429 case " $postdeps_CXX " in
12430 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12431 esac
12432
12433 lt_prog_compiler_wl_CXX=
12434 lt_prog_compiler_pic_CXX=
12435 lt_prog_compiler_static_CXX=
12436
12437 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12438 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12439
12440   # C++ specific cases for pic, static, wl, etc.
12441   if test "$GXX" = yes; then
12442     lt_prog_compiler_wl_CXX='-Wl,'
12443     lt_prog_compiler_static_CXX='-static'
12444
12445     case $host_os in
12446     aix*)
12447       # All AIX code is PIC.
12448       if test "$host_cpu" = ia64; then
12449         # AIX 5 now supports IA64 processor
12450         lt_prog_compiler_static_CXX='-Bstatic'
12451       fi
12452       ;;
12453     amigaos*)
12454       # FIXME: we need at least 68020 code to build shared libraries, but
12455       # adding the `-m68020' flag to GCC prevents building anything better,
12456       # like `-m68040'.
12457       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12458       ;;
12459     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12460       # PIC is the default for these OSes.
12461       ;;
12462     mingw* | os2* | pw32*)
12463       # This hack is so that the source file can tell whether it is being
12464       # built for inclusion in a dll (and should export symbols for example).
12465       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12466       ;;
12467     darwin* | rhapsody*)
12468       # PIC is the default on this platform
12469       # Common symbols not allowed in MH_DYLIB files
12470       lt_prog_compiler_pic_CXX='-fno-common'
12471       ;;
12472     *djgpp*)
12473       # DJGPP does not support shared libraries at all
12474       lt_prog_compiler_pic_CXX=
12475       ;;
12476     interix3*)
12477       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12478       # Instead, we relocate shared libraries at runtime.
12479       ;;
12480     sysv4*MP*)
12481       if test -d /usr/nec; then
12482         lt_prog_compiler_pic_CXX=-Kconform_pic
12483       fi
12484       ;;
12485     hpux*)
12486       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12487       # not for PA HP-UX.
12488       case $host_cpu in
12489       hppa*64*|ia64*)
12490         ;;
12491       *)
12492         lt_prog_compiler_pic_CXX='-fPIC'
12493         ;;
12494       esac
12495       ;;
12496     *)
12497       lt_prog_compiler_pic_CXX='-fPIC'
12498       ;;
12499     esac
12500   else
12501     case $host_os in
12502       aix4* | aix5*)
12503         # All AIX code is PIC.
12504         if test "$host_cpu" = ia64; then
12505           # AIX 5 now supports IA64 processor
12506           lt_prog_compiler_static_CXX='-Bstatic'
12507         else
12508           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12509         fi
12510         ;;
12511       chorus*)
12512         case $cc_basename in
12513         cxch68*)
12514           # Green Hills C++ Compiler
12515           # _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"
12516           ;;
12517         esac
12518         ;;
12519        darwin*)
12520          # PIC is the default on this platform
12521          # Common symbols not allowed in MH_DYLIB files
12522          case $cc_basename in
12523            xlc*)
12524            lt_prog_compiler_pic_CXX='-qnocommon'
12525            lt_prog_compiler_wl_CXX='-Wl,'
12526            ;;
12527          esac
12528        ;;
12529       dgux*)
12530         case $cc_basename in
12531           ec++*)
12532             lt_prog_compiler_pic_CXX='-KPIC'
12533             ;;
12534           ghcx*)
12535             # Green Hills C++ Compiler
12536             lt_prog_compiler_pic_CXX='-pic'
12537             ;;
12538           *)
12539             ;;
12540         esac
12541         ;;
12542       freebsd* | dragonfly*)
12543         # FreeBSD uses GNU C++
12544         ;;
12545       hpux9* | hpux10* | hpux11*)
12546         case $cc_basename in
12547           CC*)
12548             lt_prog_compiler_wl_CXX='-Wl,'
12549             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12550             if test "$host_cpu" != ia64; then
12551               lt_prog_compiler_pic_CXX='+Z'
12552             fi
12553             ;;
12554           aCC*)
12555             lt_prog_compiler_wl_CXX='-Wl,'
12556             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12557             case $host_cpu in
12558             hppa*64*|ia64*)
12559               # +Z the default
12560               ;;
12561             *)
12562               lt_prog_compiler_pic_CXX='+Z'
12563               ;;
12564             esac
12565             ;;
12566           *)
12567             ;;
12568         esac
12569         ;;
12570       interix*)
12571         # This is c89, which is MS Visual C++ (no shared libs)
12572         # Anyone wants to do a port?
12573         ;;
12574       irix5* | irix6* | nonstopux*)
12575         case $cc_basename in
12576           CC*)
12577             lt_prog_compiler_wl_CXX='-Wl,'
12578             lt_prog_compiler_static_CXX='-non_shared'
12579             # CC pic flag -KPIC is the default.
12580             ;;
12581           *)
12582             ;;
12583         esac
12584         ;;
12585       linux* | k*bsd*-gnu)
12586         case $cc_basename in
12587           KCC*)
12588             # KAI C++ Compiler
12589             lt_prog_compiler_wl_CXX='--backend -Wl,'
12590             lt_prog_compiler_pic_CXX='-fPIC'
12591             ;;
12592           icpc* | ecpc*)
12593             # Intel C++
12594             lt_prog_compiler_wl_CXX='-Wl,'
12595             lt_prog_compiler_pic_CXX='-KPIC'
12596             lt_prog_compiler_static_CXX='-static'
12597             ;;
12598           pgCC*)
12599             # Portland Group C++ compiler.
12600             lt_prog_compiler_wl_CXX='-Wl,'
12601             lt_prog_compiler_pic_CXX='-fpic'
12602             lt_prog_compiler_static_CXX='-Bstatic'
12603             ;;
12604           cxx*)
12605             # Compaq C++
12606             # Make sure the PIC flag is empty.  It appears that all Alpha
12607             # Linux and Compaq Tru64 Unix objects are PIC.
12608             lt_prog_compiler_pic_CXX=
12609             lt_prog_compiler_static_CXX='-non_shared'
12610             ;;
12611           *)
12612             ;;
12613         esac
12614         ;;
12615       lynxos*)
12616         ;;
12617       m88k*)
12618         ;;
12619       mvs*)
12620         case $cc_basename in
12621           cxx*)
12622             lt_prog_compiler_pic_CXX='-W c,exportall'
12623             ;;
12624           *)
12625             ;;
12626         esac
12627         ;;
12628       netbsd* | netbsdelf*-gnu)
12629         ;;
12630       osf3* | osf4* | osf5*)
12631         case $cc_basename in
12632           KCC*)
12633             lt_prog_compiler_wl_CXX='--backend -Wl,'
12634             ;;
12635           RCC*)
12636             # Rational C++ 2.4.1
12637             lt_prog_compiler_pic_CXX='-pic'
12638             ;;
12639           cxx*)
12640             # Digital/Compaq C++
12641             lt_prog_compiler_wl_CXX='-Wl,'
12642             # Make sure the PIC flag is empty.  It appears that all Alpha
12643             # Linux and Compaq Tru64 Unix objects are PIC.
12644             lt_prog_compiler_pic_CXX=
12645             lt_prog_compiler_static_CXX='-non_shared'
12646             ;;
12647           *)
12648             ;;
12649         esac
12650         ;;
12651       psos*)
12652         ;;
12653       solaris*)
12654         case $cc_basename in
12655           CC*)
12656             # Sun C++ 4.2, 5.x and Centerline C++
12657             lt_prog_compiler_pic_CXX='-KPIC'
12658             lt_prog_compiler_static_CXX='-Bstatic'
12659             lt_prog_compiler_wl_CXX='-Qoption ld '
12660             ;;
12661           gcx*)
12662             # Green Hills C++ Compiler
12663             lt_prog_compiler_pic_CXX='-PIC'
12664             ;;
12665           *)
12666             ;;
12667         esac
12668         ;;
12669       sunos4*)
12670         case $cc_basename in
12671           CC*)
12672             # Sun C++ 4.x
12673             lt_prog_compiler_pic_CXX='-pic'
12674             lt_prog_compiler_static_CXX='-Bstatic'
12675             ;;
12676           lcc*)
12677             # Lucid
12678             lt_prog_compiler_pic_CXX='-pic'
12679             ;;
12680           *)
12681             ;;
12682         esac
12683         ;;
12684       tandem*)
12685         case $cc_basename in
12686           NCC*)
12687             # NonStop-UX NCC 3.20
12688             lt_prog_compiler_pic_CXX='-KPIC'
12689             ;;
12690           *)
12691             ;;
12692         esac
12693         ;;
12694       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12695         case $cc_basename in
12696           CC*)
12697             lt_prog_compiler_wl_CXX='-Wl,'
12698             lt_prog_compiler_pic_CXX='-KPIC'
12699             lt_prog_compiler_static_CXX='-Bstatic'
12700             ;;
12701         esac
12702         ;;
12703       vxworks*)
12704         ;;
12705       *)
12706         lt_prog_compiler_can_build_shared_CXX=no
12707         ;;
12708     esac
12709   fi
12710
12711 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12712 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12713
12714 #
12715 # Check to make sure the PIC flag actually works.
12716 #
12717 if test -n "$lt_prog_compiler_pic_CXX"; then
12718
12719 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12721 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12722   echo $ECHO_N "(cached) $ECHO_C" >&6
12723 else
12724   lt_prog_compiler_pic_works_CXX=no
12725   ac_outfile=conftest.$ac_objext
12726    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12727    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12728    # Insert the option either (1) after the last *FLAGS variable, or
12729    # (2) before a word containing "conftest.", or (3) at the end.
12730    # Note that $ac_compile itself does not contain backslashes and begins
12731    # with a dollar sign (not a hyphen), so the echo should work correctly.
12732    # The option is referenced via a variable to avoid confusing sed.
12733    lt_compile=`echo "$ac_compile" | $SED \
12734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12736    -e 's:$: $lt_compiler_flag:'`
12737    (eval echo "\"\$as_me:12737: $lt_compile\"" >&5)
12738    (eval "$lt_compile" 2>conftest.err)
12739    ac_status=$?
12740    cat conftest.err >&5
12741    echo "$as_me:12741: \$? = $ac_status" >&5
12742    if (exit $ac_status) && test -s "$ac_outfile"; then
12743      # The compiler can only warn and ignore the option if not recognized
12744      # So say no if there are warnings other than the usual output.
12745      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12746      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12747      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12748        lt_prog_compiler_pic_works_CXX=yes
12749      fi
12750    fi
12751    $rm conftest*
12752
12753 fi
12754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12755 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12756
12757 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12758     case $lt_prog_compiler_pic_CXX in
12759      "" | " "*) ;;
12760      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12761      esac
12762 else
12763     lt_prog_compiler_pic_CXX=
12764      lt_prog_compiler_can_build_shared_CXX=no
12765 fi
12766
12767 fi
12768 case $host_os in
12769   # For platforms which do not support PIC, -DPIC is meaningless:
12770   *djgpp*)
12771     lt_prog_compiler_pic_CXX=
12772     ;;
12773   *)
12774     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12775     ;;
12776 esac
12777
12778 #
12779 # Check to make sure the static flag actually works.
12780 #
12781 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12782 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12784 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12785   echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787   lt_prog_compiler_static_works_CXX=no
12788    save_LDFLAGS="$LDFLAGS"
12789    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12790    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12791    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12792      # The linker can only warn and ignore the option if not recognized
12793      # So say no if there are warnings
12794      if test -s conftest.err; then
12795        # Append any errors to the config.log.
12796        cat conftest.err 1>&5
12797        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12798        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12799        if diff conftest.exp conftest.er2 >/dev/null; then
12800          lt_prog_compiler_static_works_CXX=yes
12801        fi
12802      else
12803        lt_prog_compiler_static_works_CXX=yes
12804      fi
12805    fi
12806    $rm conftest*
12807    LDFLAGS="$save_LDFLAGS"
12808
12809 fi
12810 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12811 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12812
12813 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12814     :
12815 else
12816     lt_prog_compiler_static_CXX=
12817 fi
12818
12819
12820 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12822 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12823   echo $ECHO_N "(cached) $ECHO_C" >&6
12824 else
12825   lt_cv_prog_compiler_c_o_CXX=no
12826    $rm -r conftest 2>/dev/null
12827    mkdir conftest
12828    cd conftest
12829    mkdir out
12830    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12831
12832    lt_compiler_flag="-o out/conftest2.$ac_objext"
12833    # Insert the option either (1) after the last *FLAGS variable, or
12834    # (2) before a word containing "conftest.", or (3) at the end.
12835    # Note that $ac_compile itself does not contain backslashes and begins
12836    # with a dollar sign (not a hyphen), so the echo should work correctly.
12837    lt_compile=`echo "$ac_compile" | $SED \
12838    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12839    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12840    -e 's:$: $lt_compiler_flag:'`
12841    (eval echo "\"\$as_me:12841: $lt_compile\"" >&5)
12842    (eval "$lt_compile" 2>out/conftest.err)
12843    ac_status=$?
12844    cat out/conftest.err >&5
12845    echo "$as_me:12845: \$? = $ac_status" >&5
12846    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12847    then
12848      # The compiler can only warn and ignore the option if not recognized
12849      # So say no if there are warnings
12850      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12851      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12852      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12853        lt_cv_prog_compiler_c_o_CXX=yes
12854      fi
12855    fi
12856    chmod u+w . 2>&5
12857    $rm conftest*
12858    # SGI C++ compiler will create directory out/ii_files/ for
12859    # template instantiation
12860    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12861    $rm out/* && rmdir out
12862    cd ..
12863    rmdir conftest
12864    $rm conftest*
12865
12866 fi
12867 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12869
12870
12871 hard_links="nottested"
12872 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12873   # do not overwrite the value of need_locks provided by the user
12874   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12876   hard_links=yes
12877   $rm conftest*
12878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12879   touch conftest.a
12880   ln conftest.a conftest.b 2>&5 || hard_links=no
12881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12882   echo "$as_me:$LINENO: result: $hard_links" >&5
12883 echo "${ECHO_T}$hard_links" >&6
12884   if test "$hard_links" = no; then
12885     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12887     need_locks=warn
12888   fi
12889 else
12890   need_locks=no
12891 fi
12892
12893 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12895
12896   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12897   case $host_os in
12898   aix4* | aix5*)
12899     # If we're using GNU nm, then we don't want the "-C" option.
12900     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12901     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12902       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'
12903     else
12904       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'
12905     fi
12906     ;;
12907   pw32*)
12908     export_symbols_cmds_CXX="$ltdll_cmds"
12909   ;;
12910   cygwin* | mingw*)
12911     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'
12912   ;;
12913   linux* | k*bsd*-gnu)
12914     link_all_deplibs_CXX=no
12915   ;;
12916   *)
12917     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12918   ;;
12919   esac
12920
12921 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12922 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12923 test "$ld_shlibs_CXX" = no && can_build_shared=no
12924
12925 #
12926 # Do we need to explicitly link libc?
12927 #
12928 case "x$archive_cmds_need_lc_CXX" in
12929 x|xyes)
12930   # Assume -lc should be added
12931   archive_cmds_need_lc_CXX=yes
12932
12933   if test "$enable_shared" = yes && test "$GCC" = yes; then
12934     case $archive_cmds_CXX in
12935     *'~'*)
12936       # FIXME: we may have to deal with multi-command sequences.
12937       ;;
12938     '$CC '*)
12939       # Test whether the compiler implicitly links with -lc since on some
12940       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12941       # to ld, don't add -lc before -lgcc.
12942       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12943 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12944       $rm conftest*
12945       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12946
12947       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12948   (eval $ac_compile) 2>&5
12949   ac_status=$?
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); } 2>conftest.err; then
12952         soname=conftest
12953         lib=conftest
12954         libobjs=conftest.$ac_objext
12955         deplibs=
12956         wl=$lt_prog_compiler_wl_CXX
12957         pic_flag=$lt_prog_compiler_pic_CXX
12958         compiler_flags=-v
12959         linker_flags=-v
12960         verstring=
12961         output_objdir=.
12962         libname=conftest
12963         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12964         allow_undefined_flag_CXX=
12965         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12966   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12967   ac_status=$?
12968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969   (exit $ac_status); }
12970         then
12971           archive_cmds_need_lc_CXX=no
12972         else
12973           archive_cmds_need_lc_CXX=yes
12974         fi
12975         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12976       else
12977         cat conftest.err 1>&5
12978       fi
12979       $rm conftest*
12980       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12981 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12982       ;;
12983     esac
12984   fi
12985   ;;
12986 esac
12987
12988 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12989 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12990 library_names_spec=
12991 libname_spec='lib$name'
12992 soname_spec=
12993 shrext_cmds=".so"
12994 postinstall_cmds=
12995 postuninstall_cmds=
12996 finish_cmds=
12997 finish_eval=
12998 shlibpath_var=
12999 shlibpath_overrides_runpath=unknown
13000 version_type=none
13001 dynamic_linker="$host_os ld.so"
13002 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13003 if test "$GCC" = yes; then
13004   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13005   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13006     # if the path contains ";" then we assume it to be the separator
13007     # otherwise default to the standard path separator (i.e. ":") - it is
13008     # assumed that no part of a normal pathname contains ";" but that should
13009     # okay in the real world where ";" in dirpaths is itself problematic.
13010     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13011   else
13012     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13013   fi
13014 else
13015   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13016 fi
13017 need_lib_prefix=unknown
13018 hardcode_into_libs=no
13019
13020 # when you set need_version to no, make sure it does not cause -set_version
13021 # flags to be left without arguments
13022 need_version=unknown
13023
13024 case $host_os in
13025 aix3*)
13026   version_type=linux
13027   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13028   shlibpath_var=LIBPATH
13029
13030   # AIX 3 has no versioning support, so we append a major version to the name.
13031   soname_spec='${libname}${release}${shared_ext}$major'
13032   ;;
13033
13034 aix4* | aix5*)
13035   version_type=linux
13036   need_lib_prefix=no
13037   need_version=no
13038   hardcode_into_libs=yes
13039   if test "$host_cpu" = ia64; then
13040     # AIX 5 supports IA64
13041     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13042     shlibpath_var=LD_LIBRARY_PATH
13043   else
13044     # With GCC up to 2.95.x, collect2 would create an import file
13045     # for dependence libraries.  The import file would start with
13046     # the line `#! .'.  This would cause the generated library to
13047     # depend on `.', always an invalid library.  This was fixed in
13048     # development snapshots of GCC prior to 3.0.
13049     case $host_os in
13050       aix4 | aix4.[01] | aix4.[01].*)
13051       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13052            echo ' yes '
13053            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13054         :
13055       else
13056         can_build_shared=no
13057       fi
13058       ;;
13059     esac
13060     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13061     # soname into executable. Probably we can add versioning support to
13062     # collect2, so additional links can be useful in future.
13063     if test "$aix_use_runtimelinking" = yes; then
13064       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13065       # instead of lib<name>.a to let people know that these are not
13066       # typical AIX shared libraries.
13067       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068     else
13069       # We preserve .a as extension for shared libraries through AIX4.2
13070       # and later when we are not doing run time linking.
13071       library_names_spec='${libname}${release}.a $libname.a'
13072       soname_spec='${libname}${release}${shared_ext}$major'
13073     fi
13074     shlibpath_var=LIBPATH
13075   fi
13076   ;;
13077
13078 amigaos*)
13079   library_names_spec='$libname.ixlibrary $libname.a'
13080   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13081   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'
13082   ;;
13083
13084 beos*)
13085   library_names_spec='${libname}${shared_ext}'
13086   dynamic_linker="$host_os ld.so"
13087   shlibpath_var=LIBRARY_PATH
13088   ;;
13089
13090 bsdi[45]*)
13091   version_type=linux
13092   need_version=no
13093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13094   soname_spec='${libname}${release}${shared_ext}$major'
13095   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13096   shlibpath_var=LD_LIBRARY_PATH
13097   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13098   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13099   # the default ld.so.conf also contains /usr/contrib/lib and
13100   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13101   # libtool to hard-code these into programs
13102   ;;
13103
13104 cygwin* | mingw* | pw32*)
13105   version_type=windows
13106   shrext_cmds=".dll"
13107   need_version=no
13108   need_lib_prefix=no
13109
13110   case $GCC,$host_os in
13111   yes,cygwin* | yes,mingw* | yes,pw32*)
13112     library_names_spec='$libname.dll.a'
13113     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13114     postinstall_cmds='base_file=`basename \${file}`~
13115       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13116       dldir=$destdir/`dirname \$dlpath`~
13117       test -d \$dldir || mkdir -p \$dldir~
13118       $install_prog $dir/$dlname \$dldir/$dlname~
13119       chmod a+x \$dldir/$dlname'
13120     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13121       dlpath=$dir/\$dldll~
13122        $rm \$dlpath'
13123     shlibpath_overrides_runpath=yes
13124
13125     case $host_os in
13126     cygwin*)
13127       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13128       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13129       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13130       ;;
13131     mingw*)
13132       # MinGW DLLs use traditional 'lib' prefix
13133       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13134       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13135       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13136         # It is most probably a Windows format PATH printed by
13137         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13138         # path with ; separators, and with drive letters. We can handle the
13139         # drive letters (cygwin fileutils understands them), so leave them,
13140         # especially as we might pass files found there to a mingw objdump,
13141         # which wouldn't understand a cygwinified path. Ahh.
13142         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13143       else
13144         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13145       fi
13146       ;;
13147     pw32*)
13148       # pw32 DLLs use 'pw' prefix rather than 'lib'
13149       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13150       ;;
13151     esac
13152     ;;
13153
13154   *)
13155     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13156     ;;
13157   esac
13158   dynamic_linker='Win32 ld.exe'
13159   # FIXME: first we should search . and the directory the executable is in
13160   shlibpath_var=PATH
13161   ;;
13162
13163 darwin* | rhapsody*)
13164   dynamic_linker="$host_os dyld"
13165   version_type=darwin
13166   need_lib_prefix=no
13167   need_version=no
13168   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13169   soname_spec='${libname}${release}${major}$shared_ext'
13170   shlibpath_overrides_runpath=yes
13171   shlibpath_var=DYLD_LIBRARY_PATH
13172   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13173   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13174   if test "$GCC" = yes; then
13175     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"`
13176   else
13177     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13178   fi
13179   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13180   ;;
13181
13182 dgux*)
13183   version_type=linux
13184   need_lib_prefix=no
13185   need_version=no
13186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13187   soname_spec='${libname}${release}${shared_ext}$major'
13188   shlibpath_var=LD_LIBRARY_PATH
13189   ;;
13190
13191 freebsd1*)
13192   dynamic_linker=no
13193   ;;
13194
13195 freebsd* | dragonfly*)
13196   # DragonFly does not have aout.  When/if they implement a new
13197   # versioning mechanism, adjust this.
13198   if test -x /usr/bin/objformat; then
13199     objformat=`/usr/bin/objformat`
13200   else
13201     case $host_os in
13202     freebsd[123]*) objformat=aout ;;
13203     *) objformat=elf ;;
13204     esac
13205   fi
13206   version_type=freebsd-$objformat
13207   case $version_type in
13208     freebsd-elf*)
13209       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13210       need_version=no
13211       need_lib_prefix=no
13212       ;;
13213     freebsd-*)
13214       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13215       need_version=yes
13216       ;;
13217   esac
13218   shlibpath_var=LD_LIBRARY_PATH
13219   case $host_os in
13220   freebsd2*)
13221     shlibpath_overrides_runpath=yes
13222     ;;
13223   freebsd3.[01]* | freebsdelf3.[01]*)
13224     shlibpath_overrides_runpath=yes
13225     hardcode_into_libs=yes
13226     ;;
13227   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13228   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13229     shlibpath_overrides_runpath=no
13230     hardcode_into_libs=yes
13231     ;;
13232   freebsd*) # from 4.6 on
13233     shlibpath_overrides_runpath=yes
13234     hardcode_into_libs=yes
13235     ;;
13236   esac
13237   ;;
13238
13239 gnu*)
13240   version_type=linux
13241   need_lib_prefix=no
13242   need_version=no
13243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13244   soname_spec='${libname}${release}${shared_ext}$major'
13245   shlibpath_var=LD_LIBRARY_PATH
13246   hardcode_into_libs=yes
13247   ;;
13248
13249 hpux9* | hpux10* | hpux11*)
13250   # Give a soname corresponding to the major version so that dld.sl refuses to
13251   # link against other versions.
13252   version_type=sunos
13253   need_lib_prefix=no
13254   need_version=no
13255   case $host_cpu in
13256   ia64*)
13257     shrext_cmds='.so'
13258     hardcode_into_libs=yes
13259     dynamic_linker="$host_os dld.so"
13260     shlibpath_var=LD_LIBRARY_PATH
13261     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13263     soname_spec='${libname}${release}${shared_ext}$major'
13264     if test "X$HPUX_IA64_MODE" = X32; then
13265       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13266     else
13267       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13268     fi
13269     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13270     ;;
13271    hppa*64*)
13272      shrext_cmds='.sl'
13273      hardcode_into_libs=yes
13274      dynamic_linker="$host_os dld.sl"
13275      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13276      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13277      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13278      soname_spec='${libname}${release}${shared_ext}$major'
13279      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13280      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13281      ;;
13282    *)
13283     shrext_cmds='.sl'
13284     dynamic_linker="$host_os dld.sl"
13285     shlibpath_var=SHLIB_PATH
13286     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13288     soname_spec='${libname}${release}${shared_ext}$major'
13289     ;;
13290   esac
13291   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13292   postinstall_cmds='chmod 555 $lib'
13293   ;;
13294
13295 interix3*)
13296   version_type=linux
13297   need_lib_prefix=no
13298   need_version=no
13299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13300   soname_spec='${libname}${release}${shared_ext}$major'
13301   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13302   shlibpath_var=LD_LIBRARY_PATH
13303   shlibpath_overrides_runpath=no
13304   hardcode_into_libs=yes
13305   ;;
13306
13307 irix5* | irix6* | nonstopux*)
13308   case $host_os in
13309     nonstopux*) version_type=nonstopux ;;
13310     *)
13311         if test "$lt_cv_prog_gnu_ld" = yes; then
13312                 version_type=linux
13313         else
13314                 version_type=irix
13315         fi ;;
13316   esac
13317   need_lib_prefix=no
13318   need_version=no
13319   soname_spec='${libname}${release}${shared_ext}$major'
13320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13321   case $host_os in
13322   irix5* | nonstopux*)
13323     libsuff= shlibsuff=
13324     ;;
13325   *)
13326     case $LD in # libtool.m4 will add one of these switches to LD
13327     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13328       libsuff= shlibsuff= libmagic=32-bit;;
13329     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13330       libsuff=32 shlibsuff=N32 libmagic=N32;;
13331     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13332       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13333     *) libsuff= shlibsuff= libmagic=never-match;;
13334     esac
13335     ;;
13336   esac
13337   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13338   shlibpath_overrides_runpath=no
13339   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13340   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13341   hardcode_into_libs=yes
13342   ;;
13343
13344 # No shared lib support for Linux oldld, aout, or coff.
13345 linux*oldld* | linux*aout* | linux*coff*)
13346   dynamic_linker=no
13347   ;;
13348
13349 # This must be Linux ELF.
13350 linux* | k*bsd*-gnu)
13351   version_type=linux
13352   need_lib_prefix=no
13353   need_version=no
13354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13355   soname_spec='${libname}${release}${shared_ext}$major'
13356   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13357   shlibpath_var=LD_LIBRARY_PATH
13358   shlibpath_overrides_runpath=no
13359   # This implies no fast_install, which is unacceptable.
13360   # Some rework will be needed to allow for fast_install
13361   # before this can be enabled.
13362   hardcode_into_libs=yes
13363
13364   # Append ld.so.conf contents to the search path
13365   if test -f /etc/ld.so.conf; then
13366     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' ' '`
13367     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13368   fi
13369
13370   # We used to test for /lib/ld.so.1 and disable shared libraries on
13371   # powerpc, because MkLinux only supported shared libraries with the
13372   # GNU dynamic linker.  Since this was broken with cross compilers,
13373   # most powerpc-linux boxes support dynamic linking these days and
13374   # people can always --disable-shared, the test was removed, and we
13375   # assume the GNU/Linux dynamic linker is in use.
13376   dynamic_linker='GNU/Linux ld.so'
13377   ;;
13378
13379 netbsdelf*-gnu)
13380   version_type=linux
13381   need_lib_prefix=no
13382   need_version=no
13383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13384   soname_spec='${libname}${release}${shared_ext}$major'
13385   shlibpath_var=LD_LIBRARY_PATH
13386   shlibpath_overrides_runpath=no
13387   hardcode_into_libs=yes
13388   dynamic_linker='NetBSD ld.elf_so'
13389   ;;
13390
13391 netbsd*)
13392   version_type=sunos
13393   need_lib_prefix=no
13394   need_version=no
13395   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13397     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13398     dynamic_linker='NetBSD (a.out) ld.so'
13399   else
13400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13401     soname_spec='${libname}${release}${shared_ext}$major'
13402     dynamic_linker='NetBSD ld.elf_so'
13403   fi
13404   shlibpath_var=LD_LIBRARY_PATH
13405   shlibpath_overrides_runpath=yes
13406   hardcode_into_libs=yes
13407   ;;
13408
13409 newsos6)
13410   version_type=linux
13411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13412   shlibpath_var=LD_LIBRARY_PATH
13413   shlibpath_overrides_runpath=yes
13414   ;;
13415
13416 nto-qnx*)
13417   version_type=linux
13418   need_lib_prefix=no
13419   need_version=no
13420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13421   soname_spec='${libname}${release}${shared_ext}$major'
13422   shlibpath_var=LD_LIBRARY_PATH
13423   shlibpath_overrides_runpath=yes
13424   ;;
13425
13426 openbsd*)
13427   version_type=sunos
13428   sys_lib_dlsearch_path_spec="/usr/lib"
13429   need_lib_prefix=no
13430   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13431   case $host_os in
13432     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13433     *)                         need_version=no  ;;
13434   esac
13435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13436   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13437   shlibpath_var=LD_LIBRARY_PATH
13438   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13439     case $host_os in
13440       openbsd2.[89] | openbsd2.[89].*)
13441         shlibpath_overrides_runpath=no
13442         ;;
13443       *)
13444         shlibpath_overrides_runpath=yes
13445         ;;
13446       esac
13447   else
13448     shlibpath_overrides_runpath=yes
13449   fi
13450   ;;
13451
13452 os2*)
13453   libname_spec='$name'
13454   shrext_cmds=".dll"
13455   need_lib_prefix=no
13456   library_names_spec='$libname${shared_ext} $libname.a'
13457   dynamic_linker='OS/2 ld.exe'
13458   shlibpath_var=LIBPATH
13459   ;;
13460
13461 osf3* | osf4* | osf5*)
13462   version_type=osf
13463   need_lib_prefix=no
13464   need_version=no
13465   soname_spec='${libname}${release}${shared_ext}$major'
13466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13467   shlibpath_var=LD_LIBRARY_PATH
13468   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13469   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13470   ;;
13471
13472 solaris*)
13473   version_type=linux
13474   need_lib_prefix=no
13475   need_version=no
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   shlibpath_overrides_runpath=yes
13480   hardcode_into_libs=yes
13481   # ldd complains unless libraries are executable
13482   postinstall_cmds='chmod +x $lib'
13483   ;;
13484
13485 sunos4*)
13486   version_type=sunos
13487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13488   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13489   shlibpath_var=LD_LIBRARY_PATH
13490   shlibpath_overrides_runpath=yes
13491   if test "$with_gnu_ld" = yes; then
13492     need_lib_prefix=no
13493   fi
13494   need_version=yes
13495   ;;
13496
13497 sysv4 | sysv4.3*)
13498   version_type=linux
13499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500   soname_spec='${libname}${release}${shared_ext}$major'
13501   shlibpath_var=LD_LIBRARY_PATH
13502   case $host_vendor in
13503     sni)
13504       shlibpath_overrides_runpath=no
13505       need_lib_prefix=no
13506       export_dynamic_flag_spec='${wl}-Blargedynsym'
13507       runpath_var=LD_RUN_PATH
13508       ;;
13509     siemens)
13510       need_lib_prefix=no
13511       ;;
13512     motorola)
13513       need_lib_prefix=no
13514       need_version=no
13515       shlibpath_overrides_runpath=no
13516       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13517       ;;
13518   esac
13519   ;;
13520
13521 sysv4*MP*)
13522   if test -d /usr/nec ;then
13523     version_type=linux
13524     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13525     soname_spec='$libname${shared_ext}.$major'
13526     shlibpath_var=LD_LIBRARY_PATH
13527   fi
13528   ;;
13529
13530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13531   version_type=freebsd-elf
13532   need_lib_prefix=no
13533   need_version=no
13534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13535   soname_spec='${libname}${release}${shared_ext}$major'
13536   shlibpath_var=LD_LIBRARY_PATH
13537   hardcode_into_libs=yes
13538   if test "$with_gnu_ld" = yes; then
13539     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13540     shlibpath_overrides_runpath=no
13541   else
13542     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13543     shlibpath_overrides_runpath=yes
13544     case $host_os in
13545       sco3.2v5*)
13546         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13547         ;;
13548     esac
13549   fi
13550   sys_lib_dlsearch_path_spec='/usr/lib'
13551   ;;
13552
13553 uts4*)
13554   version_type=linux
13555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13556   soname_spec='${libname}${release}${shared_ext}$major'
13557   shlibpath_var=LD_LIBRARY_PATH
13558   ;;
13559
13560 *)
13561   dynamic_linker=no
13562   ;;
13563 esac
13564 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13565 echo "${ECHO_T}$dynamic_linker" >&6
13566 test "$dynamic_linker" = no && can_build_shared=no
13567
13568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13569 if test "$GCC" = yes; then
13570   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13571 fi
13572
13573 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13574 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13575 hardcode_action_CXX=
13576 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13577    test -n "$runpath_var_CXX" || \
13578    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13579
13580   # We can hardcode non-existant directories.
13581   if test "$hardcode_direct_CXX" != no &&
13582      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13583      # have to relink, otherwise we might link with an installed library
13584      # when we should be linking with a yet-to-be-installed one
13585      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13586      test "$hardcode_minus_L_CXX" != no; then
13587     # Linking always hardcodes the temporary library directory.
13588     hardcode_action_CXX=relink
13589   else
13590     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13591     hardcode_action_CXX=immediate
13592   fi
13593 else
13594   # We cannot hardcode anything, or else we can only hardcode existing
13595   # directories.
13596   hardcode_action_CXX=unsupported
13597 fi
13598 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13599 echo "${ECHO_T}$hardcode_action_CXX" >&6
13600
13601 if test "$hardcode_action_CXX" = relink; then
13602   # Fast installation is not supported
13603   enable_fast_install=no
13604 elif test "$shlibpath_overrides_runpath" = yes ||
13605      test "$enable_shared" = no; then
13606   # Fast installation is not necessary
13607   enable_fast_install=needless
13608 fi
13609
13610
13611 # The else clause should only fire when bootstrapping the
13612 # libtool distribution, otherwise you forgot to ship ltmain.sh
13613 # with your package, and you will get complaints that there are
13614 # no rules to generate ltmain.sh.
13615 if test -f "$ltmain"; then
13616   # See if we are running on zsh, and set the options which allow our commands through
13617   # without removal of \ escapes.
13618   if test -n "${ZSH_VERSION+set}" ; then
13619     setopt NO_GLOB_SUBST
13620   fi
13621   # Now quote all the things that may contain metacharacters while being
13622   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13623   # variables and quote the copies for generation of the libtool script.
13624   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13625     SED SHELL STRIP \
13626     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13627     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13628     deplibs_check_method reload_flag reload_cmds need_locks \
13629     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13630     lt_cv_sys_global_symbol_to_c_name_address \
13631     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13632     old_postinstall_cmds old_postuninstall_cmds \
13633     compiler_CXX \
13634     CC_CXX \
13635     LD_CXX \
13636     lt_prog_compiler_wl_CXX \
13637     lt_prog_compiler_pic_CXX \
13638     lt_prog_compiler_static_CXX \
13639     lt_prog_compiler_no_builtin_flag_CXX \
13640     export_dynamic_flag_spec_CXX \
13641     thread_safe_flag_spec_CXX \
13642     whole_archive_flag_spec_CXX \
13643     enable_shared_with_static_runtimes_CXX \
13644     old_archive_cmds_CXX \
13645     old_archive_from_new_cmds_CXX \
13646     predep_objects_CXX \
13647     postdep_objects_CXX \
13648     predeps_CXX \
13649     postdeps_CXX \
13650     compiler_lib_search_path_CXX \
13651     archive_cmds_CXX \
13652     archive_expsym_cmds_CXX \
13653     postinstall_cmds_CXX \
13654     postuninstall_cmds_CXX \
13655     old_archive_from_expsyms_cmds_CXX \
13656     allow_undefined_flag_CXX \
13657     no_undefined_flag_CXX \
13658     export_symbols_cmds_CXX \
13659     hardcode_libdir_flag_spec_CXX \
13660     hardcode_libdir_flag_spec_ld_CXX \
13661     hardcode_libdir_separator_CXX \
13662     hardcode_automatic_CXX \
13663     module_cmds_CXX \
13664     module_expsym_cmds_CXX \
13665     lt_cv_prog_compiler_c_o_CXX \
13666     exclude_expsyms_CXX \
13667     include_expsyms_CXX; do
13668
13669     case $var in
13670     old_archive_cmds_CXX | \
13671     old_archive_from_new_cmds_CXX | \
13672     archive_cmds_CXX | \
13673     archive_expsym_cmds_CXX | \
13674     module_cmds_CXX | \
13675     module_expsym_cmds_CXX | \
13676     old_archive_from_expsyms_cmds_CXX | \
13677     export_symbols_cmds_CXX | \
13678     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13679     postinstall_cmds | postuninstall_cmds | \
13680     old_postinstall_cmds | old_postuninstall_cmds | \
13681     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13682       # Double-quote double-evaled strings.
13683       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13684       ;;
13685     *)
13686       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13687       ;;
13688     esac
13689   done
13690
13691   case $lt_echo in
13692   *'\$0 --fallback-echo"')
13693     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13694     ;;
13695   esac
13696
13697 cfgfile="$ofile"
13698
13699   cat <<__EOF__ >> "$cfgfile"
13700 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13701
13702 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13703
13704 # Shell to use when invoking shell scripts.
13705 SHELL=$lt_SHELL
13706
13707 # Whether or not to build shared libraries.
13708 build_libtool_libs=$enable_shared
13709
13710 # Whether or not to build static libraries.
13711 build_old_libs=$enable_static
13712
13713 # Whether or not to add -lc for building shared libraries.
13714 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13715
13716 # Whether or not to disallow shared libs when runtime libs are static
13717 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13718
13719 # Whether or not to optimize for fast installation.
13720 fast_install=$enable_fast_install
13721
13722 # The host system.
13723 host_alias=$host_alias
13724 host=$host
13725 host_os=$host_os
13726
13727 # The build system.
13728 build_alias=$build_alias
13729 build=$build
13730 build_os=$build_os
13731
13732 # An echo program that does not interpret backslashes.
13733 echo=$lt_echo
13734
13735 # The archiver.
13736 AR=$lt_AR
13737 AR_FLAGS=$lt_AR_FLAGS
13738
13739 # A C compiler.
13740 LTCC=$lt_LTCC
13741
13742 # LTCC compiler flags.
13743 LTCFLAGS=$lt_LTCFLAGS
13744
13745 # A language-specific compiler.
13746 CC=$lt_compiler_CXX
13747
13748 # Is the compiler the GNU C compiler?
13749 with_gcc=$GCC_CXX
13750
13751 # An ERE matcher.
13752 EGREP=$lt_EGREP
13753
13754 # The linker used to build libraries.
13755 LD=$lt_LD_CXX
13756
13757 # Whether we need hard or soft links.
13758 LN_S=$lt_LN_S
13759
13760 # A BSD-compatible nm program.
13761 NM=$lt_NM
13762
13763 # A symbol stripping program
13764 STRIP=$lt_STRIP
13765
13766 # Used to examine libraries when file_magic_cmd begins "file"
13767 MAGIC_CMD=$MAGIC_CMD
13768
13769 # Used on cygwin: DLL creation program.
13770 DLLTOOL="$DLLTOOL"
13771
13772 # Used on cygwin: object dumper.
13773 OBJDUMP="$OBJDUMP"
13774
13775 # Used on cygwin: assembler.
13776 AS="$AS"
13777
13778 # The name of the directory that contains temporary libtool files.
13779 objdir=$objdir
13780
13781 # How to create reloadable object files.
13782 reload_flag=$lt_reload_flag
13783 reload_cmds=$lt_reload_cmds
13784
13785 # How to pass a linker flag through the compiler.
13786 wl=$lt_lt_prog_compiler_wl_CXX
13787
13788 # Object file suffix (normally "o").
13789 objext="$ac_objext"
13790
13791 # Old archive suffix (normally "a").
13792 libext="$libext"
13793
13794 # Shared library suffix (normally ".so").
13795 shrext_cmds='$shrext_cmds'
13796
13797 # Executable file suffix (normally "").
13798 exeext="$exeext"
13799
13800 # Additional compiler flags for building library objects.
13801 pic_flag=$lt_lt_prog_compiler_pic_CXX
13802 pic_mode=$pic_mode
13803
13804 # What is the maximum length of a command?
13805 max_cmd_len=$lt_cv_sys_max_cmd_len
13806
13807 # Does compiler simultaneously support -c and -o options?
13808 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13809
13810 # Must we lock files when doing compilation?
13811 need_locks=$lt_need_locks
13812
13813 # Do we need the lib prefix for modules?
13814 need_lib_prefix=$need_lib_prefix
13815
13816 # Do we need a version for libraries?
13817 need_version=$need_version
13818
13819 # Whether dlopen is supported.
13820 dlopen_support=$enable_dlopen
13821
13822 # Whether dlopen of programs is supported.
13823 dlopen_self=$enable_dlopen_self
13824
13825 # Whether dlopen of statically linked programs is supported.
13826 dlopen_self_static=$enable_dlopen_self_static
13827
13828 # Compiler flag to prevent dynamic linking.
13829 link_static_flag=$lt_lt_prog_compiler_static_CXX
13830
13831 # Compiler flag to turn off builtin functions.
13832 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13833
13834 # Compiler flag to allow reflexive dlopens.
13835 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13836
13837 # Compiler flag to generate shared objects directly from archives.
13838 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13839
13840 # Compiler flag to generate thread-safe objects.
13841 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13842
13843 # Library versioning type.
13844 version_type=$version_type
13845
13846 # Format of library name prefix.
13847 libname_spec=$lt_libname_spec
13848
13849 # List of archive names.  First name is the real one, the rest are links.
13850 # The last name is the one that the linker finds with -lNAME.
13851 library_names_spec=$lt_library_names_spec
13852
13853 # The coded name of the library, if different from the real name.
13854 soname_spec=$lt_soname_spec
13855
13856 # Commands used to build and install an old-style archive.
13857 RANLIB=$lt_RANLIB
13858 old_archive_cmds=$lt_old_archive_cmds_CXX
13859 old_postinstall_cmds=$lt_old_postinstall_cmds
13860 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13861
13862 # Create an old-style archive from a shared archive.
13863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13864
13865 # Create a temporary old-style archive to link instead of a shared archive.
13866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13867
13868 # Commands used to build and install a shared archive.
13869 archive_cmds=$lt_archive_cmds_CXX
13870 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13871 postinstall_cmds=$lt_postinstall_cmds
13872 postuninstall_cmds=$lt_postuninstall_cmds
13873
13874 # Commands used to build a loadable module (assumed same as above if empty)
13875 module_cmds=$lt_module_cmds_CXX
13876 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13877
13878 # Commands to strip libraries.
13879 old_striplib=$lt_old_striplib
13880 striplib=$lt_striplib
13881
13882 # Dependencies to place before the objects being linked to create a
13883 # shared library.
13884 predep_objects=$lt_predep_objects_CXX
13885
13886 # Dependencies to place after the objects being linked to create a
13887 # shared library.
13888 postdep_objects=$lt_postdep_objects_CXX
13889
13890 # Dependencies to place before the objects being linked to create a
13891 # shared library.
13892 predeps=$lt_predeps_CXX
13893
13894 # Dependencies to place after the objects being linked to create a
13895 # shared library.
13896 postdeps=$lt_postdeps_CXX
13897
13898 # The library search path used internally by the compiler when linking
13899 # a shared library.
13900 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13901
13902 # Method to check whether dependent libraries are shared objects.
13903 deplibs_check_method=$lt_deplibs_check_method
13904
13905 # Command to use when deplibs_check_method == file_magic.
13906 file_magic_cmd=$lt_file_magic_cmd
13907
13908 # Flag that allows shared libraries with undefined symbols to be built.
13909 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13910
13911 # Flag that forces no undefined symbols.
13912 no_undefined_flag=$lt_no_undefined_flag_CXX
13913
13914 # Commands used to finish a libtool library installation in a directory.
13915 finish_cmds=$lt_finish_cmds
13916
13917 # Same as above, but a single script fragment to be evaled but not shown.
13918 finish_eval=$lt_finish_eval
13919
13920 # Take the output of nm and produce a listing of raw symbols and C names.
13921 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13922
13923 # Transform the output of nm in a proper C declaration
13924 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13925
13926 # Transform the output of nm in a C name address pair
13927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13928
13929 # This is the shared library runtime path variable.
13930 runpath_var=$runpath_var
13931
13932 # This is the shared library path variable.
13933 shlibpath_var=$shlibpath_var
13934
13935 # Is shlibpath searched before the hard-coded library search path?
13936 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13937
13938 # How to hardcode a shared library path into an executable.
13939 hardcode_action=$hardcode_action_CXX
13940
13941 # Whether we should hardcode library paths into libraries.
13942 hardcode_into_libs=$hardcode_into_libs
13943
13944 # Flag to hardcode \$libdir into a binary during linking.
13945 # This must work even if \$libdir does not exist.
13946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13947
13948 # If ld is used when linking, flag to hardcode \$libdir into
13949 # a binary during linking. This must work even if \$libdir does
13950 # not exist.
13951 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13952
13953 # Whether we need a single -rpath flag with a separated argument.
13954 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13955
13956 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13957 # resulting binary.
13958 hardcode_direct=$hardcode_direct_CXX
13959
13960 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13961 # resulting binary.
13962 hardcode_minus_L=$hardcode_minus_L_CXX
13963
13964 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13965 # the resulting binary.
13966 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13967
13968 # Set to yes if building a shared library automatically hardcodes DIR into the library
13969 # and all subsequent libraries and executables linked against it.
13970 hardcode_automatic=$hardcode_automatic_CXX
13971
13972 # Variables whose values should be saved in libtool wrapper scripts and
13973 # restored at relink time.
13974 variables_saved_for_relink="$variables_saved_for_relink"
13975
13976 # Whether libtool must link a program against all its dependency libraries.
13977 link_all_deplibs=$link_all_deplibs_CXX
13978
13979 # Compile-time system search path for libraries
13980 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13981
13982 # Run-time system search path for libraries
13983 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13984
13985 # Fix the shell variable \$srcfile for the compiler.
13986 fix_srcfile_path="$fix_srcfile_path_CXX"
13987
13988 # Set to yes if exported symbols are required.
13989 always_export_symbols=$always_export_symbols_CXX
13990
13991 # The commands to list exported symbols.
13992 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13993
13994 # The commands to extract the exported symbol list from a shared archive.
13995 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13996
13997 # Symbols that should not be listed in the preloaded symbols.
13998 exclude_expsyms=$lt_exclude_expsyms_CXX
13999
14000 # Symbols that must always be exported.
14001 include_expsyms=$lt_include_expsyms_CXX
14002
14003 # ### END LIBTOOL TAG CONFIG: $tagname
14004
14005 __EOF__
14006
14007
14008 else
14009   # If there is no Makefile yet, we rely on a make rule to execute
14010   # `config.status --recheck' to rerun these tests and create the
14011   # libtool script then.
14012   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14013   if test -f "$ltmain_in"; then
14014     test -f Makefile && make "$ltmain"
14015   fi
14016 fi
14017
14018
14019 ac_ext=c
14020 ac_cpp='$CPP $CPPFLAGS'
14021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14024
14025 CC=$lt_save_CC
14026 LDCXX=$LD
14027 LD=$lt_save_LD
14028 GCC=$lt_save_GCC
14029 with_gnu_ldcxx=$with_gnu_ld
14030 with_gnu_ld=$lt_save_with_gnu_ld
14031 lt_cv_path_LDCXX=$lt_cv_path_LD
14032 lt_cv_path_LD=$lt_save_path_LD
14033 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14034 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14035
14036         else
14037           tagname=""
14038         fi
14039         ;;
14040
14041       F77)
14042         if test -n "$F77" && test "X$F77" != "Xno"; then
14043
14044 ac_ext=f
14045 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14046 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14047 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14048
14049
14050 archive_cmds_need_lc_F77=no
14051 allow_undefined_flag_F77=
14052 always_export_symbols_F77=no
14053 archive_expsym_cmds_F77=
14054 export_dynamic_flag_spec_F77=
14055 hardcode_direct_F77=no
14056 hardcode_libdir_flag_spec_F77=
14057 hardcode_libdir_flag_spec_ld_F77=
14058 hardcode_libdir_separator_F77=
14059 hardcode_minus_L_F77=no
14060 hardcode_automatic_F77=no
14061 module_cmds_F77=
14062 module_expsym_cmds_F77=
14063 link_all_deplibs_F77=unknown
14064 old_archive_cmds_F77=$old_archive_cmds
14065 no_undefined_flag_F77=
14066 whole_archive_flag_spec_F77=
14067 enable_shared_with_static_runtimes_F77=no
14068
14069 # Source file extension for f77 test sources.
14070 ac_ext=f
14071
14072 # Object file extension for compiled f77 test sources.
14073 objext=o
14074 objext_F77=$objext
14075
14076 # Code to be used in simple compile tests
14077 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14078
14079 # Code to be used in simple link tests
14080 lt_simple_link_test_code="      program t\n      end\n"
14081
14082 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14083
14084 # If no C compiler was specified, use CC.
14085 LTCC=${LTCC-"$CC"}
14086
14087 # If no C compiler flags were specified, use CFLAGS.
14088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14089
14090 # Allow CC to be a program name with arguments.
14091 compiler=$CC
14092
14093
14094 # save warnings/boilerplate of simple test code
14095 ac_outfile=conftest.$ac_objext
14096 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14097 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14098 _lt_compiler_boilerplate=`cat conftest.err`
14099 $rm conftest*
14100
14101 ac_outfile=conftest.$ac_objext
14102 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14103 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14104 _lt_linker_boilerplate=`cat conftest.err`
14105 $rm conftest*
14106
14107
14108 # Allow CC to be a program name with arguments.
14109 lt_save_CC="$CC"
14110 CC=${F77-"f77"}
14111 compiler=$CC
14112 compiler_F77=$CC
14113 for cc_temp in $compiler""; do
14114   case $cc_temp in
14115     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14116     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14117     \-*) ;;
14118     *) break;;
14119   esac
14120 done
14121 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14122
14123
14124 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14125 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14126 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14127 echo "${ECHO_T}$can_build_shared" >&6
14128
14129 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14130 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14131 test "$can_build_shared" = "no" && enable_shared=no
14132
14133 # On AIX, shared libraries and static libraries use the same namespace, and
14134 # are all built from PIC.
14135 case $host_os in
14136 aix3*)
14137   test "$enable_shared" = yes && enable_static=no
14138   if test -n "$RANLIB"; then
14139     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14140     postinstall_cmds='$RANLIB $lib'
14141   fi
14142   ;;
14143 aix4* | aix5*)
14144   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14145     test "$enable_shared" = yes && enable_static=no
14146   fi
14147   ;;
14148 esac
14149 echo "$as_me:$LINENO: result: $enable_shared" >&5
14150 echo "${ECHO_T}$enable_shared" >&6
14151
14152 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14153 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14154 # Make sure either enable_shared or enable_static is yes.
14155 test "$enable_shared" = yes || enable_static=yes
14156 echo "$as_me:$LINENO: result: $enable_static" >&5
14157 echo "${ECHO_T}$enable_static" >&6
14158
14159 GCC_F77="$G77"
14160 LD_F77="$LD"
14161
14162 lt_prog_compiler_wl_F77=
14163 lt_prog_compiler_pic_F77=
14164 lt_prog_compiler_static_F77=
14165
14166 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14167 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14168
14169   if test "$GCC" = yes; then
14170     lt_prog_compiler_wl_F77='-Wl,'
14171     lt_prog_compiler_static_F77='-static'
14172
14173     case $host_os in
14174       aix*)
14175       # All AIX code is PIC.
14176       if test "$host_cpu" = ia64; then
14177         # AIX 5 now supports IA64 processor
14178         lt_prog_compiler_static_F77='-Bstatic'
14179       fi
14180       ;;
14181
14182     amigaos*)
14183       # FIXME: we need at least 68020 code to build shared libraries, but
14184       # adding the `-m68020' flag to GCC prevents building anything better,
14185       # like `-m68040'.
14186       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14187       ;;
14188
14189     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14190       # PIC is the default for these OSes.
14191       ;;
14192
14193     mingw* | pw32* | os2*)
14194       # This hack is so that the source file can tell whether it is being
14195       # built for inclusion in a dll (and should export symbols for example).
14196       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14197       ;;
14198
14199     darwin* | rhapsody*)
14200       # PIC is the default on this platform
14201       # Common symbols not allowed in MH_DYLIB files
14202       lt_prog_compiler_pic_F77='-fno-common'
14203       ;;
14204
14205     interix3*)
14206       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14207       # Instead, we relocate shared libraries at runtime.
14208       ;;
14209
14210     msdosdjgpp*)
14211       # Just because we use GCC doesn't mean we suddenly get shared libraries
14212       # on systems that don't support them.
14213       lt_prog_compiler_can_build_shared_F77=no
14214       enable_shared=no
14215       ;;
14216
14217     sysv4*MP*)
14218       if test -d /usr/nec; then
14219         lt_prog_compiler_pic_F77=-Kconform_pic
14220       fi
14221       ;;
14222
14223     hpux*)
14224       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14225       # not for PA HP-UX.
14226       case $host_cpu in
14227       hppa*64*|ia64*)
14228         # +Z the default
14229         ;;
14230       *)
14231         lt_prog_compiler_pic_F77='-fPIC'
14232         ;;
14233       esac
14234       ;;
14235
14236     *)
14237       lt_prog_compiler_pic_F77='-fPIC'
14238       ;;
14239     esac
14240   else
14241     # PORTME Check for flag to pass linker flags through the system compiler.
14242     case $host_os in
14243     aix*)
14244       lt_prog_compiler_wl_F77='-Wl,'
14245       if test "$host_cpu" = ia64; then
14246         # AIX 5 now supports IA64 processor
14247         lt_prog_compiler_static_F77='-Bstatic'
14248       else
14249         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14250       fi
14251       ;;
14252       darwin*)
14253         # PIC is the default on this platform
14254         # Common symbols not allowed in MH_DYLIB files
14255        case $cc_basename in
14256          xlc*)
14257          lt_prog_compiler_pic_F77='-qnocommon'
14258          lt_prog_compiler_wl_F77='-Wl,'
14259          ;;
14260        esac
14261        ;;
14262
14263     mingw* | pw32* | os2*)
14264       # This hack is so that the source file can tell whether it is being
14265       # built for inclusion in a dll (and should export symbols for example).
14266       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14267       ;;
14268
14269     hpux9* | hpux10* | hpux11*)
14270       lt_prog_compiler_wl_F77='-Wl,'
14271       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14272       # not for PA HP-UX.
14273       case $host_cpu in
14274       hppa*64*|ia64*)
14275         # +Z the default
14276         ;;
14277       *)
14278         lt_prog_compiler_pic_F77='+Z'
14279         ;;
14280       esac
14281       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14282       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14283       ;;
14284
14285     irix5* | irix6* | nonstopux*)
14286       lt_prog_compiler_wl_F77='-Wl,'
14287       # PIC (with -KPIC) is the default.
14288       lt_prog_compiler_static_F77='-non_shared'
14289       ;;
14290
14291     newsos6)
14292       lt_prog_compiler_pic_F77='-KPIC'
14293       lt_prog_compiler_static_F77='-Bstatic'
14294       ;;
14295
14296     linux* | k*bsd*-gnu)
14297       case $cc_basename in
14298       icc* | ecc*)
14299         lt_prog_compiler_wl_F77='-Wl,'
14300         lt_prog_compiler_pic_F77='-KPIC'
14301         lt_prog_compiler_static_F77='-static'
14302         ;;
14303       pgcc* | pgf77* | pgf90* | pgf95*)
14304         # Portland Group compilers (*not* the Pentium gcc compiler,
14305         # which looks to be a dead project)
14306         lt_prog_compiler_wl_F77='-Wl,'
14307         lt_prog_compiler_pic_F77='-fpic'
14308         lt_prog_compiler_static_F77='-Bstatic'
14309         ;;
14310       ccc*)
14311         lt_prog_compiler_wl_F77='-Wl,'
14312         # All Alpha code is PIC.
14313         lt_prog_compiler_static_F77='-non_shared'
14314         ;;
14315       esac
14316       ;;
14317
14318     osf3* | osf4* | osf5*)
14319       lt_prog_compiler_wl_F77='-Wl,'
14320       # All OSF/1 code is PIC.
14321       lt_prog_compiler_static_F77='-non_shared'
14322       ;;
14323
14324     solaris*)
14325       lt_prog_compiler_pic_F77='-KPIC'
14326       lt_prog_compiler_static_F77='-Bstatic'
14327       case $cc_basename in
14328       f77* | f90* | f95*)
14329         lt_prog_compiler_wl_F77='-Qoption ld ';;
14330       *)
14331         lt_prog_compiler_wl_F77='-Wl,';;
14332       esac
14333       ;;
14334
14335     sunos4*)
14336       lt_prog_compiler_wl_F77='-Qoption ld '
14337       lt_prog_compiler_pic_F77='-PIC'
14338       lt_prog_compiler_static_F77='-Bstatic'
14339       ;;
14340
14341     sysv4 | sysv4.2uw2* | sysv4.3*)
14342       lt_prog_compiler_wl_F77='-Wl,'
14343       lt_prog_compiler_pic_F77='-KPIC'
14344       lt_prog_compiler_static_F77='-Bstatic'
14345       ;;
14346
14347     sysv4*MP*)
14348       if test -d /usr/nec ;then
14349         lt_prog_compiler_pic_F77='-Kconform_pic'
14350         lt_prog_compiler_static_F77='-Bstatic'
14351       fi
14352       ;;
14353
14354     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14355       lt_prog_compiler_wl_F77='-Wl,'
14356       lt_prog_compiler_pic_F77='-KPIC'
14357       lt_prog_compiler_static_F77='-Bstatic'
14358       ;;
14359
14360     unicos*)
14361       lt_prog_compiler_wl_F77='-Wl,'
14362       lt_prog_compiler_can_build_shared_F77=no
14363       ;;
14364
14365     uts4*)
14366       lt_prog_compiler_pic_F77='-pic'
14367       lt_prog_compiler_static_F77='-Bstatic'
14368       ;;
14369
14370     *)
14371       lt_prog_compiler_can_build_shared_F77=no
14372       ;;
14373     esac
14374   fi
14375
14376 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14377 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14378
14379 #
14380 # Check to make sure the PIC flag actually works.
14381 #
14382 if test -n "$lt_prog_compiler_pic_F77"; then
14383
14384 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14385 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14386 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14387   echo $ECHO_N "(cached) $ECHO_C" >&6
14388 else
14389   lt_prog_compiler_pic_works_F77=no
14390   ac_outfile=conftest.$ac_objext
14391    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14392    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14393    # Insert the option either (1) after the last *FLAGS variable, or
14394    # (2) before a word containing "conftest.", or (3) at the end.
14395    # Note that $ac_compile itself does not contain backslashes and begins
14396    # with a dollar sign (not a hyphen), so the echo should work correctly.
14397    # The option is referenced via a variable to avoid confusing sed.
14398    lt_compile=`echo "$ac_compile" | $SED \
14399    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14400    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14401    -e 's:$: $lt_compiler_flag:'`
14402    (eval echo "\"\$as_me:14402: $lt_compile\"" >&5)
14403    (eval "$lt_compile" 2>conftest.err)
14404    ac_status=$?
14405    cat conftest.err >&5
14406    echo "$as_me:14406: \$? = $ac_status" >&5
14407    if (exit $ac_status) && test -s "$ac_outfile"; then
14408      # The compiler can only warn and ignore the option if not recognized
14409      # So say no if there are warnings other than the usual output.
14410      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14411      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14412      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14413        lt_prog_compiler_pic_works_F77=yes
14414      fi
14415    fi
14416    $rm conftest*
14417
14418 fi
14419 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14420 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14421
14422 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14423     case $lt_prog_compiler_pic_F77 in
14424      "" | " "*) ;;
14425      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14426      esac
14427 else
14428     lt_prog_compiler_pic_F77=
14429      lt_prog_compiler_can_build_shared_F77=no
14430 fi
14431
14432 fi
14433 case $host_os in
14434   # For platforms which do not support PIC, -DPIC is meaningless:
14435   *djgpp*)
14436     lt_prog_compiler_pic_F77=
14437     ;;
14438   *)
14439     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14440     ;;
14441 esac
14442
14443 #
14444 # Check to make sure the static flag actually works.
14445 #
14446 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14447 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14448 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14449 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14450   echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452   lt_prog_compiler_static_works_F77=no
14453    save_LDFLAGS="$LDFLAGS"
14454    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14455    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14456    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14457      # The linker can only warn and ignore the option if not recognized
14458      # So say no if there are warnings
14459      if test -s conftest.err; then
14460        # Append any errors to the config.log.
14461        cat conftest.err 1>&5
14462        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14463        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14464        if diff conftest.exp conftest.er2 >/dev/null; then
14465          lt_prog_compiler_static_works_F77=yes
14466        fi
14467      else
14468        lt_prog_compiler_static_works_F77=yes
14469      fi
14470    fi
14471    $rm conftest*
14472    LDFLAGS="$save_LDFLAGS"
14473
14474 fi
14475 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14476 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14477
14478 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14479     :
14480 else
14481     lt_prog_compiler_static_F77=
14482 fi
14483
14484
14485 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14486 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14487 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14488   echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490   lt_cv_prog_compiler_c_o_F77=no
14491    $rm -r conftest 2>/dev/null
14492    mkdir conftest
14493    cd conftest
14494    mkdir out
14495    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14496
14497    lt_compiler_flag="-o out/conftest2.$ac_objext"
14498    # Insert the option either (1) after the last *FLAGS variable, or
14499    # (2) before a word containing "conftest.", or (3) at the end.
14500    # Note that $ac_compile itself does not contain backslashes and begins
14501    # with a dollar sign (not a hyphen), so the echo should work correctly.
14502    lt_compile=`echo "$ac_compile" | $SED \
14503    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14504    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14505    -e 's:$: $lt_compiler_flag:'`
14506    (eval echo "\"\$as_me:14506: $lt_compile\"" >&5)
14507    (eval "$lt_compile" 2>out/conftest.err)
14508    ac_status=$?
14509    cat out/conftest.err >&5
14510    echo "$as_me:14510: \$? = $ac_status" >&5
14511    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14512    then
14513      # The compiler can only warn and ignore the option if not recognized
14514      # So say no if there are warnings
14515      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14516      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14517      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14518        lt_cv_prog_compiler_c_o_F77=yes
14519      fi
14520    fi
14521    chmod u+w . 2>&5
14522    $rm conftest*
14523    # SGI C++ compiler will create directory out/ii_files/ for
14524    # template instantiation
14525    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14526    $rm out/* && rmdir out
14527    cd ..
14528    rmdir conftest
14529    $rm conftest*
14530
14531 fi
14532 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14533 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14534
14535
14536 hard_links="nottested"
14537 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14538   # do not overwrite the value of need_locks provided by the user
14539   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14540 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14541   hard_links=yes
14542   $rm conftest*
14543   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14544   touch conftest.a
14545   ln conftest.a conftest.b 2>&5 || hard_links=no
14546   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14547   echo "$as_me:$LINENO: result: $hard_links" >&5
14548 echo "${ECHO_T}$hard_links" >&6
14549   if test "$hard_links" = no; then
14550     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14551 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14552     need_locks=warn
14553   fi
14554 else
14555   need_locks=no
14556 fi
14557
14558 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14559 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14560
14561   runpath_var=
14562   allow_undefined_flag_F77=
14563   enable_shared_with_static_runtimes_F77=no
14564   archive_cmds_F77=
14565   archive_expsym_cmds_F77=
14566   old_archive_From_new_cmds_F77=
14567   old_archive_from_expsyms_cmds_F77=
14568   export_dynamic_flag_spec_F77=
14569   whole_archive_flag_spec_F77=
14570   thread_safe_flag_spec_F77=
14571   hardcode_libdir_flag_spec_F77=
14572   hardcode_libdir_flag_spec_ld_F77=
14573   hardcode_libdir_separator_F77=
14574   hardcode_direct_F77=no
14575   hardcode_minus_L_F77=no
14576   hardcode_shlibpath_var_F77=unsupported
14577   link_all_deplibs_F77=unknown
14578   hardcode_automatic_F77=no
14579   module_cmds_F77=
14580   module_expsym_cmds_F77=
14581   always_export_symbols_F77=no
14582   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14583   # include_expsyms should be a list of space-separated symbols to be *always*
14584   # included in the symbol list
14585   include_expsyms_F77=
14586   # exclude_expsyms can be an extended regexp of symbols to exclude
14587   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14588   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14589   # as well as any symbol that contains `d'.
14590   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14591   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14592   # platforms (ab)use it in PIC code, but their linkers get confused if
14593   # the symbol is explicitly referenced.  Since portable code cannot
14594   # rely on this symbol name, it's probably fine to never include it in
14595   # preloaded symbol tables.
14596   extract_expsyms_cmds=
14597   # Just being paranoid about ensuring that cc_basename is set.
14598   for cc_temp in $compiler""; do
14599   case $cc_temp in
14600     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14601     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14602     \-*) ;;
14603     *) break;;
14604   esac
14605 done
14606 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14607
14608   case $host_os in
14609   cygwin* | mingw* | pw32*)
14610     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14611     # When not using gcc, we currently assume that we are using
14612     # Microsoft Visual C++.
14613     if test "$GCC" != yes; then
14614       with_gnu_ld=no
14615     fi
14616     ;;
14617   interix*)
14618     # we just hope/assume this is gcc and not c89 (= MSVC++)
14619     with_gnu_ld=yes
14620     ;;
14621   openbsd*)
14622     with_gnu_ld=no
14623     ;;
14624   esac
14625
14626   ld_shlibs_F77=yes
14627   if test "$with_gnu_ld" = yes; then
14628     # If archive_cmds runs LD, not CC, wlarc should be empty
14629     wlarc='${wl}'
14630
14631     # Set some defaults for GNU ld with shared library support. These
14632     # are reset later if shared libraries are not supported. Putting them
14633     # here allows them to be overridden if necessary.
14634     runpath_var=LD_RUN_PATH
14635     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14636     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14637     # ancient GNU ld didn't support --whole-archive et. al.
14638     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14639         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14640       else
14641         whole_archive_flag_spec_F77=
14642     fi
14643     supports_anon_versioning=no
14644     case `$LD -v 2>/dev/null` in
14645       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14646       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14647       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14648       *\ 2.11.*) ;; # other 2.11 versions
14649       *) supports_anon_versioning=yes ;;
14650     esac
14651
14652     # See if GNU ld supports shared libraries.
14653     case $host_os in
14654     aix3* | aix4* | aix5*)
14655       # On AIX/PPC, the GNU linker is very broken
14656       if test "$host_cpu" != ia64; then
14657         ld_shlibs_F77=no
14658         cat <<EOF 1>&2
14659
14660 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14661 *** to be unable to reliably create shared libraries on AIX.
14662 *** Therefore, libtool is disabling shared libraries support.  If you
14663 *** really care for shared libraries, you may want to modify your PATH
14664 *** so that a non-GNU linker is found, and then restart.
14665
14666 EOF
14667       fi
14668       ;;
14669
14670     amigaos*)
14671       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)'
14672       hardcode_libdir_flag_spec_F77='-L$libdir'
14673       hardcode_minus_L_F77=yes
14674
14675       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14676       # that the semantics of dynamic libraries on AmigaOS, at least up
14677       # to version 4, is to share data among multiple programs linked
14678       # with the same dynamic library.  Since this doesn't match the
14679       # behavior of shared libraries on other platforms, we can't use
14680       # them.
14681       ld_shlibs_F77=no
14682       ;;
14683
14684     beos*)
14685       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14686         allow_undefined_flag_F77=unsupported
14687         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14688         # support --undefined.  This deserves some investigation.  FIXME
14689         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14690       else
14691         ld_shlibs_F77=no
14692       fi
14693       ;;
14694
14695     cygwin* | mingw* | pw32*)
14696       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14697       # as there is no search path for DLLs.
14698       hardcode_libdir_flag_spec_F77='-L$libdir'
14699       allow_undefined_flag_F77=unsupported
14700       always_export_symbols_F77=no
14701       enable_shared_with_static_runtimes_F77=yes
14702       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14703
14704       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14705         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14706         # If the export-symbols file already is a .def file (1st line
14707         # is EXPORTS), use it as is; otherwise, prepend...
14708         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14709           cp $export_symbols $output_objdir/$soname.def;
14710         else
14711           echo EXPORTS > $output_objdir/$soname.def;
14712           cat $export_symbols >> $output_objdir/$soname.def;
14713         fi~
14714         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14715       else
14716         ld_shlibs_F77=no
14717       fi
14718       ;;
14719
14720     interix3*)
14721       hardcode_direct_F77=no
14722       hardcode_shlibpath_var_F77=no
14723       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14724       export_dynamic_flag_spec_F77='${wl}-E'
14725       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14726       # Instead, shared libraries are loaded at an image base (0x10000000 by
14727       # default) and relocated if they conflict, which is a slow very memory
14728       # consuming and fragmenting process.  To avoid this, we pick a random,
14729       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14730       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14731       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'
14732       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'
14733       ;;
14734
14735     linux* | k*bsd*-gnu)
14736       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14737         tmp_addflag=
14738         case $cc_basename,$host_cpu in
14739         pgcc*)                          # Portland Group C compiler
14740           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'
14741           tmp_addflag=' $pic_flag'
14742           ;;
14743         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14744           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'
14745           tmp_addflag=' $pic_flag -Mnomain' ;;
14746         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14747           tmp_addflag=' -i_dynamic' ;;
14748         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14749           tmp_addflag=' -i_dynamic -nofor_main' ;;
14750         ifc* | ifort*)                  # Intel Fortran compiler
14751           tmp_addflag=' -nofor_main' ;;
14752         esac
14753         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14754
14755         if test $supports_anon_versioning = yes; then
14756           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14757   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14758   $echo "local: *; };" >> $output_objdir/$libname.ver~
14759           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14760         fi
14761         link_all_deplibs_F77=no
14762       else
14763         ld_shlibs_F77=no
14764       fi
14765       ;;
14766
14767     netbsd* | netbsdelf*-gnu)
14768       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14769         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14770         wlarc=
14771       else
14772         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14773         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14774       fi
14775       ;;
14776
14777     solaris*)
14778       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14779         ld_shlibs_F77=no
14780         cat <<EOF 1>&2
14781
14782 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14783 *** create shared libraries on Solaris systems.  Therefore, libtool
14784 *** is disabling shared libraries support.  We urge you to upgrade GNU
14785 *** binutils to release 2.9.1 or newer.  Another option is to modify
14786 *** your PATH or compiler configuration so that the native linker is
14787 *** used, and then restart.
14788
14789 EOF
14790       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14791         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14792         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14793       else
14794         ld_shlibs_F77=no
14795       fi
14796       ;;
14797
14798     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14799       case `$LD -v 2>&1` in
14800         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14801         ld_shlibs_F77=no
14802         cat <<_LT_EOF 1>&2
14803
14804 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14805 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14806 *** is disabling shared libraries support.  We urge you to upgrade GNU
14807 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14808 *** your PATH or compiler configuration so that the native linker is
14809 *** used, and then restart.
14810
14811 _LT_EOF
14812         ;;
14813         *)
14814           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14815             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14816             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14817             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14818           else
14819             ld_shlibs_F77=no
14820           fi
14821         ;;
14822       esac
14823       ;;
14824
14825     sunos4*)
14826       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14827       wlarc=
14828       hardcode_direct_F77=yes
14829       hardcode_shlibpath_var_F77=no
14830       ;;
14831
14832     *)
14833       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14834         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14835         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14836       else
14837         ld_shlibs_F77=no
14838       fi
14839       ;;
14840     esac
14841
14842     if test "$ld_shlibs_F77" = no; then
14843       runpath_var=
14844       hardcode_libdir_flag_spec_F77=
14845       export_dynamic_flag_spec_F77=
14846       whole_archive_flag_spec_F77=
14847     fi
14848   else
14849     # PORTME fill in a description of your system's linker (not GNU ld)
14850     case $host_os in
14851     aix3*)
14852       allow_undefined_flag_F77=unsupported
14853       always_export_symbols_F77=yes
14854       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'
14855       # Note: this linker hardcodes the directories in LIBPATH if there
14856       # are no directories specified by -L.
14857       hardcode_minus_L_F77=yes
14858       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14859         # Neither direct hardcoding nor static linking is supported with a
14860         # broken collect2.
14861         hardcode_direct_F77=unsupported
14862       fi
14863       ;;
14864
14865     aix4* | aix5*)
14866       if test "$host_cpu" = ia64; then
14867         # On IA64, the linker does run time linking by default, so we don't
14868         # have to do anything special.
14869         aix_use_runtimelinking=no
14870         exp_sym_flag='-Bexport'
14871         no_entry_flag=""
14872       else
14873         # If we're using GNU nm, then we don't want the "-C" option.
14874         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14875         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14876           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'
14877         else
14878           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'
14879         fi
14880         aix_use_runtimelinking=no
14881
14882         # Test if we are trying to use run time linking or normal
14883         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14884         # need to do runtime linking.
14885         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14886           for ld_flag in $LDFLAGS; do
14887           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14888             aix_use_runtimelinking=yes
14889             break
14890           fi
14891           done
14892           ;;
14893         esac
14894
14895         exp_sym_flag='-bexport'
14896         no_entry_flag='-bnoentry'
14897       fi
14898
14899       # When large executables or shared objects are built, AIX ld can
14900       # have problems creating the table of contents.  If linking a library
14901       # or program results in "error TOC overflow" add -mminimal-toc to
14902       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14903       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14904
14905       archive_cmds_F77=''
14906       hardcode_direct_F77=yes
14907       hardcode_libdir_separator_F77=':'
14908       link_all_deplibs_F77=yes
14909
14910       if test "$GCC" = yes; then
14911         case $host_os in aix4.[012]|aix4.[012].*)
14912         # We only want to do this on AIX 4.2 and lower, the check
14913         # below for broken collect2 doesn't work under 4.3+
14914           collect2name=`${CC} -print-prog-name=collect2`
14915           if test -f "$collect2name" && \
14916            strings "$collect2name" | grep resolve_lib_name >/dev/null
14917           then
14918           # We have reworked collect2
14919           hardcode_direct_F77=yes
14920           else
14921           # We have old collect2
14922           hardcode_direct_F77=unsupported
14923           # It fails to find uninstalled libraries when the uninstalled
14924           # path is not listed in the libpath.  Setting hardcode_minus_L
14925           # to unsupported forces relinking
14926           hardcode_minus_L_F77=yes
14927           hardcode_libdir_flag_spec_F77='-L$libdir'
14928           hardcode_libdir_separator_F77=
14929           fi
14930           ;;
14931         esac
14932         shared_flag='-shared'
14933         if test "$aix_use_runtimelinking" = yes; then
14934           shared_flag="$shared_flag "'${wl}-G'
14935         fi
14936       else
14937         # not using gcc
14938         if test "$host_cpu" = ia64; then
14939         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14940         # chokes on -Wl,-G. The following line is correct:
14941           shared_flag='-G'
14942         else
14943           if test "$aix_use_runtimelinking" = yes; then
14944             shared_flag='${wl}-G'
14945           else
14946             shared_flag='${wl}-bM:SRE'
14947           fi
14948         fi
14949       fi
14950
14951       # It seems that -bexpall does not export symbols beginning with
14952       # underscore (_), so it is better to generate a list of symbols to export.
14953       always_export_symbols_F77=yes
14954       if test "$aix_use_runtimelinking" = yes; then
14955         # Warning - without using the other runtime loading flags (-brtl),
14956         # -berok will link without error, but may produce a broken library.
14957         allow_undefined_flag_F77='-berok'
14958        # Determine the default libpath from the value encoded in an empty executable.
14959        cat >conftest.$ac_ext <<_ACEOF
14960       program main
14961
14962       end
14963 _ACEOF
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966   (eval $ac_link) 2>conftest.er1
14967   ac_status=$?
14968   grep -v '^ *+' conftest.er1 >conftest.err
14969   rm -f conftest.er1
14970   cat conftest.err >&5
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); } &&
14973          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975   (eval $ac_try) 2>&5
14976   ac_status=$?
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); }; } &&
14979          { ac_try='test -s conftest$ac_exeext'
14980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981   (eval $ac_try) 2>&5
14982   ac_status=$?
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); }; }; then
14985
14986 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14987 }'`
14988 # Check for a 64-bit object if we didn't find anything.
14989 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; }
14990 }'`; fi
14991 else
14992   echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14994
14995 fi
14996 rm -f conftest.err conftest.$ac_objext \
14997       conftest$ac_exeext conftest.$ac_ext
14998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14999
15000        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15001         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"
15002        else
15003         if test "$host_cpu" = ia64; then
15004           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15005           allow_undefined_flag_F77="-z nodefs"
15006           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"
15007         else
15008          # Determine the default libpath from the value encoded in an empty executable.
15009          cat >conftest.$ac_ext <<_ACEOF
15010       program main
15011
15012       end
15013 _ACEOF
15014 rm -f conftest.$ac_objext conftest$ac_exeext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15016   (eval $ac_link) 2>conftest.er1
15017   ac_status=$?
15018   grep -v '^ *+' conftest.er1 >conftest.err
15019   rm -f conftest.er1
15020   cat conftest.err >&5
15021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); } &&
15023          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
15024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025   (eval $ac_try) 2>&5
15026   ac_status=$?
15027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028   (exit $ac_status); }; } &&
15029          { ac_try='test -s conftest$ac_exeext'
15030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031   (eval $ac_try) 2>&5
15032   ac_status=$?
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); }; }; then
15035
15036 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15037 }'`
15038 # Check for a 64-bit object if we didn't find anything.
15039 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; }
15040 }'`; fi
15041 else
15042   echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15044
15045 fi
15046 rm -f conftest.err conftest.$ac_objext \
15047       conftest$ac_exeext conftest.$ac_ext
15048 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15049
15050          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15051           # Warning - without using the other run time loading flags,
15052           # -berok will link without error, but may produce a broken library.
15053           no_undefined_flag_F77=' ${wl}-bernotok'
15054           allow_undefined_flag_F77=' ${wl}-berok'
15055           # Exported symbols can be pulled into shared objects from archives
15056           whole_archive_flag_spec_F77='$convenience'
15057           archive_cmds_need_lc_F77=yes
15058           # This is similar to how AIX traditionally builds its shared libraries.
15059           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'
15060         fi
15061       fi
15062       ;;
15063
15064     amigaos*)
15065       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)'
15066       hardcode_libdir_flag_spec_F77='-L$libdir'
15067       hardcode_minus_L_F77=yes
15068       # see comment about different semantics on the GNU ld section
15069       ld_shlibs_F77=no
15070       ;;
15071
15072     bsdi[45]*)
15073       export_dynamic_flag_spec_F77=-rdynamic
15074       ;;
15075
15076     cygwin* | mingw* | pw32*)
15077       # When not using gcc, we currently assume that we are using
15078       # Microsoft Visual C++.
15079       # hardcode_libdir_flag_spec is actually meaningless, as there is
15080       # no search path for DLLs.
15081       hardcode_libdir_flag_spec_F77=' '
15082       allow_undefined_flag_F77=unsupported
15083       # Tell ltmain to make .lib files, not .a files.
15084       libext=lib
15085       # Tell ltmain to make .dll files, not .so files.
15086       shrext_cmds=".dll"
15087       # FIXME: Setting linknames here is a bad hack.
15088       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15089       # The linker will automatically build a .lib file if we build a DLL.
15090       old_archive_From_new_cmds_F77='true'
15091       # FIXME: Should let the user specify the lib program.
15092       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15093       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15094       enable_shared_with_static_runtimes_F77=yes
15095       ;;
15096
15097     darwin* | rhapsody*)
15098       case $host_os in
15099         rhapsody* | darwin1.[012])
15100          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15101          ;;
15102        *) # Darwin 1.3 on
15103          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15104            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15105          else
15106            case ${MACOSX_DEPLOYMENT_TARGET} in
15107              10.[012])
15108                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15109                ;;
15110              10.*)
15111                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15112                ;;
15113            esac
15114          fi
15115          ;;
15116       esac
15117       archive_cmds_need_lc_F77=no
15118       hardcode_direct_F77=no
15119       hardcode_automatic_F77=yes
15120       hardcode_shlibpath_var_F77=unsupported
15121       whole_archive_flag_spec_F77=''
15122       link_all_deplibs_F77=yes
15123     if test "$GCC" = yes ; then
15124         output_verbose_link_cmd='echo'
15125         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15126       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15127       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15128       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}'
15129       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}'
15130     else
15131       case $cc_basename in
15132         xlc*)
15133          output_verbose_link_cmd='echo'
15134          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15135          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15136           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15137          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}'
15138           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}'
15139           ;;
15140        *)
15141          ld_shlibs_F77=no
15142           ;;
15143       esac
15144     fi
15145       ;;
15146
15147     dgux*)
15148       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15149       hardcode_libdir_flag_spec_F77='-L$libdir'
15150       hardcode_shlibpath_var_F77=no
15151       ;;
15152
15153     freebsd1*)
15154       ld_shlibs_F77=no
15155       ;;
15156
15157     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15158     # support.  Future versions do this automatically, but an explicit c++rt0.o
15159     # does not break anything, and helps significantly (at the cost of a little
15160     # extra space).
15161     freebsd2.2*)
15162       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15163       hardcode_libdir_flag_spec_F77='-R$libdir'
15164       hardcode_direct_F77=yes
15165       hardcode_shlibpath_var_F77=no
15166       ;;
15167
15168     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15169     freebsd2*)
15170       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15171       hardcode_direct_F77=yes
15172       hardcode_minus_L_F77=yes
15173       hardcode_shlibpath_var_F77=no
15174       ;;
15175
15176     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15177     freebsd* | dragonfly*)
15178       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15179       hardcode_libdir_flag_spec_F77='-R$libdir'
15180       hardcode_direct_F77=yes
15181       hardcode_shlibpath_var_F77=no
15182       ;;
15183
15184     hpux9*)
15185       if test "$GCC" = yes; then
15186         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'
15187       else
15188         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'
15189       fi
15190       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15191       hardcode_libdir_separator_F77=:
15192       hardcode_direct_F77=yes
15193
15194       # hardcode_minus_L: Not really in the search PATH,
15195       # but as the default location of the library.
15196       hardcode_minus_L_F77=yes
15197       export_dynamic_flag_spec_F77='${wl}-E'
15198       ;;
15199
15200     hpux10*)
15201       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15202         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15203       else
15204         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15205       fi
15206       if test "$with_gnu_ld" = no; then
15207         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15208         hardcode_libdir_separator_F77=:
15209
15210         hardcode_direct_F77=yes
15211         export_dynamic_flag_spec_F77='${wl}-E'
15212
15213         # hardcode_minus_L: Not really in the search PATH,
15214         # but as the default location of the library.
15215         hardcode_minus_L_F77=yes
15216       fi
15217       ;;
15218
15219     hpux11*)
15220       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15221         case $host_cpu in
15222         hppa*64*)
15223           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15224           ;;
15225         ia64*)
15226           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15227           ;;
15228         *)
15229           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15230           ;;
15231         esac
15232       else
15233         case $host_cpu in
15234         hppa*64*)
15235           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15236           ;;
15237         ia64*)
15238           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15239           ;;
15240         *)
15241           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15242           ;;
15243         esac
15244       fi
15245       if test "$with_gnu_ld" = no; then
15246         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15247         hardcode_libdir_separator_F77=:
15248
15249         case $host_cpu in
15250         hppa*64*|ia64*)
15251           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15252           hardcode_direct_F77=no
15253           hardcode_shlibpath_var_F77=no
15254           ;;
15255         *)
15256           hardcode_direct_F77=yes
15257           export_dynamic_flag_spec_F77='${wl}-E'
15258
15259           # hardcode_minus_L: Not really in the search PATH,
15260           # but as the default location of the library.
15261           hardcode_minus_L_F77=yes
15262           ;;
15263         esac
15264       fi
15265       ;;
15266
15267     irix5* | irix6* | nonstopux*)
15268       if test "$GCC" = yes; then
15269         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'
15270       else
15271         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'
15272         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15273       fi
15274       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15275       hardcode_libdir_separator_F77=:
15276       link_all_deplibs_F77=yes
15277       ;;
15278
15279     netbsd* | netbsdelf*-gnu)
15280       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15281         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15282       else
15283         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15284       fi
15285       hardcode_libdir_flag_spec_F77='-R$libdir'
15286       hardcode_direct_F77=yes
15287       hardcode_shlibpath_var_F77=no
15288       ;;
15289
15290     newsos6)
15291       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15292       hardcode_direct_F77=yes
15293       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15294       hardcode_libdir_separator_F77=:
15295       hardcode_shlibpath_var_F77=no
15296       ;;
15297
15298     openbsd*)
15299       hardcode_direct_F77=yes
15300       hardcode_shlibpath_var_F77=no
15301       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15302         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15303         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15304         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15305         export_dynamic_flag_spec_F77='${wl}-E'
15306       else
15307        case $host_os in
15308          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15309            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15310            hardcode_libdir_flag_spec_F77='-R$libdir'
15311            ;;
15312          *)
15313            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15314            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15315            ;;
15316        esac
15317       fi
15318       ;;
15319
15320     os2*)
15321       hardcode_libdir_flag_spec_F77='-L$libdir'
15322       hardcode_minus_L_F77=yes
15323       allow_undefined_flag_F77=unsupported
15324       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'
15325       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15326       ;;
15327
15328     osf3*)
15329       if test "$GCC" = yes; then
15330         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15331         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'
15332       else
15333         allow_undefined_flag_F77=' -expect_unresolved \*'
15334         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'
15335       fi
15336       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15337       hardcode_libdir_separator_F77=:
15338       ;;
15339
15340     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15341       if test "$GCC" = yes; then
15342         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15343         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'
15344         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15345       else
15346         allow_undefined_flag_F77=' -expect_unresolved \*'
15347         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'
15348         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~
15349         $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'
15350
15351         # Both c and cxx compiler support -rpath directly
15352         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15353       fi
15354       hardcode_libdir_separator_F77=:
15355       ;;
15356
15357     solaris*)
15358       no_undefined_flag_F77=' -z text'
15359       if test "$GCC" = yes; then
15360         wlarc='${wl}'
15361         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15362         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15363           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15364       else
15365         wlarc=''
15366         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15367         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15368         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15369       fi
15370       hardcode_libdir_flag_spec_F77='-R$libdir'
15371       hardcode_shlibpath_var_F77=no
15372       case $host_os in
15373       solaris2.[0-5] | solaris2.[0-5].*) ;;
15374       *)
15375         # The compiler driver will combine linker options so we
15376         # cannot just pass the convience library names through
15377         # without $wl, iff we do not link with $LD.
15378         # Luckily, gcc supports the same syntax we need for Sun Studio.
15379         # Supported since Solaris 2.6 (maybe 2.5.1?)
15380         case $wlarc in
15381         '')
15382           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15383         *)
15384           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' ;;
15385         esac ;;
15386       esac
15387       link_all_deplibs_F77=yes
15388       ;;
15389
15390     sunos4*)
15391       if test "x$host_vendor" = xsequent; then
15392         # Use $CC to link under sequent, because it throws in some extra .o
15393         # files that make .init and .fini sections work.
15394         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15395       else
15396         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15397       fi
15398       hardcode_libdir_flag_spec_F77='-L$libdir'
15399       hardcode_direct_F77=yes
15400       hardcode_minus_L_F77=yes
15401       hardcode_shlibpath_var_F77=no
15402       ;;
15403
15404     sysv4)
15405       case $host_vendor in
15406         sni)
15407           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15408           hardcode_direct_F77=yes # is this really true???
15409         ;;
15410         siemens)
15411           ## LD is ld it makes a PLAMLIB
15412           ## CC just makes a GrossModule.
15413           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15414           reload_cmds_F77='$CC -r -o $output$reload_objs'
15415           hardcode_direct_F77=no
15416         ;;
15417         motorola)
15418           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15419           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15420         ;;
15421       esac
15422       runpath_var='LD_RUN_PATH'
15423       hardcode_shlibpath_var_F77=no
15424       ;;
15425
15426     sysv4.3*)
15427       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428       hardcode_shlibpath_var_F77=no
15429       export_dynamic_flag_spec_F77='-Bexport'
15430       ;;
15431
15432     sysv4*MP*)
15433       if test -d /usr/nec; then
15434         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15435         hardcode_shlibpath_var_F77=no
15436         runpath_var=LD_RUN_PATH
15437         hardcode_runpath_var=yes
15438         ld_shlibs_F77=yes
15439       fi
15440       ;;
15441
15442     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15443       no_undefined_flag_F77='${wl}-z,text'
15444       archive_cmds_need_lc_F77=no
15445       hardcode_shlibpath_var_F77=no
15446       runpath_var='LD_RUN_PATH'
15447
15448       if test "$GCC" = yes; then
15449         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15450         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15451       else
15452         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15453         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15454       fi
15455       ;;
15456
15457     sysv5* | sco3.2v5* | sco5v6*)
15458       # Note: We can NOT use -z defs as we might desire, because we do not
15459       # link with -lc, and that would cause any symbols used from libc to
15460       # always be unresolved, which means just about no library would
15461       # ever link correctly.  If we're not using GNU ld we use -z text
15462       # though, which does catch some bad symbols but isn't as heavy-handed
15463       # as -z defs.
15464       no_undefined_flag_F77='${wl}-z,text'
15465       allow_undefined_flag_F77='${wl}-z,nodefs'
15466       archive_cmds_need_lc_F77=no
15467       hardcode_shlibpath_var_F77=no
15468       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15469       hardcode_libdir_separator_F77=':'
15470       link_all_deplibs_F77=yes
15471       export_dynamic_flag_spec_F77='${wl}-Bexport'
15472       runpath_var='LD_RUN_PATH'
15473
15474       if test "$GCC" = yes; then
15475         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15476         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15477       else
15478         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15479         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15480       fi
15481       ;;
15482
15483     uts4*)
15484       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15485       hardcode_libdir_flag_spec_F77='-L$libdir'
15486       hardcode_shlibpath_var_F77=no
15487       ;;
15488
15489     *)
15490       ld_shlibs_F77=no
15491       ;;
15492     esac
15493   fi
15494
15495 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15496 echo "${ECHO_T}$ld_shlibs_F77" >&6
15497 test "$ld_shlibs_F77" = no && can_build_shared=no
15498
15499 #
15500 # Do we need to explicitly link libc?
15501 #
15502 case "x$archive_cmds_need_lc_F77" in
15503 x|xyes)
15504   # Assume -lc should be added
15505   archive_cmds_need_lc_F77=yes
15506
15507   if test "$enable_shared" = yes && test "$GCC" = yes; then
15508     case $archive_cmds_F77 in
15509     *'~'*)
15510       # FIXME: we may have to deal with multi-command sequences.
15511       ;;
15512     '$CC '*)
15513       # Test whether the compiler implicitly links with -lc since on some
15514       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15515       # to ld, don't add -lc before -lgcc.
15516       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15517 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15518       $rm conftest*
15519       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15520
15521       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15522   (eval $ac_compile) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); } 2>conftest.err; then
15526         soname=conftest
15527         lib=conftest
15528         libobjs=conftest.$ac_objext
15529         deplibs=
15530         wl=$lt_prog_compiler_wl_F77
15531         pic_flag=$lt_prog_compiler_pic_F77
15532         compiler_flags=-v
15533         linker_flags=-v
15534         verstring=
15535         output_objdir=.
15536         libname=conftest
15537         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15538         allow_undefined_flag_F77=
15539         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15540   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15541   ac_status=$?
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); }
15544         then
15545           archive_cmds_need_lc_F77=no
15546         else
15547           archive_cmds_need_lc_F77=yes
15548         fi
15549         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15550       else
15551         cat conftest.err 1>&5
15552       fi
15553       $rm conftest*
15554       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15555 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15556       ;;
15557     esac
15558   fi
15559   ;;
15560 esac
15561
15562 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15563 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15564 library_names_spec=
15565 libname_spec='lib$name'
15566 soname_spec=
15567 shrext_cmds=".so"
15568 postinstall_cmds=
15569 postuninstall_cmds=
15570 finish_cmds=
15571 finish_eval=
15572 shlibpath_var=
15573 shlibpath_overrides_runpath=unknown
15574 version_type=none
15575 dynamic_linker="$host_os ld.so"
15576 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15577 if test "$GCC" = yes; then
15578   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15579   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15580     # if the path contains ";" then we assume it to be the separator
15581     # otherwise default to the standard path separator (i.e. ":") - it is
15582     # assumed that no part of a normal pathname contains ";" but that should
15583     # okay in the real world where ";" in dirpaths is itself problematic.
15584     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15585   else
15586     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15587   fi
15588 else
15589   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15590 fi
15591 need_lib_prefix=unknown
15592 hardcode_into_libs=no
15593
15594 # when you set need_version to no, make sure it does not cause -set_version
15595 # flags to be left without arguments
15596 need_version=unknown
15597
15598 case $host_os in
15599 aix3*)
15600   version_type=linux
15601   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15602   shlibpath_var=LIBPATH
15603
15604   # AIX 3 has no versioning support, so we append a major version to the name.
15605   soname_spec='${libname}${release}${shared_ext}$major'
15606   ;;
15607
15608 aix4* | aix5*)
15609   version_type=linux
15610   need_lib_prefix=no
15611   need_version=no
15612   hardcode_into_libs=yes
15613   if test "$host_cpu" = ia64; then
15614     # AIX 5 supports IA64
15615     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15616     shlibpath_var=LD_LIBRARY_PATH
15617   else
15618     # With GCC up to 2.95.x, collect2 would create an import file
15619     # for dependence libraries.  The import file would start with
15620     # the line `#! .'.  This would cause the generated library to
15621     # depend on `.', always an invalid library.  This was fixed in
15622     # development snapshots of GCC prior to 3.0.
15623     case $host_os in
15624       aix4 | aix4.[01] | aix4.[01].*)
15625       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15626            echo ' yes '
15627            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15628         :
15629       else
15630         can_build_shared=no
15631       fi
15632       ;;
15633     esac
15634     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15635     # soname into executable. Probably we can add versioning support to
15636     # collect2, so additional links can be useful in future.
15637     if test "$aix_use_runtimelinking" = yes; then
15638       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15639       # instead of lib<name>.a to let people know that these are not
15640       # typical AIX shared libraries.
15641       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642     else
15643       # We preserve .a as extension for shared libraries through AIX4.2
15644       # and later when we are not doing run time linking.
15645       library_names_spec='${libname}${release}.a $libname.a'
15646       soname_spec='${libname}${release}${shared_ext}$major'
15647     fi
15648     shlibpath_var=LIBPATH
15649   fi
15650   ;;
15651
15652 amigaos*)
15653   library_names_spec='$libname.ixlibrary $libname.a'
15654   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15655   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'
15656   ;;
15657
15658 beos*)
15659   library_names_spec='${libname}${shared_ext}'
15660   dynamic_linker="$host_os ld.so"
15661   shlibpath_var=LIBRARY_PATH
15662   ;;
15663
15664 bsdi[45]*)
15665   version_type=linux
15666   need_version=no
15667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668   soname_spec='${libname}${release}${shared_ext}$major'
15669   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15670   shlibpath_var=LD_LIBRARY_PATH
15671   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15672   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15673   # the default ld.so.conf also contains /usr/contrib/lib and
15674   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15675   # libtool to hard-code these into programs
15676   ;;
15677
15678 cygwin* | mingw* | pw32*)
15679   version_type=windows
15680   shrext_cmds=".dll"
15681   need_version=no
15682   need_lib_prefix=no
15683
15684   case $GCC,$host_os in
15685   yes,cygwin* | yes,mingw* | yes,pw32*)
15686     library_names_spec='$libname.dll.a'
15687     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15688     postinstall_cmds='base_file=`basename \${file}`~
15689       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15690       dldir=$destdir/`dirname \$dlpath`~
15691       test -d \$dldir || mkdir -p \$dldir~
15692       $install_prog $dir/$dlname \$dldir/$dlname~
15693       chmod a+x \$dldir/$dlname'
15694     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15695       dlpath=$dir/\$dldll~
15696        $rm \$dlpath'
15697     shlibpath_overrides_runpath=yes
15698
15699     case $host_os in
15700     cygwin*)
15701       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15702       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15703       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15704       ;;
15705     mingw*)
15706       # MinGW DLLs use traditional 'lib' prefix
15707       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15708       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15709       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15710         # It is most probably a Windows format PATH printed by
15711         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15712         # path with ; separators, and with drive letters. We can handle the
15713         # drive letters (cygwin fileutils understands them), so leave them,
15714         # especially as we might pass files found there to a mingw objdump,
15715         # which wouldn't understand a cygwinified path. Ahh.
15716         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15717       else
15718         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15719       fi
15720       ;;
15721     pw32*)
15722       # pw32 DLLs use 'pw' prefix rather than 'lib'
15723       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15724       ;;
15725     esac
15726     ;;
15727
15728   *)
15729     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15730     ;;
15731   esac
15732   dynamic_linker='Win32 ld.exe'
15733   # FIXME: first we should search . and the directory the executable is in
15734   shlibpath_var=PATH
15735   ;;
15736
15737 darwin* | rhapsody*)
15738   dynamic_linker="$host_os dyld"
15739   version_type=darwin
15740   need_lib_prefix=no
15741   need_version=no
15742   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15743   soname_spec='${libname}${release}${major}$shared_ext'
15744   shlibpath_overrides_runpath=yes
15745   shlibpath_var=DYLD_LIBRARY_PATH
15746   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15747   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15748   if test "$GCC" = yes; then
15749     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"`
15750   else
15751     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15752   fi
15753   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15754   ;;
15755
15756 dgux*)
15757   version_type=linux
15758   need_lib_prefix=no
15759   need_version=no
15760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15761   soname_spec='${libname}${release}${shared_ext}$major'
15762   shlibpath_var=LD_LIBRARY_PATH
15763   ;;
15764
15765 freebsd1*)
15766   dynamic_linker=no
15767   ;;
15768
15769 freebsd* | dragonfly*)
15770   # DragonFly does not have aout.  When/if they implement a new
15771   # versioning mechanism, adjust this.
15772   if test -x /usr/bin/objformat; then
15773     objformat=`/usr/bin/objformat`
15774   else
15775     case $host_os in
15776     freebsd[123]*) objformat=aout ;;
15777     *) objformat=elf ;;
15778     esac
15779   fi
15780   version_type=freebsd-$objformat
15781   case $version_type in
15782     freebsd-elf*)
15783       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15784       need_version=no
15785       need_lib_prefix=no
15786       ;;
15787     freebsd-*)
15788       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15789       need_version=yes
15790       ;;
15791   esac
15792   shlibpath_var=LD_LIBRARY_PATH
15793   case $host_os in
15794   freebsd2*)
15795     shlibpath_overrides_runpath=yes
15796     ;;
15797   freebsd3.[01]* | freebsdelf3.[01]*)
15798     shlibpath_overrides_runpath=yes
15799     hardcode_into_libs=yes
15800     ;;
15801   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15802   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15803     shlibpath_overrides_runpath=no
15804     hardcode_into_libs=yes
15805     ;;
15806   freebsd*) # from 4.6 on
15807     shlibpath_overrides_runpath=yes
15808     hardcode_into_libs=yes
15809     ;;
15810   esac
15811   ;;
15812
15813 gnu*)
15814   version_type=linux
15815   need_lib_prefix=no
15816   need_version=no
15817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15818   soname_spec='${libname}${release}${shared_ext}$major'
15819   shlibpath_var=LD_LIBRARY_PATH
15820   hardcode_into_libs=yes
15821   ;;
15822
15823 hpux9* | hpux10* | hpux11*)
15824   # Give a soname corresponding to the major version so that dld.sl refuses to
15825   # link against other versions.
15826   version_type=sunos
15827   need_lib_prefix=no
15828   need_version=no
15829   case $host_cpu in
15830   ia64*)
15831     shrext_cmds='.so'
15832     hardcode_into_libs=yes
15833     dynamic_linker="$host_os dld.so"
15834     shlibpath_var=LD_LIBRARY_PATH
15835     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15836     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837     soname_spec='${libname}${release}${shared_ext}$major'
15838     if test "X$HPUX_IA64_MODE" = X32; then
15839       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15840     else
15841       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15842     fi
15843     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15844     ;;
15845    hppa*64*)
15846      shrext_cmds='.sl'
15847      hardcode_into_libs=yes
15848      dynamic_linker="$host_os dld.sl"
15849      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15850      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15851      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852      soname_spec='${libname}${release}${shared_ext}$major'
15853      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15854      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15855      ;;
15856    *)
15857     shrext_cmds='.sl'
15858     dynamic_linker="$host_os dld.sl"
15859     shlibpath_var=SHLIB_PATH
15860     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15862     soname_spec='${libname}${release}${shared_ext}$major'
15863     ;;
15864   esac
15865   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15866   postinstall_cmds='chmod 555 $lib'
15867   ;;
15868
15869 interix3*)
15870   version_type=linux
15871   need_lib_prefix=no
15872   need_version=no
15873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15874   soname_spec='${libname}${release}${shared_ext}$major'
15875   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15876   shlibpath_var=LD_LIBRARY_PATH
15877   shlibpath_overrides_runpath=no
15878   hardcode_into_libs=yes
15879   ;;
15880
15881 irix5* | irix6* | nonstopux*)
15882   case $host_os in
15883     nonstopux*) version_type=nonstopux ;;
15884     *)
15885         if test "$lt_cv_prog_gnu_ld" = yes; then
15886                 version_type=linux
15887         else
15888                 version_type=irix
15889         fi ;;
15890   esac
15891   need_lib_prefix=no
15892   need_version=no
15893   soname_spec='${libname}${release}${shared_ext}$major'
15894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15895   case $host_os in
15896   irix5* | nonstopux*)
15897     libsuff= shlibsuff=
15898     ;;
15899   *)
15900     case $LD in # libtool.m4 will add one of these switches to LD
15901     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15902       libsuff= shlibsuff= libmagic=32-bit;;
15903     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15904       libsuff=32 shlibsuff=N32 libmagic=N32;;
15905     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15906       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15907     *) libsuff= shlibsuff= libmagic=never-match;;
15908     esac
15909     ;;
15910   esac
15911   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15912   shlibpath_overrides_runpath=no
15913   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15914   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15915   hardcode_into_libs=yes
15916   ;;
15917
15918 # No shared lib support for Linux oldld, aout, or coff.
15919 linux*oldld* | linux*aout* | linux*coff*)
15920   dynamic_linker=no
15921   ;;
15922
15923 # This must be Linux ELF.
15924 linux* | k*bsd*-gnu)
15925   version_type=linux
15926   need_lib_prefix=no
15927   need_version=no
15928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929   soname_spec='${libname}${release}${shared_ext}$major'
15930   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15931   shlibpath_var=LD_LIBRARY_PATH
15932   shlibpath_overrides_runpath=no
15933   # This implies no fast_install, which is unacceptable.
15934   # Some rework will be needed to allow for fast_install
15935   # before this can be enabled.
15936   hardcode_into_libs=yes
15937
15938   # Append ld.so.conf contents to the search path
15939   if test -f /etc/ld.so.conf; then
15940     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' ' '`
15941     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15942   fi
15943
15944   # We used to test for /lib/ld.so.1 and disable shared libraries on
15945   # powerpc, because MkLinux only supported shared libraries with the
15946   # GNU dynamic linker.  Since this was broken with cross compilers,
15947   # most powerpc-linux boxes support dynamic linking these days and
15948   # people can always --disable-shared, the test was removed, and we
15949   # assume the GNU/Linux dynamic linker is in use.
15950   dynamic_linker='GNU/Linux ld.so'
15951   ;;
15952
15953 netbsdelf*-gnu)
15954   version_type=linux
15955   need_lib_prefix=no
15956   need_version=no
15957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15958   soname_spec='${libname}${release}${shared_ext}$major'
15959   shlibpath_var=LD_LIBRARY_PATH
15960   shlibpath_overrides_runpath=no
15961   hardcode_into_libs=yes
15962   dynamic_linker='NetBSD ld.elf_so'
15963   ;;
15964
15965 netbsd*)
15966   version_type=sunos
15967   need_lib_prefix=no
15968   need_version=no
15969   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15971     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15972     dynamic_linker='NetBSD (a.out) ld.so'
15973   else
15974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15975     soname_spec='${libname}${release}${shared_ext}$major'
15976     dynamic_linker='NetBSD ld.elf_so'
15977   fi
15978   shlibpath_var=LD_LIBRARY_PATH
15979   shlibpath_overrides_runpath=yes
15980   hardcode_into_libs=yes
15981   ;;
15982
15983 newsos6)
15984   version_type=linux
15985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986   shlibpath_var=LD_LIBRARY_PATH
15987   shlibpath_overrides_runpath=yes
15988   ;;
15989
15990 nto-qnx*)
15991   version_type=linux
15992   need_lib_prefix=no
15993   need_version=no
15994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995   soname_spec='${libname}${release}${shared_ext}$major'
15996   shlibpath_var=LD_LIBRARY_PATH
15997   shlibpath_overrides_runpath=yes
15998   ;;
15999
16000 openbsd*)
16001   version_type=sunos
16002   sys_lib_dlsearch_path_spec="/usr/lib"
16003   need_lib_prefix=no
16004   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16005   case $host_os in
16006     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16007     *)                         need_version=no  ;;
16008   esac
16009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16010   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16011   shlibpath_var=LD_LIBRARY_PATH
16012   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16013     case $host_os in
16014       openbsd2.[89] | openbsd2.[89].*)
16015         shlibpath_overrides_runpath=no
16016         ;;
16017       *)
16018         shlibpath_overrides_runpath=yes
16019         ;;
16020       esac
16021   else
16022     shlibpath_overrides_runpath=yes
16023   fi
16024   ;;
16025
16026 os2*)
16027   libname_spec='$name'
16028   shrext_cmds=".dll"
16029   need_lib_prefix=no
16030   library_names_spec='$libname${shared_ext} $libname.a'
16031   dynamic_linker='OS/2 ld.exe'
16032   shlibpath_var=LIBPATH
16033   ;;
16034
16035 osf3* | osf4* | osf5*)
16036   version_type=osf
16037   need_lib_prefix=no
16038   need_version=no
16039   soname_spec='${libname}${release}${shared_ext}$major'
16040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16041   shlibpath_var=LD_LIBRARY_PATH
16042   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16043   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16044   ;;
16045
16046 solaris*)
16047   version_type=linux
16048   need_lib_prefix=no
16049   need_version=no
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   shlibpath_overrides_runpath=yes
16054   hardcode_into_libs=yes
16055   # ldd complains unless libraries are executable
16056   postinstall_cmds='chmod +x $lib'
16057   ;;
16058
16059 sunos4*)
16060   version_type=sunos
16061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16062   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16063   shlibpath_var=LD_LIBRARY_PATH
16064   shlibpath_overrides_runpath=yes
16065   if test "$with_gnu_ld" = yes; then
16066     need_lib_prefix=no
16067   fi
16068   need_version=yes
16069   ;;
16070
16071 sysv4 | sysv4.3*)
16072   version_type=linux
16073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074   soname_spec='${libname}${release}${shared_ext}$major'
16075   shlibpath_var=LD_LIBRARY_PATH
16076   case $host_vendor in
16077     sni)
16078       shlibpath_overrides_runpath=no
16079       need_lib_prefix=no
16080       export_dynamic_flag_spec='${wl}-Blargedynsym'
16081       runpath_var=LD_RUN_PATH
16082       ;;
16083     siemens)
16084       need_lib_prefix=no
16085       ;;
16086     motorola)
16087       need_lib_prefix=no
16088       need_version=no
16089       shlibpath_overrides_runpath=no
16090       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16091       ;;
16092   esac
16093   ;;
16094
16095 sysv4*MP*)
16096   if test -d /usr/nec ;then
16097     version_type=linux
16098     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16099     soname_spec='$libname${shared_ext}.$major'
16100     shlibpath_var=LD_LIBRARY_PATH
16101   fi
16102   ;;
16103
16104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16105   version_type=freebsd-elf
16106   need_lib_prefix=no
16107   need_version=no
16108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16109   soname_spec='${libname}${release}${shared_ext}$major'
16110   shlibpath_var=LD_LIBRARY_PATH
16111   hardcode_into_libs=yes
16112   if test "$with_gnu_ld" = yes; then
16113     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16114     shlibpath_overrides_runpath=no
16115   else
16116     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16117     shlibpath_overrides_runpath=yes
16118     case $host_os in
16119       sco3.2v5*)
16120         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16121         ;;
16122     esac
16123   fi
16124   sys_lib_dlsearch_path_spec='/usr/lib'
16125   ;;
16126
16127 uts4*)
16128   version_type=linux
16129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130   soname_spec='${libname}${release}${shared_ext}$major'
16131   shlibpath_var=LD_LIBRARY_PATH
16132   ;;
16133
16134 *)
16135   dynamic_linker=no
16136   ;;
16137 esac
16138 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16139 echo "${ECHO_T}$dynamic_linker" >&6
16140 test "$dynamic_linker" = no && can_build_shared=no
16141
16142 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16143 if test "$GCC" = yes; then
16144   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16145 fi
16146
16147 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16148 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16149 hardcode_action_F77=
16150 if test -n "$hardcode_libdir_flag_spec_F77" || \
16151    test -n "$runpath_var_F77" || \
16152    test "X$hardcode_automatic_F77" = "Xyes" ; then
16153
16154   # We can hardcode non-existant directories.
16155   if test "$hardcode_direct_F77" != no &&
16156      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16157      # have to relink, otherwise we might link with an installed library
16158      # when we should be linking with a yet-to-be-installed one
16159      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16160      test "$hardcode_minus_L_F77" != no; then
16161     # Linking always hardcodes the temporary library directory.
16162     hardcode_action_F77=relink
16163   else
16164     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16165     hardcode_action_F77=immediate
16166   fi
16167 else
16168   # We cannot hardcode anything, or else we can only hardcode existing
16169   # directories.
16170   hardcode_action_F77=unsupported
16171 fi
16172 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16173 echo "${ECHO_T}$hardcode_action_F77" >&6
16174
16175 if test "$hardcode_action_F77" = relink; then
16176   # Fast installation is not supported
16177   enable_fast_install=no
16178 elif test "$shlibpath_overrides_runpath" = yes ||
16179      test "$enable_shared" = no; then
16180   # Fast installation is not necessary
16181   enable_fast_install=needless
16182 fi
16183
16184
16185 # The else clause should only fire when bootstrapping the
16186 # libtool distribution, otherwise you forgot to ship ltmain.sh
16187 # with your package, and you will get complaints that there are
16188 # no rules to generate ltmain.sh.
16189 if test -f "$ltmain"; then
16190   # See if we are running on zsh, and set the options which allow our commands through
16191   # without removal of \ escapes.
16192   if test -n "${ZSH_VERSION+set}" ; then
16193     setopt NO_GLOB_SUBST
16194   fi
16195   # Now quote all the things that may contain metacharacters while being
16196   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16197   # variables and quote the copies for generation of the libtool script.
16198   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16199     SED SHELL STRIP \
16200     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16201     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16202     deplibs_check_method reload_flag reload_cmds need_locks \
16203     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16204     lt_cv_sys_global_symbol_to_c_name_address \
16205     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16206     old_postinstall_cmds old_postuninstall_cmds \
16207     compiler_F77 \
16208     CC_F77 \
16209     LD_F77 \
16210     lt_prog_compiler_wl_F77 \
16211     lt_prog_compiler_pic_F77 \
16212     lt_prog_compiler_static_F77 \
16213     lt_prog_compiler_no_builtin_flag_F77 \
16214     export_dynamic_flag_spec_F77 \
16215     thread_safe_flag_spec_F77 \
16216     whole_archive_flag_spec_F77 \
16217     enable_shared_with_static_runtimes_F77 \
16218     old_archive_cmds_F77 \
16219     old_archive_from_new_cmds_F77 \
16220     predep_objects_F77 \
16221     postdep_objects_F77 \
16222     predeps_F77 \
16223     postdeps_F77 \
16224     compiler_lib_search_path_F77 \
16225     archive_cmds_F77 \
16226     archive_expsym_cmds_F77 \
16227     postinstall_cmds_F77 \
16228     postuninstall_cmds_F77 \
16229     old_archive_from_expsyms_cmds_F77 \
16230     allow_undefined_flag_F77 \
16231     no_undefined_flag_F77 \
16232     export_symbols_cmds_F77 \
16233     hardcode_libdir_flag_spec_F77 \
16234     hardcode_libdir_flag_spec_ld_F77 \
16235     hardcode_libdir_separator_F77 \
16236     hardcode_automatic_F77 \
16237     module_cmds_F77 \
16238     module_expsym_cmds_F77 \
16239     lt_cv_prog_compiler_c_o_F77 \
16240     exclude_expsyms_F77 \
16241     include_expsyms_F77; do
16242
16243     case $var in
16244     old_archive_cmds_F77 | \
16245     old_archive_from_new_cmds_F77 | \
16246     archive_cmds_F77 | \
16247     archive_expsym_cmds_F77 | \
16248     module_cmds_F77 | \
16249     module_expsym_cmds_F77 | \
16250     old_archive_from_expsyms_cmds_F77 | \
16251     export_symbols_cmds_F77 | \
16252     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16253     postinstall_cmds | postuninstall_cmds | \
16254     old_postinstall_cmds | old_postuninstall_cmds | \
16255     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16256       # Double-quote double-evaled strings.
16257       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16258       ;;
16259     *)
16260       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16261       ;;
16262     esac
16263   done
16264
16265   case $lt_echo in
16266   *'\$0 --fallback-echo"')
16267     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16268     ;;
16269   esac
16270
16271 cfgfile="$ofile"
16272
16273   cat <<__EOF__ >> "$cfgfile"
16274 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16275
16276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16277
16278 # Shell to use when invoking shell scripts.
16279 SHELL=$lt_SHELL
16280
16281 # Whether or not to build shared libraries.
16282 build_libtool_libs=$enable_shared
16283
16284 # Whether or not to build static libraries.
16285 build_old_libs=$enable_static
16286
16287 # Whether or not to add -lc for building shared libraries.
16288 build_libtool_need_lc=$archive_cmds_need_lc_F77
16289
16290 # Whether or not to disallow shared libs when runtime libs are static
16291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16292
16293 # Whether or not to optimize for fast installation.
16294 fast_install=$enable_fast_install
16295
16296 # The host system.
16297 host_alias=$host_alias
16298 host=$host
16299 host_os=$host_os
16300
16301 # The build system.
16302 build_alias=$build_alias
16303 build=$build
16304 build_os=$build_os
16305
16306 # An echo program that does not interpret backslashes.
16307 echo=$lt_echo
16308
16309 # The archiver.
16310 AR=$lt_AR
16311 AR_FLAGS=$lt_AR_FLAGS
16312
16313 # A C compiler.
16314 LTCC=$lt_LTCC
16315
16316 # LTCC compiler flags.
16317 LTCFLAGS=$lt_LTCFLAGS
16318
16319 # A language-specific compiler.
16320 CC=$lt_compiler_F77
16321
16322 # Is the compiler the GNU C compiler?
16323 with_gcc=$GCC_F77
16324
16325 # An ERE matcher.
16326 EGREP=$lt_EGREP
16327
16328 # The linker used to build libraries.
16329 LD=$lt_LD_F77
16330
16331 # Whether we need hard or soft links.
16332 LN_S=$lt_LN_S
16333
16334 # A BSD-compatible nm program.
16335 NM=$lt_NM
16336
16337 # A symbol stripping program
16338 STRIP=$lt_STRIP
16339
16340 # Used to examine libraries when file_magic_cmd begins "file"
16341 MAGIC_CMD=$MAGIC_CMD
16342
16343 # Used on cygwin: DLL creation program.
16344 DLLTOOL="$DLLTOOL"
16345
16346 # Used on cygwin: object dumper.
16347 OBJDUMP="$OBJDUMP"
16348
16349 # Used on cygwin: assembler.
16350 AS="$AS"
16351
16352 # The name of the directory that contains temporary libtool files.
16353 objdir=$objdir
16354
16355 # How to create reloadable object files.
16356 reload_flag=$lt_reload_flag
16357 reload_cmds=$lt_reload_cmds
16358
16359 # How to pass a linker flag through the compiler.
16360 wl=$lt_lt_prog_compiler_wl_F77
16361
16362 # Object file suffix (normally "o").
16363 objext="$ac_objext"
16364
16365 # Old archive suffix (normally "a").
16366 libext="$libext"
16367
16368 # Shared library suffix (normally ".so").
16369 shrext_cmds='$shrext_cmds'
16370
16371 # Executable file suffix (normally "").
16372 exeext="$exeext"
16373
16374 # Additional compiler flags for building library objects.
16375 pic_flag=$lt_lt_prog_compiler_pic_F77
16376 pic_mode=$pic_mode
16377
16378 # What is the maximum length of a command?
16379 max_cmd_len=$lt_cv_sys_max_cmd_len
16380
16381 # Does compiler simultaneously support -c and -o options?
16382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16383
16384 # Must we lock files when doing compilation?
16385 need_locks=$lt_need_locks
16386
16387 # Do we need the lib prefix for modules?
16388 need_lib_prefix=$need_lib_prefix
16389
16390 # Do we need a version for libraries?
16391 need_version=$need_version
16392
16393 # Whether dlopen is supported.
16394 dlopen_support=$enable_dlopen
16395
16396 # Whether dlopen of programs is supported.
16397 dlopen_self=$enable_dlopen_self
16398
16399 # Whether dlopen of statically linked programs is supported.
16400 dlopen_self_static=$enable_dlopen_self_static
16401
16402 # Compiler flag to prevent dynamic linking.
16403 link_static_flag=$lt_lt_prog_compiler_static_F77
16404
16405 # Compiler flag to turn off builtin functions.
16406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16407
16408 # Compiler flag to allow reflexive dlopens.
16409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16410
16411 # Compiler flag to generate shared objects directly from archives.
16412 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16413
16414 # Compiler flag to generate thread-safe objects.
16415 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16416
16417 # Library versioning type.
16418 version_type=$version_type
16419
16420 # Format of library name prefix.
16421 libname_spec=$lt_libname_spec
16422
16423 # List of archive names.  First name is the real one, the rest are links.
16424 # The last name is the one that the linker finds with -lNAME.
16425 library_names_spec=$lt_library_names_spec
16426
16427 # The coded name of the library, if different from the real name.
16428 soname_spec=$lt_soname_spec
16429
16430 # Commands used to build and install an old-style archive.
16431 RANLIB=$lt_RANLIB
16432 old_archive_cmds=$lt_old_archive_cmds_F77
16433 old_postinstall_cmds=$lt_old_postinstall_cmds
16434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16435
16436 # Create an old-style archive from a shared archive.
16437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16438
16439 # Create a temporary old-style archive to link instead of a shared archive.
16440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16441
16442 # Commands used to build and install a shared archive.
16443 archive_cmds=$lt_archive_cmds_F77
16444 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16445 postinstall_cmds=$lt_postinstall_cmds
16446 postuninstall_cmds=$lt_postuninstall_cmds
16447
16448 # Commands used to build a loadable module (assumed same as above if empty)
16449 module_cmds=$lt_module_cmds_F77
16450 module_expsym_cmds=$lt_module_expsym_cmds_F77
16451
16452 # Commands to strip libraries.
16453 old_striplib=$lt_old_striplib
16454 striplib=$lt_striplib
16455
16456 # Dependencies to place before the objects being linked to create a
16457 # shared library.
16458 predep_objects=$lt_predep_objects_F77
16459
16460 # Dependencies to place after the objects being linked to create a
16461 # shared library.
16462 postdep_objects=$lt_postdep_objects_F77
16463
16464 # Dependencies to place before the objects being linked to create a
16465 # shared library.
16466 predeps=$lt_predeps_F77
16467
16468 # Dependencies to place after the objects being linked to create a
16469 # shared library.
16470 postdeps=$lt_postdeps_F77
16471
16472 # The library search path used internally by the compiler when linking
16473 # a shared library.
16474 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16475
16476 # Method to check whether dependent libraries are shared objects.
16477 deplibs_check_method=$lt_deplibs_check_method
16478
16479 # Command to use when deplibs_check_method == file_magic.
16480 file_magic_cmd=$lt_file_magic_cmd
16481
16482 # Flag that allows shared libraries with undefined symbols to be built.
16483 allow_undefined_flag=$lt_allow_undefined_flag_F77
16484
16485 # Flag that forces no undefined symbols.
16486 no_undefined_flag=$lt_no_undefined_flag_F77
16487
16488 # Commands used to finish a libtool library installation in a directory.
16489 finish_cmds=$lt_finish_cmds
16490
16491 # Same as above, but a single script fragment to be evaled but not shown.
16492 finish_eval=$lt_finish_eval
16493
16494 # Take the output of nm and produce a listing of raw symbols and C names.
16495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16496
16497 # Transform the output of nm in a proper C declaration
16498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16499
16500 # Transform the output of nm in a C name address pair
16501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16502
16503 # This is the shared library runtime path variable.
16504 runpath_var=$runpath_var
16505
16506 # This is the shared library path variable.
16507 shlibpath_var=$shlibpath_var
16508
16509 # Is shlibpath searched before the hard-coded library search path?
16510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16511
16512 # How to hardcode a shared library path into an executable.
16513 hardcode_action=$hardcode_action_F77
16514
16515 # Whether we should hardcode library paths into libraries.
16516 hardcode_into_libs=$hardcode_into_libs
16517
16518 # Flag to hardcode \$libdir into a binary during linking.
16519 # This must work even if \$libdir does not exist.
16520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16521
16522 # If ld is used when linking, flag to hardcode \$libdir into
16523 # a binary during linking. This must work even if \$libdir does
16524 # not exist.
16525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16526
16527 # Whether we need a single -rpath flag with a separated argument.
16528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16529
16530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16531 # resulting binary.
16532 hardcode_direct=$hardcode_direct_F77
16533
16534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16535 # resulting binary.
16536 hardcode_minus_L=$hardcode_minus_L_F77
16537
16538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16539 # the resulting binary.
16540 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16541
16542 # Set to yes if building a shared library automatically hardcodes DIR into the library
16543 # and all subsequent libraries and executables linked against it.
16544 hardcode_automatic=$hardcode_automatic_F77
16545
16546 # Variables whose values should be saved in libtool wrapper scripts and
16547 # restored at relink time.
16548 variables_saved_for_relink="$variables_saved_for_relink"
16549
16550 # Whether libtool must link a program against all its dependency libraries.
16551 link_all_deplibs=$link_all_deplibs_F77
16552
16553 # Compile-time system search path for libraries
16554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16555
16556 # Run-time system search path for libraries
16557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16558
16559 # Fix the shell variable \$srcfile for the compiler.
16560 fix_srcfile_path="$fix_srcfile_path_F77"
16561
16562 # Set to yes if exported symbols are required.
16563 always_export_symbols=$always_export_symbols_F77
16564
16565 # The commands to list exported symbols.
16566 export_symbols_cmds=$lt_export_symbols_cmds_F77
16567
16568 # The commands to extract the exported symbol list from a shared archive.
16569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16570
16571 # Symbols that should not be listed in the preloaded symbols.
16572 exclude_expsyms=$lt_exclude_expsyms_F77
16573
16574 # Symbols that must always be exported.
16575 include_expsyms=$lt_include_expsyms_F77
16576
16577 # ### END LIBTOOL TAG CONFIG: $tagname
16578
16579 __EOF__
16580
16581
16582 else
16583   # If there is no Makefile yet, we rely on a make rule to execute
16584   # `config.status --recheck' to rerun these tests and create the
16585   # libtool script then.
16586   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16587   if test -f "$ltmain_in"; then
16588     test -f Makefile && make "$ltmain"
16589   fi
16590 fi
16591
16592
16593 ac_ext=c
16594 ac_cpp='$CPP $CPPFLAGS'
16595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16598
16599 CC="$lt_save_CC"
16600
16601         else
16602           tagname=""
16603         fi
16604         ;;
16605
16606       GCJ)
16607         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16608
16609
16610
16611 # Source file extension for Java test sources.
16612 ac_ext=java
16613
16614 # Object file extension for compiled Java test sources.
16615 objext=o
16616 objext_GCJ=$objext
16617
16618 # Code to be used in simple compile tests
16619 lt_simple_compile_test_code="class foo {}\n"
16620
16621 # Code to be used in simple link tests
16622 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16623
16624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16625
16626 # If no C compiler was specified, use CC.
16627 LTCC=${LTCC-"$CC"}
16628
16629 # If no C compiler flags were specified, use CFLAGS.
16630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16631
16632 # Allow CC to be a program name with arguments.
16633 compiler=$CC
16634
16635
16636 # save warnings/boilerplate of simple test code
16637 ac_outfile=conftest.$ac_objext
16638 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16639 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16640 _lt_compiler_boilerplate=`cat conftest.err`
16641 $rm conftest*
16642
16643 ac_outfile=conftest.$ac_objext
16644 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16645 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16646 _lt_linker_boilerplate=`cat conftest.err`
16647 $rm conftest*
16648
16649
16650 # Allow CC to be a program name with arguments.
16651 lt_save_CC="$CC"
16652 CC=${GCJ-"gcj"}
16653 compiler=$CC
16654 compiler_GCJ=$CC
16655 for cc_temp in $compiler""; do
16656   case $cc_temp in
16657     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16658     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16659     \-*) ;;
16660     *) break;;
16661   esac
16662 done
16663 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16664
16665
16666 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16667 archive_cmds_need_lc_GCJ=no
16668
16669 old_archive_cmds_GCJ=$old_archive_cmds
16670
16671
16672 lt_prog_compiler_no_builtin_flag_GCJ=
16673
16674 if test "$GCC" = yes; then
16675   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16676
16677
16678 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16679 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16681   echo $ECHO_N "(cached) $ECHO_C" >&6
16682 else
16683   lt_cv_prog_compiler_rtti_exceptions=no
16684   ac_outfile=conftest.$ac_objext
16685    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16686    lt_compiler_flag="-fno-rtti -fno-exceptions"
16687    # Insert the option either (1) after the last *FLAGS variable, or
16688    # (2) before a word containing "conftest.", or (3) at the end.
16689    # Note that $ac_compile itself does not contain backslashes and begins
16690    # with a dollar sign (not a hyphen), so the echo should work correctly.
16691    # The option is referenced via a variable to avoid confusing sed.
16692    lt_compile=`echo "$ac_compile" | $SED \
16693    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16694    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16695    -e 's:$: $lt_compiler_flag:'`
16696    (eval echo "\"\$as_me:16696: $lt_compile\"" >&5)
16697    (eval "$lt_compile" 2>conftest.err)
16698    ac_status=$?
16699    cat conftest.err >&5
16700    echo "$as_me:16700: \$? = $ac_status" >&5
16701    if (exit $ac_status) && test -s "$ac_outfile"; then
16702      # The compiler can only warn and ignore the option if not recognized
16703      # So say no if there are warnings other than the usual output.
16704      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16705      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16706      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16707        lt_cv_prog_compiler_rtti_exceptions=yes
16708      fi
16709    fi
16710    $rm conftest*
16711
16712 fi
16713 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16714 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16715
16716 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16717     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16718 else
16719     :
16720 fi
16721
16722 fi
16723
16724 lt_prog_compiler_wl_GCJ=
16725 lt_prog_compiler_pic_GCJ=
16726 lt_prog_compiler_static_GCJ=
16727
16728 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16729 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16730
16731   if test "$GCC" = yes; then
16732     lt_prog_compiler_wl_GCJ='-Wl,'
16733     lt_prog_compiler_static_GCJ='-static'
16734
16735     case $host_os in
16736       aix*)
16737       # All AIX code is PIC.
16738       if test "$host_cpu" = ia64; then
16739         # AIX 5 now supports IA64 processor
16740         lt_prog_compiler_static_GCJ='-Bstatic'
16741       fi
16742       ;;
16743
16744     amigaos*)
16745       # FIXME: we need at least 68020 code to build shared libraries, but
16746       # adding the `-m68020' flag to GCC prevents building anything better,
16747       # like `-m68040'.
16748       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16749       ;;
16750
16751     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16752       # PIC is the default for these OSes.
16753       ;;
16754
16755     mingw* | pw32* | os2*)
16756       # This hack is so that the source file can tell whether it is being
16757       # built for inclusion in a dll (and should export symbols for example).
16758       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16759       ;;
16760
16761     darwin* | rhapsody*)
16762       # PIC is the default on this platform
16763       # Common symbols not allowed in MH_DYLIB files
16764       lt_prog_compiler_pic_GCJ='-fno-common'
16765       ;;
16766
16767     interix3*)
16768       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16769       # Instead, we relocate shared libraries at runtime.
16770       ;;
16771
16772     msdosdjgpp*)
16773       # Just because we use GCC doesn't mean we suddenly get shared libraries
16774       # on systems that don't support them.
16775       lt_prog_compiler_can_build_shared_GCJ=no
16776       enable_shared=no
16777       ;;
16778
16779     sysv4*MP*)
16780       if test -d /usr/nec; then
16781         lt_prog_compiler_pic_GCJ=-Kconform_pic
16782       fi
16783       ;;
16784
16785     hpux*)
16786       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16787       # not for PA HP-UX.
16788       case $host_cpu in
16789       hppa*64*|ia64*)
16790         # +Z the default
16791         ;;
16792       *)
16793         lt_prog_compiler_pic_GCJ='-fPIC'
16794         ;;
16795       esac
16796       ;;
16797
16798     *)
16799       lt_prog_compiler_pic_GCJ='-fPIC'
16800       ;;
16801     esac
16802   else
16803     # PORTME Check for flag to pass linker flags through the system compiler.
16804     case $host_os in
16805     aix*)
16806       lt_prog_compiler_wl_GCJ='-Wl,'
16807       if test "$host_cpu" = ia64; then
16808         # AIX 5 now supports IA64 processor
16809         lt_prog_compiler_static_GCJ='-Bstatic'
16810       else
16811         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16812       fi
16813       ;;
16814       darwin*)
16815         # PIC is the default on this platform
16816         # Common symbols not allowed in MH_DYLIB files
16817        case $cc_basename in
16818          xlc*)
16819          lt_prog_compiler_pic_GCJ='-qnocommon'
16820          lt_prog_compiler_wl_GCJ='-Wl,'
16821          ;;
16822        esac
16823        ;;
16824
16825     mingw* | pw32* | os2*)
16826       # This hack is so that the source file can tell whether it is being
16827       # built for inclusion in a dll (and should export symbols for example).
16828       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16829       ;;
16830
16831     hpux9* | hpux10* | hpux11*)
16832       lt_prog_compiler_wl_GCJ='-Wl,'
16833       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16834       # not for PA HP-UX.
16835       case $host_cpu in
16836       hppa*64*|ia64*)
16837         # +Z the default
16838         ;;
16839       *)
16840         lt_prog_compiler_pic_GCJ='+Z'
16841         ;;
16842       esac
16843       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16844       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16845       ;;
16846
16847     irix5* | irix6* | nonstopux*)
16848       lt_prog_compiler_wl_GCJ='-Wl,'
16849       # PIC (with -KPIC) is the default.
16850       lt_prog_compiler_static_GCJ='-non_shared'
16851       ;;
16852
16853     newsos6)
16854       lt_prog_compiler_pic_GCJ='-KPIC'
16855       lt_prog_compiler_static_GCJ='-Bstatic'
16856       ;;
16857
16858     linux* | k*bsd*-gnu)
16859       case $cc_basename in
16860       icc* | ecc*)
16861         lt_prog_compiler_wl_GCJ='-Wl,'
16862         lt_prog_compiler_pic_GCJ='-KPIC'
16863         lt_prog_compiler_static_GCJ='-static'
16864         ;;
16865       pgcc* | pgf77* | pgf90* | pgf95*)
16866         # Portland Group compilers (*not* the Pentium gcc compiler,
16867         # which looks to be a dead project)
16868         lt_prog_compiler_wl_GCJ='-Wl,'
16869         lt_prog_compiler_pic_GCJ='-fpic'
16870         lt_prog_compiler_static_GCJ='-Bstatic'
16871         ;;
16872       ccc*)
16873         lt_prog_compiler_wl_GCJ='-Wl,'
16874         # All Alpha code is PIC.
16875         lt_prog_compiler_static_GCJ='-non_shared'
16876         ;;
16877       esac
16878       ;;
16879
16880     osf3* | osf4* | osf5*)
16881       lt_prog_compiler_wl_GCJ='-Wl,'
16882       # All OSF/1 code is PIC.
16883       lt_prog_compiler_static_GCJ='-non_shared'
16884       ;;
16885
16886     solaris*)
16887       lt_prog_compiler_pic_GCJ='-KPIC'
16888       lt_prog_compiler_static_GCJ='-Bstatic'
16889       case $cc_basename in
16890       f77* | f90* | f95*)
16891         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16892       *)
16893         lt_prog_compiler_wl_GCJ='-Wl,';;
16894       esac
16895       ;;
16896
16897     sunos4*)
16898       lt_prog_compiler_wl_GCJ='-Qoption ld '
16899       lt_prog_compiler_pic_GCJ='-PIC'
16900       lt_prog_compiler_static_GCJ='-Bstatic'
16901       ;;
16902
16903     sysv4 | sysv4.2uw2* | sysv4.3*)
16904       lt_prog_compiler_wl_GCJ='-Wl,'
16905       lt_prog_compiler_pic_GCJ='-KPIC'
16906       lt_prog_compiler_static_GCJ='-Bstatic'
16907       ;;
16908
16909     sysv4*MP*)
16910       if test -d /usr/nec ;then
16911         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16912         lt_prog_compiler_static_GCJ='-Bstatic'
16913       fi
16914       ;;
16915
16916     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16917       lt_prog_compiler_wl_GCJ='-Wl,'
16918       lt_prog_compiler_pic_GCJ='-KPIC'
16919       lt_prog_compiler_static_GCJ='-Bstatic'
16920       ;;
16921
16922     unicos*)
16923       lt_prog_compiler_wl_GCJ='-Wl,'
16924       lt_prog_compiler_can_build_shared_GCJ=no
16925       ;;
16926
16927     uts4*)
16928       lt_prog_compiler_pic_GCJ='-pic'
16929       lt_prog_compiler_static_GCJ='-Bstatic'
16930       ;;
16931
16932     *)
16933       lt_prog_compiler_can_build_shared_GCJ=no
16934       ;;
16935     esac
16936   fi
16937
16938 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16939 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16940
16941 #
16942 # Check to make sure the PIC flag actually works.
16943 #
16944 if test -n "$lt_prog_compiler_pic_GCJ"; then
16945
16946 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16947 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16948 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16949   echo $ECHO_N "(cached) $ECHO_C" >&6
16950 else
16951   lt_prog_compiler_pic_works_GCJ=no
16952   ac_outfile=conftest.$ac_objext
16953    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16954    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16955    # Insert the option either (1) after the last *FLAGS variable, or
16956    # (2) before a word containing "conftest.", or (3) at the end.
16957    # Note that $ac_compile itself does not contain backslashes and begins
16958    # with a dollar sign (not a hyphen), so the echo should work correctly.
16959    # The option is referenced via a variable to avoid confusing sed.
16960    lt_compile=`echo "$ac_compile" | $SED \
16961    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16962    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16963    -e 's:$: $lt_compiler_flag:'`
16964    (eval echo "\"\$as_me:16964: $lt_compile\"" >&5)
16965    (eval "$lt_compile" 2>conftest.err)
16966    ac_status=$?
16967    cat conftest.err >&5
16968    echo "$as_me:16968: \$? = $ac_status" >&5
16969    if (exit $ac_status) && test -s "$ac_outfile"; then
16970      # The compiler can only warn and ignore the option if not recognized
16971      # So say no if there are warnings other than the usual output.
16972      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16973      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16974      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16975        lt_prog_compiler_pic_works_GCJ=yes
16976      fi
16977    fi
16978    $rm conftest*
16979
16980 fi
16981 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16982 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16983
16984 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16985     case $lt_prog_compiler_pic_GCJ in
16986      "" | " "*) ;;
16987      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16988      esac
16989 else
16990     lt_prog_compiler_pic_GCJ=
16991      lt_prog_compiler_can_build_shared_GCJ=no
16992 fi
16993
16994 fi
16995 case $host_os in
16996   # For platforms which do not support PIC, -DPIC is meaningless:
16997   *djgpp*)
16998     lt_prog_compiler_pic_GCJ=
16999     ;;
17000   *)
17001     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17002     ;;
17003 esac
17004
17005 #
17006 # Check to make sure the static flag actually works.
17007 #
17008 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17009 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17010 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17011 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17012   echo $ECHO_N "(cached) $ECHO_C" >&6
17013 else
17014   lt_prog_compiler_static_works_GCJ=no
17015    save_LDFLAGS="$LDFLAGS"
17016    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17017    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17018    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17019      # The linker can only warn and ignore the option if not recognized
17020      # So say no if there are warnings
17021      if test -s conftest.err; then
17022        # Append any errors to the config.log.
17023        cat conftest.err 1>&5
17024        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17025        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17026        if diff conftest.exp conftest.er2 >/dev/null; then
17027          lt_prog_compiler_static_works_GCJ=yes
17028        fi
17029      else
17030        lt_prog_compiler_static_works_GCJ=yes
17031      fi
17032    fi
17033    $rm conftest*
17034    LDFLAGS="$save_LDFLAGS"
17035
17036 fi
17037 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17038 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17039
17040 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17041     :
17042 else
17043     lt_prog_compiler_static_GCJ=
17044 fi
17045
17046
17047 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17048 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17049 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052   lt_cv_prog_compiler_c_o_GCJ=no
17053    $rm -r conftest 2>/dev/null
17054    mkdir conftest
17055    cd conftest
17056    mkdir out
17057    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17058
17059    lt_compiler_flag="-o out/conftest2.$ac_objext"
17060    # Insert the option either (1) after the last *FLAGS variable, or
17061    # (2) before a word containing "conftest.", or (3) at the end.
17062    # Note that $ac_compile itself does not contain backslashes and begins
17063    # with a dollar sign (not a hyphen), so the echo should work correctly.
17064    lt_compile=`echo "$ac_compile" | $SED \
17065    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17066    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17067    -e 's:$: $lt_compiler_flag:'`
17068    (eval echo "\"\$as_me:17068: $lt_compile\"" >&5)
17069    (eval "$lt_compile" 2>out/conftest.err)
17070    ac_status=$?
17071    cat out/conftest.err >&5
17072    echo "$as_me:17072: \$? = $ac_status" >&5
17073    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17074    then
17075      # The compiler can only warn and ignore the option if not recognized
17076      # So say no if there are warnings
17077      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17078      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17079      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17080        lt_cv_prog_compiler_c_o_GCJ=yes
17081      fi
17082    fi
17083    chmod u+w . 2>&5
17084    $rm conftest*
17085    # SGI C++ compiler will create directory out/ii_files/ for
17086    # template instantiation
17087    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17088    $rm out/* && rmdir out
17089    cd ..
17090    rmdir conftest
17091    $rm conftest*
17092
17093 fi
17094 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17095 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17096
17097
17098 hard_links="nottested"
17099 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17100   # do not overwrite the value of need_locks provided by the user
17101   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17102 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17103   hard_links=yes
17104   $rm conftest*
17105   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17106   touch conftest.a
17107   ln conftest.a conftest.b 2>&5 || hard_links=no
17108   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17109   echo "$as_me:$LINENO: result: $hard_links" >&5
17110 echo "${ECHO_T}$hard_links" >&6
17111   if test "$hard_links" = no; then
17112     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17113 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17114     need_locks=warn
17115   fi
17116 else
17117   need_locks=no
17118 fi
17119
17120 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17121 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17122
17123   runpath_var=
17124   allow_undefined_flag_GCJ=
17125   enable_shared_with_static_runtimes_GCJ=no
17126   archive_cmds_GCJ=
17127   archive_expsym_cmds_GCJ=
17128   old_archive_From_new_cmds_GCJ=
17129   old_archive_from_expsyms_cmds_GCJ=
17130   export_dynamic_flag_spec_GCJ=
17131   whole_archive_flag_spec_GCJ=
17132   thread_safe_flag_spec_GCJ=
17133   hardcode_libdir_flag_spec_GCJ=
17134   hardcode_libdir_flag_spec_ld_GCJ=
17135   hardcode_libdir_separator_GCJ=
17136   hardcode_direct_GCJ=no
17137   hardcode_minus_L_GCJ=no
17138   hardcode_shlibpath_var_GCJ=unsupported
17139   link_all_deplibs_GCJ=unknown
17140   hardcode_automatic_GCJ=no
17141   module_cmds_GCJ=
17142   module_expsym_cmds_GCJ=
17143   always_export_symbols_GCJ=no
17144   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17145   # include_expsyms should be a list of space-separated symbols to be *always*
17146   # included in the symbol list
17147   include_expsyms_GCJ=
17148   # exclude_expsyms can be an extended regexp of symbols to exclude
17149   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17150   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17151   # as well as any symbol that contains `d'.
17152   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17153   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17154   # platforms (ab)use it in PIC code, but their linkers get confused if
17155   # the symbol is explicitly referenced.  Since portable code cannot
17156   # rely on this symbol name, it's probably fine to never include it in
17157   # preloaded symbol tables.
17158   extract_expsyms_cmds=
17159   # Just being paranoid about ensuring that cc_basename is set.
17160   for cc_temp in $compiler""; do
17161   case $cc_temp in
17162     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17163     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17164     \-*) ;;
17165     *) break;;
17166   esac
17167 done
17168 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17169
17170   case $host_os in
17171   cygwin* | mingw* | pw32*)
17172     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17173     # When not using gcc, we currently assume that we are using
17174     # Microsoft Visual C++.
17175     if test "$GCC" != yes; then
17176       with_gnu_ld=no
17177     fi
17178     ;;
17179   interix*)
17180     # we just hope/assume this is gcc and not c89 (= MSVC++)
17181     with_gnu_ld=yes
17182     ;;
17183   openbsd*)
17184     with_gnu_ld=no
17185     ;;
17186   esac
17187
17188   ld_shlibs_GCJ=yes
17189   if test "$with_gnu_ld" = yes; then
17190     # If archive_cmds runs LD, not CC, wlarc should be empty
17191     wlarc='${wl}'
17192
17193     # Set some defaults for GNU ld with shared library support. These
17194     # are reset later if shared libraries are not supported. Putting them
17195     # here allows them to be overridden if necessary.
17196     runpath_var=LD_RUN_PATH
17197     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17198     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17199     # ancient GNU ld didn't support --whole-archive et. al.
17200     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17201         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17202       else
17203         whole_archive_flag_spec_GCJ=
17204     fi
17205     supports_anon_versioning=no
17206     case `$LD -v 2>/dev/null` in
17207       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17208       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17209       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17210       *\ 2.11.*) ;; # other 2.11 versions
17211       *) supports_anon_versioning=yes ;;
17212     esac
17213
17214     # See if GNU ld supports shared libraries.
17215     case $host_os in
17216     aix3* | aix4* | aix5*)
17217       # On AIX/PPC, the GNU linker is very broken
17218       if test "$host_cpu" != ia64; then
17219         ld_shlibs_GCJ=no
17220         cat <<EOF 1>&2
17221
17222 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17223 *** to be unable to reliably create shared libraries on AIX.
17224 *** Therefore, libtool is disabling shared libraries support.  If you
17225 *** really care for shared libraries, you may want to modify your PATH
17226 *** so that a non-GNU linker is found, and then restart.
17227
17228 EOF
17229       fi
17230       ;;
17231
17232     amigaos*)
17233       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)'
17234       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17235       hardcode_minus_L_GCJ=yes
17236
17237       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17238       # that the semantics of dynamic libraries on AmigaOS, at least up
17239       # to version 4, is to share data among multiple programs linked
17240       # with the same dynamic library.  Since this doesn't match the
17241       # behavior of shared libraries on other platforms, we can't use
17242       # them.
17243       ld_shlibs_GCJ=no
17244       ;;
17245
17246     beos*)
17247       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17248         allow_undefined_flag_GCJ=unsupported
17249         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17250         # support --undefined.  This deserves some investigation.  FIXME
17251         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17252       else
17253         ld_shlibs_GCJ=no
17254       fi
17255       ;;
17256
17257     cygwin* | mingw* | pw32*)
17258       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17259       # as there is no search path for DLLs.
17260       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17261       allow_undefined_flag_GCJ=unsupported
17262       always_export_symbols_GCJ=no
17263       enable_shared_with_static_runtimes_GCJ=yes
17264       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17265
17266       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17267         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17268         # If the export-symbols file already is a .def file (1st line
17269         # is EXPORTS), use it as is; otherwise, prepend...
17270         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17271           cp $export_symbols $output_objdir/$soname.def;
17272         else
17273           echo EXPORTS > $output_objdir/$soname.def;
17274           cat $export_symbols >> $output_objdir/$soname.def;
17275         fi~
17276         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17277       else
17278         ld_shlibs_GCJ=no
17279       fi
17280       ;;
17281
17282     interix3*)
17283       hardcode_direct_GCJ=no
17284       hardcode_shlibpath_var_GCJ=no
17285       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17286       export_dynamic_flag_spec_GCJ='${wl}-E'
17287       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17288       # Instead, shared libraries are loaded at an image base (0x10000000 by
17289       # default) and relocated if they conflict, which is a slow very memory
17290       # consuming and fragmenting process.  To avoid this, we pick a random,
17291       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17292       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17293       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'
17294       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'
17295       ;;
17296
17297     linux* | k*bsd*-gnu)
17298       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17299         tmp_addflag=
17300         case $cc_basename,$host_cpu in
17301         pgcc*)                          # Portland Group C compiler
17302           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'
17303           tmp_addflag=' $pic_flag'
17304           ;;
17305         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17306           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'
17307           tmp_addflag=' $pic_flag -Mnomain' ;;
17308         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17309           tmp_addflag=' -i_dynamic' ;;
17310         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17311           tmp_addflag=' -i_dynamic -nofor_main' ;;
17312         ifc* | ifort*)                  # Intel Fortran compiler
17313           tmp_addflag=' -nofor_main' ;;
17314         esac
17315         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17316
17317         if test $supports_anon_versioning = yes; then
17318           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17319   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17320   $echo "local: *; };" >> $output_objdir/$libname.ver~
17321           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17322         fi
17323         link_all_deplibs_GCJ=no
17324       else
17325         ld_shlibs_GCJ=no
17326       fi
17327       ;;
17328
17329     netbsd* | netbsdelf*-gnu)
17330       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17331         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17332         wlarc=
17333       else
17334         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17335         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17336       fi
17337       ;;
17338
17339     solaris*)
17340       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17341         ld_shlibs_GCJ=no
17342         cat <<EOF 1>&2
17343
17344 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17345 *** create shared libraries on Solaris systems.  Therefore, libtool
17346 *** is disabling shared libraries support.  We urge you to upgrade GNU
17347 *** binutils to release 2.9.1 or newer.  Another option is to modify
17348 *** your PATH or compiler configuration so that the native linker is
17349 *** used, and then restart.
17350
17351 EOF
17352       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17353         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17354         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17355       else
17356         ld_shlibs_GCJ=no
17357       fi
17358       ;;
17359
17360     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17361       case `$LD -v 2>&1` in
17362         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17363         ld_shlibs_GCJ=no
17364         cat <<_LT_EOF 1>&2
17365
17366 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17367 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17368 *** is disabling shared libraries support.  We urge you to upgrade GNU
17369 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17370 *** your PATH or compiler configuration so that the native linker is
17371 *** used, and then restart.
17372
17373 _LT_EOF
17374         ;;
17375         *)
17376           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17377             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17378             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17379             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17380           else
17381             ld_shlibs_GCJ=no
17382           fi
17383         ;;
17384       esac
17385       ;;
17386
17387     sunos4*)
17388       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17389       wlarc=
17390       hardcode_direct_GCJ=yes
17391       hardcode_shlibpath_var_GCJ=no
17392       ;;
17393
17394     *)
17395       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17396         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17397         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17398       else
17399         ld_shlibs_GCJ=no
17400       fi
17401       ;;
17402     esac
17403
17404     if test "$ld_shlibs_GCJ" = no; then
17405       runpath_var=
17406       hardcode_libdir_flag_spec_GCJ=
17407       export_dynamic_flag_spec_GCJ=
17408       whole_archive_flag_spec_GCJ=
17409     fi
17410   else
17411     # PORTME fill in a description of your system's linker (not GNU ld)
17412     case $host_os in
17413     aix3*)
17414       allow_undefined_flag_GCJ=unsupported
17415       always_export_symbols_GCJ=yes
17416       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'
17417       # Note: this linker hardcodes the directories in LIBPATH if there
17418       # are no directories specified by -L.
17419       hardcode_minus_L_GCJ=yes
17420       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17421         # Neither direct hardcoding nor static linking is supported with a
17422         # broken collect2.
17423         hardcode_direct_GCJ=unsupported
17424       fi
17425       ;;
17426
17427     aix4* | aix5*)
17428       if test "$host_cpu" = ia64; then
17429         # On IA64, the linker does run time linking by default, so we don't
17430         # have to do anything special.
17431         aix_use_runtimelinking=no
17432         exp_sym_flag='-Bexport'
17433         no_entry_flag=""
17434       else
17435         # If we're using GNU nm, then we don't want the "-C" option.
17436         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17437         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17438           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'
17439         else
17440           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'
17441         fi
17442         aix_use_runtimelinking=no
17443
17444         # Test if we are trying to use run time linking or normal
17445         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17446         # need to do runtime linking.
17447         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17448           for ld_flag in $LDFLAGS; do
17449           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17450             aix_use_runtimelinking=yes
17451             break
17452           fi
17453           done
17454           ;;
17455         esac
17456
17457         exp_sym_flag='-bexport'
17458         no_entry_flag='-bnoentry'
17459       fi
17460
17461       # When large executables or shared objects are built, AIX ld can
17462       # have problems creating the table of contents.  If linking a library
17463       # or program results in "error TOC overflow" add -mminimal-toc to
17464       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17465       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17466
17467       archive_cmds_GCJ=''
17468       hardcode_direct_GCJ=yes
17469       hardcode_libdir_separator_GCJ=':'
17470       link_all_deplibs_GCJ=yes
17471
17472       if test "$GCC" = yes; then
17473         case $host_os in aix4.[012]|aix4.[012].*)
17474         # We only want to do this on AIX 4.2 and lower, the check
17475         # below for broken collect2 doesn't work under 4.3+
17476           collect2name=`${CC} -print-prog-name=collect2`
17477           if test -f "$collect2name" && \
17478            strings "$collect2name" | grep resolve_lib_name >/dev/null
17479           then
17480           # We have reworked collect2
17481           hardcode_direct_GCJ=yes
17482           else
17483           # We have old collect2
17484           hardcode_direct_GCJ=unsupported
17485           # It fails to find uninstalled libraries when the uninstalled
17486           # path is not listed in the libpath.  Setting hardcode_minus_L
17487           # to unsupported forces relinking
17488           hardcode_minus_L_GCJ=yes
17489           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17490           hardcode_libdir_separator_GCJ=
17491           fi
17492           ;;
17493         esac
17494         shared_flag='-shared'
17495         if test "$aix_use_runtimelinking" = yes; then
17496           shared_flag="$shared_flag "'${wl}-G'
17497         fi
17498       else
17499         # not using gcc
17500         if test "$host_cpu" = ia64; then
17501         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17502         # chokes on -Wl,-G. The following line is correct:
17503           shared_flag='-G'
17504         else
17505           if test "$aix_use_runtimelinking" = yes; then
17506             shared_flag='${wl}-G'
17507           else
17508             shared_flag='${wl}-bM:SRE'
17509           fi
17510         fi
17511       fi
17512
17513       # It seems that -bexpall does not export symbols beginning with
17514       # underscore (_), so it is better to generate a list of symbols to export.
17515       always_export_symbols_GCJ=yes
17516       if test "$aix_use_runtimelinking" = yes; then
17517         # Warning - without using the other runtime loading flags (-brtl),
17518         # -berok will link without error, but may produce a broken library.
17519         allow_undefined_flag_GCJ='-berok'
17520        # Determine the default libpath from the value encoded in an empty executable.
17521        cat >conftest.$ac_ext <<_ACEOF
17522 /* confdefs.h.  */
17523 _ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h.  */
17527
17528 int
17529 main ()
17530 {
17531
17532   ;
17533   return 0;
17534 }
17535 _ACEOF
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17538   (eval $ac_link) 2>conftest.er1
17539   ac_status=$?
17540   grep -v '^ *+' conftest.er1 >conftest.err
17541   rm -f conftest.er1
17542   cat conftest.err >&5
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); } &&
17545          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547   (eval $ac_try) 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; } &&
17551          { ac_try='test -s conftest$ac_exeext'
17552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553   (eval $ac_try) 2>&5
17554   ac_status=$?
17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556   (exit $ac_status); }; }; then
17557
17558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17559 }'`
17560 # Check for a 64-bit object if we didn't find anything.
17561 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; }
17562 }'`; fi
17563 else
17564   echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17566
17567 fi
17568 rm -f conftest.err conftest.$ac_objext \
17569       conftest$ac_exeext conftest.$ac_ext
17570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17571
17572        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17573         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"
17574        else
17575         if test "$host_cpu" = ia64; then
17576           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17577           allow_undefined_flag_GCJ="-z nodefs"
17578           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"
17579         else
17580          # Determine the default libpath from the value encoded in an empty executable.
17581          cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h.  */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h.  */
17587
17588 int
17589 main ()
17590 {
17591
17592   ;
17593   return 0;
17594 }
17595 _ACEOF
17596 rm -f conftest.$ac_objext conftest$ac_exeext
17597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17598   (eval $ac_link) 2>conftest.er1
17599   ac_status=$?
17600   grep -v '^ *+' conftest.er1 >conftest.err
17601   rm -f conftest.er1
17602   cat conftest.err >&5
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); } &&
17605          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607   (eval $ac_try) 2>&5
17608   ac_status=$?
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); }; } &&
17611          { ac_try='test -s conftest$ac_exeext'
17612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613   (eval $ac_try) 2>&5
17614   ac_status=$?
17615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616   (exit $ac_status); }; }; then
17617
17618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17619 }'`
17620 # Check for a 64-bit object if we didn't find anything.
17621 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; }
17622 }'`; fi
17623 else
17624   echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17626
17627 fi
17628 rm -f conftest.err conftest.$ac_objext \
17629       conftest$ac_exeext conftest.$ac_ext
17630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17631
17632          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17633           # Warning - without using the other run time loading flags,
17634           # -berok will link without error, but may produce a broken library.
17635           no_undefined_flag_GCJ=' ${wl}-bernotok'
17636           allow_undefined_flag_GCJ=' ${wl}-berok'
17637           # Exported symbols can be pulled into shared objects from archives
17638           whole_archive_flag_spec_GCJ='$convenience'
17639           archive_cmds_need_lc_GCJ=yes
17640           # This is similar to how AIX traditionally builds its shared libraries.
17641           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'
17642         fi
17643       fi
17644       ;;
17645
17646     amigaos*)
17647       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)'
17648       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17649       hardcode_minus_L_GCJ=yes
17650       # see comment about different semantics on the GNU ld section
17651       ld_shlibs_GCJ=no
17652       ;;
17653
17654     bsdi[45]*)
17655       export_dynamic_flag_spec_GCJ=-rdynamic
17656       ;;
17657
17658     cygwin* | mingw* | pw32*)
17659       # When not using gcc, we currently assume that we are using
17660       # Microsoft Visual C++.
17661       # hardcode_libdir_flag_spec is actually meaningless, as there is
17662       # no search path for DLLs.
17663       hardcode_libdir_flag_spec_GCJ=' '
17664       allow_undefined_flag_GCJ=unsupported
17665       # Tell ltmain to make .lib files, not .a files.
17666       libext=lib
17667       # Tell ltmain to make .dll files, not .so files.
17668       shrext_cmds=".dll"
17669       # FIXME: Setting linknames here is a bad hack.
17670       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17671       # The linker will automatically build a .lib file if we build a DLL.
17672       old_archive_From_new_cmds_GCJ='true'
17673       # FIXME: Should let the user specify the lib program.
17674       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17675       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17676       enable_shared_with_static_runtimes_GCJ=yes
17677       ;;
17678
17679     darwin* | rhapsody*)
17680       case $host_os in
17681         rhapsody* | darwin1.[012])
17682          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17683          ;;
17684        *) # Darwin 1.3 on
17685          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17686            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17687          else
17688            case ${MACOSX_DEPLOYMENT_TARGET} in
17689              10.[012])
17690                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17691                ;;
17692              10.*)
17693                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17694                ;;
17695            esac
17696          fi
17697          ;;
17698       esac
17699       archive_cmds_need_lc_GCJ=no
17700       hardcode_direct_GCJ=no
17701       hardcode_automatic_GCJ=yes
17702       hardcode_shlibpath_var_GCJ=unsupported
17703       whole_archive_flag_spec_GCJ=''
17704       link_all_deplibs_GCJ=yes
17705     if test "$GCC" = yes ; then
17706         output_verbose_link_cmd='echo'
17707         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17708       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17709       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17710       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}'
17711       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}'
17712     else
17713       case $cc_basename in
17714         xlc*)
17715          output_verbose_link_cmd='echo'
17716          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17717          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17718           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17719          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}'
17720           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}'
17721           ;;
17722        *)
17723          ld_shlibs_GCJ=no
17724           ;;
17725       esac
17726     fi
17727       ;;
17728
17729     dgux*)
17730       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17731       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17732       hardcode_shlibpath_var_GCJ=no
17733       ;;
17734
17735     freebsd1*)
17736       ld_shlibs_GCJ=no
17737       ;;
17738
17739     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17740     # support.  Future versions do this automatically, but an explicit c++rt0.o
17741     # does not break anything, and helps significantly (at the cost of a little
17742     # extra space).
17743     freebsd2.2*)
17744       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17745       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17746       hardcode_direct_GCJ=yes
17747       hardcode_shlibpath_var_GCJ=no
17748       ;;
17749
17750     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17751     freebsd2*)
17752       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17753       hardcode_direct_GCJ=yes
17754       hardcode_minus_L_GCJ=yes
17755       hardcode_shlibpath_var_GCJ=no
17756       ;;
17757
17758     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17759     freebsd* | dragonfly*)
17760       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17761       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17762       hardcode_direct_GCJ=yes
17763       hardcode_shlibpath_var_GCJ=no
17764       ;;
17765
17766     hpux9*)
17767       if test "$GCC" = yes; then
17768         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'
17769       else
17770         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'
17771       fi
17772       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17773       hardcode_libdir_separator_GCJ=:
17774       hardcode_direct_GCJ=yes
17775
17776       # hardcode_minus_L: Not really in the search PATH,
17777       # but as the default location of the library.
17778       hardcode_minus_L_GCJ=yes
17779       export_dynamic_flag_spec_GCJ='${wl}-E'
17780       ;;
17781
17782     hpux10*)
17783       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17784         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17785       else
17786         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17787       fi
17788       if test "$with_gnu_ld" = no; then
17789         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17790         hardcode_libdir_separator_GCJ=:
17791
17792         hardcode_direct_GCJ=yes
17793         export_dynamic_flag_spec_GCJ='${wl}-E'
17794
17795         # hardcode_minus_L: Not really in the search PATH,
17796         # but as the default location of the library.
17797         hardcode_minus_L_GCJ=yes
17798       fi
17799       ;;
17800
17801     hpux11*)
17802       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17803         case $host_cpu in
17804         hppa*64*)
17805           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17806           ;;
17807         ia64*)
17808           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17809           ;;
17810         *)
17811           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17812           ;;
17813         esac
17814       else
17815         case $host_cpu in
17816         hppa*64*)
17817           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17818           ;;
17819         ia64*)
17820           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17821           ;;
17822         *)
17823           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17824           ;;
17825         esac
17826       fi
17827       if test "$with_gnu_ld" = no; then
17828         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17829         hardcode_libdir_separator_GCJ=:
17830
17831         case $host_cpu in
17832         hppa*64*|ia64*)
17833           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17834           hardcode_direct_GCJ=no
17835           hardcode_shlibpath_var_GCJ=no
17836           ;;
17837         *)
17838           hardcode_direct_GCJ=yes
17839           export_dynamic_flag_spec_GCJ='${wl}-E'
17840
17841           # hardcode_minus_L: Not really in the search PATH,
17842           # but as the default location of the library.
17843           hardcode_minus_L_GCJ=yes
17844           ;;
17845         esac
17846       fi
17847       ;;
17848
17849     irix5* | irix6* | nonstopux*)
17850       if test "$GCC" = yes; then
17851         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'
17852       else
17853         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'
17854         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17855       fi
17856       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17857       hardcode_libdir_separator_GCJ=:
17858       link_all_deplibs_GCJ=yes
17859       ;;
17860
17861     netbsd* | netbsdelf*-gnu)
17862       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17863         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17864       else
17865         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17866       fi
17867       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17868       hardcode_direct_GCJ=yes
17869       hardcode_shlibpath_var_GCJ=no
17870       ;;
17871
17872     newsos6)
17873       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17874       hardcode_direct_GCJ=yes
17875       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17876       hardcode_libdir_separator_GCJ=:
17877       hardcode_shlibpath_var_GCJ=no
17878       ;;
17879
17880     openbsd*)
17881       hardcode_direct_GCJ=yes
17882       hardcode_shlibpath_var_GCJ=no
17883       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17884         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17885         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17886         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17887         export_dynamic_flag_spec_GCJ='${wl}-E'
17888       else
17889        case $host_os in
17890          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17891            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17892            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17893            ;;
17894          *)
17895            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17896            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17897            ;;
17898        esac
17899       fi
17900       ;;
17901
17902     os2*)
17903       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17904       hardcode_minus_L_GCJ=yes
17905       allow_undefined_flag_GCJ=unsupported
17906       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'
17907       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17908       ;;
17909
17910     osf3*)
17911       if test "$GCC" = yes; then
17912         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17913         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'
17914       else
17915         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17916         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'
17917       fi
17918       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17919       hardcode_libdir_separator_GCJ=:
17920       ;;
17921
17922     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17923       if test "$GCC" = yes; then
17924         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17925         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'
17926         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17927       else
17928         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17929         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'
17930         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~
17931         $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'
17932
17933         # Both c and cxx compiler support -rpath directly
17934         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17935       fi
17936       hardcode_libdir_separator_GCJ=:
17937       ;;
17938
17939     solaris*)
17940       no_undefined_flag_GCJ=' -z text'
17941       if test "$GCC" = yes; then
17942         wlarc='${wl}'
17943         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17944         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17945           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17946       else
17947         wlarc=''
17948         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17949         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17950         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17951       fi
17952       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17953       hardcode_shlibpath_var_GCJ=no
17954       case $host_os in
17955       solaris2.[0-5] | solaris2.[0-5].*) ;;
17956       *)
17957         # The compiler driver will combine linker options so we
17958         # cannot just pass the convience library names through
17959         # without $wl, iff we do not link with $LD.
17960         # Luckily, gcc supports the same syntax we need for Sun Studio.
17961         # Supported since Solaris 2.6 (maybe 2.5.1?)
17962         case $wlarc in
17963         '')
17964           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17965         *)
17966           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' ;;
17967         esac ;;
17968       esac
17969       link_all_deplibs_GCJ=yes
17970       ;;
17971
17972     sunos4*)
17973       if test "x$host_vendor" = xsequent; then
17974         # Use $CC to link under sequent, because it throws in some extra .o
17975         # files that make .init and .fini sections work.
17976         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17977       else
17978         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17979       fi
17980       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17981       hardcode_direct_GCJ=yes
17982       hardcode_minus_L_GCJ=yes
17983       hardcode_shlibpath_var_GCJ=no
17984       ;;
17985
17986     sysv4)
17987       case $host_vendor in
17988         sni)
17989           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17990           hardcode_direct_GCJ=yes # is this really true???
17991         ;;
17992         siemens)
17993           ## LD is ld it makes a PLAMLIB
17994           ## CC just makes a GrossModule.
17995           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17996           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17997           hardcode_direct_GCJ=no
17998         ;;
17999         motorola)
18000           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18001           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18002         ;;
18003       esac
18004       runpath_var='LD_RUN_PATH'
18005       hardcode_shlibpath_var_GCJ=no
18006       ;;
18007
18008     sysv4.3*)
18009       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18010       hardcode_shlibpath_var_GCJ=no
18011       export_dynamic_flag_spec_GCJ='-Bexport'
18012       ;;
18013
18014     sysv4*MP*)
18015       if test -d /usr/nec; then
18016         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18017         hardcode_shlibpath_var_GCJ=no
18018         runpath_var=LD_RUN_PATH
18019         hardcode_runpath_var=yes
18020         ld_shlibs_GCJ=yes
18021       fi
18022       ;;
18023
18024     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18025       no_undefined_flag_GCJ='${wl}-z,text'
18026       archive_cmds_need_lc_GCJ=no
18027       hardcode_shlibpath_var_GCJ=no
18028       runpath_var='LD_RUN_PATH'
18029
18030       if test "$GCC" = yes; then
18031         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18032         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18033       else
18034         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18035         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18036       fi
18037       ;;
18038
18039     sysv5* | sco3.2v5* | sco5v6*)
18040       # Note: We can NOT use -z defs as we might desire, because we do not
18041       # link with -lc, and that would cause any symbols used from libc to
18042       # always be unresolved, which means just about no library would
18043       # ever link correctly.  If we're not using GNU ld we use -z text
18044       # though, which does catch some bad symbols but isn't as heavy-handed
18045       # as -z defs.
18046       no_undefined_flag_GCJ='${wl}-z,text'
18047       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18048       archive_cmds_need_lc_GCJ=no
18049       hardcode_shlibpath_var_GCJ=no
18050       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18051       hardcode_libdir_separator_GCJ=':'
18052       link_all_deplibs_GCJ=yes
18053       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18054       runpath_var='LD_RUN_PATH'
18055
18056       if test "$GCC" = yes; then
18057         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18058         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18059       else
18060         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18061         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18062       fi
18063       ;;
18064
18065     uts4*)
18066       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18067       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18068       hardcode_shlibpath_var_GCJ=no
18069       ;;
18070
18071     *)
18072       ld_shlibs_GCJ=no
18073       ;;
18074     esac
18075   fi
18076
18077 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18078 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18079 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18080
18081 #
18082 # Do we need to explicitly link libc?
18083 #
18084 case "x$archive_cmds_need_lc_GCJ" in
18085 x|xyes)
18086   # Assume -lc should be added
18087   archive_cmds_need_lc_GCJ=yes
18088
18089   if test "$enable_shared" = yes && test "$GCC" = yes; then
18090     case $archive_cmds_GCJ in
18091     *'~'*)
18092       # FIXME: we may have to deal with multi-command sequences.
18093       ;;
18094     '$CC '*)
18095       # Test whether the compiler implicitly links with -lc since on some
18096       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18097       # to ld, don't add -lc before -lgcc.
18098       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18099 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18100       $rm conftest*
18101       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18102
18103       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18104   (eval $ac_compile) 2>&5
18105   ac_status=$?
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } 2>conftest.err; then
18108         soname=conftest
18109         lib=conftest
18110         libobjs=conftest.$ac_objext
18111         deplibs=
18112         wl=$lt_prog_compiler_wl_GCJ
18113         pic_flag=$lt_prog_compiler_pic_GCJ
18114         compiler_flags=-v
18115         linker_flags=-v
18116         verstring=
18117         output_objdir=.
18118         libname=conftest
18119         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18120         allow_undefined_flag_GCJ=
18121         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18122   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18123   ac_status=$?
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); }
18126         then
18127           archive_cmds_need_lc_GCJ=no
18128         else
18129           archive_cmds_need_lc_GCJ=yes
18130         fi
18131         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18132       else
18133         cat conftest.err 1>&5
18134       fi
18135       $rm conftest*
18136       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18137 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18138       ;;
18139     esac
18140   fi
18141   ;;
18142 esac
18143
18144 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18145 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18146 library_names_spec=
18147 libname_spec='lib$name'
18148 soname_spec=
18149 shrext_cmds=".so"
18150 postinstall_cmds=
18151 postuninstall_cmds=
18152 finish_cmds=
18153 finish_eval=
18154 shlibpath_var=
18155 shlibpath_overrides_runpath=unknown
18156 version_type=none
18157 dynamic_linker="$host_os ld.so"
18158 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18159 if test "$GCC" = yes; then
18160   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18161   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18162     # if the path contains ";" then we assume it to be the separator
18163     # otherwise default to the standard path separator (i.e. ":") - it is
18164     # assumed that no part of a normal pathname contains ";" but that should
18165     # okay in the real world where ";" in dirpaths is itself problematic.
18166     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18167   else
18168     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18169   fi
18170 else
18171   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18172 fi
18173 need_lib_prefix=unknown
18174 hardcode_into_libs=no
18175
18176 # when you set need_version to no, make sure it does not cause -set_version
18177 # flags to be left without arguments
18178 need_version=unknown
18179
18180 case $host_os in
18181 aix3*)
18182   version_type=linux
18183   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18184   shlibpath_var=LIBPATH
18185
18186   # AIX 3 has no versioning support, so we append a major version to the name.
18187   soname_spec='${libname}${release}${shared_ext}$major'
18188   ;;
18189
18190 aix4* | aix5*)
18191   version_type=linux
18192   need_lib_prefix=no
18193   need_version=no
18194   hardcode_into_libs=yes
18195   if test "$host_cpu" = ia64; then
18196     # AIX 5 supports IA64
18197     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18198     shlibpath_var=LD_LIBRARY_PATH
18199   else
18200     # With GCC up to 2.95.x, collect2 would create an import file
18201     # for dependence libraries.  The import file would start with
18202     # the line `#! .'.  This would cause the generated library to
18203     # depend on `.', always an invalid library.  This was fixed in
18204     # development snapshots of GCC prior to 3.0.
18205     case $host_os in
18206       aix4 | aix4.[01] | aix4.[01].*)
18207       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18208            echo ' yes '
18209            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18210         :
18211       else
18212         can_build_shared=no
18213       fi
18214       ;;
18215     esac
18216     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18217     # soname into executable. Probably we can add versioning support to
18218     # collect2, so additional links can be useful in future.
18219     if test "$aix_use_runtimelinking" = yes; then
18220       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18221       # instead of lib<name>.a to let people know that these are not
18222       # typical AIX shared libraries.
18223       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224     else
18225       # We preserve .a as extension for shared libraries through AIX4.2
18226       # and later when we are not doing run time linking.
18227       library_names_spec='${libname}${release}.a $libname.a'
18228       soname_spec='${libname}${release}${shared_ext}$major'
18229     fi
18230     shlibpath_var=LIBPATH
18231   fi
18232   ;;
18233
18234 amigaos*)
18235   library_names_spec='$libname.ixlibrary $libname.a'
18236   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18237   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'
18238   ;;
18239
18240 beos*)
18241   library_names_spec='${libname}${shared_ext}'
18242   dynamic_linker="$host_os ld.so"
18243   shlibpath_var=LIBRARY_PATH
18244   ;;
18245
18246 bsdi[45]*)
18247   version_type=linux
18248   need_version=no
18249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250   soname_spec='${libname}${release}${shared_ext}$major'
18251   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18252   shlibpath_var=LD_LIBRARY_PATH
18253   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18254   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18255   # the default ld.so.conf also contains /usr/contrib/lib and
18256   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18257   # libtool to hard-code these into programs
18258   ;;
18259
18260 cygwin* | mingw* | pw32*)
18261   version_type=windows
18262   shrext_cmds=".dll"
18263   need_version=no
18264   need_lib_prefix=no
18265
18266   case $GCC,$host_os in
18267   yes,cygwin* | yes,mingw* | yes,pw32*)
18268     library_names_spec='$libname.dll.a'
18269     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18270     postinstall_cmds='base_file=`basename \${file}`~
18271       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18272       dldir=$destdir/`dirname \$dlpath`~
18273       test -d \$dldir || mkdir -p \$dldir~
18274       $install_prog $dir/$dlname \$dldir/$dlname~
18275       chmod a+x \$dldir/$dlname'
18276     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18277       dlpath=$dir/\$dldll~
18278        $rm \$dlpath'
18279     shlibpath_overrides_runpath=yes
18280
18281     case $host_os in
18282     cygwin*)
18283       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18284       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18285       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18286       ;;
18287     mingw*)
18288       # MinGW DLLs use traditional 'lib' prefix
18289       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18290       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18291       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18292         # It is most probably a Windows format PATH printed by
18293         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18294         # path with ; separators, and with drive letters. We can handle the
18295         # drive letters (cygwin fileutils understands them), so leave them,
18296         # especially as we might pass files found there to a mingw objdump,
18297         # which wouldn't understand a cygwinified path. Ahh.
18298         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18299       else
18300         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18301       fi
18302       ;;
18303     pw32*)
18304       # pw32 DLLs use 'pw' prefix rather than 'lib'
18305       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18306       ;;
18307     esac
18308     ;;
18309
18310   *)
18311     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18312     ;;
18313   esac
18314   dynamic_linker='Win32 ld.exe'
18315   # FIXME: first we should search . and the directory the executable is in
18316   shlibpath_var=PATH
18317   ;;
18318
18319 darwin* | rhapsody*)
18320   dynamic_linker="$host_os dyld"
18321   version_type=darwin
18322   need_lib_prefix=no
18323   need_version=no
18324   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18325   soname_spec='${libname}${release}${major}$shared_ext'
18326   shlibpath_overrides_runpath=yes
18327   shlibpath_var=DYLD_LIBRARY_PATH
18328   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18329   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18330   if test "$GCC" = yes; then
18331     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"`
18332   else
18333     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18334   fi
18335   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18336   ;;
18337
18338 dgux*)
18339   version_type=linux
18340   need_lib_prefix=no
18341   need_version=no
18342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18343   soname_spec='${libname}${release}${shared_ext}$major'
18344   shlibpath_var=LD_LIBRARY_PATH
18345   ;;
18346
18347 freebsd1*)
18348   dynamic_linker=no
18349   ;;
18350
18351 freebsd* | dragonfly*)
18352   # DragonFly does not have aout.  When/if they implement a new
18353   # versioning mechanism, adjust this.
18354   if test -x /usr/bin/objformat; then
18355     objformat=`/usr/bin/objformat`
18356   else
18357     case $host_os in
18358     freebsd[123]*) objformat=aout ;;
18359     *) objformat=elf ;;
18360     esac
18361   fi
18362   version_type=freebsd-$objformat
18363   case $version_type in
18364     freebsd-elf*)
18365       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18366       need_version=no
18367       need_lib_prefix=no
18368       ;;
18369     freebsd-*)
18370       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18371       need_version=yes
18372       ;;
18373   esac
18374   shlibpath_var=LD_LIBRARY_PATH
18375   case $host_os in
18376   freebsd2*)
18377     shlibpath_overrides_runpath=yes
18378     ;;
18379   freebsd3.[01]* | freebsdelf3.[01]*)
18380     shlibpath_overrides_runpath=yes
18381     hardcode_into_libs=yes
18382     ;;
18383   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18384   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18385     shlibpath_overrides_runpath=no
18386     hardcode_into_libs=yes
18387     ;;
18388   freebsd*) # from 4.6 on
18389     shlibpath_overrides_runpath=yes
18390     hardcode_into_libs=yes
18391     ;;
18392   esac
18393   ;;
18394
18395 gnu*)
18396   version_type=linux
18397   need_lib_prefix=no
18398   need_version=no
18399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18400   soname_spec='${libname}${release}${shared_ext}$major'
18401   shlibpath_var=LD_LIBRARY_PATH
18402   hardcode_into_libs=yes
18403   ;;
18404
18405 hpux9* | hpux10* | hpux11*)
18406   # Give a soname corresponding to the major version so that dld.sl refuses to
18407   # link against other versions.
18408   version_type=sunos
18409   need_lib_prefix=no
18410   need_version=no
18411   case $host_cpu in
18412   ia64*)
18413     shrext_cmds='.so'
18414     hardcode_into_libs=yes
18415     dynamic_linker="$host_os dld.so"
18416     shlibpath_var=LD_LIBRARY_PATH
18417     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18419     soname_spec='${libname}${release}${shared_ext}$major'
18420     if test "X$HPUX_IA64_MODE" = X32; then
18421       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18422     else
18423       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18424     fi
18425     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18426     ;;
18427    hppa*64*)
18428      shrext_cmds='.sl'
18429      hardcode_into_libs=yes
18430      dynamic_linker="$host_os dld.sl"
18431      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18432      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18433      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18434      soname_spec='${libname}${release}${shared_ext}$major'
18435      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18436      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18437      ;;
18438    *)
18439     shrext_cmds='.sl'
18440     dynamic_linker="$host_os dld.sl"
18441     shlibpath_var=SHLIB_PATH
18442     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18444     soname_spec='${libname}${release}${shared_ext}$major'
18445     ;;
18446   esac
18447   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18448   postinstall_cmds='chmod 555 $lib'
18449   ;;
18450
18451 interix3*)
18452   version_type=linux
18453   need_lib_prefix=no
18454   need_version=no
18455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18456   soname_spec='${libname}${release}${shared_ext}$major'
18457   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18458   shlibpath_var=LD_LIBRARY_PATH
18459   shlibpath_overrides_runpath=no
18460   hardcode_into_libs=yes
18461   ;;
18462
18463 irix5* | irix6* | nonstopux*)
18464   case $host_os in
18465     nonstopux*) version_type=nonstopux ;;
18466     *)
18467         if test "$lt_cv_prog_gnu_ld" = yes; then
18468                 version_type=linux
18469         else
18470                 version_type=irix
18471         fi ;;
18472   esac
18473   need_lib_prefix=no
18474   need_version=no
18475   soname_spec='${libname}${release}${shared_ext}$major'
18476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18477   case $host_os in
18478   irix5* | nonstopux*)
18479     libsuff= shlibsuff=
18480     ;;
18481   *)
18482     case $LD in # libtool.m4 will add one of these switches to LD
18483     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18484       libsuff= shlibsuff= libmagic=32-bit;;
18485     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18486       libsuff=32 shlibsuff=N32 libmagic=N32;;
18487     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18488       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18489     *) libsuff= shlibsuff= libmagic=never-match;;
18490     esac
18491     ;;
18492   esac
18493   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18494   shlibpath_overrides_runpath=no
18495   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18496   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18497   hardcode_into_libs=yes
18498   ;;
18499
18500 # No shared lib support for Linux oldld, aout, or coff.
18501 linux*oldld* | linux*aout* | linux*coff*)
18502   dynamic_linker=no
18503   ;;
18504
18505 # This must be Linux ELF.
18506 linux* | k*bsd*-gnu)
18507   version_type=linux
18508   need_lib_prefix=no
18509   need_version=no
18510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18511   soname_spec='${libname}${release}${shared_ext}$major'
18512   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18513   shlibpath_var=LD_LIBRARY_PATH
18514   shlibpath_overrides_runpath=no
18515   # This implies no fast_install, which is unacceptable.
18516   # Some rework will be needed to allow for fast_install
18517   # before this can be enabled.
18518   hardcode_into_libs=yes
18519
18520   # Append ld.so.conf contents to the search path
18521   if test -f /etc/ld.so.conf; then
18522     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' ' '`
18523     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18524   fi
18525
18526   # We used to test for /lib/ld.so.1 and disable shared libraries on
18527   # powerpc, because MkLinux only supported shared libraries with the
18528   # GNU dynamic linker.  Since this was broken with cross compilers,
18529   # most powerpc-linux boxes support dynamic linking these days and
18530   # people can always --disable-shared, the test was removed, and we
18531   # assume the GNU/Linux dynamic linker is in use.
18532   dynamic_linker='GNU/Linux ld.so'
18533   ;;
18534
18535 netbsdelf*-gnu)
18536   version_type=linux
18537   need_lib_prefix=no
18538   need_version=no
18539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18540   soname_spec='${libname}${release}${shared_ext}$major'
18541   shlibpath_var=LD_LIBRARY_PATH
18542   shlibpath_overrides_runpath=no
18543   hardcode_into_libs=yes
18544   dynamic_linker='NetBSD ld.elf_so'
18545   ;;
18546
18547 netbsd*)
18548   version_type=sunos
18549   need_lib_prefix=no
18550   need_version=no
18551   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18553     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18554     dynamic_linker='NetBSD (a.out) ld.so'
18555   else
18556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18557     soname_spec='${libname}${release}${shared_ext}$major'
18558     dynamic_linker='NetBSD ld.elf_so'
18559   fi
18560   shlibpath_var=LD_LIBRARY_PATH
18561   shlibpath_overrides_runpath=yes
18562   hardcode_into_libs=yes
18563   ;;
18564
18565 newsos6)
18566   version_type=linux
18567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568   shlibpath_var=LD_LIBRARY_PATH
18569   shlibpath_overrides_runpath=yes
18570   ;;
18571
18572 nto-qnx*)
18573   version_type=linux
18574   need_lib_prefix=no
18575   need_version=no
18576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18577   soname_spec='${libname}${release}${shared_ext}$major'
18578   shlibpath_var=LD_LIBRARY_PATH
18579   shlibpath_overrides_runpath=yes
18580   ;;
18581
18582 openbsd*)
18583   version_type=sunos
18584   sys_lib_dlsearch_path_spec="/usr/lib"
18585   need_lib_prefix=no
18586   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18587   case $host_os in
18588     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18589     *)                         need_version=no  ;;
18590   esac
18591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18592   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18593   shlibpath_var=LD_LIBRARY_PATH
18594   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18595     case $host_os in
18596       openbsd2.[89] | openbsd2.[89].*)
18597         shlibpath_overrides_runpath=no
18598         ;;
18599       *)
18600         shlibpath_overrides_runpath=yes
18601         ;;
18602       esac
18603   else
18604     shlibpath_overrides_runpath=yes
18605   fi
18606   ;;
18607
18608 os2*)
18609   libname_spec='$name'
18610   shrext_cmds=".dll"
18611   need_lib_prefix=no
18612   library_names_spec='$libname${shared_ext} $libname.a'
18613   dynamic_linker='OS/2 ld.exe'
18614   shlibpath_var=LIBPATH
18615   ;;
18616
18617 osf3* | osf4* | osf5*)
18618   version_type=osf
18619   need_lib_prefix=no
18620   need_version=no
18621   soname_spec='${libname}${release}${shared_ext}$major'
18622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18623   shlibpath_var=LD_LIBRARY_PATH
18624   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18625   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18626   ;;
18627
18628 solaris*)
18629   version_type=linux
18630   need_lib_prefix=no
18631   need_version=no
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   shlibpath_overrides_runpath=yes
18636   hardcode_into_libs=yes
18637   # ldd complains unless libraries are executable
18638   postinstall_cmds='chmod +x $lib'
18639   ;;
18640
18641 sunos4*)
18642   version_type=sunos
18643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18644   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18645   shlibpath_var=LD_LIBRARY_PATH
18646   shlibpath_overrides_runpath=yes
18647   if test "$with_gnu_ld" = yes; then
18648     need_lib_prefix=no
18649   fi
18650   need_version=yes
18651   ;;
18652
18653 sysv4 | sysv4.3*)
18654   version_type=linux
18655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656   soname_spec='${libname}${release}${shared_ext}$major'
18657   shlibpath_var=LD_LIBRARY_PATH
18658   case $host_vendor in
18659     sni)
18660       shlibpath_overrides_runpath=no
18661       need_lib_prefix=no
18662       export_dynamic_flag_spec='${wl}-Blargedynsym'
18663       runpath_var=LD_RUN_PATH
18664       ;;
18665     siemens)
18666       need_lib_prefix=no
18667       ;;
18668     motorola)
18669       need_lib_prefix=no
18670       need_version=no
18671       shlibpath_overrides_runpath=no
18672       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18673       ;;
18674   esac
18675   ;;
18676
18677 sysv4*MP*)
18678   if test -d /usr/nec ;then
18679     version_type=linux
18680     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18681     soname_spec='$libname${shared_ext}.$major'
18682     shlibpath_var=LD_LIBRARY_PATH
18683   fi
18684   ;;
18685
18686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18687   version_type=freebsd-elf
18688   need_lib_prefix=no
18689   need_version=no
18690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18691   soname_spec='${libname}${release}${shared_ext}$major'
18692   shlibpath_var=LD_LIBRARY_PATH
18693   hardcode_into_libs=yes
18694   if test "$with_gnu_ld" = yes; then
18695     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18696     shlibpath_overrides_runpath=no
18697   else
18698     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18699     shlibpath_overrides_runpath=yes
18700     case $host_os in
18701       sco3.2v5*)
18702         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18703         ;;
18704     esac
18705   fi
18706   sys_lib_dlsearch_path_spec='/usr/lib'
18707   ;;
18708
18709 uts4*)
18710   version_type=linux
18711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18712   soname_spec='${libname}${release}${shared_ext}$major'
18713   shlibpath_var=LD_LIBRARY_PATH
18714   ;;
18715
18716 *)
18717   dynamic_linker=no
18718   ;;
18719 esac
18720 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18721 echo "${ECHO_T}$dynamic_linker" >&6
18722 test "$dynamic_linker" = no && can_build_shared=no
18723
18724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18725 if test "$GCC" = yes; then
18726   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18727 fi
18728
18729 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18730 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18731 hardcode_action_GCJ=
18732 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18733    test -n "$runpath_var_GCJ" || \
18734    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18735
18736   # We can hardcode non-existant directories.
18737   if test "$hardcode_direct_GCJ" != no &&
18738      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18739      # have to relink, otherwise we might link with an installed library
18740      # when we should be linking with a yet-to-be-installed one
18741      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18742      test "$hardcode_minus_L_GCJ" != no; then
18743     # Linking always hardcodes the temporary library directory.
18744     hardcode_action_GCJ=relink
18745   else
18746     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18747     hardcode_action_GCJ=immediate
18748   fi
18749 else
18750   # We cannot hardcode anything, or else we can only hardcode existing
18751   # directories.
18752   hardcode_action_GCJ=unsupported
18753 fi
18754 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18755 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18756
18757 if test "$hardcode_action_GCJ" = relink; then
18758   # Fast installation is not supported
18759   enable_fast_install=no
18760 elif test "$shlibpath_overrides_runpath" = yes ||
18761      test "$enable_shared" = no; then
18762   # Fast installation is not necessary
18763   enable_fast_install=needless
18764 fi
18765
18766
18767 # The else clause should only fire when bootstrapping the
18768 # libtool distribution, otherwise you forgot to ship ltmain.sh
18769 # with your package, and you will get complaints that there are
18770 # no rules to generate ltmain.sh.
18771 if test -f "$ltmain"; then
18772   # See if we are running on zsh, and set the options which allow our commands through
18773   # without removal of \ escapes.
18774   if test -n "${ZSH_VERSION+set}" ; then
18775     setopt NO_GLOB_SUBST
18776   fi
18777   # Now quote all the things that may contain metacharacters while being
18778   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18779   # variables and quote the copies for generation of the libtool script.
18780   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18781     SED SHELL STRIP \
18782     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18783     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18784     deplibs_check_method reload_flag reload_cmds need_locks \
18785     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18786     lt_cv_sys_global_symbol_to_c_name_address \
18787     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18788     old_postinstall_cmds old_postuninstall_cmds \
18789     compiler_GCJ \
18790     CC_GCJ \
18791     LD_GCJ \
18792     lt_prog_compiler_wl_GCJ \
18793     lt_prog_compiler_pic_GCJ \
18794     lt_prog_compiler_static_GCJ \
18795     lt_prog_compiler_no_builtin_flag_GCJ \
18796     export_dynamic_flag_spec_GCJ \
18797     thread_safe_flag_spec_GCJ \
18798     whole_archive_flag_spec_GCJ \
18799     enable_shared_with_static_runtimes_GCJ \
18800     old_archive_cmds_GCJ \
18801     old_archive_from_new_cmds_GCJ \
18802     predep_objects_GCJ \
18803     postdep_objects_GCJ \
18804     predeps_GCJ \
18805     postdeps_GCJ \
18806     compiler_lib_search_path_GCJ \
18807     archive_cmds_GCJ \
18808     archive_expsym_cmds_GCJ \
18809     postinstall_cmds_GCJ \
18810     postuninstall_cmds_GCJ \
18811     old_archive_from_expsyms_cmds_GCJ \
18812     allow_undefined_flag_GCJ \
18813     no_undefined_flag_GCJ \
18814     export_symbols_cmds_GCJ \
18815     hardcode_libdir_flag_spec_GCJ \
18816     hardcode_libdir_flag_spec_ld_GCJ \
18817     hardcode_libdir_separator_GCJ \
18818     hardcode_automatic_GCJ \
18819     module_cmds_GCJ \
18820     module_expsym_cmds_GCJ \
18821     lt_cv_prog_compiler_c_o_GCJ \
18822     exclude_expsyms_GCJ \
18823     include_expsyms_GCJ; do
18824
18825     case $var in
18826     old_archive_cmds_GCJ | \
18827     old_archive_from_new_cmds_GCJ | \
18828     archive_cmds_GCJ | \
18829     archive_expsym_cmds_GCJ | \
18830     module_cmds_GCJ | \
18831     module_expsym_cmds_GCJ | \
18832     old_archive_from_expsyms_cmds_GCJ | \
18833     export_symbols_cmds_GCJ | \
18834     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18835     postinstall_cmds | postuninstall_cmds | \
18836     old_postinstall_cmds | old_postuninstall_cmds | \
18837     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18838       # Double-quote double-evaled strings.
18839       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18840       ;;
18841     *)
18842       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18843       ;;
18844     esac
18845   done
18846
18847   case $lt_echo in
18848   *'\$0 --fallback-echo"')
18849     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18850     ;;
18851   esac
18852
18853 cfgfile="$ofile"
18854
18855   cat <<__EOF__ >> "$cfgfile"
18856 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18857
18858 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18859
18860 # Shell to use when invoking shell scripts.
18861 SHELL=$lt_SHELL
18862
18863 # Whether or not to build shared libraries.
18864 build_libtool_libs=$enable_shared
18865
18866 # Whether or not to build static libraries.
18867 build_old_libs=$enable_static
18868
18869 # Whether or not to add -lc for building shared libraries.
18870 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18871
18872 # Whether or not to disallow shared libs when runtime libs are static
18873 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18874
18875 # Whether or not to optimize for fast installation.
18876 fast_install=$enable_fast_install
18877
18878 # The host system.
18879 host_alias=$host_alias
18880 host=$host
18881 host_os=$host_os
18882
18883 # The build system.
18884 build_alias=$build_alias
18885 build=$build
18886 build_os=$build_os
18887
18888 # An echo program that does not interpret backslashes.
18889 echo=$lt_echo
18890
18891 # The archiver.
18892 AR=$lt_AR
18893 AR_FLAGS=$lt_AR_FLAGS
18894
18895 # A C compiler.
18896 LTCC=$lt_LTCC
18897
18898 # LTCC compiler flags.
18899 LTCFLAGS=$lt_LTCFLAGS
18900
18901 # A language-specific compiler.
18902 CC=$lt_compiler_GCJ
18903
18904 # Is the compiler the GNU C compiler?
18905 with_gcc=$GCC_GCJ
18906
18907 # An ERE matcher.
18908 EGREP=$lt_EGREP
18909
18910 # The linker used to build libraries.
18911 LD=$lt_LD_GCJ
18912
18913 # Whether we need hard or soft links.
18914 LN_S=$lt_LN_S
18915
18916 # A BSD-compatible nm program.
18917 NM=$lt_NM
18918
18919 # A symbol stripping program
18920 STRIP=$lt_STRIP
18921
18922 # Used to examine libraries when file_magic_cmd begins "file"
18923 MAGIC_CMD=$MAGIC_CMD
18924
18925 # Used on cygwin: DLL creation program.
18926 DLLTOOL="$DLLTOOL"
18927
18928 # Used on cygwin: object dumper.
18929 OBJDUMP="$OBJDUMP"
18930
18931 # Used on cygwin: assembler.
18932 AS="$AS"
18933
18934 # The name of the directory that contains temporary libtool files.
18935 objdir=$objdir
18936
18937 # How to create reloadable object files.
18938 reload_flag=$lt_reload_flag
18939 reload_cmds=$lt_reload_cmds
18940
18941 # How to pass a linker flag through the compiler.
18942 wl=$lt_lt_prog_compiler_wl_GCJ
18943
18944 # Object file suffix (normally "o").
18945 objext="$ac_objext"
18946
18947 # Old archive suffix (normally "a").
18948 libext="$libext"
18949
18950 # Shared library suffix (normally ".so").
18951 shrext_cmds='$shrext_cmds'
18952
18953 # Executable file suffix (normally "").
18954 exeext="$exeext"
18955
18956 # Additional compiler flags for building library objects.
18957 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18958 pic_mode=$pic_mode
18959
18960 # What is the maximum length of a command?
18961 max_cmd_len=$lt_cv_sys_max_cmd_len
18962
18963 # Does compiler simultaneously support -c and -o options?
18964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18965
18966 # Must we lock files when doing compilation?
18967 need_locks=$lt_need_locks
18968
18969 # Do we need the lib prefix for modules?
18970 need_lib_prefix=$need_lib_prefix
18971
18972 # Do we need a version for libraries?
18973 need_version=$need_version
18974
18975 # Whether dlopen is supported.
18976 dlopen_support=$enable_dlopen
18977
18978 # Whether dlopen of programs is supported.
18979 dlopen_self=$enable_dlopen_self
18980
18981 # Whether dlopen of statically linked programs is supported.
18982 dlopen_self_static=$enable_dlopen_self_static
18983
18984 # Compiler flag to prevent dynamic linking.
18985 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18986
18987 # Compiler flag to turn off builtin functions.
18988 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18989
18990 # Compiler flag to allow reflexive dlopens.
18991 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18992
18993 # Compiler flag to generate shared objects directly from archives.
18994 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18995
18996 # Compiler flag to generate thread-safe objects.
18997 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18998
18999 # Library versioning type.
19000 version_type=$version_type
19001
19002 # Format of library name prefix.
19003 libname_spec=$lt_libname_spec
19004
19005 # List of archive names.  First name is the real one, the rest are links.
19006 # The last name is the one that the linker finds with -lNAME.
19007 library_names_spec=$lt_library_names_spec
19008
19009 # The coded name of the library, if different from the real name.
19010 soname_spec=$lt_soname_spec
19011
19012 # Commands used to build and install an old-style archive.
19013 RANLIB=$lt_RANLIB
19014 old_archive_cmds=$lt_old_archive_cmds_GCJ
19015 old_postinstall_cmds=$lt_old_postinstall_cmds
19016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19017
19018 # Create an old-style archive from a shared archive.
19019 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19020
19021 # Create a temporary old-style archive to link instead of a shared archive.
19022 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19023
19024 # Commands used to build and install a shared archive.
19025 archive_cmds=$lt_archive_cmds_GCJ
19026 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19027 postinstall_cmds=$lt_postinstall_cmds
19028 postuninstall_cmds=$lt_postuninstall_cmds
19029
19030 # Commands used to build a loadable module (assumed same as above if empty)
19031 module_cmds=$lt_module_cmds_GCJ
19032 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19033
19034 # Commands to strip libraries.
19035 old_striplib=$lt_old_striplib
19036 striplib=$lt_striplib
19037
19038 # Dependencies to place before the objects being linked to create a
19039 # shared library.
19040 predep_objects=$lt_predep_objects_GCJ
19041
19042 # Dependencies to place after the objects being linked to create a
19043 # shared library.
19044 postdep_objects=$lt_postdep_objects_GCJ
19045
19046 # Dependencies to place before the objects being linked to create a
19047 # shared library.
19048 predeps=$lt_predeps_GCJ
19049
19050 # Dependencies to place after the objects being linked to create a
19051 # shared library.
19052 postdeps=$lt_postdeps_GCJ
19053
19054 # The library search path used internally by the compiler when linking
19055 # a shared library.
19056 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19057
19058 # Method to check whether dependent libraries are shared objects.
19059 deplibs_check_method=$lt_deplibs_check_method
19060
19061 # Command to use when deplibs_check_method == file_magic.
19062 file_magic_cmd=$lt_file_magic_cmd
19063
19064 # Flag that allows shared libraries with undefined symbols to be built.
19065 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19066
19067 # Flag that forces no undefined symbols.
19068 no_undefined_flag=$lt_no_undefined_flag_GCJ
19069
19070 # Commands used to finish a libtool library installation in a directory.
19071 finish_cmds=$lt_finish_cmds
19072
19073 # Same as above, but a single script fragment to be evaled but not shown.
19074 finish_eval=$lt_finish_eval
19075
19076 # Take the output of nm and produce a listing of raw symbols and C names.
19077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19078
19079 # Transform the output of nm in a proper C declaration
19080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19081
19082 # Transform the output of nm in a C name address pair
19083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19084
19085 # This is the shared library runtime path variable.
19086 runpath_var=$runpath_var
19087
19088 # This is the shared library path variable.
19089 shlibpath_var=$shlibpath_var
19090
19091 # Is shlibpath searched before the hard-coded library search path?
19092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19093
19094 # How to hardcode a shared library path into an executable.
19095 hardcode_action=$hardcode_action_GCJ
19096
19097 # Whether we should hardcode library paths into libraries.
19098 hardcode_into_libs=$hardcode_into_libs
19099
19100 # Flag to hardcode \$libdir into a binary during linking.
19101 # This must work even if \$libdir does not exist.
19102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19103
19104 # If ld is used when linking, flag to hardcode \$libdir into
19105 # a binary during linking. This must work even if \$libdir does
19106 # not exist.
19107 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19108
19109 # Whether we need a single -rpath flag with a separated argument.
19110 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19111
19112 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19113 # resulting binary.
19114 hardcode_direct=$hardcode_direct_GCJ
19115
19116 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19117 # resulting binary.
19118 hardcode_minus_L=$hardcode_minus_L_GCJ
19119
19120 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19121 # the resulting binary.
19122 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19123
19124 # Set to yes if building a shared library automatically hardcodes DIR into the library
19125 # and all subsequent libraries and executables linked against it.
19126 hardcode_automatic=$hardcode_automatic_GCJ
19127
19128 # Variables whose values should be saved in libtool wrapper scripts and
19129 # restored at relink time.
19130 variables_saved_for_relink="$variables_saved_for_relink"
19131
19132 # Whether libtool must link a program against all its dependency libraries.
19133 link_all_deplibs=$link_all_deplibs_GCJ
19134
19135 # Compile-time system search path for libraries
19136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19137
19138 # Run-time system search path for libraries
19139 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19140
19141 # Fix the shell variable \$srcfile for the compiler.
19142 fix_srcfile_path="$fix_srcfile_path_GCJ"
19143
19144 # Set to yes if exported symbols are required.
19145 always_export_symbols=$always_export_symbols_GCJ
19146
19147 # The commands to list exported symbols.
19148 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19149
19150 # The commands to extract the exported symbol list from a shared archive.
19151 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19152
19153 # Symbols that should not be listed in the preloaded symbols.
19154 exclude_expsyms=$lt_exclude_expsyms_GCJ
19155
19156 # Symbols that must always be exported.
19157 include_expsyms=$lt_include_expsyms_GCJ
19158
19159 # ### END LIBTOOL TAG CONFIG: $tagname
19160
19161 __EOF__
19162
19163
19164 else
19165   # If there is no Makefile yet, we rely on a make rule to execute
19166   # `config.status --recheck' to rerun these tests and create the
19167   # libtool script then.
19168   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19169   if test -f "$ltmain_in"; then
19170     test -f Makefile && make "$ltmain"
19171   fi
19172 fi
19173
19174
19175 ac_ext=c
19176 ac_cpp='$CPP $CPPFLAGS'
19177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19180
19181 CC="$lt_save_CC"
19182
19183         else
19184           tagname=""
19185         fi
19186         ;;
19187
19188       RC)
19189
19190
19191
19192 # Source file extension for RC test sources.
19193 ac_ext=rc
19194
19195 # Object file extension for compiled RC test sources.
19196 objext=o
19197 objext_RC=$objext
19198
19199 # Code to be used in simple compile tests
19200 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19201
19202 # Code to be used in simple link tests
19203 lt_simple_link_test_code="$lt_simple_compile_test_code"
19204
19205 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19206
19207 # If no C compiler was specified, use CC.
19208 LTCC=${LTCC-"$CC"}
19209
19210 # If no C compiler flags were specified, use CFLAGS.
19211 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19212
19213 # Allow CC to be a program name with arguments.
19214 compiler=$CC
19215
19216
19217 # save warnings/boilerplate of simple test code
19218 ac_outfile=conftest.$ac_objext
19219 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19220 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19221 _lt_compiler_boilerplate=`cat conftest.err`
19222 $rm conftest*
19223
19224 ac_outfile=conftest.$ac_objext
19225 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19226 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19227 _lt_linker_boilerplate=`cat conftest.err`
19228 $rm conftest*
19229
19230
19231 # Allow CC to be a program name with arguments.
19232 lt_save_CC="$CC"
19233 CC=${RC-"windres"}
19234 compiler=$CC
19235 compiler_RC=$CC
19236 for cc_temp in $compiler""; do
19237   case $cc_temp in
19238     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19239     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19240     \-*) ;;
19241     *) break;;
19242   esac
19243 done
19244 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19245
19246 lt_cv_prog_compiler_c_o_RC=yes
19247
19248 # The else clause should only fire when bootstrapping the
19249 # libtool distribution, otherwise you forgot to ship ltmain.sh
19250 # with your package, and you will get complaints that there are
19251 # no rules to generate ltmain.sh.
19252 if test -f "$ltmain"; then
19253   # See if we are running on zsh, and set the options which allow our commands through
19254   # without removal of \ escapes.
19255   if test -n "${ZSH_VERSION+set}" ; then
19256     setopt NO_GLOB_SUBST
19257   fi
19258   # Now quote all the things that may contain metacharacters while being
19259   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19260   # variables and quote the copies for generation of the libtool script.
19261   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19262     SED SHELL STRIP \
19263     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19264     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19265     deplibs_check_method reload_flag reload_cmds need_locks \
19266     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19267     lt_cv_sys_global_symbol_to_c_name_address \
19268     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19269     old_postinstall_cmds old_postuninstall_cmds \
19270     compiler_RC \
19271     CC_RC \
19272     LD_RC \
19273     lt_prog_compiler_wl_RC \
19274     lt_prog_compiler_pic_RC \
19275     lt_prog_compiler_static_RC \
19276     lt_prog_compiler_no_builtin_flag_RC \
19277     export_dynamic_flag_spec_RC \
19278     thread_safe_flag_spec_RC \
19279     whole_archive_flag_spec_RC \
19280     enable_shared_with_static_runtimes_RC \
19281     old_archive_cmds_RC \
19282     old_archive_from_new_cmds_RC \
19283     predep_objects_RC \
19284     postdep_objects_RC \
19285     predeps_RC \
19286     postdeps_RC \
19287     compiler_lib_search_path_RC \
19288     archive_cmds_RC \
19289     archive_expsym_cmds_RC \
19290     postinstall_cmds_RC \
19291     postuninstall_cmds_RC \
19292     old_archive_from_expsyms_cmds_RC \
19293     allow_undefined_flag_RC \
19294     no_undefined_flag_RC \
19295     export_symbols_cmds_RC \
19296     hardcode_libdir_flag_spec_RC \
19297     hardcode_libdir_flag_spec_ld_RC \
19298     hardcode_libdir_separator_RC \
19299     hardcode_automatic_RC \
19300     module_cmds_RC \
19301     module_expsym_cmds_RC \
19302     lt_cv_prog_compiler_c_o_RC \
19303     exclude_expsyms_RC \
19304     include_expsyms_RC; do
19305
19306     case $var in
19307     old_archive_cmds_RC | \
19308     old_archive_from_new_cmds_RC | \
19309     archive_cmds_RC | \
19310     archive_expsym_cmds_RC | \
19311     module_cmds_RC | \
19312     module_expsym_cmds_RC | \
19313     old_archive_from_expsyms_cmds_RC | \
19314     export_symbols_cmds_RC | \
19315     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19316     postinstall_cmds | postuninstall_cmds | \
19317     old_postinstall_cmds | old_postuninstall_cmds | \
19318     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19319       # Double-quote double-evaled strings.
19320       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19321       ;;
19322     *)
19323       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19324       ;;
19325     esac
19326   done
19327
19328   case $lt_echo in
19329   *'\$0 --fallback-echo"')
19330     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19331     ;;
19332   esac
19333
19334 cfgfile="$ofile"
19335
19336   cat <<__EOF__ >> "$cfgfile"
19337 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19338
19339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19340
19341 # Shell to use when invoking shell scripts.
19342 SHELL=$lt_SHELL
19343
19344 # Whether or not to build shared libraries.
19345 build_libtool_libs=$enable_shared
19346
19347 # Whether or not to build static libraries.
19348 build_old_libs=$enable_static
19349
19350 # Whether or not to add -lc for building shared libraries.
19351 build_libtool_need_lc=$archive_cmds_need_lc_RC
19352
19353 # Whether or not to disallow shared libs when runtime libs are static
19354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19355
19356 # Whether or not to optimize for fast installation.
19357 fast_install=$enable_fast_install
19358
19359 # The host system.
19360 host_alias=$host_alias
19361 host=$host
19362 host_os=$host_os
19363
19364 # The build system.
19365 build_alias=$build_alias
19366 build=$build
19367 build_os=$build_os
19368
19369 # An echo program that does not interpret backslashes.
19370 echo=$lt_echo
19371
19372 # The archiver.
19373 AR=$lt_AR
19374 AR_FLAGS=$lt_AR_FLAGS
19375
19376 # A C compiler.
19377 LTCC=$lt_LTCC
19378
19379 # LTCC compiler flags.
19380 LTCFLAGS=$lt_LTCFLAGS
19381
19382 # A language-specific compiler.
19383 CC=$lt_compiler_RC
19384
19385 # Is the compiler the GNU C compiler?
19386 with_gcc=$GCC_RC
19387
19388 # An ERE matcher.
19389 EGREP=$lt_EGREP
19390
19391 # The linker used to build libraries.
19392 LD=$lt_LD_RC
19393
19394 # Whether we need hard or soft links.
19395 LN_S=$lt_LN_S
19396
19397 # A BSD-compatible nm program.
19398 NM=$lt_NM
19399
19400 # A symbol stripping program
19401 STRIP=$lt_STRIP
19402
19403 # Used to examine libraries when file_magic_cmd begins "file"
19404 MAGIC_CMD=$MAGIC_CMD
19405
19406 # Used on cygwin: DLL creation program.
19407 DLLTOOL="$DLLTOOL"
19408
19409 # Used on cygwin: object dumper.
19410 OBJDUMP="$OBJDUMP"
19411
19412 # Used on cygwin: assembler.
19413 AS="$AS"
19414
19415 # The name of the directory that contains temporary libtool files.
19416 objdir=$objdir
19417
19418 # How to create reloadable object files.
19419 reload_flag=$lt_reload_flag
19420 reload_cmds=$lt_reload_cmds
19421
19422 # How to pass a linker flag through the compiler.
19423 wl=$lt_lt_prog_compiler_wl_RC
19424
19425 # Object file suffix (normally "o").
19426 objext="$ac_objext"
19427
19428 # Old archive suffix (normally "a").
19429 libext="$libext"
19430
19431 # Shared library suffix (normally ".so").
19432 shrext_cmds='$shrext_cmds'
19433
19434 # Executable file suffix (normally "").
19435 exeext="$exeext"
19436
19437 # Additional compiler flags for building library objects.
19438 pic_flag=$lt_lt_prog_compiler_pic_RC
19439 pic_mode=$pic_mode
19440
19441 # What is the maximum length of a command?
19442 max_cmd_len=$lt_cv_sys_max_cmd_len
19443
19444 # Does compiler simultaneously support -c and -o options?
19445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19446
19447 # Must we lock files when doing compilation?
19448 need_locks=$lt_need_locks
19449
19450 # Do we need the lib prefix for modules?
19451 need_lib_prefix=$need_lib_prefix
19452
19453 # Do we need a version for libraries?
19454 need_version=$need_version
19455
19456 # Whether dlopen is supported.
19457 dlopen_support=$enable_dlopen
19458
19459 # Whether dlopen of programs is supported.
19460 dlopen_self=$enable_dlopen_self
19461
19462 # Whether dlopen of statically linked programs is supported.
19463 dlopen_self_static=$enable_dlopen_self_static
19464
19465 # Compiler flag to prevent dynamic linking.
19466 link_static_flag=$lt_lt_prog_compiler_static_RC
19467
19468 # Compiler flag to turn off builtin functions.
19469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19470
19471 # Compiler flag to allow reflexive dlopens.
19472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19473
19474 # Compiler flag to generate shared objects directly from archives.
19475 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19476
19477 # Compiler flag to generate thread-safe objects.
19478 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19479
19480 # Library versioning type.
19481 version_type=$version_type
19482
19483 # Format of library name prefix.
19484 libname_spec=$lt_libname_spec
19485
19486 # List of archive names.  First name is the real one, the rest are links.
19487 # The last name is the one that the linker finds with -lNAME.
19488 library_names_spec=$lt_library_names_spec
19489
19490 # The coded name of the library, if different from the real name.
19491 soname_spec=$lt_soname_spec
19492
19493 # Commands used to build and install an old-style archive.
19494 RANLIB=$lt_RANLIB
19495 old_archive_cmds=$lt_old_archive_cmds_RC
19496 old_postinstall_cmds=$lt_old_postinstall_cmds
19497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19498
19499 # Create an old-style archive from a shared archive.
19500 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19501
19502 # Create a temporary old-style archive to link instead of a shared archive.
19503 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19504
19505 # Commands used to build and install a shared archive.
19506 archive_cmds=$lt_archive_cmds_RC
19507 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19508 postinstall_cmds=$lt_postinstall_cmds
19509 postuninstall_cmds=$lt_postuninstall_cmds
19510
19511 # Commands used to build a loadable module (assumed same as above if empty)
19512 module_cmds=$lt_module_cmds_RC
19513 module_expsym_cmds=$lt_module_expsym_cmds_RC
19514
19515 # Commands to strip libraries.
19516 old_striplib=$lt_old_striplib
19517 striplib=$lt_striplib
19518
19519 # Dependencies to place before the objects being linked to create a
19520 # shared library.
19521 predep_objects=$lt_predep_objects_RC
19522
19523 # Dependencies to place after the objects being linked to create a
19524 # shared library.
19525 postdep_objects=$lt_postdep_objects_RC
19526
19527 # Dependencies to place before the objects being linked to create a
19528 # shared library.
19529 predeps=$lt_predeps_RC
19530
19531 # Dependencies to place after the objects being linked to create a
19532 # shared library.
19533 postdeps=$lt_postdeps_RC
19534
19535 # The library search path used internally by the compiler when linking
19536 # a shared library.
19537 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19538
19539 # Method to check whether dependent libraries are shared objects.
19540 deplibs_check_method=$lt_deplibs_check_method
19541
19542 # Command to use when deplibs_check_method == file_magic.
19543 file_magic_cmd=$lt_file_magic_cmd
19544
19545 # Flag that allows shared libraries with undefined symbols to be built.
19546 allow_undefined_flag=$lt_allow_undefined_flag_RC
19547
19548 # Flag that forces no undefined symbols.
19549 no_undefined_flag=$lt_no_undefined_flag_RC
19550
19551 # Commands used to finish a libtool library installation in a directory.
19552 finish_cmds=$lt_finish_cmds
19553
19554 # Same as above, but a single script fragment to be evaled but not shown.
19555 finish_eval=$lt_finish_eval
19556
19557 # Take the output of nm and produce a listing of raw symbols and C names.
19558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19559
19560 # Transform the output of nm in a proper C declaration
19561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19562
19563 # Transform the output of nm in a C name address pair
19564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19565
19566 # This is the shared library runtime path variable.
19567 runpath_var=$runpath_var
19568
19569 # This is the shared library path variable.
19570 shlibpath_var=$shlibpath_var
19571
19572 # Is shlibpath searched before the hard-coded library search path?
19573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19574
19575 # How to hardcode a shared library path into an executable.
19576 hardcode_action=$hardcode_action_RC
19577
19578 # Whether we should hardcode library paths into libraries.
19579 hardcode_into_libs=$hardcode_into_libs
19580
19581 # Flag to hardcode \$libdir into a binary during linking.
19582 # This must work even if \$libdir does not exist.
19583 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19584
19585 # If ld is used when linking, flag to hardcode \$libdir into
19586 # a binary during linking. This must work even if \$libdir does
19587 # not exist.
19588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19589
19590 # Whether we need a single -rpath flag with a separated argument.
19591 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19592
19593 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19594 # resulting binary.
19595 hardcode_direct=$hardcode_direct_RC
19596
19597 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19598 # resulting binary.
19599 hardcode_minus_L=$hardcode_minus_L_RC
19600
19601 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19602 # the resulting binary.
19603 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19604
19605 # Set to yes if building a shared library automatically hardcodes DIR into the library
19606 # and all subsequent libraries and executables linked against it.
19607 hardcode_automatic=$hardcode_automatic_RC
19608
19609 # Variables whose values should be saved in libtool wrapper scripts and
19610 # restored at relink time.
19611 variables_saved_for_relink="$variables_saved_for_relink"
19612
19613 # Whether libtool must link a program against all its dependency libraries.
19614 link_all_deplibs=$link_all_deplibs_RC
19615
19616 # Compile-time system search path for libraries
19617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19618
19619 # Run-time system search path for libraries
19620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19621
19622 # Fix the shell variable \$srcfile for the compiler.
19623 fix_srcfile_path="$fix_srcfile_path_RC"
19624
19625 # Set to yes if exported symbols are required.
19626 always_export_symbols=$always_export_symbols_RC
19627
19628 # The commands to list exported symbols.
19629 export_symbols_cmds=$lt_export_symbols_cmds_RC
19630
19631 # The commands to extract the exported symbol list from a shared archive.
19632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19633
19634 # Symbols that should not be listed in the preloaded symbols.
19635 exclude_expsyms=$lt_exclude_expsyms_RC
19636
19637 # Symbols that must always be exported.
19638 include_expsyms=$lt_include_expsyms_RC
19639
19640 # ### END LIBTOOL TAG CONFIG: $tagname
19641
19642 __EOF__
19643
19644
19645 else
19646   # If there is no Makefile yet, we rely on a make rule to execute
19647   # `config.status --recheck' to rerun these tests and create the
19648   # libtool script then.
19649   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19650   if test -f "$ltmain_in"; then
19651     test -f Makefile && make "$ltmain"
19652   fi
19653 fi
19654
19655
19656 ac_ext=c
19657 ac_cpp='$CPP $CPPFLAGS'
19658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19661
19662 CC="$lt_save_CC"
19663
19664         ;;
19665
19666       *)
19667         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19668 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19669    { (exit 1); exit 1; }; }
19670         ;;
19671       esac
19672
19673       # Append the new tag name to the list of available tags.
19674       if test -n "$tagname" ; then
19675       available_tags="$available_tags $tagname"
19676     fi
19677     fi
19678   done
19679   IFS="$lt_save_ifs"
19680
19681   # Now substitute the updated list of available tags.
19682   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19683     mv "${ofile}T" "$ofile"
19684     chmod +x "$ofile"
19685   else
19686     rm -f "${ofile}T"
19687     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19688 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19689    { (exit 1); exit 1; }; }
19690   fi
19691 fi
19692
19693
19694
19695 # This can be used to rebuild libtool when needed
19696 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19697
19698 # Always use our own libtool.
19699 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19700
19701 # Prevent multiple expansion
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723 if test "x$cross_compiling" = "xno"; then
19724         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
19725 else
19726         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
19727 fi
19728
19729
19730
19731 if test -n "$ac_tool_prefix"; then
19732   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19733 set dummy ${ac_tool_prefix}ar; ac_word=$2
19734 echo "$as_me:$LINENO: checking for $ac_word" >&5
19735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19736 if test "${ac_cv_prog_AR+set}" = set; then
19737   echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739   if test -n "$AR"; then
19740   ac_cv_prog_AR="$AR" # Let the user override the test.
19741 else
19742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19743 for as_dir in $PATH
19744 do
19745   IFS=$as_save_IFS
19746   test -z "$as_dir" && as_dir=.
19747   for ac_exec_ext in '' $ac_executable_extensions; do
19748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19749     ac_cv_prog_AR="${ac_tool_prefix}ar"
19750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19751     break 2
19752   fi
19753 done
19754 done
19755
19756 fi
19757 fi
19758 AR=$ac_cv_prog_AR
19759 if test -n "$AR"; then
19760   echo "$as_me:$LINENO: result: $AR" >&5
19761 echo "${ECHO_T}$AR" >&6
19762 else
19763   echo "$as_me:$LINENO: result: no" >&5
19764 echo "${ECHO_T}no" >&6
19765 fi
19766
19767 fi
19768 if test -z "$ac_cv_prog_AR"; then
19769   ac_ct_AR=$AR
19770   # Extract the first word of "ar", so it can be a program name with args.
19771 set dummy ar; ac_word=$2
19772 echo "$as_me:$LINENO: checking for $ac_word" >&5
19773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19774 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19775   echo $ECHO_N "(cached) $ECHO_C" >&6
19776 else
19777   if test -n "$ac_ct_AR"; then
19778   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19779 else
19780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19781 for as_dir in $PATH
19782 do
19783   IFS=$as_save_IFS
19784   test -z "$as_dir" && as_dir=.
19785   for ac_exec_ext in '' $ac_executable_extensions; do
19786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19787     ac_cv_prog_ac_ct_AR="ar"
19788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19789     break 2
19790   fi
19791 done
19792 done
19793
19794 fi
19795 fi
19796 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19797 if test -n "$ac_ct_AR"; then
19798   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19799 echo "${ECHO_T}$ac_ct_AR" >&6
19800 else
19801   echo "$as_me:$LINENO: result: no" >&5
19802 echo "${ECHO_T}no" >&6
19803 fi
19804
19805   AR=$ac_ct_AR
19806 else
19807   AR="$ac_cv_prog_AR"
19808 fi
19809
19810 if test -n "$ac_tool_prefix"; then
19811   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
19812 set dummy ${ac_tool_prefix}ld; ac_word=$2
19813 echo "$as_me:$LINENO: checking for $ac_word" >&5
19814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19815 if test "${ac_cv_prog_LD+set}" = set; then
19816   echo $ECHO_N "(cached) $ECHO_C" >&6
19817 else
19818   if test -n "$LD"; then
19819   ac_cv_prog_LD="$LD" # Let the user override the test.
19820 else
19821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19822 for as_dir in $PATH
19823 do
19824   IFS=$as_save_IFS
19825   test -z "$as_dir" && as_dir=.
19826   for ac_exec_ext in '' $ac_executable_extensions; do
19827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19828     ac_cv_prog_LD="${ac_tool_prefix}ld"
19829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19830     break 2
19831   fi
19832 done
19833 done
19834
19835 fi
19836 fi
19837 LD=$ac_cv_prog_LD
19838 if test -n "$LD"; then
19839   echo "$as_me:$LINENO: result: $LD" >&5
19840 echo "${ECHO_T}$LD" >&6
19841 else
19842   echo "$as_me:$LINENO: result: no" >&5
19843 echo "${ECHO_T}no" >&6
19844 fi
19845
19846 fi
19847 if test -z "$ac_cv_prog_LD"; then
19848   ac_ct_LD=$LD
19849   # Extract the first word of "ld", so it can be a program name with args.
19850 set dummy ld; ac_word=$2
19851 echo "$as_me:$LINENO: checking for $ac_word" >&5
19852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19853 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
19854   echo $ECHO_N "(cached) $ECHO_C" >&6
19855 else
19856   if test -n "$ac_ct_LD"; then
19857   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
19858 else
19859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19860 for as_dir in $PATH
19861 do
19862   IFS=$as_save_IFS
19863   test -z "$as_dir" && as_dir=.
19864   for ac_exec_ext in '' $ac_executable_extensions; do
19865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19866     ac_cv_prog_ac_ct_LD="ld"
19867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19868     break 2
19869   fi
19870 done
19871 done
19872
19873 fi
19874 fi
19875 ac_ct_LD=$ac_cv_prog_ac_ct_LD
19876 if test -n "$ac_ct_LD"; then
19877   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
19878 echo "${ECHO_T}$ac_ct_LD" >&6
19879 else
19880   echo "$as_me:$LINENO: result: no" >&5
19881 echo "${ECHO_T}no" >&6
19882 fi
19883
19884   LD=$ac_ct_LD
19885 else
19886   LD="$ac_cv_prog_LD"
19887 fi
19888
19889
19890 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19891 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19892 if test "${ac_cv_header_stdc+set}" = set; then
19893   echo $ECHO_N "(cached) $ECHO_C" >&6
19894 else
19895   cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h.  */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h.  */
19901 #include <stdlib.h>
19902 #include <stdarg.h>
19903 #include <string.h>
19904 #include <float.h>
19905
19906 int
19907 main ()
19908 {
19909
19910   ;
19911   return 0;
19912 }
19913 _ACEOF
19914 rm -f conftest.$ac_objext
19915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916   (eval $ac_compile) 2>conftest.er1
19917   ac_status=$?
19918   grep -v '^ *+' conftest.er1 >conftest.err
19919   rm -f conftest.er1
19920   cat conftest.err >&5
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); } &&
19923          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925   (eval $ac_try) 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); }; } &&
19929          { ac_try='test -s conftest.$ac_objext'
19930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931   (eval $ac_try) 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); }; }; then
19935   ac_cv_header_stdc=yes
19936 else
19937   echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19939
19940 ac_cv_header_stdc=no
19941 fi
19942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19943
19944 if test $ac_cv_header_stdc = yes; then
19945   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19946   cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h.  */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h.  */
19952 #include <string.h>
19953
19954 _ACEOF
19955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19956   $EGREP "memchr" >/dev/null 2>&1; then
19957   :
19958 else
19959   ac_cv_header_stdc=no
19960 fi
19961 rm -f conftest*
19962
19963 fi
19964
19965 if test $ac_cv_header_stdc = yes; then
19966   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19967   cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973 #include <stdlib.h>
19974
19975 _ACEOF
19976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19977   $EGREP "free" >/dev/null 2>&1; then
19978   :
19979 else
19980   ac_cv_header_stdc=no
19981 fi
19982 rm -f conftest*
19983
19984 fi
19985
19986 if test $ac_cv_header_stdc = yes; then
19987   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19988   if test "$cross_compiling" = yes; then
19989   :
19990 else
19991   cat >conftest.$ac_ext <<_ACEOF
19992 /* confdefs.h.  */
19993 _ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h.  */
19997 #include <ctype.h>
19998 #if ((' ' & 0x0FF) == 0x020)
19999 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20000 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20001 #else
20002 # define ISLOWER(c) \
20003                    (('a' <= (c) && (c) <= 'i') \
20004                      || ('j' <= (c) && (c) <= 'r') \
20005                      || ('s' <= (c) && (c) <= 'z'))
20006 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20007 #endif
20008
20009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20010 int
20011 main ()
20012 {
20013   int i;
20014   for (i = 0; i < 256; i++)
20015     if (XOR (islower (i), ISLOWER (i))
20016         || toupper (i) != TOUPPER (i))
20017       exit(2);
20018   exit (0);
20019 }
20020 _ACEOF
20021 rm -f conftest$ac_exeext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20023   (eval $ac_link) 2>&5
20024   ac_status=$?
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20028   (eval $ac_try) 2>&5
20029   ac_status=$?
20030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031   (exit $ac_status); }; }; then
20032   :
20033 else
20034   echo "$as_me: program exited with status $ac_status" >&5
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038 ( exit $ac_status )
20039 ac_cv_header_stdc=no
20040 fi
20041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20042 fi
20043 fi
20044 fi
20045 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20046 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20047 if test $ac_cv_header_stdc = yes; then
20048
20049 cat >>confdefs.h <<\_ACEOF
20050 #define STDC_HEADERS 1
20051 _ACEOF
20052
20053 fi
20054
20055
20056   echo "$as_me:$LINENO: checking for GNU libc2" >&5
20057 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6
20058   if test "${knfsd_cv_glibc2+set}" = set; then
20059   echo $ECHO_N "(cached) $ECHO_C" >&6
20060 else
20061   cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h.  */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h.  */
20067
20068       #include <features.h>
20069       #if !defined(__GLIBC__)
20070       # error Nope
20071       #endif
20072
20073 _ACEOF
20074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20075   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20076   ac_status=$?
20077   grep -v '^ *+' conftest.er1 >conftest.err
20078   rm -f conftest.er1
20079   cat conftest.err >&5
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); } >/dev/null; then
20082   if test -s conftest.err; then
20083     ac_cpp_err=$ac_c_preproc_warn_flag
20084     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20085   else
20086     ac_cpp_err=
20087   fi
20088 else
20089   ac_cpp_err=yes
20090 fi
20091 if test -z "$ac_cpp_err"; then
20092   knfsd_cv_glibc2=yes
20093 else
20094   echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20096
20097   knfsd_cv_glibc2=no
20098 fi
20099 rm -f conftest.err conftest.$ac_ext
20100 fi
20101
20102   echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20103 echo "${ECHO_T}$knfsd_cv_glibc2" >&6
20104   if test $knfsd_cv_glibc2 = yes; then
20105     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20106     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20107   fi
20108
20109
20110   echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20111 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6
20112   if test "${knfsd_cv_bsd_signals+set}" = set; then
20113   echo $ECHO_N "(cached) $ECHO_C" >&6
20114 else
20115   if test "$cross_compiling" = yes; then
20116   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20117 See \`config.log' for more details." >&5
20118 echo "$as_me: error: cannot run test program while cross compiling
20119 See \`config.log' for more details." >&2;}
20120    { (exit 1); exit 1; }; }
20121 else
20122   cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128
20129         #include <signal.h>
20130         #include <unistd.h>
20131         #include <sys/wait.h>
20132
20133         static int counter = 0;
20134         static RETSIGTYPE handler(int num) { counter++; }
20135
20136         int main()
20137         {
20138                 int     s;
20139                 if ((s = fork()) < 0) return 1;
20140                 if (s != 0) {
20141                         if (wait(&s) < 0) return 1;
20142                         return WIFSIGNALED(s)? 1 : 0;
20143                 }
20144
20145                 signal(SIGHUP, handler);
20146                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20147                 return (counter == 2)? 0 : 1;
20148         }
20149
20150 _ACEOF
20151 rm -f conftest$ac_exeext
20152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20153   (eval $ac_link) 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158   (eval $ac_try) 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; }; then
20162   knfsd_cv_bsd_signals=yes
20163 else
20164   echo "$as_me: program exited with status $ac_status" >&5
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20167
20168 ( exit $ac_status )
20169 knfsd_cv_bsd_signals=no
20170 fi
20171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20172 fi
20173 fi
20174      echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20175 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6
20176     test $knfsd_cv_bsd_signals = yes &&
20177 cat >>confdefs.h <<\_ACEOF
20178 #define HAVE_BSD_SIGNALS 1
20179 _ACEOF
20180
20181
20182
20183 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20184 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
20185 if test "${ac_cv_lib_socket_main+set}" = set; then
20186   echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188   ac_check_lib_save_LIBS=$LIBS
20189 LIBS="-lsocket  $LIBS"
20190 cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h.  */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h.  */
20196
20197
20198 int
20199 main ()
20200 {
20201 main ();
20202   ;
20203   return 0;
20204 }
20205 _ACEOF
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20208   (eval $ac_link) 2>conftest.er1
20209   ac_status=$?
20210   grep -v '^ *+' conftest.er1 >conftest.err
20211   rm -f conftest.er1
20212   cat conftest.err >&5
20213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214   (exit $ac_status); } &&
20215          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20217   (eval $ac_try) 2>&5
20218   ac_status=$?
20219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); }; } &&
20221          { ac_try='test -s conftest$ac_exeext'
20222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223   (eval $ac_try) 2>&5
20224   ac_status=$?
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); }; }; then
20227   ac_cv_lib_socket_main=yes
20228 else
20229   echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 ac_cv_lib_socket_main=no
20233 fi
20234 rm -f conftest.err conftest.$ac_objext \
20235       conftest$ac_exeext conftest.$ac_ext
20236 LIBS=$ac_check_lib_save_LIBS
20237 fi
20238 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20239 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
20240 if test $ac_cv_lib_socket_main = yes; then
20241   LIBSOCKET="-lnsl"
20242 fi
20243
20244 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20245 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
20246 if test "${ac_cv_lib_nsl_main+set}" = set; then
20247   echo $ECHO_N "(cached) $ECHO_C" >&6
20248 else
20249   ac_check_lib_save_LIBS=$LIBS
20250 LIBS="-lnsl  $LIBS"
20251 cat >conftest.$ac_ext <<_ACEOF
20252 /* confdefs.h.  */
20253 _ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h.  */
20257
20258
20259 int
20260 main ()
20261 {
20262 main ();
20263   ;
20264   return 0;
20265 }
20266 _ACEOF
20267 rm -f conftest.$ac_objext conftest$ac_exeext
20268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20269   (eval $ac_link) 2>conftest.er1
20270   ac_status=$?
20271   grep -v '^ *+' conftest.er1 >conftest.err
20272   rm -f conftest.er1
20273   cat conftest.err >&5
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); } &&
20276          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278   (eval $ac_try) 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; } &&
20282          { ac_try='test -s conftest$ac_exeext'
20283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284   (eval $ac_try) 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); }; }; then
20288   ac_cv_lib_nsl_main=yes
20289 else
20290   echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20292
20293 ac_cv_lib_nsl_main=no
20294 fi
20295 rm -f conftest.err conftest.$ac_objext \
20296       conftest$ac_exeext conftest.$ac_ext
20297 LIBS=$ac_check_lib_save_LIBS
20298 fi
20299 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20300 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
20301 if test $ac_cv_lib_nsl_main = yes; then
20302   LIBNSL="-lnsl"
20303 fi
20304
20305 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20306 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20307 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20308   echo $ECHO_N "(cached) $ECHO_C" >&6
20309 else
20310   ac_check_lib_save_LIBS=$LIBS
20311 LIBS="-lcrypt  $LIBS"
20312 cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318
20319 /* Override any gcc2 internal prototype to avoid an error.  */
20320 #ifdef __cplusplus
20321 extern "C"
20322 #endif
20323 /* We use char because int might match the return type of a gcc2
20324    builtin and then its argument prototype would still apply.  */
20325 char crypt ();
20326 int
20327 main ()
20328 {
20329 crypt ();
20330   ;
20331   return 0;
20332 }
20333 _ACEOF
20334 rm -f conftest.$ac_objext conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336   (eval $ac_link) 2>conftest.er1
20337   ac_status=$?
20338   grep -v '^ *+' conftest.er1 >conftest.err
20339   rm -f conftest.er1
20340   cat conftest.err >&5
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); } &&
20343          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345   (eval $ac_try) 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); }; } &&
20349          { ac_try='test -s conftest$ac_exeext'
20350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351   (eval $ac_try) 2>&5
20352   ac_status=$?
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); }; }; then
20355   ac_cv_lib_crypt_crypt=yes
20356 else
20357   echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360 ac_cv_lib_crypt_crypt=no
20361 fi
20362 rm -f conftest.err conftest.$ac_objext \
20363       conftest$ac_exeext conftest.$ac_ext
20364 LIBS=$ac_check_lib_save_LIBS
20365 fi
20366 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20367 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
20368 if test $ac_cv_lib_crypt_crypt = yes; then
20369   LIBCRYPT="-lcrypt"
20370 fi
20371
20372 if test "$enable_nfsv4" = yes; then
20373     echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
20374 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6
20375 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
20376   echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378   ac_check_lib_save_LIBS=$LIBS
20379 LIBS="-levent  $LIBS"
20380 cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386
20387 /* Override any gcc2 internal prototype to avoid an error.  */
20388 #ifdef __cplusplus
20389 extern "C"
20390 #endif
20391 /* We use char because int might match the return type of a gcc2
20392    builtin and then its argument prototype would still apply.  */
20393 char event_dispatch ();
20394 int
20395 main ()
20396 {
20397 event_dispatch ();
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20404   (eval $ac_link) 2>conftest.er1
20405   ac_status=$?
20406   grep -v '^ *+' conftest.er1 >conftest.err
20407   rm -f conftest.er1
20408   cat conftest.err >&5
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); } &&
20411          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; } &&
20417          { ac_try='test -s conftest$ac_exeext'
20418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419   (eval $ac_try) 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); }; }; then
20423   ac_cv_lib_event_event_dispatch=yes
20424 else
20425   echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20427
20428 ac_cv_lib_event_event_dispatch=no
20429 fi
20430 rm -f conftest.err conftest.$ac_objext \
20431       conftest$ac_exeext conftest.$ac_ext
20432 LIBS=$ac_check_lib_save_LIBS
20433 fi
20434 echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
20435 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6
20436 if test $ac_cv_lib_event_event_dispatch = yes; then
20437   libevent=1
20438 else
20439   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20440 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20441    { (exit 1); exit 1; }; }
20442 fi
20443
20444     echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20445 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6
20446 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20447   echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449   ac_check_lib_save_LIBS=$LIBS
20450 LIBS="-lnfsidmap  $LIBS"
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h.  */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h.  */
20457
20458 /* Override any gcc2 internal prototype to avoid an error.  */
20459 #ifdef __cplusplus
20460 extern "C"
20461 #endif
20462 /* We use char because int might match the return type of a gcc2
20463    builtin and then its argument prototype would still apply.  */
20464 char nfs4_init_name_mapping ();
20465 int
20466 main ()
20467 {
20468 nfs4_init_name_mapping ();
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20475   (eval $ac_link) 2>conftest.er1
20476   ac_status=$?
20477   grep -v '^ *+' conftest.er1 >conftest.err
20478   rm -f conftest.er1
20479   cat conftest.err >&5
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); } &&
20482          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484   (eval $ac_try) 2>&5
20485   ac_status=$?
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); }; } &&
20488          { ac_try='test -s conftest$ac_exeext'
20489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490   (eval $ac_try) 2>&5
20491   ac_status=$?
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); }; }; then
20494   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20500 fi
20501 rm -f conftest.err conftest.$ac_objext \
20502       conftest$ac_exeext conftest.$ac_ext
20503 LIBS=$ac_check_lib_save_LIBS
20504 fi
20505 echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20506 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6
20507 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
20508   libnfsidmap=1
20509 else
20510   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20511 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20512    { (exit 1); exit 1; }; }
20513 fi
20514
20515
20516 for ac_header in event.h
20517 do
20518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20520   echo "$as_me:$LINENO: checking for $ac_header" >&5
20521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20523   echo $ECHO_N "(cached) $ECHO_C" >&6
20524 fi
20525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20527 else
20528   # Is the header compilable?
20529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20531 cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537 $ac_includes_default
20538 #include <$ac_header>
20539 _ACEOF
20540 rm -f conftest.$ac_objext
20541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20542   (eval $ac_compile) 2>conftest.er1
20543   ac_status=$?
20544   grep -v '^ *+' conftest.er1 >conftest.err
20545   rm -f conftest.er1
20546   cat conftest.err >&5
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } &&
20549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551   (eval $ac_try) 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); }; } &&
20555          { ac_try='test -s conftest.$ac_objext'
20556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557   (eval $ac_try) 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); }; }; then
20561   ac_header_compiler=yes
20562 else
20563   echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566 ac_header_compiler=no
20567 fi
20568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20570 echo "${ECHO_T}$ac_header_compiler" >&6
20571
20572 # Is the header present?
20573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20575 cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h.  */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h.  */
20581 #include <$ac_header>
20582 _ACEOF
20583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20585   ac_status=$?
20586   grep -v '^ *+' conftest.er1 >conftest.err
20587   rm -f conftest.er1
20588   cat conftest.err >&5
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); } >/dev/null; then
20591   if test -s conftest.err; then
20592     ac_cpp_err=$ac_c_preproc_warn_flag
20593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20594   else
20595     ac_cpp_err=
20596   fi
20597 else
20598   ac_cpp_err=yes
20599 fi
20600 if test -z "$ac_cpp_err"; then
20601   ac_header_preproc=yes
20602 else
20603   echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20605
20606   ac_header_preproc=no
20607 fi
20608 rm -f conftest.err conftest.$ac_ext
20609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20610 echo "${ECHO_T}$ac_header_preproc" >&6
20611
20612 # So?  What about this header?
20613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20614   yes:no: )
20615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20619     ac_header_preproc=yes
20620     ;;
20621   no:yes:* )
20622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20634     (
20635       cat <<\_ASBOX
20636 ## ------------------------------- ##
20637 ## Report this to nfs@lists.sf.net ##
20638 ## ------------------------------- ##
20639 _ASBOX
20640     ) |
20641       sed "s/^/$as_me: WARNING:     /" >&2
20642     ;;
20643 esac
20644 echo "$as_me:$LINENO: checking for $ac_header" >&5
20645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20647   echo $ECHO_N "(cached) $ECHO_C" >&6
20648 else
20649   eval "$as_ac_Header=\$ac_header_preproc"
20650 fi
20651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20653
20654 fi
20655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20656   cat >>confdefs.h <<_ACEOF
20657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20658 _ACEOF
20659
20660 else
20661   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20662 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20663    { (exit 1); exit 1; }; }
20664 fi
20665
20666 done
20667
20668
20669 for ac_header in nfsidmap.h
20670 do
20671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20673   echo "$as_me:$LINENO: checking for $ac_header" >&5
20674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20676   echo $ECHO_N "(cached) $ECHO_C" >&6
20677 fi
20678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20680 else
20681   # Is the header compilable?
20682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20684 cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h.  */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h.  */
20690 $ac_includes_default
20691 #include <$ac_header>
20692 _ACEOF
20693 rm -f conftest.$ac_objext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20695   (eval $ac_compile) 2>conftest.er1
20696   ac_status=$?
20697   grep -v '^ *+' conftest.er1 >conftest.err
20698   rm -f conftest.er1
20699   cat conftest.err >&5
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); } &&
20702          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704   (eval $ac_try) 2>&5
20705   ac_status=$?
20706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707   (exit $ac_status); }; } &&
20708          { ac_try='test -s conftest.$ac_objext'
20709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710   (eval $ac_try) 2>&5
20711   ac_status=$?
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); }; }; then
20714   ac_header_compiler=yes
20715 else
20716   echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719 ac_header_compiler=no
20720 fi
20721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20723 echo "${ECHO_T}$ac_header_compiler" >&6
20724
20725 # Is the header present?
20726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20728 cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h.  */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h.  */
20734 #include <$ac_header>
20735 _ACEOF
20736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20738   ac_status=$?
20739   grep -v '^ *+' conftest.er1 >conftest.err
20740   rm -f conftest.er1
20741   cat conftest.err >&5
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } >/dev/null; then
20744   if test -s conftest.err; then
20745     ac_cpp_err=$ac_c_preproc_warn_flag
20746     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20747   else
20748     ac_cpp_err=
20749   fi
20750 else
20751   ac_cpp_err=yes
20752 fi
20753 if test -z "$ac_cpp_err"; then
20754   ac_header_preproc=yes
20755 else
20756   echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759   ac_header_preproc=no
20760 fi
20761 rm -f conftest.err conftest.$ac_ext
20762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20763 echo "${ECHO_T}$ac_header_preproc" >&6
20764
20765 # So?  What about this header?
20766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20767   yes:no: )
20768     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20772     ac_header_preproc=yes
20773     ;;
20774   no:yes:* )
20775     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20777     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20778 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20779     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20781     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20782 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20785     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20787     (
20788       cat <<\_ASBOX
20789 ## ------------------------------- ##
20790 ## Report this to nfs@lists.sf.net ##
20791 ## ------------------------------- ##
20792 _ASBOX
20793     ) |
20794       sed "s/^/$as_me: WARNING:     /" >&2
20795     ;;
20796 esac
20797 echo "$as_me:$LINENO: checking for $ac_header" >&5
20798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20800   echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802   eval "$as_ac_Header=\$ac_header_preproc"
20803 fi
20804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20806
20807 fi
20808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20809   cat >>confdefs.h <<_ACEOF
20810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20811 _ACEOF
20812
20813 else
20814   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20815 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20816    { (exit 1); exit 1; }; }
20817 fi
20818
20819 done
20820
20821             if test "$enable_gss" = yes; then
20822
20823
20824 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20825         if test -n "$ac_tool_prefix"; then
20826   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20827 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20828 echo "$as_me:$LINENO: checking for $ac_word" >&5
20829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20830 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20831   echo $ECHO_N "(cached) $ECHO_C" >&6
20832 else
20833   case $PKG_CONFIG in
20834   [\\/]* | ?:[\\/]*)
20835   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20836   ;;
20837   *)
20838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20839 for as_dir in $PATH
20840 do
20841   IFS=$as_save_IFS
20842   test -z "$as_dir" && as_dir=.
20843   for ac_exec_ext in '' $ac_executable_extensions; do
20844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20845     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20847     break 2
20848   fi
20849 done
20850 done
20851
20852   ;;
20853 esac
20854 fi
20855 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20856
20857 if test -n "$PKG_CONFIG"; then
20858   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20859 echo "${ECHO_T}$PKG_CONFIG" >&6
20860 else
20861   echo "$as_me:$LINENO: result: no" >&5
20862 echo "${ECHO_T}no" >&6
20863 fi
20864
20865 fi
20866 if test -z "$ac_cv_path_PKG_CONFIG"; then
20867   ac_pt_PKG_CONFIG=$PKG_CONFIG
20868   # Extract the first word of "pkg-config", so it can be a program name with args.
20869 set dummy pkg-config; ac_word=$2
20870 echo "$as_me:$LINENO: checking for $ac_word" >&5
20871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20872 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20873   echo $ECHO_N "(cached) $ECHO_C" >&6
20874 else
20875   case $ac_pt_PKG_CONFIG in
20876   [\\/]* | ?:[\\/]*)
20877   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20878   ;;
20879   *)
20880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20881 for as_dir in $PATH
20882 do
20883   IFS=$as_save_IFS
20884   test -z "$as_dir" && as_dir=.
20885   for ac_exec_ext in '' $ac_executable_extensions; do
20886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20887     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20889     break 2
20890   fi
20891 done
20892 done
20893
20894   ;;
20895 esac
20896 fi
20897 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20898
20899 if test -n "$ac_pt_PKG_CONFIG"; then
20900   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20901 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
20902 else
20903   echo "$as_me:$LINENO: result: no" >&5
20904 echo "${ECHO_T}no" >&6
20905 fi
20906
20907   PKG_CONFIG=$ac_pt_PKG_CONFIG
20908 else
20909   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20910 fi
20911
20912 fi
20913 if test -n "$PKG_CONFIG"; then
20914         _pkg_min_version=0.9.0
20915         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20916 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20917         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20918                 echo "$as_me:$LINENO: result: yes" >&5
20919 echo "${ECHO_T}yes" >&6
20920         else
20921                 echo "$as_me:$LINENO: result: no" >&5
20922 echo "${ECHO_T}no" >&6
20923                 PKG_CONFIG=""
20924         fi
20925
20926 fi
20927
20928 pkg_failed=no
20929 echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
20930 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6
20931
20932 if test -n "$PKG_CONFIG"; then
20933     if test -n "$RPCSECGSS_CFLAGS"; then
20934         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
20935     else
20936         if test -n "$PKG_CONFIG" && \
20937     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
20938   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
20939   ac_status=$?
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); }; then
20942   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
20943 else
20944   pkg_failed=yes
20945 fi
20946     fi
20947 else
20948         pkg_failed=untried
20949 fi
20950 if test -n "$PKG_CONFIG"; then
20951     if test -n "$RPCSECGSS_LIBS"; then
20952         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
20953     else
20954         if test -n "$PKG_CONFIG" && \
20955     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
20956   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
20957   ac_status=$?
20958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); }; then
20960   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
20961 else
20962   pkg_failed=yes
20963 fi
20964     fi
20965 else
20966         pkg_failed=untried
20967 fi
20968
20969
20970
20971 if test $pkg_failed = yes; then
20972
20973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20974         _pkg_short_errors_supported=yes
20975 else
20976         _pkg_short_errors_supported=no
20977 fi
20978         if test $_pkg_short_errors_supported = yes; then
20979                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
20980         else
20981                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
20982         fi
20983         # Put the nasty error message in config.log where it belongs
20984         echo "$RPCSECGSS_PKG_ERRORS" >&5
20985
20986         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
20987        If you have pkgconfig installed, you might try setting environment
20988        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
20989 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
20990        If you have pkgconfig installed, you might try setting environment
20991        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
20992    { (exit 1); exit 1; }; }
20993
20994
20995 elif test $pkg_failed = untried; then
20996         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
20997        If you have pkgconfig installed, you might try setting environment
20998        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
20999 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
21000        If you have pkgconfig installed, you might try setting environment
21001        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
21002    { (exit 1); exit 1; }; }
21003
21004
21005 else
21006         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21007         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21008         echo "$as_me:$LINENO: result: yes" >&5
21009 echo "${ECHO_T}yes" >&6
21010         :
21011 fi
21012
21013 pkg_failed=no
21014 echo "$as_me:$LINENO: checking for GSSAPI" >&5
21015 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
21016
21017 if test -n "$PKG_CONFIG"; then
21018     if test -n "$GSSAPI_CFLAGS"; then
21019         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21020     else
21021         if test -n "$PKG_CONFIG" && \
21022     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21023   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21024   ac_status=$?
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); }; then
21027   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21028 else
21029   pkg_failed=yes
21030 fi
21031     fi
21032 else
21033         pkg_failed=untried
21034 fi
21035 if test -n "$PKG_CONFIG"; then
21036     if test -n "$GSSAPI_LIBS"; then
21037         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21038     else
21039         if test -n "$PKG_CONFIG" && \
21040     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21041   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); }; then
21045   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21046 else
21047   pkg_failed=yes
21048 fi
21049     fi
21050 else
21051         pkg_failed=untried
21052 fi
21053
21054
21055
21056 if test $pkg_failed = yes; then
21057
21058 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21059         _pkg_short_errors_supported=yes
21060 else
21061         _pkg_short_errors_supported=no
21062 fi
21063         if test $_pkg_short_errors_supported = yes; then
21064                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21065         else
21066                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21067         fi
21068         # Put the nasty error message in config.log where it belongs
21069         echo "$GSSAPI_PKG_ERRORS" >&5
21070
21071         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
21072
21073 $GSSAPI_PKG_ERRORS
21074
21075 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21076 installed software in a non-standard prefix.
21077
21078 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21079 and GSSAPI_LIBS to avoid the need to call pkg-config.
21080 See the pkg-config man page for more details.
21081 " >&5
21082 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
21083
21084 $GSSAPI_PKG_ERRORS
21085
21086 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21087 installed software in a non-standard prefix.
21088
21089 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21090 and GSSAPI_LIBS to avoid the need to call pkg-config.
21091 See the pkg-config man page for more details.
21092 " >&2;}
21093    { (exit 1); exit 1; }; }
21094 elif test $pkg_failed = untried; then
21095         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21096 is in your PATH or set the PKG_CONFIG environment variable to the full
21097 path to pkg-config.
21098
21099 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21100 and GSSAPI_LIBS to avoid the need to call pkg-config.
21101 See the pkg-config man page for more details.
21102
21103 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21104 See \`config.log' for more details." >&5
21105 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21106 is in your PATH or set the PKG_CONFIG environment variable to the full
21107 path to pkg-config.
21108
21109 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21110 and GSSAPI_LIBS to avoid the need to call pkg-config.
21111 See the pkg-config man page for more details.
21112
21113 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21114 See \`config.log' for more details." >&2;}
21115    { (exit 1); exit 1; }; }
21116 else
21117         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
21118         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
21119         echo "$as_me:$LINENO: result: yes" >&5
21120 echo "${ECHO_T}yes" >&6
21121         :
21122 fi
21123     fi
21124
21125 fi
21126 if test "$knfsd_cv_glibc2" = no; then
21127     echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
21128 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
21129 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
21130   echo $ECHO_N "(cached) $ECHO_C" >&6
21131 else
21132   ac_check_lib_save_LIBS=$LIBS
21133 LIBS="-lbsd  $LIBS"
21134 cat >conftest.$ac_ext <<_ACEOF
21135 /* confdefs.h.  */
21136 _ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h.  */
21140
21141 /* Override any gcc2 internal prototype to avoid an error.  */
21142 #ifdef __cplusplus
21143 extern "C"
21144 #endif
21145 /* We use char because int might match the return type of a gcc2
21146    builtin and then its argument prototype would still apply.  */
21147 char daemon ();
21148 int
21149 main ()
21150 {
21151 daemon ();
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 rm -f conftest.$ac_objext conftest$ac_exeext
21157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21158   (eval $ac_link) 2>conftest.er1
21159   ac_status=$?
21160   grep -v '^ *+' conftest.er1 >conftest.err
21161   rm -f conftest.er1
21162   cat conftest.err >&5
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); } &&
21165          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167   (eval $ac_try) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); }; } &&
21171          { ac_try='test -s conftest$ac_exeext'
21172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173   (eval $ac_try) 2>&5
21174   ac_status=$?
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); }; }; then
21177   ac_cv_lib_bsd_daemon=yes
21178 else
21179   echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21181
21182 ac_cv_lib_bsd_daemon=no
21183 fi
21184 rm -f conftest.err conftest.$ac_objext \
21185       conftest$ac_exeext conftest.$ac_ext
21186 LIBS=$ac_check_lib_save_LIBS
21187 fi
21188 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
21189 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
21190 if test $ac_cv_lib_bsd_daemon = yes; then
21191   LIBBSD="-lbsd"
21192 fi
21193
21194 fi
21195
21196
21197
21198
21199
21200 if test "$enable_gss" = yes; then
21201
21202 for ac_header in nfsidmap.h
21203 do
21204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21206   echo "$as_me:$LINENO: checking for $ac_header" >&5
21207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21209   echo $ECHO_N "(cached) $ECHO_C" >&6
21210 fi
21211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21213 else
21214   # Is the header compilable?
21215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21217 cat >conftest.$ac_ext <<_ACEOF
21218 /* confdefs.h.  */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h.  */
21223 $ac_includes_default
21224 #include <$ac_header>
21225 _ACEOF
21226 rm -f conftest.$ac_objext
21227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21228   (eval $ac_compile) 2>conftest.er1
21229   ac_status=$?
21230   grep -v '^ *+' conftest.er1 >conftest.err
21231   rm -f conftest.er1
21232   cat conftest.err >&5
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); } &&
21235          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237   (eval $ac_try) 2>&5
21238   ac_status=$?
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); }; } &&
21241          { ac_try='test -s conftest.$ac_objext'
21242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243   (eval $ac_try) 2>&5
21244   ac_status=$?
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); }; }; then
21247   ac_header_compiler=yes
21248 else
21249   echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21251
21252 ac_header_compiler=no
21253 fi
21254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21256 echo "${ECHO_T}$ac_header_compiler" >&6
21257
21258 # Is the header present?
21259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21261 cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267 #include <$ac_header>
21268 _ACEOF
21269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21271   ac_status=$?
21272   grep -v '^ *+' conftest.er1 >conftest.err
21273   rm -f conftest.er1
21274   cat conftest.err >&5
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); } >/dev/null; then
21277   if test -s conftest.err; then
21278     ac_cpp_err=$ac_c_preproc_warn_flag
21279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21280   else
21281     ac_cpp_err=
21282   fi
21283 else
21284   ac_cpp_err=yes
21285 fi
21286 if test -z "$ac_cpp_err"; then
21287   ac_header_preproc=yes
21288 else
21289   echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21291
21292   ac_header_preproc=no
21293 fi
21294 rm -f conftest.err conftest.$ac_ext
21295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21296 echo "${ECHO_T}$ac_header_preproc" >&6
21297
21298 # So?  What about this header?
21299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21300   yes:no: )
21301     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21305     ac_header_preproc=yes
21306     ;;
21307   no:yes:* )
21308     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21310     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21311 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21312     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21314     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21315 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21318     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21320     (
21321       cat <<\_ASBOX
21322 ## ------------------------------- ##
21323 ## Report this to nfs@lists.sf.net ##
21324 ## ------------------------------- ##
21325 _ASBOX
21326     ) |
21327       sed "s/^/$as_me: WARNING:     /" >&2
21328     ;;
21329 esac
21330 echo "$as_me:$LINENO: checking for $ac_header" >&5
21331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21333   echo $ECHO_N "(cached) $ECHO_C" >&6
21334 else
21335   eval "$as_ac_Header=\$ac_header_preproc"
21336 fi
21337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21339
21340 fi
21341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21342   cat >>confdefs.h <<_ACEOF
21343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21344 _ACEOF
21345
21346 else
21347   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
21348 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
21349    { (exit 1); exit 1; }; }
21350 fi
21351
21352 done
21353
21354
21355 for ac_header in spkm3.h
21356 do
21357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21359   echo "$as_me:$LINENO: checking for $ac_header" >&5
21360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21362   echo $ECHO_N "(cached) $ECHO_C" >&6
21363 fi
21364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21366 else
21367   # Is the header compilable?
21368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21370 cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h.  */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h.  */
21376 $ac_includes_default
21377 #include <$ac_header>
21378 _ACEOF
21379 rm -f conftest.$ac_objext
21380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21381   (eval $ac_compile) 2>conftest.er1
21382   ac_status=$?
21383   grep -v '^ *+' conftest.er1 >conftest.err
21384   rm -f conftest.er1
21385   cat conftest.err >&5
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); } &&
21388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390   (eval $ac_try) 2>&5
21391   ac_status=$?
21392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393   (exit $ac_status); }; } &&
21394          { ac_try='test -s conftest.$ac_objext'
21395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396   (eval $ac_try) 2>&5
21397   ac_status=$?
21398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399   (exit $ac_status); }; }; then
21400   ac_header_compiler=yes
21401 else
21402   echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21404
21405 ac_header_compiler=no
21406 fi
21407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21409 echo "${ECHO_T}$ac_header_compiler" >&6
21410
21411 # Is the header present?
21412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21414 cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h.  */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h.  */
21420 #include <$ac_header>
21421 _ACEOF
21422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21424   ac_status=$?
21425   grep -v '^ *+' conftest.er1 >conftest.err
21426   rm -f conftest.er1
21427   cat conftest.err >&5
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); } >/dev/null; then
21430   if test -s conftest.err; then
21431     ac_cpp_err=$ac_c_preproc_warn_flag
21432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21433   else
21434     ac_cpp_err=
21435   fi
21436 else
21437   ac_cpp_err=yes
21438 fi
21439 if test -z "$ac_cpp_err"; then
21440   ac_header_preproc=yes
21441 else
21442   echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445   ac_header_preproc=no
21446 fi
21447 rm -f conftest.err conftest.$ac_ext
21448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21449 echo "${ECHO_T}$ac_header_preproc" >&6
21450
21451 # So?  What about this header?
21452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21453   yes:no: )
21454     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21458     ac_header_preproc=yes
21459     ;;
21460   no:yes:* )
21461     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21463     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21464 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21465     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21467     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21468 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21471     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21473     (
21474       cat <<\_ASBOX
21475 ## ------------------------------- ##
21476 ## Report this to nfs@lists.sf.net ##
21477 ## ------------------------------- ##
21478 _ASBOX
21479     ) |
21480       sed "s/^/$as_me: WARNING:     /" >&2
21481     ;;
21482 esac
21483 echo "$as_me:$LINENO: checking for $ac_header" >&5
21484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21486   echo $ECHO_N "(cached) $ECHO_C" >&6
21487 else
21488   eval "$as_ac_Header=\$ac_header_preproc"
21489 fi
21490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21492
21493 fi
21494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21495   cat >>confdefs.h <<_ACEOF
21496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21497 _ACEOF
21498
21499 else
21500   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
21501 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
21502 fi
21503
21504 done
21505
21506
21507
21508   echo "$as_me:$LINENO: checking for Kerberos v5" >&5
21509 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6
21510
21511 # Check whether --with-krb5 or --without-krb5 was given.
21512 if test "${with_krb5+set}" = set; then
21513   withval="$with_krb5"
21514    case "$withval" in
21515     yes|no)
21516        krb5_with=""
21517        ;;
21518     *)
21519        krb5_with="$withval"
21520        ;;
21521     esac
21522
21523 fi;
21524
21525   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
21526              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
21527             K5CONFIG=""
21528     if test -f $dir/bin/krb5-config; then
21529       K5CONFIG=$dir/bin/krb5-config
21530     elif test -f "/usr/kerberos/bin/krb5-config"; then
21531       K5CONFIG="/usr/kerberos/bin/krb5-config"
21532     elif test -f "/usr/lib/mit/bin/krb5-config"; then
21533       K5CONFIG="/usr/lib/mit/bin/krb5-config"
21534     fi
21535     if test "$K5CONFIG" != ""; then
21536       KRBCFLAGS=`$K5CONFIG --cflags`
21537       KRBLIBS=`$K5CONFIG --libs gssapi`
21538       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
21539
21540 cat >>confdefs.h <<_ACEOF
21541 #define KRB5_VERSION $K5VERS
21542 _ACEOF
21543
21544       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
21545                 \( -f $dir/lib/libgssapi_krb5.a -o \
21546                    -f $dir/lib/libgssapi_krb5.so \) ; then
21547
21548 cat >>confdefs.h <<\_ACEOF
21549 #define HAVE_KRB5 1
21550 _ACEOF
21551
21552          KRBDIR="$dir"
21553                      if test $K5VERS -le 131; then
21554
21555 cat >>confdefs.h <<\_ACEOF
21556 #define USE_GSS_KRB5_CCACHE_NAME 1
21557 _ACEOF
21558
21559          fi
21560          gssapi_lib=gssapi_krb5
21561          break
21562                   elif test \( -f $dir/include/heim_err.h -o\
21563                  -f $dir/include/heimdal/heim_err.h \) -a \
21564                 -f $dir/lib/libroken.a; then
21565
21566 cat >>confdefs.h <<\_ACEOF
21567 #define HAVE_HEIMDAL 1
21568 _ACEOF
21569
21570          KRBDIR="$dir"
21571          gssapi_lib=gssapi
21572         break
21573       fi
21574     fi
21575   done
21576     if test "x$KRBDIR" = "x"; then
21577     if test "x$krb5_with" = "x"; then
21578       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
21579 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
21580    { (exit 1); exit 1; }; }
21581     else
21582       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
21583 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
21584    { (exit 1); exit 1; }; }
21585     fi
21586   fi
21587   echo "$as_me:$LINENO: result: $KRBDIR" >&5
21588 echo "${ECHO_T}$KRBDIR" >&6
21589
21590     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
21591 echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
21592 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6
21593 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21594   echo $ECHO_N "(cached) $ECHO_C" >&6
21595 else
21596   ac_check_lib_save_LIBS=$LIBS
21597 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21598 cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h.  */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h.  */
21604
21605 /* Override any gcc2 internal prototype to avoid an error.  */
21606 #ifdef __cplusplus
21607 extern "C"
21608 #endif
21609 /* We use char because int might match the return type of a gcc2
21610    builtin and then its argument prototype would still apply.  */
21611 char gss_krb5_export_lucid_sec_context ();
21612 int
21613 main ()
21614 {
21615 gss_krb5_export_lucid_sec_context ();
21616   ;
21617   return 0;
21618 }
21619 _ACEOF
21620 rm -f conftest.$ac_objext conftest$ac_exeext
21621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21622   (eval $ac_link) 2>conftest.er1
21623   ac_status=$?
21624   grep -v '^ *+' conftest.er1 >conftest.err
21625   rm -f conftest.er1
21626   cat conftest.err >&5
21627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628   (exit $ac_status); } &&
21629          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21631   (eval $ac_try) 2>&5
21632   ac_status=$?
21633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634   (exit $ac_status); }; } &&
21635          { ac_try='test -s conftest$ac_exeext'
21636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637   (eval $ac_try) 2>&5
21638   ac_status=$?
21639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640   (exit $ac_status); }; }; then
21641   eval "$as_ac_Lib=yes"
21642 else
21643   echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21645
21646 eval "$as_ac_Lib=no"
21647 fi
21648 rm -f conftest.err conftest.$ac_objext \
21649       conftest$ac_exeext conftest.$ac_ext
21650 LIBS=$ac_check_lib_save_LIBS
21651 fi
21652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21653 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21654 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21655
21656 cat >>confdefs.h <<\_ACEOF
21657 #define HAVE_LUCID_CONTEXT_SUPPORT 1
21658 _ACEOF
21659
21660 fi
21661
21662   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
21663 echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
21664 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6
21665 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21666   echo $ECHO_N "(cached) $ECHO_C" >&6
21667 else
21668   ac_check_lib_save_LIBS=$LIBS
21669 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h.  */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h.  */
21676
21677 /* Override any gcc2 internal prototype to avoid an error.  */
21678 #ifdef __cplusplus
21679 extern "C"
21680 #endif
21681 /* We use char because int might match the return type of a gcc2
21682    builtin and then its argument prototype would still apply.  */
21683 char gss_krb5_set_allowable_enctypes ();
21684 int
21685 main ()
21686 {
21687 gss_krb5_set_allowable_enctypes ();
21688   ;
21689   return 0;
21690 }
21691 _ACEOF
21692 rm -f conftest.$ac_objext conftest$ac_exeext
21693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21694   (eval $ac_link) 2>conftest.er1
21695   ac_status=$?
21696   grep -v '^ *+' conftest.er1 >conftest.err
21697   rm -f conftest.er1
21698   cat conftest.err >&5
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); } &&
21701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703   (eval $ac_try) 2>&5
21704   ac_status=$?
21705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706   (exit $ac_status); }; } &&
21707          { ac_try='test -s conftest$ac_exeext'
21708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709   (eval $ac_try) 2>&5
21710   ac_status=$?
21711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); }; }; then
21713   eval "$as_ac_Lib=yes"
21714 else
21715   echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21717
21718 eval "$as_ac_Lib=no"
21719 fi
21720 rm -f conftest.err conftest.$ac_objext \
21721       conftest$ac_exeext conftest.$ac_ext
21722 LIBS=$ac_check_lib_save_LIBS
21723 fi
21724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21725 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21726 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21727
21728 cat >>confdefs.h <<\_ACEOF
21729 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
21730 _ACEOF
21731
21732 fi
21733
21734   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
21735 echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
21736 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6
21737 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21738   echo $ECHO_N "(cached) $ECHO_C" >&6
21739 else
21740   ac_check_lib_save_LIBS=$LIBS
21741 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21742 cat >conftest.$ac_ext <<_ACEOF
21743 /* confdefs.h.  */
21744 _ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h.  */
21748
21749 /* Override any gcc2 internal prototype to avoid an error.  */
21750 #ifdef __cplusplus
21751 extern "C"
21752 #endif
21753 /* We use char because int might match the return type of a gcc2
21754    builtin and then its argument prototype would still apply.  */
21755 char gss_krb5_ccache_name ();
21756 int
21757 main ()
21758 {
21759 gss_krb5_ccache_name ();
21760   ;
21761   return 0;
21762 }
21763 _ACEOF
21764 rm -f conftest.$ac_objext conftest$ac_exeext
21765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21766   (eval $ac_link) 2>conftest.er1
21767   ac_status=$?
21768   grep -v '^ *+' conftest.er1 >conftest.err
21769   rm -f conftest.er1
21770   cat conftest.err >&5
21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); } &&
21773          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775   (eval $ac_try) 2>&5
21776   ac_status=$?
21777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778   (exit $ac_status); }; } &&
21779          { ac_try='test -s conftest$ac_exeext'
21780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781   (eval $ac_try) 2>&5
21782   ac_status=$?
21783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784   (exit $ac_status); }; }; then
21785   eval "$as_ac_Lib=yes"
21786 else
21787   echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21789
21790 eval "$as_ac_Lib=no"
21791 fi
21792 rm -f conftest.err conftest.$ac_objext \
21793       conftest$ac_exeext conftest.$ac_ext
21794 LIBS=$ac_check_lib_save_LIBS
21795 fi
21796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21797 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21798 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21799
21800 cat >>confdefs.h <<\_ACEOF
21801 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21802 _ACEOF
21803
21804 fi
21805
21806
21807     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21808     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21809 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21810   fi
21811
21812
21813
21814
21815
21816
21817
21818
21819       echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21820 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6
21821 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21822   echo $ECHO_N "(cached) $ECHO_C" >&6
21823 else
21824   ac_check_lib_save_LIBS=$LIBS
21825 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21826 cat >conftest.$ac_ext <<_ACEOF
21827 /* confdefs.h.  */
21828 _ACEOF
21829 cat confdefs.h >>conftest.$ac_ext
21830 cat >>conftest.$ac_ext <<_ACEOF
21831 /* end confdefs.h.  */
21832
21833 /* Override any gcc2 internal prototype to avoid an error.  */
21834 #ifdef __cplusplus
21835 extern "C"
21836 #endif
21837 /* We use char because int might match the return type of a gcc2
21838    builtin and then its argument prototype would still apply.  */
21839 char authgss_create_default ();
21840 int
21841 main ()
21842 {
21843 authgss_create_default ();
21844   ;
21845   return 0;
21846 }
21847 _ACEOF
21848 rm -f conftest.$ac_objext conftest$ac_exeext
21849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21850   (eval $ac_link) 2>conftest.er1
21851   ac_status=$?
21852   grep -v '^ *+' conftest.er1 >conftest.err
21853   rm -f conftest.er1
21854   cat conftest.err >&5
21855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856   (exit $ac_status); } &&
21857          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859   (eval $ac_try) 2>&5
21860   ac_status=$?
21861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862   (exit $ac_status); }; } &&
21863          { ac_try='test -s conftest$ac_exeext'
21864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865   (eval $ac_try) 2>&5
21866   ac_status=$?
21867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868   (exit $ac_status); }; }; then
21869   ac_cv_lib_rpcsecgss_authgss_create_default=yes
21870 else
21871   echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21873
21874 ac_cv_lib_rpcsecgss_authgss_create_default=no
21875 fi
21876 rm -f conftest.err conftest.$ac_objext \
21877       conftest$ac_exeext conftest.$ac_ext
21878 LIBS=$ac_check_lib_save_LIBS
21879 fi
21880 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21881 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6
21882 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
21883   librpcsecgss=1
21884 else
21885   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
21886 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
21887    { (exit 1); exit 1; }; }
21888 fi
21889
21890   echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21891 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6
21892 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21893   echo $ECHO_N "(cached) $ECHO_C" >&6
21894 else
21895   ac_check_lib_save_LIBS=$LIBS
21896 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21897 cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h.  */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h.  */
21903
21904 /* Override any gcc2 internal prototype to avoid an error.  */
21905 #ifdef __cplusplus
21906 extern "C"
21907 #endif
21908 /* We use char because int might match the return type of a gcc2
21909    builtin and then its argument prototype would still apply.  */
21910 char authgss_set_debug_level ();
21911 int
21912 main ()
21913 {
21914 authgss_set_debug_level ();
21915   ;
21916   return 0;
21917 }
21918 _ACEOF
21919 rm -f conftest.$ac_objext conftest$ac_exeext
21920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21921   (eval $ac_link) 2>conftest.er1
21922   ac_status=$?
21923   grep -v '^ *+' conftest.er1 >conftest.err
21924   rm -f conftest.er1
21925   cat conftest.err >&5
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); } &&
21928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930   (eval $ac_try) 2>&5
21931   ac_status=$?
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); }; } &&
21934          { ac_try='test -s conftest$ac_exeext'
21935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936   (eval $ac_try) 2>&5
21937   ac_status=$?
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); }; }; then
21940   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21941 else
21942   echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21944
21945 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21946 fi
21947 rm -f conftest.err conftest.$ac_objext \
21948       conftest$ac_exeext conftest.$ac_ext
21949 LIBS=$ac_check_lib_save_LIBS
21950 fi
21951 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21952 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6
21953 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
21954
21955 cat >>confdefs.h <<\_ACEOF
21956 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21957 _ACEOF
21958
21959 fi
21960
21961
21962 fi
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
21987                  malloc.h memory.h netdb.h netinet/in.h paths.h \
21988                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
21989                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
21990                  syslog.h unistd.h com_err.h et/com_err.h
21991 do
21992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21994   echo "$as_me:$LINENO: checking for $ac_header" >&5
21995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21997   echo $ECHO_N "(cached) $ECHO_C" >&6
21998 fi
21999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22001 else
22002   # Is the header compilable?
22003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22005 cat >conftest.$ac_ext <<_ACEOF
22006 /* confdefs.h.  */
22007 _ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h.  */
22011 $ac_includes_default
22012 #include <$ac_header>
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22016   (eval $ac_compile) 2>conftest.er1
22017   ac_status=$?
22018   grep -v '^ *+' conftest.er1 >conftest.err
22019   rm -f conftest.er1
22020   cat conftest.err >&5
22021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022   (exit $ac_status); } &&
22023          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025   (eval $ac_try) 2>&5
22026   ac_status=$?
22027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); }; } &&
22029          { ac_try='test -s conftest.$ac_objext'
22030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031   (eval $ac_try) 2>&5
22032   ac_status=$?
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); }; }; then
22035   ac_header_compiler=yes
22036 else
22037   echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22039
22040 ac_header_compiler=no
22041 fi
22042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22044 echo "${ECHO_T}$ac_header_compiler" >&6
22045
22046 # Is the header present?
22047 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22049 cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h.  */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h.  */
22055 #include <$ac_header>
22056 _ACEOF
22057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22059   ac_status=$?
22060   grep -v '^ *+' conftest.er1 >conftest.err
22061   rm -f conftest.er1
22062   cat conftest.err >&5
22063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); } >/dev/null; then
22065   if test -s conftest.err; then
22066     ac_cpp_err=$ac_c_preproc_warn_flag
22067     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22068   else
22069     ac_cpp_err=
22070   fi
22071 else
22072   ac_cpp_err=yes
22073 fi
22074 if test -z "$ac_cpp_err"; then
22075   ac_header_preproc=yes
22076 else
22077   echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22079
22080   ac_header_preproc=no
22081 fi
22082 rm -f conftest.err conftest.$ac_ext
22083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22084 echo "${ECHO_T}$ac_header_preproc" >&6
22085
22086 # So?  What about this header?
22087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22088   yes:no: )
22089     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22093     ac_header_preproc=yes
22094     ;;
22095   no:yes:* )
22096     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22098     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22099 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22100     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22102     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22103 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22106     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22108     (
22109       cat <<\_ASBOX
22110 ## ------------------------------- ##
22111 ## Report this to nfs@lists.sf.net ##
22112 ## ------------------------------- ##
22113 _ASBOX
22114     ) |
22115       sed "s/^/$as_me: WARNING:     /" >&2
22116     ;;
22117 esac
22118 echo "$as_me:$LINENO: checking for $ac_header" >&5
22119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22121   echo $ECHO_N "(cached) $ECHO_C" >&6
22122 else
22123   eval "$as_ac_Header=\$ac_header_preproc"
22124 fi
22125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22127
22128 fi
22129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22130   cat >>confdefs.h <<_ACEOF
22131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22132 _ACEOF
22133
22134 fi
22135
22136 done
22137
22138
22139 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22140 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22141 if test "${ac_cv_c_const+set}" = set; then
22142   echo $ECHO_N "(cached) $ECHO_C" >&6
22143 else
22144   cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h.  */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h.  */
22150
22151 int
22152 main ()
22153 {
22154 /* FIXME: Include the comments suggested by Paul. */
22155 #ifndef __cplusplus
22156   /* Ultrix mips cc rejects this.  */
22157   typedef int charset[2];
22158   const charset x;
22159   /* SunOS 4.1.1 cc rejects this.  */
22160   char const *const *ccp;
22161   char **p;
22162   /* NEC SVR4.0.2 mips cc rejects this.  */
22163   struct point {int x, y;};
22164   static struct point const zero = {0,0};
22165   /* AIX XL C 1.02.0.0 rejects this.
22166      It does not let you subtract one const X* pointer from another in
22167      an arm of an if-expression whose if-part is not a constant
22168      expression */
22169   const char *g = "string";
22170   ccp = &g + (g ? g-g : 0);
22171   /* HPUX 7.0 cc rejects these. */
22172   ++ccp;
22173   p = (char**) ccp;
22174   ccp = (char const *const *) p;
22175   { /* SCO 3.2v4 cc rejects this.  */
22176     char *t;
22177     char const *s = 0 ? (char *) 0 : (char const *) 0;
22178
22179     *t++ = 0;
22180   }
22181   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22182     int x[] = {25, 17};
22183     const int *foo = &x[0];
22184     ++foo;
22185   }
22186   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22187     typedef const int *iptr;
22188     iptr p = 0;
22189     ++p;
22190   }
22191   { /* AIX XL C 1.02.0.0 rejects this saying
22192        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22193     struct s { int j; const int *ap[3]; };
22194     struct s *b; b->j = 5;
22195   }
22196   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22197     const int foo = 10;
22198   }
22199 #endif
22200
22201   ;
22202   return 0;
22203 }
22204 _ACEOF
22205 rm -f conftest.$ac_objext
22206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22207   (eval $ac_compile) 2>conftest.er1
22208   ac_status=$?
22209   grep -v '^ *+' conftest.er1 >conftest.err
22210   rm -f conftest.er1
22211   cat conftest.err >&5
22212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213   (exit $ac_status); } &&
22214          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216   (eval $ac_try) 2>&5
22217   ac_status=$?
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); }; } &&
22220          { ac_try='test -s conftest.$ac_objext'
22221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222   (eval $ac_try) 2>&5
22223   ac_status=$?
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); }; }; then
22226   ac_cv_c_const=yes
22227 else
22228   echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22230
22231 ac_cv_c_const=no
22232 fi
22233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22234 fi
22235 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22236 echo "${ECHO_T}$ac_cv_c_const" >&6
22237 if test $ac_cv_c_const = no; then
22238
22239 cat >>confdefs.h <<\_ACEOF
22240 #define const
22241 _ACEOF
22242
22243 fi
22244
22245 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22246 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22247 if test "${ac_cv_type_uid_t+set}" = set; then
22248   echo $ECHO_N "(cached) $ECHO_C" >&6
22249 else
22250   cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256 #include <sys/types.h>
22257
22258 _ACEOF
22259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22260   $EGREP "uid_t" >/dev/null 2>&1; then
22261   ac_cv_type_uid_t=yes
22262 else
22263   ac_cv_type_uid_t=no
22264 fi
22265 rm -f conftest*
22266
22267 fi
22268 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22269 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22270 if test $ac_cv_type_uid_t = no; then
22271
22272 cat >>confdefs.h <<\_ACEOF
22273 #define uid_t int
22274 _ACEOF
22275
22276
22277 cat >>confdefs.h <<\_ACEOF
22278 #define gid_t int
22279 _ACEOF
22280
22281 fi
22282
22283 echo "$as_me:$LINENO: checking for inline" >&5
22284 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22285 if test "${ac_cv_c_inline+set}" = set; then
22286   echo $ECHO_N "(cached) $ECHO_C" >&6
22287 else
22288   ac_cv_c_inline=no
22289 for ac_kw in inline __inline__ __inline; do
22290   cat >conftest.$ac_ext <<_ACEOF
22291 /* confdefs.h.  */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h.  */
22296 #ifndef __cplusplus
22297 typedef int foo_t;
22298 static $ac_kw foo_t static_foo () {return 0; }
22299 $ac_kw foo_t foo () {return 0; }
22300 #endif
22301
22302 _ACEOF
22303 rm -f conftest.$ac_objext
22304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22305   (eval $ac_compile) 2>conftest.er1
22306   ac_status=$?
22307   grep -v '^ *+' conftest.er1 >conftest.err
22308   rm -f conftest.er1
22309   cat conftest.err >&5
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); } &&
22312          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314   (eval $ac_try) 2>&5
22315   ac_status=$?
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); }; } &&
22318          { ac_try='test -s conftest.$ac_objext'
22319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320   (eval $ac_try) 2>&5
22321   ac_status=$?
22322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323   (exit $ac_status); }; }; then
22324   ac_cv_c_inline=$ac_kw; break
22325 else
22326   echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328
22329 fi
22330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22331 done
22332
22333 fi
22334 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22335 echo "${ECHO_T}$ac_cv_c_inline" >&6
22336
22337
22338 case $ac_cv_c_inline in
22339   inline | yes) ;;
22340   *)
22341     case $ac_cv_c_inline in
22342       no) ac_val=;;
22343       *) ac_val=$ac_cv_c_inline;;
22344     esac
22345     cat >>confdefs.h <<_ACEOF
22346 #ifndef __cplusplus
22347 #define inline $ac_val
22348 #endif
22349 _ACEOF
22350     ;;
22351 esac
22352
22353 echo "$as_me:$LINENO: checking for off_t" >&5
22354 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22355 if test "${ac_cv_type_off_t+set}" = set; then
22356   echo $ECHO_N "(cached) $ECHO_C" >&6
22357 else
22358   cat >conftest.$ac_ext <<_ACEOF
22359 /* confdefs.h.  */
22360 _ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h.  */
22364 $ac_includes_default
22365 int
22366 main ()
22367 {
22368 if ((off_t *) 0)
22369   return 0;
22370 if (sizeof (off_t))
22371   return 0;
22372   ;
22373   return 0;
22374 }
22375 _ACEOF
22376 rm -f conftest.$ac_objext
22377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22378   (eval $ac_compile) 2>conftest.er1
22379   ac_status=$?
22380   grep -v '^ *+' conftest.er1 >conftest.err
22381   rm -f conftest.er1
22382   cat conftest.err >&5
22383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384   (exit $ac_status); } &&
22385          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387   (eval $ac_try) 2>&5
22388   ac_status=$?
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); }; } &&
22391          { ac_try='test -s conftest.$ac_objext'
22392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393   (eval $ac_try) 2>&5
22394   ac_status=$?
22395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396   (exit $ac_status); }; }; then
22397   ac_cv_type_off_t=yes
22398 else
22399   echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22401
22402 ac_cv_type_off_t=no
22403 fi
22404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22405 fi
22406 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22407 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22408 if test $ac_cv_type_off_t = yes; then
22409   :
22410 else
22411
22412 cat >>confdefs.h <<_ACEOF
22413 #define off_t long
22414 _ACEOF
22415
22416 fi
22417
22418 echo "$as_me:$LINENO: checking for pid_t" >&5
22419 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22420 if test "${ac_cv_type_pid_t+set}" = set; then
22421   echo $ECHO_N "(cached) $ECHO_C" >&6
22422 else
22423   cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h.  */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h.  */
22429 $ac_includes_default
22430 int
22431 main ()
22432 {
22433 if ((pid_t *) 0)
22434   return 0;
22435 if (sizeof (pid_t))
22436   return 0;
22437   ;
22438   return 0;
22439 }
22440 _ACEOF
22441 rm -f conftest.$ac_objext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22443   (eval $ac_compile) 2>conftest.er1
22444   ac_status=$?
22445   grep -v '^ *+' conftest.er1 >conftest.err
22446   rm -f conftest.er1
22447   cat conftest.err >&5
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); } &&
22450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452   (eval $ac_try) 2>&5
22453   ac_status=$?
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); }; } &&
22456          { ac_try='test -s conftest.$ac_objext'
22457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458   (eval $ac_try) 2>&5
22459   ac_status=$?
22460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461   (exit $ac_status); }; }; then
22462   ac_cv_type_pid_t=yes
22463 else
22464   echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22466
22467 ac_cv_type_pid_t=no
22468 fi
22469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22470 fi
22471 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22472 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22473 if test $ac_cv_type_pid_t = yes; then
22474   :
22475 else
22476
22477 cat >>confdefs.h <<_ACEOF
22478 #define pid_t int
22479 _ACEOF
22480
22481 fi
22482
22483 echo "$as_me:$LINENO: checking for size_t" >&5
22484 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22485 if test "${ac_cv_type_size_t+set}" = set; then
22486   echo $ECHO_N "(cached) $ECHO_C" >&6
22487 else
22488   cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494 $ac_includes_default
22495 int
22496 main ()
22497 {
22498 if ((size_t *) 0)
22499   return 0;
22500 if (sizeof (size_t))
22501   return 0;
22502   ;
22503   return 0;
22504 }
22505 _ACEOF
22506 rm -f conftest.$ac_objext
22507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22508   (eval $ac_compile) 2>conftest.er1
22509   ac_status=$?
22510   grep -v '^ *+' conftest.er1 >conftest.err
22511   rm -f conftest.er1
22512   cat conftest.err >&5
22513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); } &&
22515          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
22521          { ac_try='test -s conftest.$ac_objext'
22522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22523   (eval $ac_try) 2>&5
22524   ac_status=$?
22525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526   (exit $ac_status); }; }; then
22527   ac_cv_type_size_t=yes
22528 else
22529   echo "$as_me: failed program was:" >&5
22530 sed 's/^/| /' conftest.$ac_ext >&5
22531
22532 ac_cv_type_size_t=no
22533 fi
22534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22535 fi
22536 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22537 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22538 if test $ac_cv_type_size_t = yes; then
22539   :
22540 else
22541
22542 cat >>confdefs.h <<_ACEOF
22543 #define size_t unsigned
22544 _ACEOF
22545
22546 fi
22547
22548 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22549 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22550 if test "${ac_cv_header_time+set}" = set; then
22551   echo $ECHO_N "(cached) $ECHO_C" >&6
22552 else
22553   cat >conftest.$ac_ext <<_ACEOF
22554 /* confdefs.h.  */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h.  */
22559 #include <sys/types.h>
22560 #include <sys/time.h>
22561 #include <time.h>
22562
22563 int
22564 main ()
22565 {
22566 if ((struct tm *) 0)
22567 return 0;
22568   ;
22569   return 0;
22570 }
22571 _ACEOF
22572 rm -f conftest.$ac_objext
22573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22574   (eval $ac_compile) 2>conftest.er1
22575   ac_status=$?
22576   grep -v '^ *+' conftest.er1 >conftest.err
22577   rm -f conftest.er1
22578   cat conftest.err >&5
22579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580   (exit $ac_status); } &&
22581          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22583   (eval $ac_try) 2>&5
22584   ac_status=$?
22585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); }; } &&
22587          { ac_try='test -s conftest.$ac_objext'
22588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22589   (eval $ac_try) 2>&5
22590   ac_status=$?
22591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592   (exit $ac_status); }; }; then
22593   ac_cv_header_time=yes
22594 else
22595   echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22597
22598 ac_cv_header_time=no
22599 fi
22600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22601 fi
22602 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22603 echo "${ECHO_T}$ac_cv_header_time" >&6
22604 if test $ac_cv_header_time = yes; then
22605
22606 cat >>confdefs.h <<\_ACEOF
22607 #define TIME_WITH_SYS_TIME 1
22608 _ACEOF
22609
22610 fi
22611
22612 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22613 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22614 if test "${ac_cv_struct_tm+set}" = set; then
22615   echo $ECHO_N "(cached) $ECHO_C" >&6
22616 else
22617   cat >conftest.$ac_ext <<_ACEOF
22618 /* confdefs.h.  */
22619 _ACEOF
22620 cat confdefs.h >>conftest.$ac_ext
22621 cat >>conftest.$ac_ext <<_ACEOF
22622 /* end confdefs.h.  */
22623 #include <sys/types.h>
22624 #include <time.h>
22625
22626 int
22627 main ()
22628 {
22629 struct tm *tp; tp->tm_sec;
22630   ;
22631   return 0;
22632 }
22633 _ACEOF
22634 rm -f conftest.$ac_objext
22635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22636   (eval $ac_compile) 2>conftest.er1
22637   ac_status=$?
22638   grep -v '^ *+' conftest.er1 >conftest.err
22639   rm -f conftest.er1
22640   cat conftest.err >&5
22641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642   (exit $ac_status); } &&
22643          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645   (eval $ac_try) 2>&5
22646   ac_status=$?
22647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648   (exit $ac_status); }; } &&
22649          { ac_try='test -s conftest.$ac_objext'
22650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22651   (eval $ac_try) 2>&5
22652   ac_status=$?
22653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); }; }; then
22655   ac_cv_struct_tm=time.h
22656 else
22657   echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.$ac_ext >&5
22659
22660 ac_cv_struct_tm=sys/time.h
22661 fi
22662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22663 fi
22664 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22665 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22666 if test $ac_cv_struct_tm = sys/time.h; then
22667
22668 cat >>confdefs.h <<\_ACEOF
22669 #define TM_IN_SYS_TIME 1
22670 _ACEOF
22671
22672 fi
22673
22674
22675 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22676 # for constant arguments.  Useless!
22677 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22678 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22679 if test "${ac_cv_working_alloca_h+set}" = set; then
22680   echo $ECHO_N "(cached) $ECHO_C" >&6
22681 else
22682   cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688 #include <alloca.h>
22689 int
22690 main ()
22691 {
22692 char *p = (char *) alloca (2 * sizeof (int));
22693   ;
22694   return 0;
22695 }
22696 _ACEOF
22697 rm -f conftest.$ac_objext conftest$ac_exeext
22698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22699   (eval $ac_link) 2>conftest.er1
22700   ac_status=$?
22701   grep -v '^ *+' conftest.er1 >conftest.err
22702   rm -f conftest.er1
22703   cat conftest.err >&5
22704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705   (exit $ac_status); } &&
22706          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708   (eval $ac_try) 2>&5
22709   ac_status=$?
22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711   (exit $ac_status); }; } &&
22712          { ac_try='test -s conftest$ac_exeext'
22713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714   (eval $ac_try) 2>&5
22715   ac_status=$?
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); }; }; then
22718   ac_cv_working_alloca_h=yes
22719 else
22720   echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22722
22723 ac_cv_working_alloca_h=no
22724 fi
22725 rm -f conftest.err conftest.$ac_objext \
22726       conftest$ac_exeext conftest.$ac_ext
22727 fi
22728 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22729 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22730 if test $ac_cv_working_alloca_h = yes; then
22731
22732 cat >>confdefs.h <<\_ACEOF
22733 #define HAVE_ALLOCA_H 1
22734 _ACEOF
22735
22736 fi
22737
22738 echo "$as_me:$LINENO: checking for alloca" >&5
22739 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22740 if test "${ac_cv_func_alloca_works+set}" = set; then
22741   echo $ECHO_N "(cached) $ECHO_C" >&6
22742 else
22743   cat >conftest.$ac_ext <<_ACEOF
22744 /* confdefs.h.  */
22745 _ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h.  */
22749 #ifdef __GNUC__
22750 # define alloca __builtin_alloca
22751 #else
22752 # ifdef _MSC_VER
22753 #  include <malloc.h>
22754 #  define alloca _alloca
22755 # else
22756 #  if HAVE_ALLOCA_H
22757 #   include <alloca.h>
22758 #  else
22759 #   ifdef _AIX
22760  #pragma alloca
22761 #   else
22762 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22763 char *alloca ();
22764 #    endif
22765 #   endif
22766 #  endif
22767 # endif
22768 #endif
22769
22770 int
22771 main ()
22772 {
22773 char *p = (char *) alloca (1);
22774   ;
22775   return 0;
22776 }
22777 _ACEOF
22778 rm -f conftest.$ac_objext conftest$ac_exeext
22779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22780   (eval $ac_link) 2>conftest.er1
22781   ac_status=$?
22782   grep -v '^ *+' conftest.er1 >conftest.err
22783   rm -f conftest.er1
22784   cat conftest.err >&5
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); } &&
22787          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789   (eval $ac_try) 2>&5
22790   ac_status=$?
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); }; } &&
22793          { ac_try='test -s conftest$ac_exeext'
22794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795   (eval $ac_try) 2>&5
22796   ac_status=$?
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); }; }; then
22799   ac_cv_func_alloca_works=yes
22800 else
22801   echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22803
22804 ac_cv_func_alloca_works=no
22805 fi
22806 rm -f conftest.err conftest.$ac_objext \
22807       conftest$ac_exeext conftest.$ac_ext
22808 fi
22809 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22810 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22811
22812 if test $ac_cv_func_alloca_works = yes; then
22813
22814 cat >>confdefs.h <<\_ACEOF
22815 #define HAVE_ALLOCA 1
22816 _ACEOF
22817
22818 else
22819   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22820 # that cause trouble.  Some versions do not even contain alloca or
22821 # contain a buggy version.  If you still want to use their alloca,
22822 # use ar to extract alloca.o from them instead of compiling alloca.c.
22823
22824 ALLOCA=alloca.$ac_objext
22825
22826 cat >>confdefs.h <<\_ACEOF
22827 #define C_ALLOCA 1
22828 _ACEOF
22829
22830
22831 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22832 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22833 if test "${ac_cv_os_cray+set}" = set; then
22834   echo $ECHO_N "(cached) $ECHO_C" >&6
22835 else
22836   cat >conftest.$ac_ext <<_ACEOF
22837 /* confdefs.h.  */
22838 _ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h.  */
22842 #if defined(CRAY) && ! defined(CRAY2)
22843 webecray
22844 #else
22845 wenotbecray
22846 #endif
22847
22848 _ACEOF
22849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22850   $EGREP "webecray" >/dev/null 2>&1; then
22851   ac_cv_os_cray=yes
22852 else
22853   ac_cv_os_cray=no
22854 fi
22855 rm -f conftest*
22856
22857 fi
22858 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22859 echo "${ECHO_T}$ac_cv_os_cray" >&6
22860 if test $ac_cv_os_cray = yes; then
22861   for ac_func in _getb67 GETB67 getb67; do
22862     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22863 echo "$as_me:$LINENO: checking for $ac_func" >&5
22864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22865 if eval "test \"\${$as_ac_var+set}\" = set"; then
22866   echo $ECHO_N "(cached) $ECHO_C" >&6
22867 else
22868   cat >conftest.$ac_ext <<_ACEOF
22869 /* confdefs.h.  */
22870 _ACEOF
22871 cat confdefs.h >>conftest.$ac_ext
22872 cat >>conftest.$ac_ext <<_ACEOF
22873 /* end confdefs.h.  */
22874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22876 #define $ac_func innocuous_$ac_func
22877
22878 /* System header to define __stub macros and hopefully few prototypes,
22879     which can conflict with char $ac_func (); below.
22880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22881     <limits.h> exists even on freestanding compilers.  */
22882
22883 #ifdef __STDC__
22884 # include <limits.h>
22885 #else
22886 # include <assert.h>
22887 #endif
22888
22889 #undef $ac_func
22890
22891 /* Override any gcc2 internal prototype to avoid an error.  */
22892 #ifdef __cplusplus
22893 extern "C"
22894 {
22895 #endif
22896 /* We use char because int might match the return type of a gcc2
22897    builtin and then its argument prototype would still apply.  */
22898 char $ac_func ();
22899 /* The GNU C library defines this for functions which it implements
22900     to always fail with ENOSYS.  Some functions are actually named
22901     something starting with __ and the normal name is an alias.  */
22902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22903 choke me
22904 #else
22905 char (*f) () = $ac_func;
22906 #endif
22907 #ifdef __cplusplus
22908 }
22909 #endif
22910
22911 int
22912 main ()
22913 {
22914 return f != $ac_func;
22915   ;
22916   return 0;
22917 }
22918 _ACEOF
22919 rm -f conftest.$ac_objext conftest$ac_exeext
22920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22921   (eval $ac_link) 2>conftest.er1
22922   ac_status=$?
22923   grep -v '^ *+' conftest.er1 >conftest.err
22924   rm -f conftest.er1
22925   cat conftest.err >&5
22926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927   (exit $ac_status); } &&
22928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930   (eval $ac_try) 2>&5
22931   ac_status=$?
22932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933   (exit $ac_status); }; } &&
22934          { ac_try='test -s conftest$ac_exeext'
22935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936   (eval $ac_try) 2>&5
22937   ac_status=$?
22938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); }; }; then
22940   eval "$as_ac_var=yes"
22941 else
22942   echo "$as_me: failed program was:" >&5
22943 sed 's/^/| /' conftest.$ac_ext >&5
22944
22945 eval "$as_ac_var=no"
22946 fi
22947 rm -f conftest.err conftest.$ac_objext \
22948       conftest$ac_exeext conftest.$ac_ext
22949 fi
22950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22952 if test `eval echo '${'$as_ac_var'}'` = yes; then
22953
22954 cat >>confdefs.h <<_ACEOF
22955 #define CRAY_STACKSEG_END $ac_func
22956 _ACEOF
22957
22958     break
22959 fi
22960
22961   done
22962 fi
22963
22964 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22965 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22966 if test "${ac_cv_c_stack_direction+set}" = set; then
22967   echo $ECHO_N "(cached) $ECHO_C" >&6
22968 else
22969   if test "$cross_compiling" = yes; then
22970   ac_cv_c_stack_direction=0
22971 else
22972   cat >conftest.$ac_ext <<_ACEOF
22973 /* confdefs.h.  */
22974 _ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h.  */
22978 int
22979 find_stack_direction ()
22980 {
22981   static char *addr = 0;
22982   auto char dummy;
22983   if (addr == 0)
22984     {
22985       addr = &dummy;
22986       return find_stack_direction ();
22987     }
22988   else
22989     return (&dummy > addr) ? 1 : -1;
22990 }
22991
22992 int
22993 main ()
22994 {
22995   exit (find_stack_direction () < 0);
22996 }
22997 _ACEOF
22998 rm -f conftest$ac_exeext
22999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23000   (eval $ac_link) 2>&5
23001   ac_status=$?
23002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23005   (eval $ac_try) 2>&5
23006   ac_status=$?
23007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008   (exit $ac_status); }; }; then
23009   ac_cv_c_stack_direction=1
23010 else
23011   echo "$as_me: program exited with status $ac_status" >&5
23012 echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23014
23015 ( exit $ac_status )
23016 ac_cv_c_stack_direction=-1
23017 fi
23018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23019 fi
23020 fi
23021 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23022 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23023
23024 cat >>confdefs.h <<_ACEOF
23025 #define STACK_DIRECTION $ac_cv_c_stack_direction
23026 _ACEOF
23027
23028
23029 fi
23030
23031
23032
23033
23034
23035
23036 ac_header_dirent=no
23037 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23038   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23039 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23040 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23042   echo $ECHO_N "(cached) $ECHO_C" >&6
23043 else
23044   cat >conftest.$ac_ext <<_ACEOF
23045 /* confdefs.h.  */
23046 _ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h.  */
23050 #include <sys/types.h>
23051 #include <$ac_hdr>
23052
23053 int
23054 main ()
23055 {
23056 if ((DIR *) 0)
23057 return 0;
23058   ;
23059   return 0;
23060 }
23061 _ACEOF
23062 rm -f conftest.$ac_objext
23063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23064   (eval $ac_compile) 2>conftest.er1
23065   ac_status=$?
23066   grep -v '^ *+' conftest.er1 >conftest.err
23067   rm -f conftest.er1
23068   cat conftest.err >&5
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); } &&
23071          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073   (eval $ac_try) 2>&5
23074   ac_status=$?
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); }; } &&
23077          { ac_try='test -s conftest.$ac_objext'
23078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079   (eval $ac_try) 2>&5
23080   ac_status=$?
23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082   (exit $ac_status); }; }; then
23083   eval "$as_ac_Header=yes"
23084 else
23085   echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23087
23088 eval "$as_ac_Header=no"
23089 fi
23090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23091 fi
23092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23095   cat >>confdefs.h <<_ACEOF
23096 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23097 _ACEOF
23098
23099 ac_header_dirent=$ac_hdr; break
23100 fi
23101
23102 done
23103 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23104 if test $ac_header_dirent = dirent.h; then
23105   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23106 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23107 if test "${ac_cv_search_opendir+set}" = set; then
23108   echo $ECHO_N "(cached) $ECHO_C" >&6
23109 else
23110   ac_func_search_save_LIBS=$LIBS
23111 ac_cv_search_opendir=no
23112 cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h.  */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h.  */
23118
23119 /* Override any gcc2 internal prototype to avoid an error.  */
23120 #ifdef __cplusplus
23121 extern "C"
23122 #endif
23123 /* We use char because int might match the return type of a gcc2
23124    builtin and then its argument prototype would still apply.  */
23125 char opendir ();
23126 int
23127 main ()
23128 {
23129 opendir ();
23130   ;
23131   return 0;
23132 }
23133 _ACEOF
23134 rm -f conftest.$ac_objext conftest$ac_exeext
23135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23136   (eval $ac_link) 2>conftest.er1
23137   ac_status=$?
23138   grep -v '^ *+' conftest.er1 >conftest.err
23139   rm -f conftest.er1
23140   cat conftest.err >&5
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); } &&
23143          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145   (eval $ac_try) 2>&5
23146   ac_status=$?
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); }; } &&
23149          { ac_try='test -s conftest$ac_exeext'
23150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151   (eval $ac_try) 2>&5
23152   ac_status=$?
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); }; }; then
23155   ac_cv_search_opendir="none required"
23156 else
23157   echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23159
23160 fi
23161 rm -f conftest.err conftest.$ac_objext \
23162       conftest$ac_exeext conftest.$ac_ext
23163 if test "$ac_cv_search_opendir" = no; then
23164   for ac_lib in dir; do
23165     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23166     cat >conftest.$ac_ext <<_ACEOF
23167 /* confdefs.h.  */
23168 _ACEOF
23169 cat confdefs.h >>conftest.$ac_ext
23170 cat >>conftest.$ac_ext <<_ACEOF
23171 /* end confdefs.h.  */
23172
23173 /* Override any gcc2 internal prototype to avoid an error.  */
23174 #ifdef __cplusplus
23175 extern "C"
23176 #endif
23177 /* We use char because int might match the return type of a gcc2
23178    builtin and then its argument prototype would still apply.  */
23179 char opendir ();
23180 int
23181 main ()
23182 {
23183 opendir ();
23184   ;
23185   return 0;
23186 }
23187 _ACEOF
23188 rm -f conftest.$ac_objext conftest$ac_exeext
23189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23190   (eval $ac_link) 2>conftest.er1
23191   ac_status=$?
23192   grep -v '^ *+' conftest.er1 >conftest.err
23193   rm -f conftest.er1
23194   cat conftest.err >&5
23195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196   (exit $ac_status); } &&
23197          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199   (eval $ac_try) 2>&5
23200   ac_status=$?
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); }; } &&
23203          { ac_try='test -s conftest$ac_exeext'
23204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205   (eval $ac_try) 2>&5
23206   ac_status=$?
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); }; }; then
23209   ac_cv_search_opendir="-l$ac_lib"
23210 break
23211 else
23212   echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23214
23215 fi
23216 rm -f conftest.err conftest.$ac_objext \
23217       conftest$ac_exeext conftest.$ac_ext
23218   done
23219 fi
23220 LIBS=$ac_func_search_save_LIBS
23221 fi
23222 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23223 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23224 if test "$ac_cv_search_opendir" != no; then
23225   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23226
23227 fi
23228
23229 else
23230   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23231 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23232 if test "${ac_cv_search_opendir+set}" = set; then
23233   echo $ECHO_N "(cached) $ECHO_C" >&6
23234 else
23235   ac_func_search_save_LIBS=$LIBS
23236 ac_cv_search_opendir=no
23237 cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243
23244 /* Override any gcc2 internal prototype to avoid an error.  */
23245 #ifdef __cplusplus
23246 extern "C"
23247 #endif
23248 /* We use char because int might match the return type of a gcc2
23249    builtin and then its argument prototype would still apply.  */
23250 char opendir ();
23251 int
23252 main ()
23253 {
23254 opendir ();
23255   ;
23256   return 0;
23257 }
23258 _ACEOF
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261   (eval $ac_link) 2>conftest.er1
23262   ac_status=$?
23263   grep -v '^ *+' conftest.er1 >conftest.err
23264   rm -f conftest.er1
23265   cat conftest.err >&5
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); } &&
23268          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270   (eval $ac_try) 2>&5
23271   ac_status=$?
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); }; } &&
23274          { ac_try='test -s conftest$ac_exeext'
23275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276   (eval $ac_try) 2>&5
23277   ac_status=$?
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); }; }; then
23280   ac_cv_search_opendir="none required"
23281 else
23282   echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23284
23285 fi
23286 rm -f conftest.err conftest.$ac_objext \
23287       conftest$ac_exeext conftest.$ac_ext
23288 if test "$ac_cv_search_opendir" = no; then
23289   for ac_lib in x; do
23290     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23291     cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h.  */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h.  */
23297
23298 /* Override any gcc2 internal prototype to avoid an error.  */
23299 #ifdef __cplusplus
23300 extern "C"
23301 #endif
23302 /* We use char because int might match the return type of a gcc2
23303    builtin and then its argument prototype would still apply.  */
23304 char opendir ();
23305 int
23306 main ()
23307 {
23308 opendir ();
23309   ;
23310   return 0;
23311 }
23312 _ACEOF
23313 rm -f conftest.$ac_objext conftest$ac_exeext
23314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23315   (eval $ac_link) 2>conftest.er1
23316   ac_status=$?
23317   grep -v '^ *+' conftest.er1 >conftest.err
23318   rm -f conftest.er1
23319   cat conftest.err >&5
23320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321   (exit $ac_status); } &&
23322          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324   (eval $ac_try) 2>&5
23325   ac_status=$?
23326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327   (exit $ac_status); }; } &&
23328          { ac_try='test -s conftest$ac_exeext'
23329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330   (eval $ac_try) 2>&5
23331   ac_status=$?
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); }; }; then
23334   ac_cv_search_opendir="-l$ac_lib"
23335 break
23336 else
23337   echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23339
23340 fi
23341 rm -f conftest.err conftest.$ac_objext \
23342       conftest$ac_exeext conftest.$ac_ext
23343   done
23344 fi
23345 LIBS=$ac_func_search_save_LIBS
23346 fi
23347 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23348 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23349 if test "$ac_cv_search_opendir" != no; then
23350   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23351
23352 fi
23353
23354 fi
23355
23356 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23357 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
23358 if test "${ac_cv_func_closedir_void+set}" = set; then
23359   echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361   if test "$cross_compiling" = yes; then
23362   ac_cv_func_closedir_void=yes
23363 else
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_dirent>
23372 #ifndef __cplusplus
23373 int closedir ();
23374 #endif
23375
23376 int
23377 main ()
23378 {
23379 exit (closedir (opendir (".")) != 0);
23380   ;
23381   return 0;
23382 }
23383 _ACEOF
23384 rm -f conftest$ac_exeext
23385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23386   (eval $ac_link) 2>&5
23387   ac_status=$?
23388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391   (eval $ac_try) 2>&5
23392   ac_status=$?
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); }; }; then
23395   ac_cv_func_closedir_void=no
23396 else
23397   echo "$as_me: program exited with status $ac_status" >&5
23398 echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23400
23401 ( exit $ac_status )
23402 ac_cv_func_closedir_void=yes
23403 fi
23404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23405 fi
23406 fi
23407 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23408 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
23409 if test $ac_cv_func_closedir_void = yes; then
23410
23411 cat >>confdefs.h <<\_ACEOF
23412 #define CLOSEDIR_VOID 1
23413 _ACEOF
23414
23415 fi
23416
23417 echo "$as_me:$LINENO: checking for error_at_line" >&5
23418 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
23419 if test "${ac_cv_lib_error_at_line+set}" = set; then
23420   echo $ECHO_N "(cached) $ECHO_C" >&6
23421 else
23422   cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h.  */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h.  */
23428 $ac_includes_default
23429 int
23430 main ()
23431 {
23432 error_at_line (0, 0, "", 0, "");
23433   ;
23434   return 0;
23435 }
23436 _ACEOF
23437 rm -f conftest.$ac_objext conftest$ac_exeext
23438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23439   (eval $ac_link) 2>conftest.er1
23440   ac_status=$?
23441   grep -v '^ *+' conftest.er1 >conftest.err
23442   rm -f conftest.er1
23443   cat conftest.err >&5
23444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445   (exit $ac_status); } &&
23446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23448   (eval $ac_try) 2>&5
23449   ac_status=$?
23450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451   (exit $ac_status); }; } &&
23452          { ac_try='test -s conftest$ac_exeext'
23453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454   (eval $ac_try) 2>&5
23455   ac_status=$?
23456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457   (exit $ac_status); }; }; then
23458   ac_cv_lib_error_at_line=yes
23459 else
23460   echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23462
23463 ac_cv_lib_error_at_line=no
23464 fi
23465 rm -f conftest.err conftest.$ac_objext \
23466       conftest$ac_exeext conftest.$ac_ext
23467 fi
23468 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23469 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
23470 if test $ac_cv_lib_error_at_line = no; then
23471   case $LIBOBJS in
23472     "error.$ac_objext"   | \
23473   *" error.$ac_objext"   | \
23474     "error.$ac_objext "* | \
23475   *" error.$ac_objext "* ) ;;
23476   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
23477 esac
23478
23479 fi
23480
23481
23482
23483 for ac_header in unistd.h vfork.h
23484 do
23485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23487   echo "$as_me:$LINENO: checking for $ac_header" >&5
23488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23490   echo $ECHO_N "(cached) $ECHO_C" >&6
23491 fi
23492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23494 else
23495   # Is the header compilable?
23496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23498 cat >conftest.$ac_ext <<_ACEOF
23499 /* confdefs.h.  */
23500 _ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h.  */
23504 $ac_includes_default
23505 #include <$ac_header>
23506 _ACEOF
23507 rm -f conftest.$ac_objext
23508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23509   (eval $ac_compile) 2>conftest.er1
23510   ac_status=$?
23511   grep -v '^ *+' conftest.er1 >conftest.err
23512   rm -f conftest.er1
23513   cat conftest.err >&5
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); } &&
23516          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518   (eval $ac_try) 2>&5
23519   ac_status=$?
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); }; } &&
23522          { ac_try='test -s conftest.$ac_objext'
23523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524   (eval $ac_try) 2>&5
23525   ac_status=$?
23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); }; }; then
23528   ac_header_compiler=yes
23529 else
23530   echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533 ac_header_compiler=no
23534 fi
23535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23537 echo "${ECHO_T}$ac_header_compiler" >&6
23538
23539 # Is the header present?
23540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23542 cat >conftest.$ac_ext <<_ACEOF
23543 /* confdefs.h.  */
23544 _ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h.  */
23548 #include <$ac_header>
23549 _ACEOF
23550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23551   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23552   ac_status=$?
23553   grep -v '^ *+' conftest.er1 >conftest.err
23554   rm -f conftest.er1
23555   cat conftest.err >&5
23556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557   (exit $ac_status); } >/dev/null; then
23558   if test -s conftest.err; then
23559     ac_cpp_err=$ac_c_preproc_warn_flag
23560     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23561   else
23562     ac_cpp_err=
23563   fi
23564 else
23565   ac_cpp_err=yes
23566 fi
23567 if test -z "$ac_cpp_err"; then
23568   ac_header_preproc=yes
23569 else
23570   echo "$as_me: failed program was:" >&5
23571 sed 's/^/| /' conftest.$ac_ext >&5
23572
23573   ac_header_preproc=no
23574 fi
23575 rm -f conftest.err conftest.$ac_ext
23576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23577 echo "${ECHO_T}$ac_header_preproc" >&6
23578
23579 # So?  What about this header?
23580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23581   yes:no: )
23582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23586     ac_header_preproc=yes
23587     ;;
23588   no:yes:* )
23589     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23591     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23592 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23593     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23595     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23596 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23599     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23601     (
23602       cat <<\_ASBOX
23603 ## ------------------------------- ##
23604 ## Report this to nfs@lists.sf.net ##
23605 ## ------------------------------- ##
23606 _ASBOX
23607     ) |
23608       sed "s/^/$as_me: WARNING:     /" >&2
23609     ;;
23610 esac
23611 echo "$as_me:$LINENO: checking for $ac_header" >&5
23612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23614   echo $ECHO_N "(cached) $ECHO_C" >&6
23615 else
23616   eval "$as_ac_Header=\$ac_header_preproc"
23617 fi
23618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23620
23621 fi
23622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23623   cat >>confdefs.h <<_ACEOF
23624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23625 _ACEOF
23626
23627 fi
23628
23629 done
23630
23631
23632
23633 for ac_func in fork vfork
23634 do
23635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23636 echo "$as_me:$LINENO: checking for $ac_func" >&5
23637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23638 if eval "test \"\${$as_ac_var+set}\" = set"; then
23639   echo $ECHO_N "(cached) $ECHO_C" >&6
23640 else
23641   cat >conftest.$ac_ext <<_ACEOF
23642 /* confdefs.h.  */
23643 _ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h.  */
23647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23649 #define $ac_func innocuous_$ac_func
23650
23651 /* System header to define __stub macros and hopefully few prototypes,
23652     which can conflict with char $ac_func (); below.
23653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23654     <limits.h> exists even on freestanding compilers.  */
23655
23656 #ifdef __STDC__
23657 # include <limits.h>
23658 #else
23659 # include <assert.h>
23660 #endif
23661
23662 #undef $ac_func
23663
23664 /* Override any gcc2 internal prototype to avoid an error.  */
23665 #ifdef __cplusplus
23666 extern "C"
23667 {
23668 #endif
23669 /* We use char because int might match the return type of a gcc2
23670    builtin and then its argument prototype would still apply.  */
23671 char $ac_func ();
23672 /* The GNU C library defines this for functions which it implements
23673     to always fail with ENOSYS.  Some functions are actually named
23674     something starting with __ and the normal name is an alias.  */
23675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23676 choke me
23677 #else
23678 char (*f) () = $ac_func;
23679 #endif
23680 #ifdef __cplusplus
23681 }
23682 #endif
23683
23684 int
23685 main ()
23686 {
23687 return f != $ac_func;
23688   ;
23689   return 0;
23690 }
23691 _ACEOF
23692 rm -f conftest.$ac_objext conftest$ac_exeext
23693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23694   (eval $ac_link) 2>conftest.er1
23695   ac_status=$?
23696   grep -v '^ *+' conftest.er1 >conftest.err
23697   rm -f conftest.er1
23698   cat conftest.err >&5
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); } &&
23701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23703   (eval $ac_try) 2>&5
23704   ac_status=$?
23705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706   (exit $ac_status); }; } &&
23707          { ac_try='test -s conftest$ac_exeext'
23708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709   (eval $ac_try) 2>&5
23710   ac_status=$?
23711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712   (exit $ac_status); }; }; then
23713   eval "$as_ac_var=yes"
23714 else
23715   echo "$as_me: failed program was:" >&5
23716 sed 's/^/| /' conftest.$ac_ext >&5
23717
23718 eval "$as_ac_var=no"
23719 fi
23720 rm -f conftest.err conftest.$ac_objext \
23721       conftest$ac_exeext conftest.$ac_ext
23722 fi
23723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23725 if test `eval echo '${'$as_ac_var'}'` = yes; then
23726   cat >>confdefs.h <<_ACEOF
23727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23728 _ACEOF
23729
23730 fi
23731 done
23732
23733 if test "x$ac_cv_func_fork" = xyes; then
23734   echo "$as_me:$LINENO: checking for working fork" >&5
23735 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23736 if test "${ac_cv_func_fork_works+set}" = set; then
23737   echo $ECHO_N "(cached) $ECHO_C" >&6
23738 else
23739   if test "$cross_compiling" = yes; then
23740   ac_cv_func_fork_works=cross
23741 else
23742   cat >conftest.$ac_ext <<_ACEOF
23743 /* confdefs.h.  */
23744 _ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h.  */
23748 $ac_includes_default
23749 int
23750 main ()
23751 {
23752
23753           /* By Ruediger Kuhlmann. */
23754           if (fork() < 0)
23755             exit (1);
23756           exit (0);
23757
23758   ;
23759   return 0;
23760 }
23761 _ACEOF
23762 rm -f conftest$ac_exeext
23763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23764   (eval $ac_link) 2>&5
23765   ac_status=$?
23766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23769   (eval $ac_try) 2>&5
23770   ac_status=$?
23771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772   (exit $ac_status); }; }; then
23773   ac_cv_func_fork_works=yes
23774 else
23775   echo "$as_me: program exited with status $ac_status" >&5
23776 echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23778
23779 ( exit $ac_status )
23780 ac_cv_func_fork_works=no
23781 fi
23782 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23783 fi
23784 fi
23785 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23786 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23787
23788 else
23789   ac_cv_func_fork_works=$ac_cv_func_fork
23790 fi
23791 if test "x$ac_cv_func_fork_works" = xcross; then
23792   case $host in
23793     *-*-amigaos* | *-*-msdosdjgpp*)
23794       # Override, as these systems have only a dummy fork() stub
23795       ac_cv_func_fork_works=no
23796       ;;
23797     *)
23798       ac_cv_func_fork_works=yes
23799       ;;
23800   esac
23801   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23802 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23803 fi
23804 ac_cv_func_vfork_works=$ac_cv_func_vfork
23805 if test "x$ac_cv_func_vfork" = xyes; then
23806   echo "$as_me:$LINENO: checking for working vfork" >&5
23807 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23808 if test "${ac_cv_func_vfork_works+set}" = set; then
23809   echo $ECHO_N "(cached) $ECHO_C" >&6
23810 else
23811   if test "$cross_compiling" = yes; then
23812   ac_cv_func_vfork_works=cross
23813 else
23814   cat >conftest.$ac_ext <<_ACEOF
23815 /* confdefs.h.  */
23816 _ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h.  */
23820 /* Thanks to Paul Eggert for this test.  */
23821 #include <stdio.h>
23822 #include <stdlib.h>
23823 #include <sys/types.h>
23824 #include <sys/stat.h>
23825 #include <sys/wait.h>
23826 #if HAVE_UNISTD_H
23827 # include <unistd.h>
23828 #endif
23829 #if HAVE_VFORK_H
23830 # include <vfork.h>
23831 #endif
23832 /* On some sparc systems, changes by the child to local and incoming
23833    argument registers are propagated back to the parent.  The compiler
23834    is told about this with #include <vfork.h>, but some compilers
23835    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
23836    static variable whose address is put into a register that is
23837    clobbered by the vfork.  */
23838 static void
23839 #ifdef __cplusplus
23840 sparc_address_test (int arg)
23841 # else
23842 sparc_address_test (arg) int arg;
23843 #endif
23844 {
23845   static pid_t child;
23846   if (!child) {
23847     child = vfork ();
23848     if (child < 0) {
23849       perror ("vfork");
23850       _exit(2);
23851     }
23852     if (!child) {
23853       arg = getpid();
23854       write(-1, "", 0);
23855       _exit (arg);
23856     }
23857   }
23858 }
23859
23860 int
23861 main ()
23862 {
23863   pid_t parent = getpid ();
23864   pid_t child;
23865
23866   sparc_address_test (0);
23867
23868   child = vfork ();
23869
23870   if (child == 0) {
23871     /* Here is another test for sparc vfork register problems.  This
23872        test uses lots of local variables, at least as many local
23873        variables as main has allocated so far including compiler
23874        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
23875        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
23876        reuse the register of parent for one of the local variables,
23877        since it will think that parent can't possibly be used any more
23878        in this routine.  Assigning to the local variable will thus
23879        munge parent in the parent process.  */
23880     pid_t
23881       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23882       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23883     /* Convince the compiler that p..p7 are live; otherwise, it might
23884        use the same hardware register for all 8 local variables.  */
23885     if (p != p1 || p != p2 || p != p3 || p != p4
23886         || p != p5 || p != p6 || p != p7)
23887       _exit(1);
23888
23889     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23890        from child file descriptors.  If the child closes a descriptor
23891        before it execs or exits, this munges the parent's descriptor
23892        as well.  Test for this by closing stdout in the child.  */
23893     _exit(close(fileno(stdout)) != 0);
23894   } else {
23895     int status;
23896     struct stat st;
23897
23898     while (wait(&status) != child)
23899       ;
23900     exit(
23901          /* Was there some problem with vforking?  */
23902          child < 0
23903
23904          /* Did the child fail?  (This shouldn't happen.)  */
23905          || status
23906
23907          /* Did the vfork/compiler bug occur?  */
23908          || parent != getpid()
23909
23910          /* Did the file descriptor bug occur?  */
23911          || fstat(fileno(stdout), &st) != 0
23912          );
23913   }
23914 }
23915 _ACEOF
23916 rm -f conftest$ac_exeext
23917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23918   (eval $ac_link) 2>&5
23919   ac_status=$?
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923   (eval $ac_try) 2>&5
23924   ac_status=$?
23925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926   (exit $ac_status); }; }; then
23927   ac_cv_func_vfork_works=yes
23928 else
23929   echo "$as_me: program exited with status $ac_status" >&5
23930 echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23932
23933 ( exit $ac_status )
23934 ac_cv_func_vfork_works=no
23935 fi
23936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23937 fi
23938 fi
23939 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23940 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23941
23942 fi;
23943 if test "x$ac_cv_func_fork_works" = xcross; then
23944   ac_cv_func_vfork_works=$ac_cv_func_vfork
23945   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23946 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23947 fi
23948
23949 if test "x$ac_cv_func_vfork_works" = xyes; then
23950
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_WORKING_VFORK 1
23953 _ACEOF
23954
23955 else
23956
23957 cat >>confdefs.h <<\_ACEOF
23958 #define vfork fork
23959 _ACEOF
23960
23961 fi
23962 if test "x$ac_cv_func_fork_works" = xyes; then
23963
23964 cat >>confdefs.h <<\_ACEOF
23965 #define HAVE_WORKING_FORK 1
23966 _ACEOF
23967
23968 fi
23969
23970 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
23971 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
23972 if test "${ac_cv_type_getgroups+set}" = set; then
23973   echo $ECHO_N "(cached) $ECHO_C" >&6
23974 else
23975   if test "$cross_compiling" = yes; then
23976   ac_cv_type_getgroups=cross
23977 else
23978   cat >conftest.$ac_ext <<_ACEOF
23979 /* confdefs.h.  */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h.  */
23984 /* Thanks to Mike Rendell for this test.  */
23985 #include <sys/types.h>
23986 #define NGID 256
23987 #undef MAX
23988 #define MAX(x, y) ((x) > (y) ? (x) : (y))
23989
23990 int
23991 main ()
23992 {
23993   gid_t gidset[NGID];
23994   int i, n;
23995   union { gid_t gval; long lval; }  val;
23996
23997   val.lval = -1;
23998   for (i = 0; i < NGID; i++)
23999     gidset[i] = val.gval;
24000   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24001                  gidset);
24002   /* Exit non-zero if getgroups seems to require an array of ints.  This
24003      happens when gid_t is short but getgroups modifies an array of ints.  */
24004   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
24005 }
24006 _ACEOF
24007 rm -f conftest$ac_exeext
24008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24009   (eval $ac_link) 2>&5
24010   ac_status=$?
24011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014   (eval $ac_try) 2>&5
24015   ac_status=$?
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); }; }; then
24018   ac_cv_type_getgroups=gid_t
24019 else
24020   echo "$as_me: program exited with status $ac_status" >&5
24021 echo "$as_me: failed program was:" >&5
24022 sed 's/^/| /' conftest.$ac_ext >&5
24023
24024 ( exit $ac_status )
24025 ac_cv_type_getgroups=int
24026 fi
24027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24028 fi
24029 if test $ac_cv_type_getgroups = cross; then
24030         cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h.  */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h.  */
24036 #include <unistd.h>
24037
24038 _ACEOF
24039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24040   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24041   ac_cv_type_getgroups=gid_t
24042 else
24043   ac_cv_type_getgroups=int
24044 fi
24045 rm -f conftest*
24046
24047 fi
24048 fi
24049 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24050 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
24051
24052 cat >>confdefs.h <<_ACEOF
24053 #define GETGROUPS_T $ac_cv_type_getgroups
24054 _ACEOF
24055
24056
24057 echo "$as_me:$LINENO: checking for getgroups" >&5
24058 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
24059 if test "${ac_cv_func_getgroups+set}" = set; then
24060   echo $ECHO_N "(cached) $ECHO_C" >&6
24061 else
24062   cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h.  */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h.  */
24068 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24070 #define getgroups innocuous_getgroups
24071
24072 /* System header to define __stub macros and hopefully few prototypes,
24073     which can conflict with char getgroups (); below.
24074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24075     <limits.h> exists even on freestanding compilers.  */
24076
24077 #ifdef __STDC__
24078 # include <limits.h>
24079 #else
24080 # include <assert.h>
24081 #endif
24082
24083 #undef getgroups
24084
24085 /* Override any gcc2 internal prototype to avoid an error.  */
24086 #ifdef __cplusplus
24087 extern "C"
24088 {
24089 #endif
24090 /* We use char because int might match the return type of a gcc2
24091    builtin and then its argument prototype would still apply.  */
24092 char getgroups ();
24093 /* The GNU C library defines this for functions which it implements
24094     to always fail with ENOSYS.  Some functions are actually named
24095     something starting with __ and the normal name is an alias.  */
24096 #if defined (__stub_getgroups) || defined (__stub___getgroups)
24097 choke me
24098 #else
24099 char (*f) () = getgroups;
24100 #endif
24101 #ifdef __cplusplus
24102 }
24103 #endif
24104
24105 int
24106 main ()
24107 {
24108 return f != getgroups;
24109   ;
24110   return 0;
24111 }
24112 _ACEOF
24113 rm -f conftest.$ac_objext conftest$ac_exeext
24114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24115   (eval $ac_link) 2>conftest.er1
24116   ac_status=$?
24117   grep -v '^ *+' conftest.er1 >conftest.err
24118   rm -f conftest.er1
24119   cat conftest.err >&5
24120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121   (exit $ac_status); } &&
24122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124   (eval $ac_try) 2>&5
24125   ac_status=$?
24126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127   (exit $ac_status); }; } &&
24128          { ac_try='test -s conftest$ac_exeext'
24129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130   (eval $ac_try) 2>&5
24131   ac_status=$?
24132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133   (exit $ac_status); }; }; then
24134   ac_cv_func_getgroups=yes
24135 else
24136   echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139 ac_cv_func_getgroups=no
24140 fi
24141 rm -f conftest.err conftest.$ac_objext \
24142       conftest$ac_exeext conftest.$ac_ext
24143 fi
24144 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
24145 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
24146
24147
24148 # If we don't yet have getgroups, see if it's in -lbsd.
24149 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24150 ac_save_LIBS=$LIBS
24151 if test $ac_cv_func_getgroups = no; then
24152   echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
24153 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
24154 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
24155   echo $ECHO_N "(cached) $ECHO_C" >&6
24156 else
24157   ac_check_lib_save_LIBS=$LIBS
24158 LIBS="-lbsd  $LIBS"
24159 cat >conftest.$ac_ext <<_ACEOF
24160 /* confdefs.h.  */
24161 _ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h.  */
24165
24166 /* Override any gcc2 internal prototype to avoid an error.  */
24167 #ifdef __cplusplus
24168 extern "C"
24169 #endif
24170 /* We use char because int might match the return type of a gcc2
24171    builtin and then its argument prototype would still apply.  */
24172 char getgroups ();
24173 int
24174 main ()
24175 {
24176 getgroups ();
24177   ;
24178   return 0;
24179 }
24180 _ACEOF
24181 rm -f conftest.$ac_objext conftest$ac_exeext
24182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24183   (eval $ac_link) 2>conftest.er1
24184   ac_status=$?
24185   grep -v '^ *+' conftest.er1 >conftest.err
24186   rm -f conftest.er1
24187   cat conftest.err >&5
24188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189   (exit $ac_status); } &&
24190          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192   (eval $ac_try) 2>&5
24193   ac_status=$?
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); }; } &&
24196          { ac_try='test -s conftest$ac_exeext'
24197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198   (eval $ac_try) 2>&5
24199   ac_status=$?
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); }; }; then
24202   ac_cv_lib_bsd_getgroups=yes
24203 else
24204   echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24206
24207 ac_cv_lib_bsd_getgroups=no
24208 fi
24209 rm -f conftest.err conftest.$ac_objext \
24210       conftest$ac_exeext conftest.$ac_ext
24211 LIBS=$ac_check_lib_save_LIBS
24212 fi
24213 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
24214 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
24215 if test $ac_cv_lib_bsd_getgroups = yes; then
24216   GETGROUPS_LIB=-lbsd
24217 fi
24218
24219 fi
24220
24221 # Run the program to test the functionality of the system-supplied
24222 # getgroups function only if there is such a function.
24223 if test $ac_cv_func_getgroups = yes; then
24224   echo "$as_me:$LINENO: checking for working getgroups" >&5
24225 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
24226 if test "${ac_cv_func_getgroups_works+set}" = set; then
24227   echo $ECHO_N "(cached) $ECHO_C" >&6
24228 else
24229   if test "$cross_compiling" = yes; then
24230   ac_cv_func_getgroups_works=no
24231 else
24232   cat >conftest.$ac_ext <<_ACEOF
24233 /* confdefs.h.  */
24234 _ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h.  */
24238 $ac_includes_default
24239 int
24240 main ()
24241 {
24242 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
24243        exit (getgroups (0, 0) == -1 ? 1 : 0);
24244   ;
24245   return 0;
24246 }
24247 _ACEOF
24248 rm -f conftest$ac_exeext
24249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24250   (eval $ac_link) 2>&5
24251   ac_status=$?
24252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24255   (eval $ac_try) 2>&5
24256   ac_status=$?
24257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); }; }; then
24259   ac_cv_func_getgroups_works=yes
24260 else
24261   echo "$as_me: program exited with status $ac_status" >&5
24262 echo "$as_me: failed program was:" >&5
24263 sed 's/^/| /' conftest.$ac_ext >&5
24264
24265 ( exit $ac_status )
24266 ac_cv_func_getgroups_works=no
24267 fi
24268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24269 fi
24270
24271 fi
24272 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
24273 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
24274   if test $ac_cv_func_getgroups_works = yes; then
24275
24276 cat >>confdefs.h <<\_ACEOF
24277 #define HAVE_GETGROUPS 1
24278 _ACEOF
24279
24280   fi
24281 fi
24282 LIBS=$ac_save_LIBS
24283
24284 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
24285 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
24286 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
24287 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
24288   echo $ECHO_N "(cached) $ECHO_C" >&6
24289 else
24290   ac_check_lib_save_LIBS=$LIBS
24291 LIBS="-lsun  $LIBS"
24292 cat >conftest.$ac_ext <<_ACEOF
24293 /* confdefs.h.  */
24294 _ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h.  */
24298
24299 /* Override any gcc2 internal prototype to avoid an error.  */
24300 #ifdef __cplusplus
24301 extern "C"
24302 #endif
24303 /* We use char because int might match the return type of a gcc2
24304    builtin and then its argument prototype would still apply.  */
24305 char getmntent ();
24306 int
24307 main ()
24308 {
24309 getmntent ();
24310   ;
24311   return 0;
24312 }
24313 _ACEOF
24314 rm -f conftest.$ac_objext conftest$ac_exeext
24315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24316   (eval $ac_link) 2>conftest.er1
24317   ac_status=$?
24318   grep -v '^ *+' conftest.er1 >conftest.err
24319   rm -f conftest.er1
24320   cat conftest.err >&5
24321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322   (exit $ac_status); } &&
24323          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325   (eval $ac_try) 2>&5
24326   ac_status=$?
24327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328   (exit $ac_status); }; } &&
24329          { ac_try='test -s conftest$ac_exeext'
24330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24331   (eval $ac_try) 2>&5
24332   ac_status=$?
24333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334   (exit $ac_status); }; }; then
24335   ac_cv_lib_sun_getmntent=yes
24336 else
24337   echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24339
24340 ac_cv_lib_sun_getmntent=no
24341 fi
24342 rm -f conftest.err conftest.$ac_objext \
24343       conftest$ac_exeext conftest.$ac_ext
24344 LIBS=$ac_check_lib_save_LIBS
24345 fi
24346 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
24347 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
24348 if test $ac_cv_lib_sun_getmntent = yes; then
24349   LIBS="-lsun $LIBS"
24350 else
24351   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
24352 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
24353 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
24354   echo $ECHO_N "(cached) $ECHO_C" >&6
24355 else
24356   ac_check_lib_save_LIBS=$LIBS
24357 LIBS="-lseq  $LIBS"
24358 cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h.  */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h.  */
24364
24365 /* Override any gcc2 internal prototype to avoid an error.  */
24366 #ifdef __cplusplus
24367 extern "C"
24368 #endif
24369 /* We use char because int might match the return type of a gcc2
24370    builtin and then its argument prototype would still apply.  */
24371 char getmntent ();
24372 int
24373 main ()
24374 {
24375 getmntent ();
24376   ;
24377   return 0;
24378 }
24379 _ACEOF
24380 rm -f conftest.$ac_objext conftest$ac_exeext
24381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24382   (eval $ac_link) 2>conftest.er1
24383   ac_status=$?
24384   grep -v '^ *+' conftest.er1 >conftest.err
24385   rm -f conftest.er1
24386   cat conftest.err >&5
24387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388   (exit $ac_status); } &&
24389          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24391   (eval $ac_try) 2>&5
24392   ac_status=$?
24393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394   (exit $ac_status); }; } &&
24395          { ac_try='test -s conftest$ac_exeext'
24396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24397   (eval $ac_try) 2>&5
24398   ac_status=$?
24399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400   (exit $ac_status); }; }; then
24401   ac_cv_lib_seq_getmntent=yes
24402 else
24403   echo "$as_me: failed program was:" >&5
24404 sed 's/^/| /' conftest.$ac_ext >&5
24405
24406 ac_cv_lib_seq_getmntent=no
24407 fi
24408 rm -f conftest.err conftest.$ac_objext \
24409       conftest$ac_exeext conftest.$ac_ext
24410 LIBS=$ac_check_lib_save_LIBS
24411 fi
24412 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
24413 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
24414 if test $ac_cv_lib_seq_getmntent = yes; then
24415   LIBS="-lseq $LIBS"
24416 else
24417   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
24418 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
24419 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
24420   echo $ECHO_N "(cached) $ECHO_C" >&6
24421 else
24422   ac_check_lib_save_LIBS=$LIBS
24423 LIBS="-lgen  $LIBS"
24424 cat >conftest.$ac_ext <<_ACEOF
24425 /* confdefs.h.  */
24426 _ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h.  */
24430
24431 /* Override any gcc2 internal prototype to avoid an error.  */
24432 #ifdef __cplusplus
24433 extern "C"
24434 #endif
24435 /* We use char because int might match the return type of a gcc2
24436    builtin and then its argument prototype would still apply.  */
24437 char getmntent ();
24438 int
24439 main ()
24440 {
24441 getmntent ();
24442   ;
24443   return 0;
24444 }
24445 _ACEOF
24446 rm -f conftest.$ac_objext conftest$ac_exeext
24447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24448   (eval $ac_link) 2>conftest.er1
24449   ac_status=$?
24450   grep -v '^ *+' conftest.er1 >conftest.err
24451   rm -f conftest.er1
24452   cat conftest.err >&5
24453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454   (exit $ac_status); } &&
24455          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457   (eval $ac_try) 2>&5
24458   ac_status=$?
24459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460   (exit $ac_status); }; } &&
24461          { ac_try='test -s conftest$ac_exeext'
24462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463   (eval $ac_try) 2>&5
24464   ac_status=$?
24465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466   (exit $ac_status); }; }; then
24467   ac_cv_lib_gen_getmntent=yes
24468 else
24469   echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24471
24472 ac_cv_lib_gen_getmntent=no
24473 fi
24474 rm -f conftest.err conftest.$ac_objext \
24475       conftest$ac_exeext conftest.$ac_ext
24476 LIBS=$ac_check_lib_save_LIBS
24477 fi
24478 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
24479 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
24480 if test $ac_cv_lib_gen_getmntent = yes; then
24481   LIBS="-lgen $LIBS"
24482 fi
24483
24484 fi
24485
24486 fi
24487
24488
24489 for ac_func in getmntent
24490 do
24491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24492 echo "$as_me:$LINENO: checking for $ac_func" >&5
24493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24494 if eval "test \"\${$as_ac_var+set}\" = set"; then
24495   echo $ECHO_N "(cached) $ECHO_C" >&6
24496 else
24497   cat >conftest.$ac_ext <<_ACEOF
24498 /* confdefs.h.  */
24499 _ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h.  */
24503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24505 #define $ac_func innocuous_$ac_func
24506
24507 /* System header to define __stub macros and hopefully few prototypes,
24508     which can conflict with char $ac_func (); below.
24509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24510     <limits.h> exists even on freestanding compilers.  */
24511
24512 #ifdef __STDC__
24513 # include <limits.h>
24514 #else
24515 # include <assert.h>
24516 #endif
24517
24518 #undef $ac_func
24519
24520 /* Override any gcc2 internal prototype to avoid an error.  */
24521 #ifdef __cplusplus
24522 extern "C"
24523 {
24524 #endif
24525 /* We use char because int might match the return type of a gcc2
24526    builtin and then its argument prototype would still apply.  */
24527 char $ac_func ();
24528 /* The GNU C library defines this for functions which it implements
24529     to always fail with ENOSYS.  Some functions are actually named
24530     something starting with __ and the normal name is an alias.  */
24531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24532 choke me
24533 #else
24534 char (*f) () = $ac_func;
24535 #endif
24536 #ifdef __cplusplus
24537 }
24538 #endif
24539
24540 int
24541 main ()
24542 {
24543 return f != $ac_func;
24544   ;
24545   return 0;
24546 }
24547 _ACEOF
24548 rm -f conftest.$ac_objext conftest$ac_exeext
24549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24550   (eval $ac_link) 2>conftest.er1
24551   ac_status=$?
24552   grep -v '^ *+' conftest.er1 >conftest.err
24553   rm -f conftest.er1
24554   cat conftest.err >&5
24555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556   (exit $ac_status); } &&
24557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559   (eval $ac_try) 2>&5
24560   ac_status=$?
24561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562   (exit $ac_status); }; } &&
24563          { ac_try='test -s conftest$ac_exeext'
24564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565   (eval $ac_try) 2>&5
24566   ac_status=$?
24567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568   (exit $ac_status); }; }; then
24569   eval "$as_ac_var=yes"
24570 else
24571   echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24573
24574 eval "$as_ac_var=no"
24575 fi
24576 rm -f conftest.err conftest.$ac_objext \
24577       conftest$ac_exeext conftest.$ac_ext
24578 fi
24579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24581 if test `eval echo '${'$as_ac_var'}'` = yes; then
24582   cat >>confdefs.h <<_ACEOF
24583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24584 _ACEOF
24585
24586 fi
24587 done
24588
24589
24590 if test $ac_cv_c_compiler_gnu = yes; then
24591     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24592 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
24593 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24594   echo $ECHO_N "(cached) $ECHO_C" >&6
24595 else
24596     ac_pattern="Autoconf.*'x'"
24597   cat >conftest.$ac_ext <<_ACEOF
24598 /* confdefs.h.  */
24599 _ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h.  */
24603 #include <sgtty.h>
24604 Autoconf TIOCGETP
24605 _ACEOF
24606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24607   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24608   ac_cv_prog_gcc_traditional=yes
24609 else
24610   ac_cv_prog_gcc_traditional=no
24611 fi
24612 rm -f conftest*
24613
24614
24615   if test $ac_cv_prog_gcc_traditional = no; then
24616     cat >conftest.$ac_ext <<_ACEOF
24617 /* confdefs.h.  */
24618 _ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h.  */
24622 #include <termio.h>
24623 Autoconf TCGETA
24624 _ACEOF
24625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24626   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24627   ac_cv_prog_gcc_traditional=yes
24628 fi
24629 rm -f conftest*
24630
24631   fi
24632 fi
24633 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24634 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
24635   if test $ac_cv_prog_gcc_traditional = yes; then
24636     CC="$CC -traditional"
24637   fi
24638 fi
24639
24640 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24641 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24642 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24643   echo $ECHO_N "(cached) $ECHO_C" >&6
24644 else
24645   rm -f conftest.sym conftest.file
24646 echo >conftest.file
24647 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24648   if test "$cross_compiling" = yes; then
24649   ac_cv_func_lstat_dereferences_slashed_symlink=no
24650 else
24651   cat >conftest.$ac_ext <<_ACEOF
24652 /* confdefs.h.  */
24653 _ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h.  */
24657 $ac_includes_default
24658 int
24659 main ()
24660 {
24661 struct stat sbuf;
24662      /* Linux will dereference the symlink and fail.
24663         That is better in the sense that it means we will not
24664         have to compile and use the lstat wrapper.  */
24665      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24666   ;
24667   return 0;
24668 }
24669 _ACEOF
24670 rm -f conftest$ac_exeext
24671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24672   (eval $ac_link) 2>&5
24673   ac_status=$?
24674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677   (eval $ac_try) 2>&5
24678   ac_status=$?
24679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680   (exit $ac_status); }; }; then
24681   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24682 else
24683   echo "$as_me: program exited with status $ac_status" >&5
24684 echo "$as_me: failed program was:" >&5
24685 sed 's/^/| /' conftest.$ac_ext >&5
24686
24687 ( exit $ac_status )
24688 ac_cv_func_lstat_dereferences_slashed_symlink=no
24689 fi
24690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24691 fi
24692 else
24693   # If the `ln -s' command failed, then we probably don't even
24694   # have an lstat function.
24695   ac_cv_func_lstat_dereferences_slashed_symlink=no
24696 fi
24697 rm -f conftest.sym conftest.file
24698
24699 fi
24700 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24701 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24702
24703 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24704
24705 cat >>confdefs.h <<_ACEOF
24706 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24707 _ACEOF
24708
24709
24710 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24711   case $LIBOBJS in
24712     "lstat.$ac_objext"   | \
24713   *" lstat.$ac_objext"   | \
24714     "lstat.$ac_objext "* | \
24715   *" lstat.$ac_objext "* ) ;;
24716   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24717 esac
24718
24719 fi
24720
24721 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24722 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
24723 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24724   echo $ECHO_N "(cached) $ECHO_C" >&6
24725 else
24726   if test "$cross_compiling" = yes; then
24727   ac_cv_func_lstat_empty_string_bug=yes
24728 else
24729   cat >conftest.$ac_ext <<_ACEOF
24730 /* confdefs.h.  */
24731 _ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h.  */
24735 $ac_includes_default
24736 int
24737 main ()
24738 {
24739 struct stat sbuf;
24740   exit (lstat ("", &sbuf) ? 1 : 0);
24741   ;
24742   return 0;
24743 }
24744 _ACEOF
24745 rm -f conftest$ac_exeext
24746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24747   (eval $ac_link) 2>&5
24748   ac_status=$?
24749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752   (eval $ac_try) 2>&5
24753   ac_status=$?
24754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755   (exit $ac_status); }; }; then
24756   ac_cv_func_lstat_empty_string_bug=yes
24757 else
24758   echo "$as_me: program exited with status $ac_status" >&5
24759 echo "$as_me: failed program was:" >&5
24760 sed 's/^/| /' conftest.$ac_ext >&5
24761
24762 ( exit $ac_status )
24763 ac_cv_func_lstat_empty_string_bug=no
24764 fi
24765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24766 fi
24767 fi
24768 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24769 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
24770 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24771   case $LIBOBJS in
24772     "lstat.$ac_objext"   | \
24773   *" lstat.$ac_objext"   | \
24774     "lstat.$ac_objext "* | \
24775   *" lstat.$ac_objext "* ) ;;
24776   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24777 esac
24778
24779
24780 cat >>confdefs.h <<_ACEOF
24781 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24782 _ACEOF
24783
24784 fi
24785
24786 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24787 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24788 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24789   echo $ECHO_N "(cached) $ECHO_C" >&6
24790 else
24791   rm -f conftest.sym conftest.file
24792 echo >conftest.file
24793 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24794   if test "$cross_compiling" = yes; then
24795   ac_cv_func_lstat_dereferences_slashed_symlink=no
24796 else
24797   cat >conftest.$ac_ext <<_ACEOF
24798 /* confdefs.h.  */
24799 _ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h.  */
24803 $ac_includes_default
24804 int
24805 main ()
24806 {
24807 struct stat sbuf;
24808      /* Linux will dereference the symlink and fail.
24809         That is better in the sense that it means we will not
24810         have to compile and use the lstat wrapper.  */
24811      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24812   ;
24813   return 0;
24814 }
24815 _ACEOF
24816 rm -f conftest$ac_exeext
24817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24818   (eval $ac_link) 2>&5
24819   ac_status=$?
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24823   (eval $ac_try) 2>&5
24824   ac_status=$?
24825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826   (exit $ac_status); }; }; then
24827   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24828 else
24829   echo "$as_me: program exited with status $ac_status" >&5
24830 echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24832
24833 ( exit $ac_status )
24834 ac_cv_func_lstat_dereferences_slashed_symlink=no
24835 fi
24836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24837 fi
24838 else
24839   # If the `ln -s' command failed, then we probably don't even
24840   # have an lstat function.
24841   ac_cv_func_lstat_dereferences_slashed_symlink=no
24842 fi
24843 rm -f conftest.sym conftest.file
24844
24845 fi
24846 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24847 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24848
24849 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24850
24851 cat >>confdefs.h <<_ACEOF
24852 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24853 _ACEOF
24854
24855
24856 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24857   case $LIBOBJS in
24858     "lstat.$ac_objext"   | \
24859   *" lstat.$ac_objext"   | \
24860     "lstat.$ac_objext "* | \
24861   *" lstat.$ac_objext "* ) ;;
24862   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24863 esac
24864
24865 fi
24866
24867 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24868 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
24869 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24870   echo $ECHO_N "(cached) $ECHO_C" >&6
24871 else
24872   cat >conftest.$ac_ext <<_ACEOF
24873 /* confdefs.h.  */
24874 _ACEOF
24875 cat confdefs.h >>conftest.$ac_ext
24876 cat >>conftest.$ac_ext <<_ACEOF
24877 /* end confdefs.h.  */
24878 #include <sys/types.h>
24879 int
24880 main ()
24881 {
24882 return makedev(0, 0);
24883   ;
24884   return 0;
24885 }
24886 _ACEOF
24887 rm -f conftest.$ac_objext conftest$ac_exeext
24888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24889   (eval $ac_link) 2>conftest.er1
24890   ac_status=$?
24891   grep -v '^ *+' conftest.er1 >conftest.err
24892   rm -f conftest.er1
24893   cat conftest.err >&5
24894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); } &&
24896          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898   (eval $ac_try) 2>&5
24899   ac_status=$?
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); }; } &&
24902          { ac_try='test -s conftest$ac_exeext'
24903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904   (eval $ac_try) 2>&5
24905   ac_status=$?
24906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907   (exit $ac_status); }; }; then
24908   ac_cv_header_sys_types_h_makedev=yes
24909 else
24910   echo "$as_me: failed program was:" >&5
24911 sed 's/^/| /' conftest.$ac_ext >&5
24912
24913 ac_cv_header_sys_types_h_makedev=no
24914 fi
24915 rm -f conftest.err conftest.$ac_objext \
24916       conftest$ac_exeext conftest.$ac_ext
24917
24918 fi
24919 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24920 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
24921
24922 if test $ac_cv_header_sys_types_h_makedev = no; then
24923 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24924   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24925 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24926 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24927   echo $ECHO_N "(cached) $ECHO_C" >&6
24928 fi
24929 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24930 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24931 else
24932   # Is the header compilable?
24933 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24934 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
24935 cat >conftest.$ac_ext <<_ACEOF
24936 /* confdefs.h.  */
24937 _ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h.  */
24941 $ac_includes_default
24942 #include <sys/mkdev.h>
24943 _ACEOF
24944 rm -f conftest.$ac_objext
24945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24946   (eval $ac_compile) 2>conftest.er1
24947   ac_status=$?
24948   grep -v '^ *+' conftest.er1 >conftest.err
24949   rm -f conftest.er1
24950   cat conftest.err >&5
24951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952   (exit $ac_status); } &&
24953          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24955   (eval $ac_try) 2>&5
24956   ac_status=$?
24957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958   (exit $ac_status); }; } &&
24959          { ac_try='test -s conftest.$ac_objext'
24960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961   (eval $ac_try) 2>&5
24962   ac_status=$?
24963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964   (exit $ac_status); }; }; then
24965   ac_header_compiler=yes
24966 else
24967   echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24969
24970 ac_header_compiler=no
24971 fi
24972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24974 echo "${ECHO_T}$ac_header_compiler" >&6
24975
24976 # Is the header present?
24977 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24978 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
24979 cat >conftest.$ac_ext <<_ACEOF
24980 /* confdefs.h.  */
24981 _ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h.  */
24985 #include <sys/mkdev.h>
24986 _ACEOF
24987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24989   ac_status=$?
24990   grep -v '^ *+' conftest.er1 >conftest.err
24991   rm -f conftest.er1
24992   cat conftest.err >&5
24993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994   (exit $ac_status); } >/dev/null; then
24995   if test -s conftest.err; then
24996     ac_cpp_err=$ac_c_preproc_warn_flag
24997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24998   else
24999     ac_cpp_err=
25000   fi
25001 else
25002   ac_cpp_err=yes
25003 fi
25004 if test -z "$ac_cpp_err"; then
25005   ac_header_preproc=yes
25006 else
25007   echo "$as_me: failed program was:" >&5
25008 sed 's/^/| /' conftest.$ac_ext >&5
25009
25010   ac_header_preproc=no
25011 fi
25012 rm -f conftest.err conftest.$ac_ext
25013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25014 echo "${ECHO_T}$ac_header_preproc" >&6
25015
25016 # So?  What about this header?
25017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25018   yes:no: )
25019     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25020 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25021     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25022 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25023     ac_header_preproc=yes
25024     ;;
25025   no:yes:* )
25026     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25027 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25028     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
25029 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
25030     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25031 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25032     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
25033 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25034     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25035 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25036     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25037 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25038     (
25039       cat <<\_ASBOX
25040 ## ------------------------------- ##
25041 ## Report this to nfs@lists.sf.net ##
25042 ## ------------------------------- ##
25043 _ASBOX
25044     ) |
25045       sed "s/^/$as_me: WARNING:     /" >&2
25046     ;;
25047 esac
25048 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25049 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
25050 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25051   echo $ECHO_N "(cached) $ECHO_C" >&6
25052 else
25053   ac_cv_header_sys_mkdev_h=$ac_header_preproc
25054 fi
25055 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25056 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
25057
25058 fi
25059 if test $ac_cv_header_sys_mkdev_h = yes; then
25060
25061 cat >>confdefs.h <<\_ACEOF
25062 #define MAJOR_IN_MKDEV 1
25063 _ACEOF
25064
25065 fi
25066
25067
25068
25069   if test $ac_cv_header_sys_mkdev_h = no; then
25070     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25071   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25072 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
25073 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25074   echo $ECHO_N "(cached) $ECHO_C" >&6
25075 fi
25076 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25077 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
25078 else
25079   # Is the header compilable?
25080 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25081 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
25082 cat >conftest.$ac_ext <<_ACEOF
25083 /* confdefs.h.  */
25084 _ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h.  */
25088 $ac_includes_default
25089 #include <sys/sysmacros.h>
25090 _ACEOF
25091 rm -f conftest.$ac_objext
25092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25093   (eval $ac_compile) 2>conftest.er1
25094   ac_status=$?
25095   grep -v '^ *+' conftest.er1 >conftest.err
25096   rm -f conftest.er1
25097   cat conftest.err >&5
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); } &&
25100          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102   (eval $ac_try) 2>&5
25103   ac_status=$?
25104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105   (exit $ac_status); }; } &&
25106          { ac_try='test -s conftest.$ac_objext'
25107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108   (eval $ac_try) 2>&5
25109   ac_status=$?
25110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111   (exit $ac_status); }; }; then
25112   ac_header_compiler=yes
25113 else
25114   echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25116
25117 ac_header_compiler=no
25118 fi
25119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25121 echo "${ECHO_T}$ac_header_compiler" >&6
25122
25123 # Is the header present?
25124 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25125 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
25126 cat >conftest.$ac_ext <<_ACEOF
25127 /* confdefs.h.  */
25128 _ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h.  */
25132 #include <sys/sysmacros.h>
25133 _ACEOF
25134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25136   ac_status=$?
25137   grep -v '^ *+' conftest.er1 >conftest.err
25138   rm -f conftest.er1
25139   cat conftest.err >&5
25140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141   (exit $ac_status); } >/dev/null; then
25142   if test -s conftest.err; then
25143     ac_cpp_err=$ac_c_preproc_warn_flag
25144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25145   else
25146     ac_cpp_err=
25147   fi
25148 else
25149   ac_cpp_err=yes
25150 fi
25151 if test -z "$ac_cpp_err"; then
25152   ac_header_preproc=yes
25153 else
25154   echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25156
25157   ac_header_preproc=no
25158 fi
25159 rm -f conftest.err conftest.$ac_ext
25160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25161 echo "${ECHO_T}$ac_header_preproc" >&6
25162
25163 # So?  What about this header?
25164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25165   yes:no: )
25166     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25167 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25168     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25169 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25170     ac_header_preproc=yes
25171     ;;
25172   no:yes:* )
25173     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25174 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25175     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
25176 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
25177     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25178 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25179     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
25180 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25181     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25182 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25183     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25184 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25185     (
25186       cat <<\_ASBOX
25187 ## ------------------------------- ##
25188 ## Report this to nfs@lists.sf.net ##
25189 ## ------------------------------- ##
25190 _ASBOX
25191     ) |
25192       sed "s/^/$as_me: WARNING:     /" >&2
25193     ;;
25194 esac
25195 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25196 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
25197 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25198   echo $ECHO_N "(cached) $ECHO_C" >&6
25199 else
25200   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25201 fi
25202 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25203 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
25204
25205 fi
25206 if test $ac_cv_header_sys_sysmacros_h = yes; then
25207
25208 cat >>confdefs.h <<\_ACEOF
25209 #define MAJOR_IN_SYSMACROS 1
25210 _ACEOF
25211
25212 fi
25213
25214
25215   fi
25216 fi
25217
25218 #AC_FUNC_MALLOC
25219 echo "$as_me:$LINENO: checking for working memcmp" >&5
25220 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
25221 if test "${ac_cv_func_memcmp_working+set}" = set; then
25222   echo $ECHO_N "(cached) $ECHO_C" >&6
25223 else
25224   if test "$cross_compiling" = yes; then
25225   ac_cv_func_memcmp_working=no
25226 else
25227   cat >conftest.$ac_ext <<_ACEOF
25228 /* confdefs.h.  */
25229 _ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h.  */
25233 $ac_includes_default
25234 int
25235 main ()
25236 {
25237
25238   /* Some versions of memcmp are not 8-bit clean.  */
25239   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
25240   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25241     exit (1);
25242
25243   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25244      or more and with at least one buffer not starting on a 4-byte boundary.
25245      William Lewis provided this test program.   */
25246   {
25247     char foo[21];
25248     char bar[21];
25249     int i;
25250     for (i = 0; i < 4; i++)
25251       {
25252         char *a = foo + i;
25253         char *b = bar + i;
25254         strcpy (a, "--------01111111");
25255         strcpy (b, "--------10000000");
25256         if (memcmp (a, b, 16) >= 0)
25257           exit (1);
25258       }
25259     exit (0);
25260   }
25261
25262   ;
25263   return 0;
25264 }
25265 _ACEOF
25266 rm -f conftest$ac_exeext
25267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25268   (eval $ac_link) 2>&5
25269   ac_status=$?
25270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273   (eval $ac_try) 2>&5
25274   ac_status=$?
25275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276   (exit $ac_status); }; }; then
25277   ac_cv_func_memcmp_working=yes
25278 else
25279   echo "$as_me: program exited with status $ac_status" >&5
25280 echo "$as_me: failed program was:" >&5
25281 sed 's/^/| /' conftest.$ac_ext >&5
25282
25283 ( exit $ac_status )
25284 ac_cv_func_memcmp_working=no
25285 fi
25286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25287 fi
25288 fi
25289 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25290 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
25291 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
25292     "memcmp.$ac_objext"   | \
25293   *" memcmp.$ac_objext"   | \
25294     "memcmp.$ac_objext "* | \
25295   *" memcmp.$ac_objext "* ) ;;
25296   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
25297 esac
25298
25299
25300 #AC_FUNC_REALLOC
25301
25302
25303 for ac_header in sys/select.h sys/socket.h
25304 do
25305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25307   echo "$as_me:$LINENO: checking for $ac_header" >&5
25308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25310   echo $ECHO_N "(cached) $ECHO_C" >&6
25311 fi
25312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25314 else
25315   # Is the header compilable?
25316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25318 cat >conftest.$ac_ext <<_ACEOF
25319 /* confdefs.h.  */
25320 _ACEOF
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h.  */
25324 $ac_includes_default
25325 #include <$ac_header>
25326 _ACEOF
25327 rm -f conftest.$ac_objext
25328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25329   (eval $ac_compile) 2>conftest.er1
25330   ac_status=$?
25331   grep -v '^ *+' conftest.er1 >conftest.err
25332   rm -f conftest.er1
25333   cat conftest.err >&5
25334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335   (exit $ac_status); } &&
25336          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338   (eval $ac_try) 2>&5
25339   ac_status=$?
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); }; } &&
25342          { ac_try='test -s conftest.$ac_objext'
25343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25344   (eval $ac_try) 2>&5
25345   ac_status=$?
25346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347   (exit $ac_status); }; }; then
25348   ac_header_compiler=yes
25349 else
25350   echo "$as_me: failed program was:" >&5
25351 sed 's/^/| /' conftest.$ac_ext >&5
25352
25353 ac_header_compiler=no
25354 fi
25355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25357 echo "${ECHO_T}$ac_header_compiler" >&6
25358
25359 # Is the header present?
25360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25362 cat >conftest.$ac_ext <<_ACEOF
25363 /* confdefs.h.  */
25364 _ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h.  */
25368 #include <$ac_header>
25369 _ACEOF
25370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25371   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25372   ac_status=$?
25373   grep -v '^ *+' conftest.er1 >conftest.err
25374   rm -f conftest.er1
25375   cat conftest.err >&5
25376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377   (exit $ac_status); } >/dev/null; then
25378   if test -s conftest.err; then
25379     ac_cpp_err=$ac_c_preproc_warn_flag
25380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25381   else
25382     ac_cpp_err=
25383   fi
25384 else
25385   ac_cpp_err=yes
25386 fi
25387 if test -z "$ac_cpp_err"; then
25388   ac_header_preproc=yes
25389 else
25390   echo "$as_me: failed program was:" >&5
25391 sed 's/^/| /' conftest.$ac_ext >&5
25392
25393   ac_header_preproc=no
25394 fi
25395 rm -f conftest.err conftest.$ac_ext
25396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25397 echo "${ECHO_T}$ac_header_preproc" >&6
25398
25399 # So?  What about this header?
25400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25401   yes:no: )
25402     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25406     ac_header_preproc=yes
25407     ;;
25408   no:yes:* )
25409     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25411     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25412 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25413     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25415     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25416 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25419     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25421     (
25422       cat <<\_ASBOX
25423 ## ------------------------------- ##
25424 ## Report this to nfs@lists.sf.net ##
25425 ## ------------------------------- ##
25426 _ASBOX
25427     ) |
25428       sed "s/^/$as_me: WARNING:     /" >&2
25429     ;;
25430 esac
25431 echo "$as_me:$LINENO: checking for $ac_header" >&5
25432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25434   echo $ECHO_N "(cached) $ECHO_C" >&6
25435 else
25436   eval "$as_ac_Header=\$ac_header_preproc"
25437 fi
25438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25440
25441 fi
25442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25443   cat >>confdefs.h <<_ACEOF
25444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25445 _ACEOF
25446
25447 fi
25448
25449 done
25450
25451 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25452 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25453 if test "${ac_cv_func_select_args+set}" = set; then
25454   echo $ECHO_N "(cached) $ECHO_C" >&6
25455 else
25456   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25457  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25458   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25459    cat >conftest.$ac_ext <<_ACEOF
25460 /* confdefs.h.  */
25461 _ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h.  */
25465 $ac_includes_default
25466 #if HAVE_SYS_SELECT_H
25467 # include <sys/select.h>
25468 #endif
25469 #if HAVE_SYS_SOCKET_H
25470 # include <sys/socket.h>
25471 #endif
25472
25473 int
25474 main ()
25475 {
25476 extern int select ($ac_arg1,
25477                                             $ac_arg234, $ac_arg234, $ac_arg234,
25478                                             $ac_arg5);
25479   ;
25480   return 0;
25481 }
25482 _ACEOF
25483 rm -f conftest.$ac_objext
25484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25485   (eval $ac_compile) 2>conftest.er1
25486   ac_status=$?
25487   grep -v '^ *+' conftest.er1 >conftest.err
25488   rm -f conftest.er1
25489   cat conftest.err >&5
25490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491   (exit $ac_status); } &&
25492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25494   (eval $ac_try) 2>&5
25495   ac_status=$?
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); }; } &&
25498          { ac_try='test -s conftest.$ac_objext'
25499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25500   (eval $ac_try) 2>&5
25501   ac_status=$?
25502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503   (exit $ac_status); }; }; then
25504   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25505 else
25506   echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25508
25509 fi
25510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25511   done
25512  done
25513 done
25514 # Provide a safe default value.
25515 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25516
25517 fi
25518 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25519 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25520 ac_save_IFS=$IFS; IFS=','
25521 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25522 IFS=$ac_save_IFS
25523 shift
25524
25525 cat >>confdefs.h <<_ACEOF
25526 #define SELECT_TYPE_ARG1 $1
25527 _ACEOF
25528
25529
25530 cat >>confdefs.h <<_ACEOF
25531 #define SELECT_TYPE_ARG234 ($2)
25532 _ACEOF
25533
25534
25535 cat >>confdefs.h <<_ACEOF
25536 #define SELECT_TYPE_ARG5 ($3)
25537 _ACEOF
25538
25539 rm -f conftest*
25540
25541 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25542 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25543 if test "${ac_cv_type_signal+set}" = set; then
25544   echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25546   cat >conftest.$ac_ext <<_ACEOF
25547 /* confdefs.h.  */
25548 _ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h.  */
25552 #include <sys/types.h>
25553 #include <signal.h>
25554 #ifdef signal
25555 # undef signal
25556 #endif
25557 #ifdef __cplusplus
25558 extern "C" void (*signal (int, void (*)(int)))(int);
25559 #else
25560 void (*signal ()) ();
25561 #endif
25562
25563 int
25564 main ()
25565 {
25566 int i;
25567   ;
25568   return 0;
25569 }
25570 _ACEOF
25571 rm -f conftest.$ac_objext
25572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25573   (eval $ac_compile) 2>conftest.er1
25574   ac_status=$?
25575   grep -v '^ *+' conftest.er1 >conftest.err
25576   rm -f conftest.er1
25577   cat conftest.err >&5
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); } &&
25580          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582   (eval $ac_try) 2>&5
25583   ac_status=$?
25584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585   (exit $ac_status); }; } &&
25586          { ac_try='test -s conftest.$ac_objext'
25587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588   (eval $ac_try) 2>&5
25589   ac_status=$?
25590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591   (exit $ac_status); }; }; then
25592   ac_cv_type_signal=void
25593 else
25594   echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25596
25597 ac_cv_type_signal=int
25598 fi
25599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25600 fi
25601 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25602 echo "${ECHO_T}$ac_cv_type_signal" >&6
25603
25604 cat >>confdefs.h <<_ACEOF
25605 #define RETSIGTYPE $ac_cv_type_signal
25606 _ACEOF
25607
25608
25609 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25610 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
25611 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25612   echo $ECHO_N "(cached) $ECHO_C" >&6
25613 else
25614   if test "$cross_compiling" = yes; then
25615   ac_cv_func_stat_empty_string_bug=yes
25616 else
25617   cat >conftest.$ac_ext <<_ACEOF
25618 /* confdefs.h.  */
25619 _ACEOF
25620 cat confdefs.h >>conftest.$ac_ext
25621 cat >>conftest.$ac_ext <<_ACEOF
25622 /* end confdefs.h.  */
25623 $ac_includes_default
25624 int
25625 main ()
25626 {
25627 struct stat sbuf;
25628   exit (stat ("", &sbuf) ? 1 : 0);
25629   ;
25630   return 0;
25631 }
25632 _ACEOF
25633 rm -f conftest$ac_exeext
25634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25635   (eval $ac_link) 2>&5
25636   ac_status=$?
25637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640   (eval $ac_try) 2>&5
25641   ac_status=$?
25642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643   (exit $ac_status); }; }; then
25644   ac_cv_func_stat_empty_string_bug=yes
25645 else
25646   echo "$as_me: program exited with status $ac_status" >&5
25647 echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25649
25650 ( exit $ac_status )
25651 ac_cv_func_stat_empty_string_bug=no
25652 fi
25653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25654 fi
25655 fi
25656 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25657 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
25658 if test $ac_cv_func_stat_empty_string_bug = yes; then
25659   case $LIBOBJS in
25660     "stat.$ac_objext"   | \
25661   *" stat.$ac_objext"   | \
25662     "stat.$ac_objext "* | \
25663   *" stat.$ac_objext "* ) ;;
25664   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
25665 esac
25666
25667
25668 cat >>confdefs.h <<_ACEOF
25669 #define HAVE_STAT_EMPTY_STRING_BUG 1
25670 _ACEOF
25671
25672 fi
25673
25674
25675 for ac_func in vprintf
25676 do
25677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25678 echo "$as_me:$LINENO: checking for $ac_func" >&5
25679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25680 if eval "test \"\${$as_ac_var+set}\" = set"; then
25681   echo $ECHO_N "(cached) $ECHO_C" >&6
25682 else
25683   cat >conftest.$ac_ext <<_ACEOF
25684 /* confdefs.h.  */
25685 _ACEOF
25686 cat confdefs.h >>conftest.$ac_ext
25687 cat >>conftest.$ac_ext <<_ACEOF
25688 /* end confdefs.h.  */
25689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25691 #define $ac_func innocuous_$ac_func
25692
25693 /* System header to define __stub macros and hopefully few prototypes,
25694     which can conflict with char $ac_func (); below.
25695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25696     <limits.h> exists even on freestanding compilers.  */
25697
25698 #ifdef __STDC__
25699 # include <limits.h>
25700 #else
25701 # include <assert.h>
25702 #endif
25703
25704 #undef $ac_func
25705
25706 /* Override any gcc2 internal prototype to avoid an error.  */
25707 #ifdef __cplusplus
25708 extern "C"
25709 {
25710 #endif
25711 /* We use char because int might match the return type of a gcc2
25712    builtin and then its argument prototype would still apply.  */
25713 char $ac_func ();
25714 /* The GNU C library defines this for functions which it implements
25715     to always fail with ENOSYS.  Some functions are actually named
25716     something starting with __ and the normal name is an alias.  */
25717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25718 choke me
25719 #else
25720 char (*f) () = $ac_func;
25721 #endif
25722 #ifdef __cplusplus
25723 }
25724 #endif
25725
25726 int
25727 main ()
25728 {
25729 return f != $ac_func;
25730   ;
25731   return 0;
25732 }
25733 _ACEOF
25734 rm -f conftest.$ac_objext conftest$ac_exeext
25735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25736   (eval $ac_link) 2>conftest.er1
25737   ac_status=$?
25738   grep -v '^ *+' conftest.er1 >conftest.err
25739   rm -f conftest.er1
25740   cat conftest.err >&5
25741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742   (exit $ac_status); } &&
25743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745   (eval $ac_try) 2>&5
25746   ac_status=$?
25747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748   (exit $ac_status); }; } &&
25749          { ac_try='test -s conftest$ac_exeext'
25750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25751   (eval $ac_try) 2>&5
25752   ac_status=$?
25753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754   (exit $ac_status); }; }; then
25755   eval "$as_ac_var=yes"
25756 else
25757   echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25759
25760 eval "$as_ac_var=no"
25761 fi
25762 rm -f conftest.err conftest.$ac_objext \
25763       conftest$ac_exeext conftest.$ac_ext
25764 fi
25765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25767 if test `eval echo '${'$as_ac_var'}'` = yes; then
25768   cat >>confdefs.h <<_ACEOF
25769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25770 _ACEOF
25771
25772 echo "$as_me:$LINENO: checking for _doprnt" >&5
25773 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
25774 if test "${ac_cv_func__doprnt+set}" = set; then
25775   echo $ECHO_N "(cached) $ECHO_C" >&6
25776 else
25777   cat >conftest.$ac_ext <<_ACEOF
25778 /* confdefs.h.  */
25779 _ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h.  */
25783 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25785 #define _doprnt innocuous__doprnt
25786
25787 /* System header to define __stub macros and hopefully few prototypes,
25788     which can conflict with char _doprnt (); below.
25789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25790     <limits.h> exists even on freestanding compilers.  */
25791
25792 #ifdef __STDC__
25793 # include <limits.h>
25794 #else
25795 # include <assert.h>
25796 #endif
25797
25798 #undef _doprnt
25799
25800 /* Override any gcc2 internal prototype to avoid an error.  */
25801 #ifdef __cplusplus
25802 extern "C"
25803 {
25804 #endif
25805 /* We use char because int might match the return type of a gcc2
25806    builtin and then its argument prototype would still apply.  */
25807 char _doprnt ();
25808 /* The GNU C library defines this for functions which it implements
25809     to always fail with ENOSYS.  Some functions are actually named
25810     something starting with __ and the normal name is an alias.  */
25811 #if defined (__stub__doprnt) || defined (__stub____doprnt)
25812 choke me
25813 #else
25814 char (*f) () = _doprnt;
25815 #endif
25816 #ifdef __cplusplus
25817 }
25818 #endif
25819
25820 int
25821 main ()
25822 {
25823 return f != _doprnt;
25824   ;
25825   return 0;
25826 }
25827 _ACEOF
25828 rm -f conftest.$ac_objext conftest$ac_exeext
25829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25830   (eval $ac_link) 2>conftest.er1
25831   ac_status=$?
25832   grep -v '^ *+' conftest.er1 >conftest.err
25833   rm -f conftest.er1
25834   cat conftest.err >&5
25835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836   (exit $ac_status); } &&
25837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25839   (eval $ac_try) 2>&5
25840   ac_status=$?
25841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); }; } &&
25843          { ac_try='test -s conftest$ac_exeext'
25844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845   (eval $ac_try) 2>&5
25846   ac_status=$?
25847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848   (exit $ac_status); }; }; then
25849   ac_cv_func__doprnt=yes
25850 else
25851   echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25853
25854 ac_cv_func__doprnt=no
25855 fi
25856 rm -f conftest.err conftest.$ac_objext \
25857       conftest$ac_exeext conftest.$ac_ext
25858 fi
25859 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25860 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
25861 if test $ac_cv_func__doprnt = yes; then
25862
25863 cat >>confdefs.h <<\_ACEOF
25864 #define HAVE_DOPRNT 1
25865 _ACEOF
25866
25867 fi
25868
25869 fi
25870 done
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25902                gethostbyaddr gethostbyname gethostname getmntent \
25903                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
25904                realpath rmdir select socket strcasecmp strchr strdup \
25905                strerror strrchr strtol strtoul
25906 do
25907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25908 echo "$as_me:$LINENO: checking for $ac_func" >&5
25909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25910 if eval "test \"\${$as_ac_var+set}\" = set"; then
25911   echo $ECHO_N "(cached) $ECHO_C" >&6
25912 else
25913   cat >conftest.$ac_ext <<_ACEOF
25914 /* confdefs.h.  */
25915 _ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h.  */
25919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25920    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25921 #define $ac_func innocuous_$ac_func
25922
25923 /* System header to define __stub macros and hopefully few prototypes,
25924     which can conflict with char $ac_func (); below.
25925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25926     <limits.h> exists even on freestanding compilers.  */
25927
25928 #ifdef __STDC__
25929 # include <limits.h>
25930 #else
25931 # include <assert.h>
25932 #endif
25933
25934 #undef $ac_func
25935
25936 /* Override any gcc2 internal prototype to avoid an error.  */
25937 #ifdef __cplusplus
25938 extern "C"
25939 {
25940 #endif
25941 /* We use char because int might match the return type of a gcc2
25942    builtin and then its argument prototype would still apply.  */
25943 char $ac_func ();
25944 /* The GNU C library defines this for functions which it implements
25945     to always fail with ENOSYS.  Some functions are actually named
25946     something starting with __ and the normal name is an alias.  */
25947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25948 choke me
25949 #else
25950 char (*f) () = $ac_func;
25951 #endif
25952 #ifdef __cplusplus
25953 }
25954 #endif
25955
25956 int
25957 main ()
25958 {
25959 return f != $ac_func;
25960   ;
25961   return 0;
25962 }
25963 _ACEOF
25964 rm -f conftest.$ac_objext conftest$ac_exeext
25965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25966   (eval $ac_link) 2>conftest.er1
25967   ac_status=$?
25968   grep -v '^ *+' conftest.er1 >conftest.err
25969   rm -f conftest.er1
25970   cat conftest.err >&5
25971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972   (exit $ac_status); } &&
25973          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975   (eval $ac_try) 2>&5
25976   ac_status=$?
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); }; } &&
25979          { ac_try='test -s conftest$ac_exeext'
25980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25981   (eval $ac_try) 2>&5
25982   ac_status=$?
25983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); }; }; then
25985   eval "$as_ac_var=yes"
25986 else
25987   echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25989
25990 eval "$as_ac_var=no"
25991 fi
25992 rm -f conftest.err conftest.$ac_objext \
25993       conftest$ac_exeext conftest.$ac_ext
25994 fi
25995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25997 if test `eval echo '${'$as_ac_var'}'` = yes; then
25998   cat >>confdefs.h <<_ACEOF
25999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26000 _ACEOF
26001
26002 fi
26003 done
26004
26005
26006
26007 echo "$as_me:$LINENO: checking for short" >&5
26008 echo $ECHO_N "checking for short... $ECHO_C" >&6
26009 if test "${ac_cv_type_short+set}" = set; then
26010   echo $ECHO_N "(cached) $ECHO_C" >&6
26011 else
26012   cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h.  */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h.  */
26018 $ac_includes_default
26019 int
26020 main ()
26021 {
26022 if ((short *) 0)
26023   return 0;
26024 if (sizeof (short))
26025   return 0;
26026   ;
26027   return 0;
26028 }
26029 _ACEOF
26030 rm -f conftest.$ac_objext
26031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26032   (eval $ac_compile) 2>conftest.er1
26033   ac_status=$?
26034   grep -v '^ *+' conftest.er1 >conftest.err
26035   rm -f conftest.er1
26036   cat conftest.err >&5
26037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038   (exit $ac_status); } &&
26039          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041   (eval $ac_try) 2>&5
26042   ac_status=$?
26043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044   (exit $ac_status); }; } &&
26045          { ac_try='test -s conftest.$ac_objext'
26046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047   (eval $ac_try) 2>&5
26048   ac_status=$?
26049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050   (exit $ac_status); }; }; then
26051   ac_cv_type_short=yes
26052 else
26053   echo "$as_me: failed program was:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26055
26056 ac_cv_type_short=no
26057 fi
26058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26059 fi
26060 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26061 echo "${ECHO_T}$ac_cv_type_short" >&6
26062
26063 echo "$as_me:$LINENO: checking size of short" >&5
26064 echo $ECHO_N "checking size of short... $ECHO_C" >&6
26065 if test "${ac_cv_sizeof_short+set}" = set; then
26066   echo $ECHO_N "(cached) $ECHO_C" >&6
26067 else
26068   if test "$ac_cv_type_short" = yes; then
26069   # The cast to unsigned long works around a bug in the HP C Compiler
26070   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26071   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26072   # This bug is HP SR number 8606223364.
26073   if test "$cross_compiling" = yes; then
26074   # Depending upon the size, compute the lo and hi bounds.
26075 cat >conftest.$ac_ext <<_ACEOF
26076 /* confdefs.h.  */
26077 _ACEOF
26078 cat confdefs.h >>conftest.$ac_ext
26079 cat >>conftest.$ac_ext <<_ACEOF
26080 /* end confdefs.h.  */
26081 $ac_includes_default
26082 int
26083 main ()
26084 {
26085 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
26086 test_array [0] = 0
26087
26088   ;
26089   return 0;
26090 }
26091 _ACEOF
26092 rm -f conftest.$ac_objext
26093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26094   (eval $ac_compile) 2>conftest.er1
26095   ac_status=$?
26096   grep -v '^ *+' conftest.er1 >conftest.err
26097   rm -f conftest.er1
26098   cat conftest.err >&5
26099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100   (exit $ac_status); } &&
26101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26103   (eval $ac_try) 2>&5
26104   ac_status=$?
26105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106   (exit $ac_status); }; } &&
26107          { ac_try='test -s conftest.$ac_objext'
26108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109   (eval $ac_try) 2>&5
26110   ac_status=$?
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); }; }; then
26113   ac_lo=0 ac_mid=0
26114   while :; do
26115     cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h.  */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h.  */
26121 $ac_includes_default
26122 int
26123 main ()
26124 {
26125 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26126 test_array [0] = 0
26127
26128   ;
26129   return 0;
26130 }
26131 _ACEOF
26132 rm -f conftest.$ac_objext
26133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26134   (eval $ac_compile) 2>conftest.er1
26135   ac_status=$?
26136   grep -v '^ *+' conftest.er1 >conftest.err
26137   rm -f conftest.er1
26138   cat conftest.err >&5
26139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140   (exit $ac_status); } &&
26141          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26143   (eval $ac_try) 2>&5
26144   ac_status=$?
26145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146   (exit $ac_status); }; } &&
26147          { ac_try='test -s conftest.$ac_objext'
26148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26149   (eval $ac_try) 2>&5
26150   ac_status=$?
26151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152   (exit $ac_status); }; }; then
26153   ac_hi=$ac_mid; break
26154 else
26155   echo "$as_me: failed program was:" >&5
26156 sed 's/^/| /' conftest.$ac_ext >&5
26157
26158 ac_lo=`expr $ac_mid + 1`
26159                     if test $ac_lo -le $ac_mid; then
26160                       ac_lo= ac_hi=
26161                       break
26162                     fi
26163                     ac_mid=`expr 2 '*' $ac_mid + 1`
26164 fi
26165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26166   done
26167 else
26168   echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26170
26171 cat >conftest.$ac_ext <<_ACEOF
26172 /* confdefs.h.  */
26173 _ACEOF
26174 cat confdefs.h >>conftest.$ac_ext
26175 cat >>conftest.$ac_ext <<_ACEOF
26176 /* end confdefs.h.  */
26177 $ac_includes_default
26178 int
26179 main ()
26180 {
26181 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
26182 test_array [0] = 0
26183
26184   ;
26185   return 0;
26186 }
26187 _ACEOF
26188 rm -f conftest.$ac_objext
26189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26190   (eval $ac_compile) 2>conftest.er1
26191   ac_status=$?
26192   grep -v '^ *+' conftest.er1 >conftest.err
26193   rm -f conftest.er1
26194   cat conftest.err >&5
26195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196   (exit $ac_status); } &&
26197          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199   (eval $ac_try) 2>&5
26200   ac_status=$?
26201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202   (exit $ac_status); }; } &&
26203          { ac_try='test -s conftest.$ac_objext'
26204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26205   (eval $ac_try) 2>&5
26206   ac_status=$?
26207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208   (exit $ac_status); }; }; then
26209   ac_hi=-1 ac_mid=-1
26210   while :; do
26211     cat >conftest.$ac_ext <<_ACEOF
26212 /* confdefs.h.  */
26213 _ACEOF
26214 cat confdefs.h >>conftest.$ac_ext
26215 cat >>conftest.$ac_ext <<_ACEOF
26216 /* end confdefs.h.  */
26217 $ac_includes_default
26218 int
26219 main ()
26220 {
26221 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
26222 test_array [0] = 0
26223
26224   ;
26225   return 0;
26226 }
26227 _ACEOF
26228 rm -f conftest.$ac_objext
26229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26230   (eval $ac_compile) 2>conftest.er1
26231   ac_status=$?
26232   grep -v '^ *+' conftest.er1 >conftest.err
26233   rm -f conftest.er1
26234   cat conftest.err >&5
26235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236   (exit $ac_status); } &&
26237          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26239   (eval $ac_try) 2>&5
26240   ac_status=$?
26241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242   (exit $ac_status); }; } &&
26243          { ac_try='test -s conftest.$ac_objext'
26244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245   (eval $ac_try) 2>&5
26246   ac_status=$?
26247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248   (exit $ac_status); }; }; then
26249   ac_lo=$ac_mid; break
26250 else
26251   echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26253
26254 ac_hi=`expr '(' $ac_mid ')' - 1`
26255                        if test $ac_mid -le $ac_hi; then
26256                          ac_lo= ac_hi=
26257                          break
26258                        fi
26259                        ac_mid=`expr 2 '*' $ac_mid`
26260 fi
26261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26262   done
26263 else
26264   echo "$as_me: failed program was:" >&5
26265 sed 's/^/| /' conftest.$ac_ext >&5
26266
26267 ac_lo= ac_hi=
26268 fi
26269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26270 fi
26271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26272 # Binary search between lo and hi bounds.
26273 while test "x$ac_lo" != "x$ac_hi"; do
26274   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26275   cat >conftest.$ac_ext <<_ACEOF
26276 /* confdefs.h.  */
26277 _ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h.  */
26281 $ac_includes_default
26282 int
26283 main ()
26284 {
26285 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26286 test_array [0] = 0
26287
26288   ;
26289   return 0;
26290 }
26291 _ACEOF
26292 rm -f conftest.$ac_objext
26293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26294   (eval $ac_compile) 2>conftest.er1
26295   ac_status=$?
26296   grep -v '^ *+' conftest.er1 >conftest.err
26297   rm -f conftest.er1
26298   cat conftest.err >&5
26299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300   (exit $ac_status); } &&
26301          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303   (eval $ac_try) 2>&5
26304   ac_status=$?
26305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306   (exit $ac_status); }; } &&
26307          { ac_try='test -s conftest.$ac_objext'
26308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26309   (eval $ac_try) 2>&5
26310   ac_status=$?
26311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312   (exit $ac_status); }; }; then
26313   ac_hi=$ac_mid
26314 else
26315   echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26317
26318 ac_lo=`expr '(' $ac_mid ')' + 1`
26319 fi
26320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26321 done
26322 case $ac_lo in
26323 ?*) ac_cv_sizeof_short=$ac_lo;;
26324 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26325 See \`config.log' for more details." >&5
26326 echo "$as_me: error: cannot compute sizeof (short), 77
26327 See \`config.log' for more details." >&2;}
26328    { (exit 1); exit 1; }; } ;;
26329 esac
26330 else
26331   if test "$cross_compiling" = yes; then
26332   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26333 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26334    { (exit 1); exit 1; }; }
26335 else
26336   cat >conftest.$ac_ext <<_ACEOF
26337 /* confdefs.h.  */
26338 _ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h.  */
26342 $ac_includes_default
26343 long longval () { return (long) (sizeof (short)); }
26344 unsigned long ulongval () { return (long) (sizeof (short)); }
26345 #include <stdio.h>
26346 #include <stdlib.h>
26347 int
26348 main ()
26349 {
26350
26351   FILE *f = fopen ("conftest.val", "w");
26352   if (! f)
26353     exit (1);
26354   if (((long) (sizeof (short))) < 0)
26355     {
26356       long i = longval ();
26357       if (i != ((long) (sizeof (short))))
26358         exit (1);
26359       fprintf (f, "%ld\n", i);
26360     }
26361   else
26362     {
26363       unsigned long i = ulongval ();
26364       if (i != ((long) (sizeof (short))))
26365         exit (1);
26366       fprintf (f, "%lu\n", i);
26367     }
26368   exit (ferror (f) || fclose (f) != 0);
26369
26370   ;
26371   return 0;
26372 }
26373 _ACEOF
26374 rm -f conftest$ac_exeext
26375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26376   (eval $ac_link) 2>&5
26377   ac_status=$?
26378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26381   (eval $ac_try) 2>&5
26382   ac_status=$?
26383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384   (exit $ac_status); }; }; then
26385   ac_cv_sizeof_short=`cat conftest.val`
26386 else
26387   echo "$as_me: program exited with status $ac_status" >&5
26388 echo "$as_me: failed program was:" >&5
26389 sed 's/^/| /' conftest.$ac_ext >&5
26390
26391 ( exit $ac_status )
26392 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26393 See \`config.log' for more details." >&5
26394 echo "$as_me: error: cannot compute sizeof (short), 77
26395 See \`config.log' for more details." >&2;}
26396    { (exit 1); exit 1; }; }
26397 fi
26398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26399 fi
26400 fi
26401 rm -f conftest.val
26402 else
26403   ac_cv_sizeof_short=0
26404 fi
26405 fi
26406 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26407 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
26408 cat >>confdefs.h <<_ACEOF
26409 #define SIZEOF_SHORT $ac_cv_sizeof_short
26410 _ACEOF
26411
26412
26413 echo "$as_me:$LINENO: checking for int" >&5
26414 echo $ECHO_N "checking for int... $ECHO_C" >&6
26415 if test "${ac_cv_type_int+set}" = set; then
26416   echo $ECHO_N "(cached) $ECHO_C" >&6
26417 else
26418   cat >conftest.$ac_ext <<_ACEOF
26419 /* confdefs.h.  */
26420 _ACEOF
26421 cat confdefs.h >>conftest.$ac_ext
26422 cat >>conftest.$ac_ext <<_ACEOF
26423 /* end confdefs.h.  */
26424 $ac_includes_default
26425 int
26426 main ()
26427 {
26428 if ((int *) 0)
26429   return 0;
26430 if (sizeof (int))
26431   return 0;
26432   ;
26433   return 0;
26434 }
26435 _ACEOF
26436 rm -f conftest.$ac_objext
26437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26438   (eval $ac_compile) 2>conftest.er1
26439   ac_status=$?
26440   grep -v '^ *+' conftest.er1 >conftest.err
26441   rm -f conftest.er1
26442   cat conftest.err >&5
26443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444   (exit $ac_status); } &&
26445          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447   (eval $ac_try) 2>&5
26448   ac_status=$?
26449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450   (exit $ac_status); }; } &&
26451          { ac_try='test -s conftest.$ac_objext'
26452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453   (eval $ac_try) 2>&5
26454   ac_status=$?
26455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); }; }; then
26457   ac_cv_type_int=yes
26458 else
26459   echo "$as_me: failed program was:" >&5
26460 sed 's/^/| /' conftest.$ac_ext >&5
26461
26462 ac_cv_type_int=no
26463 fi
26464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26465 fi
26466 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26467 echo "${ECHO_T}$ac_cv_type_int" >&6
26468
26469 echo "$as_me:$LINENO: checking size of int" >&5
26470 echo $ECHO_N "checking size of int... $ECHO_C" >&6
26471 if test "${ac_cv_sizeof_int+set}" = set; then
26472   echo $ECHO_N "(cached) $ECHO_C" >&6
26473 else
26474   if test "$ac_cv_type_int" = yes; then
26475   # The cast to unsigned long works around a bug in the HP C Compiler
26476   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26477   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26478   # This bug is HP SR number 8606223364.
26479   if test "$cross_compiling" = yes; then
26480   # Depending upon the size, compute the lo and hi bounds.
26481 cat >conftest.$ac_ext <<_ACEOF
26482 /* confdefs.h.  */
26483 _ACEOF
26484 cat confdefs.h >>conftest.$ac_ext
26485 cat >>conftest.$ac_ext <<_ACEOF
26486 /* end confdefs.h.  */
26487 $ac_includes_default
26488 int
26489 main ()
26490 {
26491 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26492 test_array [0] = 0
26493
26494   ;
26495   return 0;
26496 }
26497 _ACEOF
26498 rm -f conftest.$ac_objext
26499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26500   (eval $ac_compile) 2>conftest.er1
26501   ac_status=$?
26502   grep -v '^ *+' conftest.er1 >conftest.err
26503   rm -f conftest.er1
26504   cat conftest.err >&5
26505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506   (exit $ac_status); } &&
26507          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509   (eval $ac_try) 2>&5
26510   ac_status=$?
26511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512   (exit $ac_status); }; } &&
26513          { ac_try='test -s conftest.$ac_objext'
26514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26515   (eval $ac_try) 2>&5
26516   ac_status=$?
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); }; }; then
26519   ac_lo=0 ac_mid=0
26520   while :; do
26521     cat >conftest.$ac_ext <<_ACEOF
26522 /* confdefs.h.  */
26523 _ACEOF
26524 cat confdefs.h >>conftest.$ac_ext
26525 cat >>conftest.$ac_ext <<_ACEOF
26526 /* end confdefs.h.  */
26527 $ac_includes_default
26528 int
26529 main ()
26530 {
26531 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26532 test_array [0] = 0
26533
26534   ;
26535   return 0;
26536 }
26537 _ACEOF
26538 rm -f conftest.$ac_objext
26539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26540   (eval $ac_compile) 2>conftest.er1
26541   ac_status=$?
26542   grep -v '^ *+' conftest.er1 >conftest.err
26543   rm -f conftest.er1
26544   cat conftest.err >&5
26545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546   (exit $ac_status); } &&
26547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549   (eval $ac_try) 2>&5
26550   ac_status=$?
26551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552   (exit $ac_status); }; } &&
26553          { ac_try='test -s conftest.$ac_objext'
26554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555   (eval $ac_try) 2>&5
26556   ac_status=$?
26557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558   (exit $ac_status); }; }; then
26559   ac_hi=$ac_mid; break
26560 else
26561   echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26563
26564 ac_lo=`expr $ac_mid + 1`
26565                     if test $ac_lo -le $ac_mid; then
26566                       ac_lo= ac_hi=
26567                       break
26568                     fi
26569                     ac_mid=`expr 2 '*' $ac_mid + 1`
26570 fi
26571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26572   done
26573 else
26574   echo "$as_me: failed program was:" >&5
26575 sed 's/^/| /' conftest.$ac_ext >&5
26576
26577 cat >conftest.$ac_ext <<_ACEOF
26578 /* confdefs.h.  */
26579 _ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h.  */
26583 $ac_includes_default
26584 int
26585 main ()
26586 {
26587 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26588 test_array [0] = 0
26589
26590   ;
26591   return 0;
26592 }
26593 _ACEOF
26594 rm -f conftest.$ac_objext
26595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26596   (eval $ac_compile) 2>conftest.er1
26597   ac_status=$?
26598   grep -v '^ *+' conftest.er1 >conftest.err
26599   rm -f conftest.er1
26600   cat conftest.err >&5
26601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602   (exit $ac_status); } &&
26603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605   (eval $ac_try) 2>&5
26606   ac_status=$?
26607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608   (exit $ac_status); }; } &&
26609          { ac_try='test -s conftest.$ac_objext'
26610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26611   (eval $ac_try) 2>&5
26612   ac_status=$?
26613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614   (exit $ac_status); }; }; then
26615   ac_hi=-1 ac_mid=-1
26616   while :; do
26617     cat >conftest.$ac_ext <<_ACEOF
26618 /* confdefs.h.  */
26619 _ACEOF
26620 cat confdefs.h >>conftest.$ac_ext
26621 cat >>conftest.$ac_ext <<_ACEOF
26622 /* end confdefs.h.  */
26623 $ac_includes_default
26624 int
26625 main ()
26626 {
26627 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26628 test_array [0] = 0
26629
26630   ;
26631   return 0;
26632 }
26633 _ACEOF
26634 rm -f conftest.$ac_objext
26635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26636   (eval $ac_compile) 2>conftest.er1
26637   ac_status=$?
26638   grep -v '^ *+' conftest.er1 >conftest.err
26639   rm -f conftest.er1
26640   cat conftest.err >&5
26641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642   (exit $ac_status); } &&
26643          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26645   (eval $ac_try) 2>&5
26646   ac_status=$?
26647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648   (exit $ac_status); }; } &&
26649          { ac_try='test -s conftest.$ac_objext'
26650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26651   (eval $ac_try) 2>&5
26652   ac_status=$?
26653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654   (exit $ac_status); }; }; then
26655   ac_lo=$ac_mid; break
26656 else
26657   echo "$as_me: failed program was:" >&5
26658 sed 's/^/| /' conftest.$ac_ext >&5
26659
26660 ac_hi=`expr '(' $ac_mid ')' - 1`
26661                        if test $ac_mid -le $ac_hi; then
26662                          ac_lo= ac_hi=
26663                          break
26664                        fi
26665                        ac_mid=`expr 2 '*' $ac_mid`
26666 fi
26667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26668   done
26669 else
26670   echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26672
26673 ac_lo= ac_hi=
26674 fi
26675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26676 fi
26677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26678 # Binary search between lo and hi bounds.
26679 while test "x$ac_lo" != "x$ac_hi"; do
26680   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26681   cat >conftest.$ac_ext <<_ACEOF
26682 /* confdefs.h.  */
26683 _ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h.  */
26687 $ac_includes_default
26688 int
26689 main ()
26690 {
26691 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26692 test_array [0] = 0
26693
26694   ;
26695   return 0;
26696 }
26697 _ACEOF
26698 rm -f conftest.$ac_objext
26699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26700   (eval $ac_compile) 2>conftest.er1
26701   ac_status=$?
26702   grep -v '^ *+' conftest.er1 >conftest.err
26703   rm -f conftest.er1
26704   cat conftest.err >&5
26705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706   (exit $ac_status); } &&
26707          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26709   (eval $ac_try) 2>&5
26710   ac_status=$?
26711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712   (exit $ac_status); }; } &&
26713          { ac_try='test -s conftest.$ac_objext'
26714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26715   (eval $ac_try) 2>&5
26716   ac_status=$?
26717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718   (exit $ac_status); }; }; then
26719   ac_hi=$ac_mid
26720 else
26721   echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26723
26724 ac_lo=`expr '(' $ac_mid ')' + 1`
26725 fi
26726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26727 done
26728 case $ac_lo in
26729 ?*) ac_cv_sizeof_int=$ac_lo;;
26730 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26731 See \`config.log' for more details." >&5
26732 echo "$as_me: error: cannot compute sizeof (int), 77
26733 See \`config.log' for more details." >&2;}
26734    { (exit 1); exit 1; }; } ;;
26735 esac
26736 else
26737   if test "$cross_compiling" = yes; then
26738   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26739 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26740    { (exit 1); exit 1; }; }
26741 else
26742   cat >conftest.$ac_ext <<_ACEOF
26743 /* confdefs.h.  */
26744 _ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h.  */
26748 $ac_includes_default
26749 long longval () { return (long) (sizeof (int)); }
26750 unsigned long ulongval () { return (long) (sizeof (int)); }
26751 #include <stdio.h>
26752 #include <stdlib.h>
26753 int
26754 main ()
26755 {
26756
26757   FILE *f = fopen ("conftest.val", "w");
26758   if (! f)
26759     exit (1);
26760   if (((long) (sizeof (int))) < 0)
26761     {
26762       long i = longval ();
26763       if (i != ((long) (sizeof (int))))
26764         exit (1);
26765       fprintf (f, "%ld\n", i);
26766     }
26767   else
26768     {
26769       unsigned long i = ulongval ();
26770       if (i != ((long) (sizeof (int))))
26771         exit (1);
26772       fprintf (f, "%lu\n", i);
26773     }
26774   exit (ferror (f) || fclose (f) != 0);
26775
26776   ;
26777   return 0;
26778 }
26779 _ACEOF
26780 rm -f conftest$ac_exeext
26781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26782   (eval $ac_link) 2>&5
26783   ac_status=$?
26784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26787   (eval $ac_try) 2>&5
26788   ac_status=$?
26789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790   (exit $ac_status); }; }; then
26791   ac_cv_sizeof_int=`cat conftest.val`
26792 else
26793   echo "$as_me: program exited with status $ac_status" >&5
26794 echo "$as_me: failed program was:" >&5
26795 sed 's/^/| /' conftest.$ac_ext >&5
26796
26797 ( exit $ac_status )
26798 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26799 See \`config.log' for more details." >&5
26800 echo "$as_me: error: cannot compute sizeof (int), 77
26801 See \`config.log' for more details." >&2;}
26802    { (exit 1); exit 1; }; }
26803 fi
26804 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26805 fi
26806 fi
26807 rm -f conftest.val
26808 else
26809   ac_cv_sizeof_int=0
26810 fi
26811 fi
26812 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26813 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
26814 cat >>confdefs.h <<_ACEOF
26815 #define SIZEOF_INT $ac_cv_sizeof_int
26816 _ACEOF
26817
26818
26819 echo "$as_me:$LINENO: checking for long" >&5
26820 echo $ECHO_N "checking for long... $ECHO_C" >&6
26821 if test "${ac_cv_type_long+set}" = set; then
26822   echo $ECHO_N "(cached) $ECHO_C" >&6
26823 else
26824   cat >conftest.$ac_ext <<_ACEOF
26825 /* confdefs.h.  */
26826 _ACEOF
26827 cat confdefs.h >>conftest.$ac_ext
26828 cat >>conftest.$ac_ext <<_ACEOF
26829 /* end confdefs.h.  */
26830 $ac_includes_default
26831 int
26832 main ()
26833 {
26834 if ((long *) 0)
26835   return 0;
26836 if (sizeof (long))
26837   return 0;
26838   ;
26839   return 0;
26840 }
26841 _ACEOF
26842 rm -f conftest.$ac_objext
26843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26844   (eval $ac_compile) 2>conftest.er1
26845   ac_status=$?
26846   grep -v '^ *+' conftest.er1 >conftest.err
26847   rm -f conftest.er1
26848   cat conftest.err >&5
26849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850   (exit $ac_status); } &&
26851          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853   (eval $ac_try) 2>&5
26854   ac_status=$?
26855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856   (exit $ac_status); }; } &&
26857          { ac_try='test -s conftest.$ac_objext'
26858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859   (eval $ac_try) 2>&5
26860   ac_status=$?
26861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862   (exit $ac_status); }; }; then
26863   ac_cv_type_long=yes
26864 else
26865   echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26867
26868 ac_cv_type_long=no
26869 fi
26870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26871 fi
26872 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26873 echo "${ECHO_T}$ac_cv_type_long" >&6
26874
26875 echo "$as_me:$LINENO: checking size of long" >&5
26876 echo $ECHO_N "checking size of long... $ECHO_C" >&6
26877 if test "${ac_cv_sizeof_long+set}" = set; then
26878   echo $ECHO_N "(cached) $ECHO_C" >&6
26879 else
26880   if test "$ac_cv_type_long" = yes; then
26881   # The cast to unsigned long works around a bug in the HP C Compiler
26882   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26883   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26884   # This bug is HP SR number 8606223364.
26885   if test "$cross_compiling" = yes; then
26886   # Depending upon the size, compute the lo and hi bounds.
26887 cat >conftest.$ac_ext <<_ACEOF
26888 /* confdefs.h.  */
26889 _ACEOF
26890 cat confdefs.h >>conftest.$ac_ext
26891 cat >>conftest.$ac_ext <<_ACEOF
26892 /* end confdefs.h.  */
26893 $ac_includes_default
26894 int
26895 main ()
26896 {
26897 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
26898 test_array [0] = 0
26899
26900   ;
26901   return 0;
26902 }
26903 _ACEOF
26904 rm -f conftest.$ac_objext
26905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26906   (eval $ac_compile) 2>conftest.er1
26907   ac_status=$?
26908   grep -v '^ *+' conftest.er1 >conftest.err
26909   rm -f conftest.er1
26910   cat conftest.err >&5
26911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912   (exit $ac_status); } &&
26913          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915   (eval $ac_try) 2>&5
26916   ac_status=$?
26917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918   (exit $ac_status); }; } &&
26919          { ac_try='test -s conftest.$ac_objext'
26920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921   (eval $ac_try) 2>&5
26922   ac_status=$?
26923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924   (exit $ac_status); }; }; then
26925   ac_lo=0 ac_mid=0
26926   while :; do
26927     cat >conftest.$ac_ext <<_ACEOF
26928 /* confdefs.h.  */
26929 _ACEOF
26930 cat confdefs.h >>conftest.$ac_ext
26931 cat >>conftest.$ac_ext <<_ACEOF
26932 /* end confdefs.h.  */
26933 $ac_includes_default
26934 int
26935 main ()
26936 {
26937 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26938 test_array [0] = 0
26939
26940   ;
26941   return 0;
26942 }
26943 _ACEOF
26944 rm -f conftest.$ac_objext
26945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26946   (eval $ac_compile) 2>conftest.er1
26947   ac_status=$?
26948   grep -v '^ *+' conftest.er1 >conftest.err
26949   rm -f conftest.er1
26950   cat conftest.err >&5
26951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952   (exit $ac_status); } &&
26953          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955   (eval $ac_try) 2>&5
26956   ac_status=$?
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); }; } &&
26959          { ac_try='test -s conftest.$ac_objext'
26960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961   (eval $ac_try) 2>&5
26962   ac_status=$?
26963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964   (exit $ac_status); }; }; then
26965   ac_hi=$ac_mid; break
26966 else
26967   echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26969
26970 ac_lo=`expr $ac_mid + 1`
26971                     if test $ac_lo -le $ac_mid; then
26972                       ac_lo= ac_hi=
26973                       break
26974                     fi
26975                     ac_mid=`expr 2 '*' $ac_mid + 1`
26976 fi
26977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26978   done
26979 else
26980   echo "$as_me: failed program was:" >&5
26981 sed 's/^/| /' conftest.$ac_ext >&5
26982
26983 cat >conftest.$ac_ext <<_ACEOF
26984 /* confdefs.h.  */
26985 _ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h.  */
26989 $ac_includes_default
26990 int
26991 main ()
26992 {
26993 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
26994 test_array [0] = 0
26995
26996   ;
26997   return 0;
26998 }
26999 _ACEOF
27000 rm -f conftest.$ac_objext
27001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27002   (eval $ac_compile) 2>conftest.er1
27003   ac_status=$?
27004   grep -v '^ *+' conftest.er1 >conftest.err
27005   rm -f conftest.er1
27006   cat conftest.err >&5
27007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008   (exit $ac_status); } &&
27009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27011   (eval $ac_try) 2>&5
27012   ac_status=$?
27013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); }; } &&
27015          { ac_try='test -s conftest.$ac_objext'
27016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017   (eval $ac_try) 2>&5
27018   ac_status=$?
27019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020   (exit $ac_status); }; }; then
27021   ac_hi=-1 ac_mid=-1
27022   while :; do
27023     cat >conftest.$ac_ext <<_ACEOF
27024 /* confdefs.h.  */
27025 _ACEOF
27026 cat confdefs.h >>conftest.$ac_ext
27027 cat >>conftest.$ac_ext <<_ACEOF
27028 /* end confdefs.h.  */
27029 $ac_includes_default
27030 int
27031 main ()
27032 {
27033 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
27034 test_array [0] = 0
27035
27036   ;
27037   return 0;
27038 }
27039 _ACEOF
27040 rm -f conftest.$ac_objext
27041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27042   (eval $ac_compile) 2>conftest.er1
27043   ac_status=$?
27044   grep -v '^ *+' conftest.er1 >conftest.err
27045   rm -f conftest.er1
27046   cat conftest.err >&5
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); } &&
27049          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051   (eval $ac_try) 2>&5
27052   ac_status=$?
27053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054   (exit $ac_status); }; } &&
27055          { ac_try='test -s conftest.$ac_objext'
27056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057   (eval $ac_try) 2>&5
27058   ac_status=$?
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); }; }; then
27061   ac_lo=$ac_mid; break
27062 else
27063   echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27065
27066 ac_hi=`expr '(' $ac_mid ')' - 1`
27067                        if test $ac_mid -le $ac_hi; then
27068                          ac_lo= ac_hi=
27069                          break
27070                        fi
27071                        ac_mid=`expr 2 '*' $ac_mid`
27072 fi
27073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27074   done
27075 else
27076   echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27078
27079 ac_lo= ac_hi=
27080 fi
27081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27082 fi
27083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27084 # Binary search between lo and hi bounds.
27085 while test "x$ac_lo" != "x$ac_hi"; do
27086   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27087   cat >conftest.$ac_ext <<_ACEOF
27088 /* confdefs.h.  */
27089 _ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h.  */
27093 $ac_includes_default
27094 int
27095 main ()
27096 {
27097 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27098 test_array [0] = 0
27099
27100   ;
27101   return 0;
27102 }
27103 _ACEOF
27104 rm -f conftest.$ac_objext
27105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27106   (eval $ac_compile) 2>conftest.er1
27107   ac_status=$?
27108   grep -v '^ *+' conftest.er1 >conftest.err
27109   rm -f conftest.er1
27110   cat conftest.err >&5
27111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112   (exit $ac_status); } &&
27113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27115   (eval $ac_try) 2>&5
27116   ac_status=$?
27117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118   (exit $ac_status); }; } &&
27119          { ac_try='test -s conftest.$ac_objext'
27120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121   (eval $ac_try) 2>&5
27122   ac_status=$?
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); }; }; then
27125   ac_hi=$ac_mid
27126 else
27127   echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27129
27130 ac_lo=`expr '(' $ac_mid ')' + 1`
27131 fi
27132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27133 done
27134 case $ac_lo in
27135 ?*) ac_cv_sizeof_long=$ac_lo;;
27136 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27137 See \`config.log' for more details." >&5
27138 echo "$as_me: error: cannot compute sizeof (long), 77
27139 See \`config.log' for more details." >&2;}
27140    { (exit 1); exit 1; }; } ;;
27141 esac
27142 else
27143   if test "$cross_compiling" = yes; then
27144   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27145 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27146    { (exit 1); exit 1; }; }
27147 else
27148   cat >conftest.$ac_ext <<_ACEOF
27149 /* confdefs.h.  */
27150 _ACEOF
27151 cat confdefs.h >>conftest.$ac_ext
27152 cat >>conftest.$ac_ext <<_ACEOF
27153 /* end confdefs.h.  */
27154 $ac_includes_default
27155 long longval () { return (long) (sizeof (long)); }
27156 unsigned long ulongval () { return (long) (sizeof (long)); }
27157 #include <stdio.h>
27158 #include <stdlib.h>
27159 int
27160 main ()
27161 {
27162
27163   FILE *f = fopen ("conftest.val", "w");
27164   if (! f)
27165     exit (1);
27166   if (((long) (sizeof (long))) < 0)
27167     {
27168       long i = longval ();
27169       if (i != ((long) (sizeof (long))))
27170         exit (1);
27171       fprintf (f, "%ld\n", i);
27172     }
27173   else
27174     {
27175       unsigned long i = ulongval ();
27176       if (i != ((long) (sizeof (long))))
27177         exit (1);
27178       fprintf (f, "%lu\n", i);
27179     }
27180   exit (ferror (f) || fclose (f) != 0);
27181
27182   ;
27183   return 0;
27184 }
27185 _ACEOF
27186 rm -f conftest$ac_exeext
27187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27188   (eval $ac_link) 2>&5
27189   ac_status=$?
27190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27193   (eval $ac_try) 2>&5
27194   ac_status=$?
27195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196   (exit $ac_status); }; }; then
27197   ac_cv_sizeof_long=`cat conftest.val`
27198 else
27199   echo "$as_me: program exited with status $ac_status" >&5
27200 echo "$as_me: failed program was:" >&5
27201 sed 's/^/| /' conftest.$ac_ext >&5
27202
27203 ( exit $ac_status )
27204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27205 See \`config.log' for more details." >&5
27206 echo "$as_me: error: cannot compute sizeof (long), 77
27207 See \`config.log' for more details." >&2;}
27208    { (exit 1); exit 1; }; }
27209 fi
27210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27211 fi
27212 fi
27213 rm -f conftest.val
27214 else
27215   ac_cv_sizeof_long=0
27216 fi
27217 fi
27218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27219 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
27220 cat >>confdefs.h <<_ACEOF
27221 #define SIZEOF_LONG $ac_cv_sizeof_long
27222 _ACEOF
27223
27224
27225 echo "$as_me:$LINENO: checking for size_t" >&5
27226 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27227 if test "${ac_cv_type_size_t+set}" = set; then
27228   echo $ECHO_N "(cached) $ECHO_C" >&6
27229 else
27230   cat >conftest.$ac_ext <<_ACEOF
27231 /* confdefs.h.  */
27232 _ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h.  */
27236 $ac_includes_default
27237 int
27238 main ()
27239 {
27240 if ((size_t *) 0)
27241   return 0;
27242 if (sizeof (size_t))
27243   return 0;
27244   ;
27245   return 0;
27246 }
27247 _ACEOF
27248 rm -f conftest.$ac_objext
27249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27250   (eval $ac_compile) 2>conftest.er1
27251   ac_status=$?
27252   grep -v '^ *+' conftest.er1 >conftest.err
27253   rm -f conftest.er1
27254   cat conftest.err >&5
27255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256   (exit $ac_status); } &&
27257          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27259   (eval $ac_try) 2>&5
27260   ac_status=$?
27261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262   (exit $ac_status); }; } &&
27263          { ac_try='test -s conftest.$ac_objext'
27264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265   (eval $ac_try) 2>&5
27266   ac_status=$?
27267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268   (exit $ac_status); }; }; then
27269   ac_cv_type_size_t=yes
27270 else
27271   echo "$as_me: failed program was:" >&5
27272 sed 's/^/| /' conftest.$ac_ext >&5
27273
27274 ac_cv_type_size_t=no
27275 fi
27276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27277 fi
27278 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27279 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27280
27281 echo "$as_me:$LINENO: checking size of size_t" >&5
27282 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
27283 if test "${ac_cv_sizeof_size_t+set}" = set; then
27284   echo $ECHO_N "(cached) $ECHO_C" >&6
27285 else
27286   if test "$ac_cv_type_size_t" = yes; then
27287   # The cast to unsigned long works around a bug in the HP C Compiler
27288   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27289   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27290   # This bug is HP SR number 8606223364.
27291   if test "$cross_compiling" = yes; then
27292   # Depending upon the size, compute the lo and hi bounds.
27293 cat >conftest.$ac_ext <<_ACEOF
27294 /* confdefs.h.  */
27295 _ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h.  */
27299 $ac_includes_default
27300 int
27301 main ()
27302 {
27303 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
27304 test_array [0] = 0
27305
27306   ;
27307   return 0;
27308 }
27309 _ACEOF
27310 rm -f conftest.$ac_objext
27311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27312   (eval $ac_compile) 2>conftest.er1
27313   ac_status=$?
27314   grep -v '^ *+' conftest.er1 >conftest.err
27315   rm -f conftest.er1
27316   cat conftest.err >&5
27317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318   (exit $ac_status); } &&
27319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27321   (eval $ac_try) 2>&5
27322   ac_status=$?
27323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); }; } &&
27325          { ac_try='test -s conftest.$ac_objext'
27326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327   (eval $ac_try) 2>&5
27328   ac_status=$?
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); }; }; then
27331   ac_lo=0 ac_mid=0
27332   while :; do
27333     cat >conftest.$ac_ext <<_ACEOF
27334 /* confdefs.h.  */
27335 _ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h.  */
27339 $ac_includes_default
27340 int
27341 main ()
27342 {
27343 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27344 test_array [0] = 0
27345
27346   ;
27347   return 0;
27348 }
27349 _ACEOF
27350 rm -f conftest.$ac_objext
27351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27352   (eval $ac_compile) 2>conftest.er1
27353   ac_status=$?
27354   grep -v '^ *+' conftest.er1 >conftest.err
27355   rm -f conftest.er1
27356   cat conftest.err >&5
27357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358   (exit $ac_status); } &&
27359          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27361   (eval $ac_try) 2>&5
27362   ac_status=$?
27363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364   (exit $ac_status); }; } &&
27365          { ac_try='test -s conftest.$ac_objext'
27366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27367   (eval $ac_try) 2>&5
27368   ac_status=$?
27369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370   (exit $ac_status); }; }; then
27371   ac_hi=$ac_mid; break
27372 else
27373   echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27375
27376 ac_lo=`expr $ac_mid + 1`
27377                     if test $ac_lo -le $ac_mid; then
27378                       ac_lo= ac_hi=
27379                       break
27380                     fi
27381                     ac_mid=`expr 2 '*' $ac_mid + 1`
27382 fi
27383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27384   done
27385 else
27386   echo "$as_me: failed program was:" >&5
27387 sed 's/^/| /' conftest.$ac_ext >&5
27388
27389 cat >conftest.$ac_ext <<_ACEOF
27390 /* confdefs.h.  */
27391 _ACEOF
27392 cat confdefs.h >>conftest.$ac_ext
27393 cat >>conftest.$ac_ext <<_ACEOF
27394 /* end confdefs.h.  */
27395 $ac_includes_default
27396 int
27397 main ()
27398 {
27399 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
27400 test_array [0] = 0
27401
27402   ;
27403   return 0;
27404 }
27405 _ACEOF
27406 rm -f conftest.$ac_objext
27407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27408   (eval $ac_compile) 2>conftest.er1
27409   ac_status=$?
27410   grep -v '^ *+' conftest.er1 >conftest.err
27411   rm -f conftest.er1
27412   cat conftest.err >&5
27413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414   (exit $ac_status); } &&
27415          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27417   (eval $ac_try) 2>&5
27418   ac_status=$?
27419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420   (exit $ac_status); }; } &&
27421          { ac_try='test -s conftest.$ac_objext'
27422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27423   (eval $ac_try) 2>&5
27424   ac_status=$?
27425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426   (exit $ac_status); }; }; then
27427   ac_hi=-1 ac_mid=-1
27428   while :; do
27429     cat >conftest.$ac_ext <<_ACEOF
27430 /* confdefs.h.  */
27431 _ACEOF
27432 cat confdefs.h >>conftest.$ac_ext
27433 cat >>conftest.$ac_ext <<_ACEOF
27434 /* end confdefs.h.  */
27435 $ac_includes_default
27436 int
27437 main ()
27438 {
27439 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
27440 test_array [0] = 0
27441
27442   ;
27443   return 0;
27444 }
27445 _ACEOF
27446 rm -f conftest.$ac_objext
27447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27448   (eval $ac_compile) 2>conftest.er1
27449   ac_status=$?
27450   grep -v '^ *+' conftest.er1 >conftest.err
27451   rm -f conftest.er1
27452   cat conftest.err >&5
27453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454   (exit $ac_status); } &&
27455          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457   (eval $ac_try) 2>&5
27458   ac_status=$?
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); }; } &&
27461          { ac_try='test -s conftest.$ac_objext'
27462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463   (eval $ac_try) 2>&5
27464   ac_status=$?
27465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466   (exit $ac_status); }; }; then
27467   ac_lo=$ac_mid; break
27468 else
27469   echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27471
27472 ac_hi=`expr '(' $ac_mid ')' - 1`
27473                        if test $ac_mid -le $ac_hi; then
27474                          ac_lo= ac_hi=
27475                          break
27476                        fi
27477                        ac_mid=`expr 2 '*' $ac_mid`
27478 fi
27479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27480   done
27481 else
27482   echo "$as_me: failed program was:" >&5
27483 sed 's/^/| /' conftest.$ac_ext >&5
27484
27485 ac_lo= ac_hi=
27486 fi
27487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27488 fi
27489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27490 # Binary search between lo and hi bounds.
27491 while test "x$ac_lo" != "x$ac_hi"; do
27492   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27493   cat >conftest.$ac_ext <<_ACEOF
27494 /* confdefs.h.  */
27495 _ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h.  */
27499 $ac_includes_default
27500 int
27501 main ()
27502 {
27503 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27504 test_array [0] = 0
27505
27506   ;
27507   return 0;
27508 }
27509 _ACEOF
27510 rm -f conftest.$ac_objext
27511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27512   (eval $ac_compile) 2>conftest.er1
27513   ac_status=$?
27514   grep -v '^ *+' conftest.er1 >conftest.err
27515   rm -f conftest.er1
27516   cat conftest.err >&5
27517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518   (exit $ac_status); } &&
27519          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521   (eval $ac_try) 2>&5
27522   ac_status=$?
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); }; } &&
27525          { ac_try='test -s conftest.$ac_objext'
27526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527   (eval $ac_try) 2>&5
27528   ac_status=$?
27529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530   (exit $ac_status); }; }; then
27531   ac_hi=$ac_mid
27532 else
27533   echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27535
27536 ac_lo=`expr '(' $ac_mid ')' + 1`
27537 fi
27538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27539 done
27540 case $ac_lo in
27541 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27542 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27543 See \`config.log' for more details." >&5
27544 echo "$as_me: error: cannot compute sizeof (size_t), 77
27545 See \`config.log' for more details." >&2;}
27546    { (exit 1); exit 1; }; } ;;
27547 esac
27548 else
27549   if test "$cross_compiling" = yes; then
27550   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27551 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27552    { (exit 1); exit 1; }; }
27553 else
27554   cat >conftest.$ac_ext <<_ACEOF
27555 /* confdefs.h.  */
27556 _ACEOF
27557 cat confdefs.h >>conftest.$ac_ext
27558 cat >>conftest.$ac_ext <<_ACEOF
27559 /* end confdefs.h.  */
27560 $ac_includes_default
27561 long longval () { return (long) (sizeof (size_t)); }
27562 unsigned long ulongval () { return (long) (sizeof (size_t)); }
27563 #include <stdio.h>
27564 #include <stdlib.h>
27565 int
27566 main ()
27567 {
27568
27569   FILE *f = fopen ("conftest.val", "w");
27570   if (! f)
27571     exit (1);
27572   if (((long) (sizeof (size_t))) < 0)
27573     {
27574       long i = longval ();
27575       if (i != ((long) (sizeof (size_t))))
27576         exit (1);
27577       fprintf (f, "%ld\n", i);
27578     }
27579   else
27580     {
27581       unsigned long i = ulongval ();
27582       if (i != ((long) (sizeof (size_t))))
27583         exit (1);
27584       fprintf (f, "%lu\n", i);
27585     }
27586   exit (ferror (f) || fclose (f) != 0);
27587
27588   ;
27589   return 0;
27590 }
27591 _ACEOF
27592 rm -f conftest$ac_exeext
27593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27594   (eval $ac_link) 2>&5
27595   ac_status=$?
27596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599   (eval $ac_try) 2>&5
27600   ac_status=$?
27601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602   (exit $ac_status); }; }; then
27603   ac_cv_sizeof_size_t=`cat conftest.val`
27604 else
27605   echo "$as_me: program exited with status $ac_status" >&5
27606 echo "$as_me: failed program was:" >&5
27607 sed 's/^/| /' conftest.$ac_ext >&5
27608
27609 ( exit $ac_status )
27610 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27611 See \`config.log' for more details." >&5
27612 echo "$as_me: error: cannot compute sizeof (size_t), 77
27613 See \`config.log' for more details." >&2;}
27614    { (exit 1); exit 1; }; }
27615 fi
27616 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27617 fi
27618 fi
27619 rm -f conftest.val
27620 else
27621   ac_cv_sizeof_size_t=0
27622 fi
27623 fi
27624 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27625 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
27626 cat >>confdefs.h <<_ACEOF
27627 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27628 _ACEOF
27629
27630
27631
27632
27633 cat >>confdefs.h <<_ACEOF
27634 #define NFS_STATEDIR "$statedir"
27635 _ACEOF
27636
27637
27638 if test "x$cross_compiling" = "xno"; then
27639         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27640         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27641         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27642         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27643 else
27644         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27645         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27646         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27647         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27648 fi
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660 case $host in
27661   alpha*)
27662     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
27663   *)
27664     ARCHFLAGS="" ;;
27665 esac
27666
27667 my_am_cflags="-Wall $ARCHFLAGS -pipe"
27668
27669 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
27670
27671 AM_CFLAGS="$my_am_cflags"
27672
27673
27674 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27675 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27676
27677
27678                                                                                                                                                                                                                                                                                                             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"
27679
27680 cat >confcache <<\_ACEOF
27681 # This file is a shell script that caches the results of configure
27682 # tests run on this system so they can be shared between configure
27683 # scripts and configure runs, see configure's option --config-cache.
27684 # It is not useful on other systems.  If it contains results you don't
27685 # want to keep, you may remove or edit it.
27686 #
27687 # config.status only pays attention to the cache file if you give it
27688 # the --recheck option to rerun configure.
27689 #
27690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27692 # following values.
27693
27694 _ACEOF
27695
27696 # The following way of writing the cache mishandles newlines in values,
27697 # but we know of no workaround that is simple, portable, and efficient.
27698 # So, don't put newlines in cache variables' values.
27699 # Ultrix sh set writes to stderr and can't be redirected directly,
27700 # and sets the high bit in the cache file unless we assign to the vars.
27701 {
27702   (set) 2>&1 |
27703     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27704     *ac_space=\ *)
27705       # `set' does not quote correctly, so add quotes (double-quote
27706       # substitution turns \\\\ into \\, and sed turns \\ into \).
27707       sed -n \
27708         "s/'/'\\\\''/g;
27709           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27710       ;;
27711     *)
27712       # `set' quotes correctly as required by POSIX, so do not add quotes.
27713       sed -n \
27714         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27715       ;;
27716     esac;
27717 } |
27718   sed '
27719      t clear
27720      : clear
27721      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27722      t end
27723      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27724      : end' >>confcache
27725 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27726   if test -w $cache_file; then
27727     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27728     cat confcache >$cache_file
27729   else
27730     echo "not updating unwritable cache $cache_file"
27731   fi
27732 fi
27733 rm -f confcache
27734
27735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27736 # Let make expand exec_prefix.
27737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27738
27739 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27740 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27741 # trailing colons and then remove the whole line if VPATH becomes empty
27742 # (actually we leave an empty line to preserve line numbers).
27743 if test "x$srcdir" = x.; then
27744   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27745 s/:*\$(srcdir):*/:/;
27746 s/:*\${srcdir}:*/:/;
27747 s/:*@srcdir@:*/:/;
27748 s/^\([^=]*=[     ]*\):*/\1/;
27749 s/:*$//;
27750 s/^[^=]*=[       ]*$//;
27751 }'
27752 fi
27753
27754 DEFS=-DHAVE_CONFIG_H
27755
27756 ac_libobjs=
27757 ac_ltlibobjs=
27758 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27759   # 1. Remove the extension, and $U if already installed.
27760   ac_i=`echo "$ac_i" |
27761          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27762   # 2. Add them.
27763   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27764   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27765 done
27766 LIBOBJS=$ac_libobjs
27767
27768 LTLIBOBJS=$ac_ltlibobjs
27769
27770
27771 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27772   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27773 Usually this means the macro was only invoked conditionally." >&5
27774 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27775 Usually this means the macro was only invoked conditionally." >&2;}
27776    { (exit 1); exit 1; }; }
27777 fi
27778 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27779   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27780 Usually this means the macro was only invoked conditionally." >&5
27781 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27782 Usually this means the macro was only invoked conditionally." >&2;}
27783    { (exit 1); exit 1; }; }
27784 fi
27785 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
27786   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27787 Usually this means the macro was only invoked conditionally." >&5
27788 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27789 Usually this means the macro was only invoked conditionally." >&2;}
27790    { (exit 1); exit 1; }; }
27791 fi
27792 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27793   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27794 Usually this means the macro was only invoked conditionally." >&5
27795 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27796 Usually this means the macro was only invoked conditionally." >&2;}
27797    { (exit 1); exit 1; }; }
27798 fi
27799 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27800   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27801 Usually this means the macro was only invoked conditionally." >&5
27802 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27803 Usually this means the macro was only invoked conditionally." >&2;}
27804    { (exit 1); exit 1; }; }
27805 fi
27806 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27807   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27808 Usually this means the macro was only invoked conditionally." >&5
27809 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27810 Usually this means the macro was only invoked conditionally." >&2;}
27811    { (exit 1); exit 1; }; }
27812 fi
27813 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27814   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27815 Usually this means the macro was only invoked conditionally." >&5
27816 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27817 Usually this means the macro was only invoked conditionally." >&2;}
27818    { (exit 1); exit 1; }; }
27819 fi
27820
27821 : ${CONFIG_STATUS=./config.status}
27822 ac_clean_files_save=$ac_clean_files
27823 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27824 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27825 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27826 cat >$CONFIG_STATUS <<_ACEOF
27827 #! $SHELL
27828 # Generated by $as_me.
27829 # Run this file to recreate the current configuration.
27830 # Compiler output produced by configure, useful for debugging
27831 # configure, is in config.log if it exists.
27832
27833 debug=false
27834 ac_cs_recheck=false
27835 ac_cs_silent=false
27836 SHELL=\${CONFIG_SHELL-$SHELL}
27837 _ACEOF
27838
27839 cat >>$CONFIG_STATUS <<\_ACEOF
27840 ## --------------------- ##
27841 ## M4sh Initialization.  ##
27842 ## --------------------- ##
27843
27844 # Be Bourne compatible
27845 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27846   emulate sh
27847   NULLCMD=:
27848   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27849   # is contrary to our usage.  Disable this feature.
27850   alias -g '${1+"$@"}'='"$@"'
27851 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27852   set -o posix
27853 fi
27854 DUALCASE=1; export DUALCASE # for MKS sh
27855
27856 # Support unset when possible.
27857 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27858   as_unset=unset
27859 else
27860   as_unset=false
27861 fi
27862
27863
27864 # Work around bugs in pre-3.0 UWIN ksh.
27865 $as_unset ENV MAIL MAILPATH
27866 PS1='$ '
27867 PS2='> '
27868 PS4='+ '
27869
27870 # NLS nuisances.
27871 for as_var in \
27872   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27873   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27874   LC_TELEPHONE LC_TIME
27875 do
27876   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27877     eval $as_var=C; export $as_var
27878   else
27879     $as_unset $as_var
27880   fi
27881 done
27882
27883 # Required to use basename.
27884 if expr a : '\(a\)' >/dev/null 2>&1; then
27885   as_expr=expr
27886 else
27887   as_expr=false
27888 fi
27889
27890 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27891   as_basename=basename
27892 else
27893   as_basename=false
27894 fi
27895
27896
27897 # Name of the executable.
27898 as_me=`$as_basename "$0" ||
27899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27900          X"$0" : 'X\(//\)$' \| \
27901          X"$0" : 'X\(/\)$' \| \
27902          .     : '\(.\)' 2>/dev/null ||
27903 echo X/"$0" |
27904     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27905           /^X\/\(\/\/\)$/{ s//\1/; q; }
27906           /^X\/\(\/\).*/{ s//\1/; q; }
27907           s/.*/./; q'`
27908
27909
27910 # PATH needs CR, and LINENO needs CR and PATH.
27911 # Avoid depending upon Character Ranges.
27912 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27913 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27914 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27915 as_cr_digits='0123456789'
27916 as_cr_alnum=$as_cr_Letters$as_cr_digits
27917
27918 # The user is always right.
27919 if test "${PATH_SEPARATOR+set}" != set; then
27920   echo "#! /bin/sh" >conf$$.sh
27921   echo  "exit 0"   >>conf$$.sh
27922   chmod +x conf$$.sh
27923   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27924     PATH_SEPARATOR=';'
27925   else
27926     PATH_SEPARATOR=:
27927   fi
27928   rm -f conf$$.sh
27929 fi
27930
27931
27932   as_lineno_1=$LINENO
27933   as_lineno_2=$LINENO
27934   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27935   test "x$as_lineno_1" != "x$as_lineno_2" &&
27936   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
27937   # Find who we are.  Look in the path if we contain no path at all
27938   # relative or not.
27939   case $0 in
27940     *[\\/]* ) as_myself=$0 ;;
27941     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27942 for as_dir in $PATH
27943 do
27944   IFS=$as_save_IFS
27945   test -z "$as_dir" && as_dir=.
27946   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27947 done
27948
27949        ;;
27950   esac
27951   # We did not find ourselves, most probably we were run as `sh COMMAND'
27952   # in which case we are not to be found in the path.
27953   if test "x$as_myself" = x; then
27954     as_myself=$0
27955   fi
27956   if test ! -f "$as_myself"; then
27957     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27958 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27959    { (exit 1); exit 1; }; }
27960   fi
27961   case $CONFIG_SHELL in
27962   '')
27963     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27964 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27965 do
27966   IFS=$as_save_IFS
27967   test -z "$as_dir" && as_dir=.
27968   for as_base in sh bash ksh sh5; do
27969          case $as_dir in
27970          /*)
27971            if ("$as_dir/$as_base" -c '
27972   as_lineno_1=$LINENO
27973   as_lineno_2=$LINENO
27974   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27975   test "x$as_lineno_1" != "x$as_lineno_2" &&
27976   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
27977              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27978              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27979              CONFIG_SHELL=$as_dir/$as_base
27980              export CONFIG_SHELL
27981              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27982            fi;;
27983          esac
27984        done
27985 done
27986 ;;
27987   esac
27988
27989   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27990   # uniformly replaced by the line number.  The first 'sed' inserts a
27991   # line-number line before each line; the second 'sed' does the real
27992   # work.  The second script uses 'N' to pair each line-number line
27993   # with the numbered line, and appends trailing '-' during
27994   # substitution so that $LINENO is not a special case at line end.
27995   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27996   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
27997   sed '=' <$as_myself |
27998     sed '
27999       N
28000       s,$,-,
28001       : loop
28002       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28003       t loop
28004       s,-$,,
28005       s,^['$as_cr_digits']*\n,,
28006     ' >$as_me.lineno &&
28007   chmod +x $as_me.lineno ||
28008     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28009 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28010    { (exit 1); exit 1; }; }
28011
28012   # Don't try to exec as it changes $[0], causing all sort of problems
28013   # (the dirname of $[0] is not the place where we might find the
28014   # original and so on.  Autoconf is especially sensible to this).
28015   . ./$as_me.lineno
28016   # Exit status is that of the last command.
28017   exit
28018 }
28019
28020
28021 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28022   *c*,-n*) ECHO_N= ECHO_C='
28023 ' ECHO_T='      ' ;;
28024   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28025   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28026 esac
28027
28028 if expr a : '\(a\)' >/dev/null 2>&1; then
28029   as_expr=expr
28030 else
28031   as_expr=false
28032 fi
28033
28034 rm -f conf$$ conf$$.exe conf$$.file
28035 echo >conf$$.file
28036 if ln -s conf$$.file conf$$ 2>/dev/null; then
28037   # We could just check for DJGPP; but this test a) works b) is more generic
28038   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28039   if test -f conf$$.exe; then
28040     # Don't use ln at all; we don't have any links
28041     as_ln_s='cp -p'
28042   else
28043     as_ln_s='ln -s'
28044   fi
28045 elif ln conf$$.file conf$$ 2>/dev/null; then
28046   as_ln_s=ln
28047 else
28048   as_ln_s='cp -p'
28049 fi
28050 rm -f conf$$ conf$$.exe conf$$.file
28051
28052 if mkdir -p . 2>/dev/null; then
28053   as_mkdir_p=:
28054 else
28055   test -d ./-p && rmdir ./-p
28056   as_mkdir_p=false
28057 fi
28058
28059 as_executable_p="test -f"
28060
28061 # Sed expression to map a string onto a valid CPP name.
28062 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28063
28064 # Sed expression to map a string onto a valid variable name.
28065 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28066
28067
28068 # IFS
28069 # We need space, tab and new line, in precisely that order.
28070 as_nl='
28071 '
28072 IFS="   $as_nl"
28073
28074 # CDPATH.
28075 $as_unset CDPATH
28076
28077 exec 6>&1
28078
28079 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28080 # report actual input values of CONFIG_FILES etc. instead of their
28081 # values after options handling.  Logging --version etc. is OK.
28082 exec 5>>config.log
28083 {
28084   echo
28085   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28086 ## Running $as_me. ##
28087 _ASBOX
28088 } >&5
28089 cat >&5 <<_CSEOF
28090
28091 This file was extended by linux nfs-utils $as_me 1.0.8, which was
28092 generated by GNU Autoconf 2.59.  Invocation command line was
28093
28094   CONFIG_FILES    = $CONFIG_FILES
28095   CONFIG_HEADERS  = $CONFIG_HEADERS
28096   CONFIG_LINKS    = $CONFIG_LINKS
28097   CONFIG_COMMANDS = $CONFIG_COMMANDS
28098   $ $0 $@
28099
28100 _CSEOF
28101 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28102 echo >&5
28103 _ACEOF
28104
28105 # Files that config.status was made for.
28106 if test -n "$ac_config_files"; then
28107   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28108 fi
28109
28110 if test -n "$ac_config_headers"; then
28111   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28112 fi
28113
28114 if test -n "$ac_config_links"; then
28115   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28116 fi
28117
28118 if test -n "$ac_config_commands"; then
28119   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28120 fi
28121
28122 cat >>$CONFIG_STATUS <<\_ACEOF
28123
28124 ac_cs_usage="\
28125 \`$as_me' instantiates files from templates according to the
28126 current configuration.
28127
28128 Usage: $0 [OPTIONS] [FILE]...
28129
28130   -h, --help       print this help, then exit
28131   -V, --version    print version number, then exit
28132   -q, --quiet      do not print progress messages
28133   -d, --debug      don't remove temporary files
28134       --recheck    update $as_me by reconfiguring in the same conditions
28135   --file=FILE[:TEMPLATE]
28136                    instantiate the configuration file FILE
28137   --header=FILE[:TEMPLATE]
28138                    instantiate the configuration header FILE
28139
28140 Configuration files:
28141 $config_files
28142
28143 Configuration headers:
28144 $config_headers
28145
28146 Configuration commands:
28147 $config_commands
28148
28149 Report bugs to <bug-autoconf@gnu.org>."
28150 _ACEOF
28151
28152 cat >>$CONFIG_STATUS <<_ACEOF
28153 ac_cs_version="\\
28154 linux nfs-utils config.status 1.0.8
28155 configured by $0, generated by GNU Autoconf 2.59,
28156   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28157
28158 Copyright (C) 2003 Free Software Foundation, Inc.
28159 This config.status script is free software; the Free Software Foundation
28160 gives unlimited permission to copy, distribute and modify it."
28161 srcdir=$srcdir
28162 INSTALL="$INSTALL"
28163 _ACEOF
28164
28165 cat >>$CONFIG_STATUS <<\_ACEOF
28166 # If no file are specified by the user, then we need to provide default
28167 # value.  By we need to know if files were specified by the user.
28168 ac_need_defaults=:
28169 while test $# != 0
28170 do
28171   case $1 in
28172   --*=*)
28173     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28174     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28175     ac_shift=:
28176     ;;
28177   -*)
28178     ac_option=$1
28179     ac_optarg=$2
28180     ac_shift=shift
28181     ;;
28182   *) # This is not an option, so the user has probably given explicit
28183      # arguments.
28184      ac_option=$1
28185      ac_need_defaults=false;;
28186   esac
28187
28188   case $ac_option in
28189   # Handling of the options.
28190 _ACEOF
28191 cat >>$CONFIG_STATUS <<\_ACEOF
28192   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28193     ac_cs_recheck=: ;;
28194   --version | --vers* | -V )
28195     echo "$ac_cs_version"; exit 0 ;;
28196   --he | --h)
28197     # Conflict between --help and --header
28198     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28199 Try \`$0 --help' for more information." >&5
28200 echo "$as_me: error: ambiguous option: $1
28201 Try \`$0 --help' for more information." >&2;}
28202    { (exit 1); exit 1; }; };;
28203   --help | --hel | -h )
28204     echo "$ac_cs_usage"; exit 0 ;;
28205   --debug | --d* | -d )
28206     debug=: ;;
28207   --file | --fil | --fi | --f )
28208     $ac_shift
28209     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28210     ac_need_defaults=false;;
28211   --header | --heade | --head | --hea )
28212     $ac_shift
28213     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28214     ac_need_defaults=false;;
28215   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28216   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28217     ac_cs_silent=: ;;
28218
28219   # This is an error.
28220   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28221 Try \`$0 --help' for more information." >&5
28222 echo "$as_me: error: unrecognized option: $1
28223 Try \`$0 --help' for more information." >&2;}
28224    { (exit 1); exit 1; }; } ;;
28225
28226   *) ac_config_targets="$ac_config_targets $1" ;;
28227
28228   esac
28229   shift
28230 done
28231
28232 ac_configure_extra_args=
28233
28234 if $ac_cs_silent; then
28235   exec 6>/dev/null
28236   ac_configure_extra_args="$ac_configure_extra_args --silent"
28237 fi
28238
28239 _ACEOF
28240 cat >>$CONFIG_STATUS <<_ACEOF
28241 if \$ac_cs_recheck; then
28242   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28243   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28244 fi
28245
28246 _ACEOF
28247
28248 cat >>$CONFIG_STATUS <<_ACEOF
28249 #
28250 # INIT-COMMANDS section.
28251 #
28252
28253 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28254
28255 _ACEOF
28256
28257
28258
28259 cat >>$CONFIG_STATUS <<\_ACEOF
28260 for ac_config_target in $ac_config_targets
28261 do
28262   case "$ac_config_target" in
28263   # Handling of arguments.
28264   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28265   "linux-nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
28266   "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
28267   "support/export/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
28268   "support/include/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
28269   "support/include/rpcsvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
28270   "support/include/sys/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
28271   "support/include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
28272   "support/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
28273   "support/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
28274   "support/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
28275   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28276   "tools/getiversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
28277   "tools/getkversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
28278   "tools/locktest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
28279   "tools/nlmtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
28280   "tools/rpcdebug/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
28281   "tools/rpcgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
28282   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
28283   "utils/exportfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
28284   "utils/gssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
28285   "utils/idmapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
28286   "utils/lockd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
28287   "utils/mountd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
28288   "utils/nfsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
28289   "utils/nfsstat/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
28290   "utils/nhfsstone/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
28291   "utils/rquotad/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
28292   "utils/showmount/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
28293   "utils/statd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
28294   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28295   "support/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
28296   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28297 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28298    { (exit 1); exit 1; }; };;
28299   esac
28300 done
28301
28302 # If the user did not use the arguments to specify the items to instantiate,
28303 # then the envvar interface is used.  Set only those that are not.
28304 # We use the long form for the default assignment because of an extremely
28305 # bizarre bug on SunOS 4.1.3.
28306 if $ac_need_defaults; then
28307   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28308   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28309   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28310 fi
28311
28312 # Have a temporary directory for convenience.  Make it in the build tree
28313 # simply because there is no reason to put it here, and in addition,
28314 # creating and moving files from /tmp can sometimes cause problems.
28315 # Create a temporary directory, and hook for its removal unless debugging.
28316 $debug ||
28317 {
28318   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28319   trap '{ (exit 1); exit 1; }' 1 2 13 15
28320 }
28321
28322 # Create a (secure) tmp directory for tmp files.
28323
28324 {
28325   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28326   test -n "$tmp" && test -d "$tmp"
28327 }  ||
28328 {
28329   tmp=./confstat$$-$RANDOM
28330   (umask 077 && mkdir $tmp)
28331 } ||
28332 {
28333    echo "$me: cannot create a temporary directory in ." >&2
28334    { (exit 1); exit 1; }
28335 }
28336
28337 _ACEOF
28338
28339 cat >>$CONFIG_STATUS <<_ACEOF
28340
28341 #
28342 # CONFIG_FILES section.
28343 #
28344
28345 # No need to generate the scripts if there are no CONFIG_FILES.
28346 # This happens for instance when ./config.status config.h
28347 if test -n "\$CONFIG_FILES"; then
28348   # Protect against being on the right side of a sed subst in config.status.
28349   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28350    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28351 s,@SHELL@,$SHELL,;t t
28352 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28353 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28354 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28355 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28356 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28357 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28358 s,@exec_prefix@,$exec_prefix,;t t
28359 s,@prefix@,$prefix,;t t
28360 s,@program_transform_name@,$program_transform_name,;t t
28361 s,@bindir@,$bindir,;t t
28362 s,@sbindir@,$sbindir,;t t
28363 s,@libexecdir@,$libexecdir,;t t
28364 s,@datadir@,$datadir,;t t
28365 s,@sysconfdir@,$sysconfdir,;t t
28366 s,@sharedstatedir@,$sharedstatedir,;t t
28367 s,@localstatedir@,$localstatedir,;t t
28368 s,@libdir@,$libdir,;t t
28369 s,@includedir@,$includedir,;t t
28370 s,@oldincludedir@,$oldincludedir,;t t
28371 s,@infodir@,$infodir,;t t
28372 s,@mandir@,$mandir,;t t
28373 s,@build_alias@,$build_alias,;t t
28374 s,@host_alias@,$host_alias,;t t
28375 s,@target_alias@,$target_alias,;t t
28376 s,@DEFS@,$DEFS,;t t
28377 s,@ECHO_C@,$ECHO_C,;t t
28378 s,@ECHO_N@,$ECHO_N,;t t
28379 s,@ECHO_T@,$ECHO_T,;t t
28380 s,@LIBS@,$LIBS,;t t
28381 s,@build@,$build,;t t
28382 s,@build_cpu@,$build_cpu,;t t
28383 s,@build_vendor@,$build_vendor,;t t
28384 s,@build_os@,$build_os,;t t
28385 s,@host@,$host,;t t
28386 s,@host_cpu@,$host_cpu,;t t
28387 s,@host_vendor@,$host_vendor,;t t
28388 s,@host_os@,$host_os,;t t
28389 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28390 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28391 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28392 s,@CYGPATH_W@,$CYGPATH_W,;t t
28393 s,@PACKAGE@,$PACKAGE,;t t
28394 s,@VERSION@,$VERSION,;t t
28395 s,@ACLOCAL@,$ACLOCAL,;t t
28396 s,@AUTOCONF@,$AUTOCONF,;t t
28397 s,@AUTOMAKE@,$AUTOMAKE,;t t
28398 s,@AUTOHEADER@,$AUTOHEADER,;t t
28399 s,@MAKEINFO@,$MAKEINFO,;t t
28400 s,@install_sh@,$install_sh,;t t
28401 s,@STRIP@,$STRIP,;t t
28402 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28403 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28404 s,@mkdir_p@,$mkdir_p,;t t
28405 s,@AWK@,$AWK,;t t
28406 s,@SET_MAKE@,$SET_MAKE,;t t
28407 s,@am__leading_dot@,$am__leading_dot,;t t
28408 s,@AMTAR@,$AMTAR,;t t
28409 s,@am__tar@,$am__tar,;t t
28410 s,@am__untar@,$am__untar,;t t
28411 s,@RELEASE@,$RELEASE,;t t
28412 s,@statedir@,$statedir,;t t
28413 s,@statduser@,$statduser,;t t
28414 s,@enable_nfsv3@,$enable_nfsv3,;t t
28415 s,@IDMAPD@,$IDMAPD,;t t
28416 s,@enable_nfsv4@,$enable_nfsv4,;t t
28417 s,@CONFIG_NFSV4_TRUE@,$CONFIG_NFSV4_TRUE,;t t
28418 s,@CONFIG_NFSV4_FALSE@,$CONFIG_NFSV4_FALSE,;t t
28419 s,@GSSD@,$GSSD,;t t
28420 s,@SVCGSSD@,$SVCGSSD,;t t
28421 s,@enable_gss@,$enable_gss,;t t
28422 s,@CONFIG_GSS_TRUE@,$CONFIG_GSS_TRUE,;t t
28423 s,@CONFIG_GSS_FALSE@,$CONFIG_GSS_FALSE,;t t
28424 s,@kprefix@,$kprefix,;t t
28425 s,@secure_statd@,$secure_statd,;t t
28426 s,@CONFIG_RQUOTAD_TRUE@,$CONFIG_RQUOTAD_TRUE,;t t
28427 s,@CONFIG_RQUOTAD_FALSE@,$CONFIG_RQUOTAD_FALSE,;t t
28428 s,@CC@,$CC,;t t
28429 s,@CFLAGS@,$CFLAGS,;t t
28430 s,@LDFLAGS@,$LDFLAGS,;t t
28431 s,@CPPFLAGS@,$CPPFLAGS,;t t
28432 s,@ac_ct_CC@,$ac_ct_CC,;t t
28433 s,@EXEEXT@,$EXEEXT,;t t
28434 s,@OBJEXT@,$OBJEXT,;t t
28435 s,@DEPDIR@,$DEPDIR,;t t
28436 s,@am__include@,$am__include,;t t
28437 s,@am__quote@,$am__quote,;t t
28438 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28439 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28440 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28441 s,@CCDEPMODE@,$CCDEPMODE,;t t
28442 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28443 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28444 s,@LIBWRAP@,$LIBWRAP,;t t
28445 s,@HAVE_LIBWRAP@,$HAVE_LIBWRAP,;t t
28446 s,@HAVE_TCP_WRAPPER@,$HAVE_TCP_WRAPPER,;t t
28447 s,@CXX@,$CXX,;t t
28448 s,@CXXFLAGS@,$CXXFLAGS,;t t
28449 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28450 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28451 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28452 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28453 s,@CPP@,$CPP,;t t
28454 s,@LN_S@,$LN_S,;t t
28455 s,@EGREP@,$EGREP,;t t
28456 s,@ECHO@,$ECHO,;t t
28457 s,@AR@,$AR,;t t
28458 s,@ac_ct_AR@,$ac_ct_AR,;t t
28459 s,@RANLIB@,$RANLIB,;t t
28460 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28461 s,@CXXCPP@,$CXXCPP,;t t
28462 s,@F77@,$F77,;t t
28463 s,@FFLAGS@,$FFLAGS,;t t
28464 s,@ac_ct_F77@,$ac_ct_F77,;t t
28465 s,@LIBTOOL@,$LIBTOOL,;t t
28466 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
28467 s,@LD@,$LD,;t t
28468 s,@ac_ct_LD@,$ac_ct_LD,;t t
28469 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
28470 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
28471 s,@RPCSECGSS_CFLAGS@,$RPCSECGSS_CFLAGS,;t t
28472 s,@RPCSECGSS_LIBS@,$RPCSECGSS_LIBS,;t t
28473 s,@GSSAPI_CFLAGS@,$GSSAPI_CFLAGS,;t t
28474 s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
28475 s,@LIBSOCKET@,$LIBSOCKET,;t t
28476 s,@LIBNSL@,$LIBNSL,;t t
28477 s,@LIBCRYPT@,$LIBCRYPT,;t t
28478 s,@LIBBSD@,$LIBBSD,;t t
28479 s,@KRBDIR@,$KRBDIR,;t t
28480 s,@KRBLIBS@,$KRBLIBS,;t t
28481 s,@KRBCFLAGS@,$KRBCFLAGS,;t t
28482 s,@K5VERS@,$K5VERS,;t t
28483 s,@ALLOCA@,$ALLOCA,;t t
28484 s,@LIBOBJS@,$LIBOBJS,;t t
28485 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
28486 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
28487 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
28488 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
28489 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
28490 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
28491 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
28492 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28493 CEOF
28494
28495 _ACEOF
28496
28497   cat >>$CONFIG_STATUS <<\_ACEOF
28498   # Split the substitutions into bite-sized pieces for seds with
28499   # small command number limits, like on Digital OSF/1 and HP-UX.
28500   ac_max_sed_lines=48
28501   ac_sed_frag=1 # Number of current file.
28502   ac_beg=1 # First line for current file.
28503   ac_end=$ac_max_sed_lines # Line after last line for current file.
28504   ac_more_lines=:
28505   ac_sed_cmds=
28506   while $ac_more_lines; do
28507     if test $ac_beg -gt 1; then
28508       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28509     else
28510       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28511     fi
28512     if test ! -s $tmp/subs.frag; then
28513       ac_more_lines=false
28514     else
28515       # The purpose of the label and of the branching condition is to
28516       # speed up the sed processing (if there are no `@' at all, there
28517       # is no need to browse any of the substitutions).
28518       # These are the two extra sed commands mentioned above.
28519       (echo ':t
28520   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28521       if test -z "$ac_sed_cmds"; then
28522         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28523       else
28524         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28525       fi
28526       ac_sed_frag=`expr $ac_sed_frag + 1`
28527       ac_beg=$ac_end
28528       ac_end=`expr $ac_end + $ac_max_sed_lines`
28529     fi
28530   done
28531   if test -z "$ac_sed_cmds"; then
28532     ac_sed_cmds=cat
28533   fi
28534 fi # test -n "$CONFIG_FILES"
28535
28536 _ACEOF
28537 cat >>$CONFIG_STATUS <<\_ACEOF
28538 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28539   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28540   case $ac_file in
28541   - | *:- | *:-:* ) # input from stdin
28542         cat >$tmp/stdin
28543         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28544         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28545   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28546         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28547   * )   ac_file_in=$ac_file.in ;;
28548   esac
28549
28550   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28551   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28552 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28553          X"$ac_file" : 'X\(//\)[^/]' \| \
28554          X"$ac_file" : 'X\(//\)$' \| \
28555          X"$ac_file" : 'X\(/\)' \| \
28556          .     : '\(.\)' 2>/dev/null ||
28557 echo X"$ac_file" |
28558     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28559           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28560           /^X\(\/\/\)$/{ s//\1/; q; }
28561           /^X\(\/\).*/{ s//\1/; q; }
28562           s/.*/./; q'`
28563   { if $as_mkdir_p; then
28564     mkdir -p "$ac_dir"
28565   else
28566     as_dir="$ac_dir"
28567     as_dirs=
28568     while test ! -d "$as_dir"; do
28569       as_dirs="$as_dir $as_dirs"
28570       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28572          X"$as_dir" : 'X\(//\)[^/]' \| \
28573          X"$as_dir" : 'X\(//\)$' \| \
28574          X"$as_dir" : 'X\(/\)' \| \
28575          .     : '\(.\)' 2>/dev/null ||
28576 echo X"$as_dir" |
28577     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28578           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28579           /^X\(\/\/\)$/{ s//\1/; q; }
28580           /^X\(\/\).*/{ s//\1/; q; }
28581           s/.*/./; q'`
28582     done
28583     test ! -n "$as_dirs" || mkdir $as_dirs
28584   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28585 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28586    { (exit 1); exit 1; }; }; }
28587
28588   ac_builddir=.
28589
28590 if test "$ac_dir" != .; then
28591   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28592   # A "../" for each directory in $ac_dir_suffix.
28593   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28594 else
28595   ac_dir_suffix= ac_top_builddir=
28596 fi
28597
28598 case $srcdir in
28599   .)  # No --srcdir option.  We are building in place.
28600     ac_srcdir=.
28601     if test -z "$ac_top_builddir"; then
28602        ac_top_srcdir=.
28603     else
28604        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28605     fi ;;
28606   [\\/]* | ?:[\\/]* )  # Absolute path.
28607     ac_srcdir=$srcdir$ac_dir_suffix;
28608     ac_top_srcdir=$srcdir ;;
28609   *) # Relative path.
28610     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28611     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28612 esac
28613
28614 # Do not use `cd foo && pwd` to compute absolute paths, because
28615 # the directories may not exist.
28616 case `pwd` in
28617 .) ac_abs_builddir="$ac_dir";;
28618 *)
28619   case "$ac_dir" in
28620   .) ac_abs_builddir=`pwd`;;
28621   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28622   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28623   esac;;
28624 esac
28625 case $ac_abs_builddir in
28626 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28627 *)
28628   case ${ac_top_builddir}. in
28629   .) ac_abs_top_builddir=$ac_abs_builddir;;
28630   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28631   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28632   esac;;
28633 esac
28634 case $ac_abs_builddir in
28635 .) ac_abs_srcdir=$ac_srcdir;;
28636 *)
28637   case $ac_srcdir in
28638   .) ac_abs_srcdir=$ac_abs_builddir;;
28639   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28640   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28641   esac;;
28642 esac
28643 case $ac_abs_builddir in
28644 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28645 *)
28646   case $ac_top_srcdir in
28647   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28648   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28649   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28650   esac;;
28651 esac
28652
28653
28654   case $INSTALL in
28655   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28656   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28657   esac
28658
28659   # Let's still pretend it is `configure' which instantiates (i.e., don't
28660   # use $as_me), people would be surprised to read:
28661   #    /* config.h.  Generated by config.status.  */
28662   if test x"$ac_file" = x-; then
28663     configure_input=
28664   else
28665     configure_input="$ac_file.  "
28666   fi
28667   configure_input=$configure_input"Generated from `echo $ac_file_in |
28668                                      sed 's,.*/,,'` by configure."
28669
28670   # First look for the input files in the build tree, otherwise in the
28671   # src tree.
28672   ac_file_inputs=`IFS=:
28673     for f in $ac_file_in; do
28674       case $f in
28675       -) echo $tmp/stdin ;;
28676       [\\/$]*)
28677          # Absolute (can't be DOS-style, as IFS=:)
28678          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28679 echo "$as_me: error: cannot find input file: $f" >&2;}
28680    { (exit 1); exit 1; }; }
28681          echo "$f";;
28682       *) # Relative
28683          if test -f "$f"; then
28684            # Build tree
28685            echo "$f"
28686          elif test -f "$srcdir/$f"; then
28687            # Source tree
28688            echo "$srcdir/$f"
28689          else
28690            # /dev/null tree
28691            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28692 echo "$as_me: error: cannot find input file: $f" >&2;}
28693    { (exit 1); exit 1; }; }
28694          fi;;
28695       esac
28696     done` || { (exit 1); exit 1; }
28697
28698   if test x"$ac_file" != x-; then
28699     { echo "$as_me:$LINENO: creating $ac_file" >&5
28700 echo "$as_me: creating $ac_file" >&6;}
28701     rm -f "$ac_file"
28702   fi
28703 _ACEOF
28704 cat >>$CONFIG_STATUS <<_ACEOF
28705   sed "$ac_vpsub
28706 $extrasub
28707 _ACEOF
28708 cat >>$CONFIG_STATUS <<\_ACEOF
28709 :t
28710 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28711 s,@configure_input@,$configure_input,;t t
28712 s,@srcdir@,$ac_srcdir,;t t
28713 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28714 s,@top_srcdir@,$ac_top_srcdir,;t t
28715 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28716 s,@builddir@,$ac_builddir,;t t
28717 s,@abs_builddir@,$ac_abs_builddir,;t t
28718 s,@top_builddir@,$ac_top_builddir,;t t
28719 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28720 s,@INSTALL@,$ac_INSTALL,;t t
28721 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28722   rm -f $tmp/stdin
28723   if test x"$ac_file" != x-; then
28724     mv $tmp/out $ac_file
28725   else
28726     cat $tmp/out
28727     rm -f $tmp/out
28728   fi
28729
28730 done
28731 _ACEOF
28732 cat >>$CONFIG_STATUS <<\_ACEOF
28733
28734 #
28735 # CONFIG_HEADER section.
28736 #
28737
28738 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28739 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28740 #
28741 # ac_d sets the value in "#define NAME VALUE" lines.
28742 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
28743 ac_dB='[         ].*$,\1#\2'
28744 ac_dC=' '
28745 ac_dD=',;t'
28746 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28747 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
28748 ac_uB='$,\1#\2define\3'
28749 ac_uC=' '
28750 ac_uD=',;t'
28751
28752 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28753   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28754   case $ac_file in
28755   - | *:- | *:-:* ) # input from stdin
28756         cat >$tmp/stdin
28757         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28758         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28759   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28760         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28761   * )   ac_file_in=$ac_file.in ;;
28762   esac
28763
28764   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28765 echo "$as_me: creating $ac_file" >&6;}
28766
28767   # First look for the input files in the build tree, otherwise in the
28768   # src tree.
28769   ac_file_inputs=`IFS=:
28770     for f in $ac_file_in; do
28771       case $f in
28772       -) echo $tmp/stdin ;;
28773       [\\/$]*)
28774          # Absolute (can't be DOS-style, as IFS=:)
28775          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28776 echo "$as_me: error: cannot find input file: $f" >&2;}
28777    { (exit 1); exit 1; }; }
28778          # Do quote $f, to prevent DOS paths from being IFS'd.
28779          echo "$f";;
28780       *) # Relative
28781          if test -f "$f"; then
28782            # Build tree
28783            echo "$f"
28784          elif test -f "$srcdir/$f"; then
28785            # Source tree
28786            echo "$srcdir/$f"
28787          else
28788            # /dev/null tree
28789            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28790 echo "$as_me: error: cannot find input file: $f" >&2;}
28791    { (exit 1); exit 1; }; }
28792          fi;;
28793       esac
28794     done` || { (exit 1); exit 1; }
28795   # Remove the trailing spaces.
28796   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
28797
28798 _ACEOF
28799
28800 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28801 # `conftest.undefs', that substitutes the proper values into
28802 # config.h.in to produce config.h.  The first handles `#define'
28803 # templates, and the second `#undef' templates.
28804 # And first: Protect against being on the right side of a sed subst in
28805 # config.status.  Protect against being in an unquoted here document
28806 # in config.status.
28807 rm -f conftest.defines conftest.undefs
28808 # Using a here document instead of a string reduces the quoting nightmare.
28809 # Putting comments in sed scripts is not portable.
28810 #
28811 # `end' is used to avoid that the second main sed command (meant for
28812 # 0-ary CPP macros) applies to n-ary macro definitions.
28813 # See the Autoconf documentation for `clear'.
28814 cat >confdef2sed.sed <<\_ACEOF
28815 s/[\\&,]/\\&/g
28816 s,[\\$`],\\&,g
28817 t clear
28818 : clear
28819 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28820 t end
28821 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28822 : end
28823 _ACEOF
28824 # If some macros were called several times there might be several times
28825 # the same #defines, which is useless.  Nevertheless, we may not want to
28826 # sort them, since we want the *last* AC-DEFINE to be honored.
28827 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28828 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28829 rm -f confdef2sed.sed
28830
28831 # This sed command replaces #undef with comments.  This is necessary, for
28832 # example, in the case of _POSIX_SOURCE, which is predefined and required
28833 # on some systems where configure will not decide to define it.
28834 cat >>conftest.undefs <<\_ACEOF
28835 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28836 _ACEOF
28837
28838 # Break up conftest.defines because some shells have a limit on the size
28839 # of here documents, and old seds have small limits too (100 cmds).
28840 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28841 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28842 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28843 echo '  :' >>$CONFIG_STATUS
28844 rm -f conftest.tail
28845 while grep . conftest.defines >/dev/null
28846 do
28847   # Write a limited-size here document to $tmp/defines.sed.
28848   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28849   # Speed up: don't consider the non `#define' lines.
28850   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
28851   # Work around the forget-to-reset-the-flag bug.
28852   echo 't clr' >>$CONFIG_STATUS
28853   echo ': clr' >>$CONFIG_STATUS
28854   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28855   echo 'CEOF
28856   sed -f $tmp/defines.sed $tmp/in >$tmp/out
28857   rm -f $tmp/in
28858   mv $tmp/out $tmp/in
28859 ' >>$CONFIG_STATUS
28860   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28861   rm -f conftest.defines
28862   mv conftest.tail conftest.defines
28863 done
28864 rm -f conftest.defines
28865 echo '  fi # grep' >>$CONFIG_STATUS
28866 echo >>$CONFIG_STATUS
28867
28868 # Break up conftest.undefs because some shells have a limit on the size
28869 # of here documents, and old seds have small limits too (100 cmds).
28870 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
28871 rm -f conftest.tail
28872 while grep . conftest.undefs >/dev/null
28873 do
28874   # Write a limited-size here document to $tmp/undefs.sed.
28875   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28876   # Speed up: don't consider the non `#undef'
28877   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
28878   # Work around the forget-to-reset-the-flag bug.
28879   echo 't clr' >>$CONFIG_STATUS
28880   echo ': clr' >>$CONFIG_STATUS
28881   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28882   echo 'CEOF
28883   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28884   rm -f $tmp/in
28885   mv $tmp/out $tmp/in
28886 ' >>$CONFIG_STATUS
28887   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28888   rm -f conftest.undefs
28889   mv conftest.tail conftest.undefs
28890 done
28891 rm -f conftest.undefs
28892
28893 cat >>$CONFIG_STATUS <<\_ACEOF
28894   # Let's still pretend it is `configure' which instantiates (i.e., don't
28895   # use $as_me), people would be surprised to read:
28896   #    /* config.h.  Generated by config.status.  */
28897   if test x"$ac_file" = x-; then
28898     echo "/* Generated by configure.  */" >$tmp/config.h
28899   else
28900     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28901   fi
28902   cat $tmp/in >>$tmp/config.h
28903   rm -f $tmp/in
28904   if test x"$ac_file" != x-; then
28905     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28906       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28907 echo "$as_me: $ac_file is unchanged" >&6;}
28908     else
28909       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28911          X"$ac_file" : 'X\(//\)[^/]' \| \
28912          X"$ac_file" : 'X\(//\)$' \| \
28913          X"$ac_file" : 'X\(/\)' \| \
28914          .     : '\(.\)' 2>/dev/null ||
28915 echo X"$ac_file" |
28916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28917           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28918           /^X\(\/\/\)$/{ s//\1/; q; }
28919           /^X\(\/\).*/{ s//\1/; q; }
28920           s/.*/./; q'`
28921       { if $as_mkdir_p; then
28922     mkdir -p "$ac_dir"
28923   else
28924     as_dir="$ac_dir"
28925     as_dirs=
28926     while test ! -d "$as_dir"; do
28927       as_dirs="$as_dir $as_dirs"
28928       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28930          X"$as_dir" : 'X\(//\)[^/]' \| \
28931          X"$as_dir" : 'X\(//\)$' \| \
28932          X"$as_dir" : 'X\(/\)' \| \
28933          .     : '\(.\)' 2>/dev/null ||
28934 echo X"$as_dir" |
28935     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28936           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28937           /^X\(\/\/\)$/{ s//\1/; q; }
28938           /^X\(\/\).*/{ s//\1/; q; }
28939           s/.*/./; q'`
28940     done
28941     test ! -n "$as_dirs" || mkdir $as_dirs
28942   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28943 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28944    { (exit 1); exit 1; }; }; }
28945
28946       rm -f $ac_file
28947       mv $tmp/config.h $ac_file
28948     fi
28949   else
28950     cat $tmp/config.h
28951     rm -f $tmp/config.h
28952   fi
28953 # Compute $ac_file's index in $config_headers.
28954 _am_stamp_count=1
28955 for _am_header in $config_headers :; do
28956   case $_am_header in
28957     $ac_file | $ac_file:* )
28958       break ;;
28959     * )
28960       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28961   esac
28962 done
28963 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28964 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28965          X$ac_file : 'X\(//\)[^/]' \| \
28966          X$ac_file : 'X\(//\)$' \| \
28967          X$ac_file : 'X\(/\)' \| \
28968          .     : '\(.\)' 2>/dev/null ||
28969 echo X$ac_file |
28970     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28971           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28972           /^X\(\/\/\)$/{ s//\1/; q; }
28973           /^X\(\/\).*/{ s//\1/; q; }
28974           s/.*/./; q'`/stamp-h$_am_stamp_count
28975 done
28976 _ACEOF
28977 cat >>$CONFIG_STATUS <<\_ACEOF
28978
28979 #
28980 # CONFIG_COMMANDS section.
28981 #
28982 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28983   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28984   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28985   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28986 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28987          X"$ac_dest" : 'X\(//\)[^/]' \| \
28988          X"$ac_dest" : 'X\(//\)$' \| \
28989          X"$ac_dest" : 'X\(/\)' \| \
28990          .     : '\(.\)' 2>/dev/null ||
28991 echo X"$ac_dest" |
28992     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28993           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28994           /^X\(\/\/\)$/{ s//\1/; q; }
28995           /^X\(\/\).*/{ s//\1/; q; }
28996           s/.*/./; q'`
28997   { if $as_mkdir_p; then
28998     mkdir -p "$ac_dir"
28999   else
29000     as_dir="$ac_dir"
29001     as_dirs=
29002     while test ! -d "$as_dir"; do
29003       as_dirs="$as_dir $as_dirs"
29004       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29006          X"$as_dir" : 'X\(//\)[^/]' \| \
29007          X"$as_dir" : 'X\(//\)$' \| \
29008          X"$as_dir" : 'X\(/\)' \| \
29009          .     : '\(.\)' 2>/dev/null ||
29010 echo X"$as_dir" |
29011     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29012           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29013           /^X\(\/\/\)$/{ s//\1/; q; }
29014           /^X\(\/\).*/{ s//\1/; q; }
29015           s/.*/./; q'`
29016     done
29017     test ! -n "$as_dirs" || mkdir $as_dirs
29018   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29019 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29020    { (exit 1); exit 1; }; }; }
29021
29022   ac_builddir=.
29023
29024 if test "$ac_dir" != .; then
29025   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29026   # A "../" for each directory in $ac_dir_suffix.
29027   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29028 else
29029   ac_dir_suffix= ac_top_builddir=
29030 fi
29031
29032 case $srcdir in
29033   .)  # No --srcdir option.  We are building in place.
29034     ac_srcdir=.
29035     if test -z "$ac_top_builddir"; then
29036        ac_top_srcdir=.
29037     else
29038        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29039     fi ;;
29040   [\\/]* | ?:[\\/]* )  # Absolute path.
29041     ac_srcdir=$srcdir$ac_dir_suffix;
29042     ac_top_srcdir=$srcdir ;;
29043   *) # Relative path.
29044     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29045     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29046 esac
29047
29048 # Do not use `cd foo && pwd` to compute absolute paths, because
29049 # the directories may not exist.
29050 case `pwd` in
29051 .) ac_abs_builddir="$ac_dir";;
29052 *)
29053   case "$ac_dir" in
29054   .) ac_abs_builddir=`pwd`;;
29055   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29056   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29057   esac;;
29058 esac
29059 case $ac_abs_builddir in
29060 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29061 *)
29062   case ${ac_top_builddir}. in
29063   .) ac_abs_top_builddir=$ac_abs_builddir;;
29064   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29065   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29066   esac;;
29067 esac
29068 case $ac_abs_builddir in
29069 .) ac_abs_srcdir=$ac_srcdir;;
29070 *)
29071   case $ac_srcdir in
29072   .) ac_abs_srcdir=$ac_abs_builddir;;
29073   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29074   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29075   esac;;
29076 esac
29077 case $ac_abs_builddir in
29078 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29079 *)
29080   case $ac_top_srcdir in
29081   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29082   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29083   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29084   esac;;
29085 esac
29086
29087
29088   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29089 echo "$as_me: executing $ac_dest commands" >&6;}
29090   case $ac_dest in
29091     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29092   # Strip MF so we end up with the name of the file.
29093   mf=`echo "$mf" | sed -e 's/:.*$//'`
29094   # Check whether this is an Automake generated Makefile or not.
29095   # We used to match only the files named `Makefile.in', but
29096   # some people rename them; so instead we look at the file content.
29097   # Grep'ing the first line is not enough: some people post-process
29098   # each Makefile.in and add a new line on top of each file to say so.
29099   # So let's grep whole file.
29100   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29101     dirpart=`(dirname "$mf") 2>/dev/null ||
29102 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29103          X"$mf" : 'X\(//\)[^/]' \| \
29104          X"$mf" : 'X\(//\)$' \| \
29105          X"$mf" : 'X\(/\)' \| \
29106          .     : '\(.\)' 2>/dev/null ||
29107 echo X"$mf" |
29108     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29109           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29110           /^X\(\/\/\)$/{ s//\1/; q; }
29111           /^X\(\/\).*/{ s//\1/; q; }
29112           s/.*/./; q'`
29113   else
29114     continue
29115   fi
29116   # Extract the definition of DEPDIR, am__include, and am__quote
29117   # from the Makefile without running `make'.
29118   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29119   test -z "$DEPDIR" && continue
29120   am__include=`sed -n 's/^am__include = //p' < "$mf"`
29121   test -z "am__include" && continue
29122   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29123   # When using ansi2knr, U may be empty or an underscore; expand it
29124   U=`sed -n 's/^U = //p' < "$mf"`
29125   # Find all dependency output files, they are included files with
29126   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29127   # simplest approach to changing $(DEPDIR) to its actual value in the
29128   # expansion.
29129   for file in `sed -n "
29130     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29131        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29132     # Make sure the directory exists.
29133     test -f "$dirpart/$file" && continue
29134     fdir=`(dirname "$file") 2>/dev/null ||
29135 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29136          X"$file" : 'X\(//\)[^/]' \| \
29137          X"$file" : 'X\(//\)$' \| \
29138          X"$file" : 'X\(/\)' \| \
29139          .     : '\(.\)' 2>/dev/null ||
29140 echo X"$file" |
29141     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29142           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29143           /^X\(\/\/\)$/{ s//\1/; q; }
29144           /^X\(\/\).*/{ s//\1/; q; }
29145           s/.*/./; q'`
29146     { if $as_mkdir_p; then
29147     mkdir -p $dirpart/$fdir
29148   else
29149     as_dir=$dirpart/$fdir
29150     as_dirs=
29151     while test ! -d "$as_dir"; do
29152       as_dirs="$as_dir $as_dirs"
29153       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29155          X"$as_dir" : 'X\(//\)[^/]' \| \
29156          X"$as_dir" : 'X\(//\)$' \| \
29157          X"$as_dir" : 'X\(/\)' \| \
29158          .     : '\(.\)' 2>/dev/null ||
29159 echo X"$as_dir" |
29160     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29161           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29162           /^X\(\/\/\)$/{ s//\1/; q; }
29163           /^X\(\/\).*/{ s//\1/; q; }
29164           s/.*/./; q'`
29165     done
29166     test ! -n "$as_dirs" || mkdir $as_dirs
29167   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29168 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29169    { (exit 1); exit 1; }; }; }
29170
29171     # echo "creating $dirpart/$file"
29172     echo '# dummy' > "$dirpart/$file"
29173   done
29174 done
29175  ;;
29176   esac
29177 done
29178 _ACEOF
29179
29180 cat >>$CONFIG_STATUS <<\_ACEOF
29181
29182 { (exit 0); exit 0; }
29183 _ACEOF
29184 chmod +x $CONFIG_STATUS
29185 ac_clean_files=$ac_clean_files_save
29186
29187
29188 # configure is writing to config.log, and then calls config.status.
29189 # config.status does its own redirection, appending to config.log.
29190 # Unfortunately, on DOS this fails, as config.log is still kept open
29191 # by configure, so config.status won't be able to write to it; its
29192 # output is simply discarded.  So we exec the FD to /dev/null,
29193 # effectively closing config.log, so it can be properly (re)opened and
29194 # appended to by config.status.  When coming back to configure, we
29195 # need to make the FD available again.
29196 if test "$no_create" != yes; then
29197   ac_cs_success=:
29198   ac_config_status_args=
29199   test "$silent" = yes &&
29200     ac_config_status_args="$ac_config_status_args --quiet"
29201   exec 5>/dev/null
29202   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29203   exec 5>>config.log
29204   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29205   # would make configure fail if this is the last instruction.
29206   $ac_cs_success || { (exit 1); exit 1; }
29207 fi
29208
29209