sync to 0.30.212
[util-vserver.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for util-vserver 0.30.212.
4 #
5 # Report bugs to <vserver@list.linux-vserver.org>.
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='util-vserver'
425 PACKAGE_TARNAME='util-vserver'
426 PACKAGE_VERSION='0.30.212'
427 PACKAGE_STRING='util-vserver 0.30.212'
428 PACKAGE_BUGREPORT='vserver@list.linux-vserver.org'
429
430 ac_unique_file="src/capchroot.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os GPG_KEY CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ENSC_HAVE_CXX_COMPILER_TRUE ENSC_HAVE_CXX_COMPILER_FALSE ENSC_HAVE_C99_COMPILER_TRUE ENSC_HAVE_C99_COMPILER_FALSE ENSC_PATHPROG_SED CAT CHOWN CMP CP DIRNAME EGREP ENV GREP LN MKDIR MKFIFO MKTEMP MOUNT MV NICE PS RM RMDIR SED SH TAC TAR TOUCH TTY UMOUNT WC IP IPTABLES MODPROBE NAMEIF NOHUP RMMOD VCONFIG WGET FILE GZIP BZIP2 CPIO RESTORE RSYNC DOXYGEN XSLTP XSLTPROC HAVE_XSLTP_TRUE HAVE_XSLTP_FALSE HAVE_XSLTPROC_TRUE HAVE_XSLTPROC_FALSE LIB_DEBUG_CPPFLAGS ENSC_USE_EXPENSIVE_TESTS initrddir RELEASE_CPPFLAGS DIET DIETFLAGS USE_DIETLIBC_TRUE USE_DIETLIBC_FALSE USE_DIETLIBC_COMPAT_TRUE USE_DIETLIBC_COMPAT_FALSE ENSC_USE_DIETLIBC_TRUE ENSC_USE_DIETLIBC_FALSE ENSC_USE_GLIBC_TRUE ENSC_USE_GLIBC_FALSE ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL vserverdir SVN2CL HAVE_SVN2CL_TRUE HAVE_SVN2CL_FALSE ENSC_ENABLE_INTERNAL_HEADERS_TRUE ENSC_ENABLE_INTERNAL_HEADERS_FALSE ENSC_HAVE_BEECRYPT_TRUE ENSC_HAVE_BEECRYPT_FALSE ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
926 ac_env_CC_value=$CC
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_DIET_set=${DIET+set}
934 ac_env_DIET_value=$DIET
935 ac_cv_env_DIET_set=${DIET+set}
936 ac_cv_env_DIET_value=$DIET
937 ac_env_DIETFLAGS_set=${DIETFLAGS+set}
938 ac_env_DIETFLAGS_value=$DIETFLAGS
939 ac_cv_env_DIETFLAGS_set=${DIETFLAGS+set}
940 ac_cv_env_DIETFLAGS_value=$DIETFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
957
958 #
959 # Report the --help message.
960 #
961 if test "$ac_init_help" = "long"; then
962   # Omit some internal or obsolete options to make the list less imposing.
963   # This message is too long to be a string in the A/UX 3.1 sh.
964   cat <<_ACEOF
965 \`configure' configures util-vserver 0.30.212 to adapt to many kinds of systems.
966
967 Usage: $0 [OPTION]... [VAR=VALUE]...
968
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE.  See below for descriptions of some of the useful variables.
971
972 Defaults for the options are specified in brackets.
973
974 Configuration:
975   -h, --help              display this help and exit
976       --help=short        display options specific to this package
977       --help=recursive    display the short help of all the included packages
978   -V, --version           display version information and exit
979   -q, --quiet, --silent   do not print \`checking...' messages
980       --cache-file=FILE   cache test results in FILE [disabled]
981   -C, --config-cache      alias for \`--cache-file=config.cache'
982   -n, --no-create         do not create output files
983       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
984
985 _ACEOF
986
987   cat <<_ACEOF
988 Installation directories:
989   --prefix=PREFIX         install architecture-independent files in PREFIX
990                           [$ac_default_prefix]
991   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
992                           [PREFIX]
993
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
998
999 For better control, use the options below.
1000
1001 Fine tuning of the installation directories:
1002   --bindir=DIR           user executables [EPREFIX/bin]
1003   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1004   --libexecdir=DIR       program executables [EPREFIX/libexec]
1005   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1006   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1007   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1008   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1009   --libdir=DIR           object code libraries [EPREFIX/lib]
1010   --includedir=DIR       C header files [PREFIX/include]
1011   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1012   --infodir=DIR          info documentation [PREFIX/info]
1013   --mandir=DIR           man documentation [PREFIX/man]
1014 _ACEOF
1015
1016   cat <<\_ACEOF
1017
1018 Program names:
1019   --program-prefix=PREFIX            prepend PREFIX to installed program names
1020   --program-suffix=SUFFIX            append SUFFIX to installed program names
1021   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1022
1023 System types:
1024   --build=BUILD     configure for building on BUILD [guessed]
1025   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1026 _ACEOF
1027 fi
1028
1029 if test -n "$ac_init_help"; then
1030   case $ac_init_help in
1031      short | recursive ) echo "Configuration of util-vserver 0.30.212:";;
1032    esac
1033   cat <<\_ACEOF
1034
1035 Optional Features:
1036   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1037   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1038   --enable-maintainer-mode  enable make rules and dependencies not useful
1039                           (and sometimes confusing) to the casual installer
1040   --disable-dependency-tracking  speeds up one-time build
1041   --enable-dependency-tracking   do not reject slow dependency extractors
1042   --disable-extra-optimizations
1043                           disable certain extra optimizations (default: no)
1044   --enable-lib-debug      enable additional debug code in library (default:
1045                           no)
1046   --enable-expensive-tests
1047                           disable tests which might be expensive on some
1048                           systems (default: no)
1049   --enable-release        enable release mode (default: no)
1050   --disable-dietlibc      do not use dietlibc resp. enforce its usage (with
1051                           --enable-dietlibc) (default: autodetect dietlibc)
1052   --disable-alternative-syscalls
1053                           do not use the alternative _syscallX macros provided
1054                           by Herbert Poetzl (default: use them)
1055   --enable-shared[=PKGS]
1056                           build shared libraries [default=yes]
1057   --enable-static[=PKGS]
1058                           build static libraries [default=yes]
1059   --enable-fast-install[=PKGS]
1060                           optimize for fast installation [default=yes]
1061   --disable-libtool-lock  avoid locking (might break parallel builds)
1062   --disable-internal-headers
1063                           use vserver specific headers from the kernel instead
1064                           of the shipped versions (default: no)
1065   --enable-apis=APIS      enable support for the given apis; possible values
1066                           are: legacy,compat,v11,fscompat,v13obs,v13,net,
1067                           ALL,NOLEGACY (default: v13,net,v21)
1068
1069 Optional Packages:
1070   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1071   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1072   --with-initrddir <DIR>  use <DIR> as directory for SysV init-files (default:
1073                           $sysconfdir/init.d)
1074   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1075   --with-pic              try to use only PIC/non-PIC objects [default=use
1076                           both]
1077   --with-tags[=TAGS]
1078                           include additional configurations [automatic]
1079   --with-vrootdir=DIR     place vservers under DIR (default: /vservers)
1080   --with-syscall=METHOD   call syscall(2) with the specified METHOD; valid
1081                           values are 'fast', 'traditional' and 'auto'
1082                           (default: auto)
1083
1084 Some influential environment variables:
1085   CXX         C++ compiler command
1086   CXXFLAGS    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   CC          C compiler command
1092   CFLAGS      C compiler flags
1093   DIET        The 'diet' wrapper (default: diet)
1094   DIETFLAGS   Flags passed to the 'diet' wrapper (default: -O)
1095   CPP         C preprocessor
1096   CXXCPP      C++ preprocessor
1097   F77         Fortran 77 compiler command
1098   FFLAGS      Fortran 77 compiler flags
1099
1100 Use these variables to override the choices made by `configure' or to help
1101 it to find libraries and programs with nonstandard names/locations.
1102
1103 Report bugs to <vserver@list.linux-vserver.org>.
1104 _ACEOF
1105 fi
1106
1107 if test "$ac_init_help" = "recursive"; then
1108   # If there are subdirs, report their specific --help.
1109   ac_popdir=`pwd`
1110   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1111     test -d $ac_dir || continue
1112     ac_builddir=.
1113
1114 if test "$ac_dir" != .; then
1115   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1116   # A "../" for each directory in $ac_dir_suffix.
1117   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1118 else
1119   ac_dir_suffix= ac_top_builddir=
1120 fi
1121
1122 case $srcdir in
1123   .)  # No --srcdir option.  We are building in place.
1124     ac_srcdir=.
1125     if test -z "$ac_top_builddir"; then
1126        ac_top_srcdir=.
1127     else
1128        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1129     fi ;;
1130   [\\/]* | ?:[\\/]* )  # Absolute path.
1131     ac_srcdir=$srcdir$ac_dir_suffix;
1132     ac_top_srcdir=$srcdir ;;
1133   *) # Relative path.
1134     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1135     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1136 esac
1137
1138 # Do not use `cd foo && pwd` to compute absolute paths, because
1139 # the directories may not exist.
1140 case `pwd` in
1141 .) ac_abs_builddir="$ac_dir";;
1142 *)
1143   case "$ac_dir" in
1144   .) ac_abs_builddir=`pwd`;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1146   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1147   esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1151 *)
1152   case ${ac_top_builddir}. in
1153   .) ac_abs_top_builddir=$ac_abs_builddir;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1155   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1156   esac;;
1157 esac
1158 case $ac_abs_builddir in
1159 .) ac_abs_srcdir=$ac_srcdir;;
1160 *)
1161   case $ac_srcdir in
1162   .) ac_abs_srcdir=$ac_abs_builddir;;
1163   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1164   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1165   esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1169 *)
1170   case $ac_top_srcdir in
1171   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1172   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1173   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1174   esac;;
1175 esac
1176
1177     cd $ac_dir
1178     # Check for guested configure; otherwise get Cygnus style configure.
1179     if test -f $ac_srcdir/configure.gnu; then
1180       echo
1181       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1182     elif test -f $ac_srcdir/configure; then
1183       echo
1184       $SHELL $ac_srcdir/configure  --help=recursive
1185     elif test -f $ac_srcdir/configure.ac ||
1186            test -f $ac_srcdir/configure.in; then
1187       echo
1188       $ac_configure --help
1189     else
1190       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1191     fi
1192     cd $ac_popdir
1193   done
1194 fi
1195
1196 test -n "$ac_init_help" && exit 0
1197 if $ac_init_version; then
1198   cat <<\_ACEOF
1199 util-vserver configure 0.30.212
1200 generated by GNU Autoconf 2.59
1201
1202 Copyright (C) 2003 Free Software Foundation, Inc.
1203 This configure script is free software; the Free Software Foundation
1204 gives unlimited permission to copy, distribute and modify it.
1205 _ACEOF
1206   exit 0
1207 fi
1208 exec 5>config.log
1209 cat >&5 <<_ACEOF
1210 This file contains any messages produced by compilers while
1211 running configure, to aid debugging if configure makes a mistake.
1212
1213 It was created by util-vserver $as_me 0.30.212, which was
1214 generated by GNU Autoconf 2.59.  Invocation command line was
1215
1216   $ $0 $@
1217
1218 _ACEOF
1219 {
1220 cat <<_ASUNAME
1221 ## --------- ##
1222 ## Platform. ##
1223 ## --------- ##
1224
1225 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1226 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1227 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1228 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1229 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1230
1231 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1232 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1233
1234 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1235 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1236 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1237 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1238 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1239 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1240 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1241
1242 _ASUNAME
1243
1244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1245 for as_dir in $PATH
1246 do
1247   IFS=$as_save_IFS
1248   test -z "$as_dir" && as_dir=.
1249   echo "PATH: $as_dir"
1250 done
1251
1252 } >&5
1253
1254 cat >&5 <<_ACEOF
1255
1256
1257 ## ----------- ##
1258 ## Core tests. ##
1259 ## ----------- ##
1260
1261 _ACEOF
1262
1263
1264 # Keep a trace of the command line.
1265 # Strip out --no-create and --no-recursion so they do not pile up.
1266 # Strip out --silent because we don't want to record it for future runs.
1267 # Also quote any args containing shell meta-characters.
1268 # Make two passes to allow for proper duplicate-argument suppression.
1269 ac_configure_args=
1270 ac_configure_args0=
1271 ac_configure_args1=
1272 ac_sep=
1273 ac_must_keep_next=false
1274 for ac_pass in 1 2
1275 do
1276   for ac_arg
1277   do
1278     case $ac_arg in
1279     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1280     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281     | -silent | --silent | --silen | --sile | --sil)
1282       continue ;;
1283     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1285     esac
1286     case $ac_pass in
1287     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1288     2)
1289       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1290       if test $ac_must_keep_next = true; then
1291         ac_must_keep_next=false # Got value, back to normal.
1292       else
1293         case $ac_arg in
1294           *=* | --config-cache | -C | -disable-* | --disable-* \
1295           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1296           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1297           | -with-* | --with-* | -without-* | --without-* | --x)
1298             case "$ac_configure_args0 " in
1299               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1300             esac
1301             ;;
1302           -* ) ac_must_keep_next=true ;;
1303         esac
1304       fi
1305       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1306       # Get rid of the leading space.
1307       ac_sep=" "
1308       ;;
1309     esac
1310   done
1311 done
1312 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1313 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1314
1315 # When interrupted or exit'd, cleanup temporary files, and complete
1316 # config.log.  We remove comments because anyway the quotes in there
1317 # would cause problems or look ugly.
1318 # WARNING: Be sure not to use single quotes in there, as some shells,
1319 # such as our DU 5.0 friend, will then `close' the trap.
1320 trap 'exit_status=$?
1321   # Save into config.log some information that might help in debugging.
1322   {
1323     echo
1324
1325     cat <<\_ASBOX
1326 ## ---------------- ##
1327 ## Cache variables. ##
1328 ## ---------------- ##
1329 _ASBOX
1330     echo
1331     # The following way of writing the cache mishandles newlines in values,
1332 {
1333   (set) 2>&1 |
1334     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1335     *ac_space=\ *)
1336       sed -n \
1337         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1338           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1339       ;;
1340     *)
1341       sed -n \
1342         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1343       ;;
1344     esac;
1345 }
1346     echo
1347
1348     cat <<\_ASBOX
1349 ## ----------------- ##
1350 ## Output variables. ##
1351 ## ----------------- ##
1352 _ASBOX
1353     echo
1354     for ac_var in $ac_subst_vars
1355     do
1356       eval ac_val=$`echo $ac_var`
1357       echo "$ac_var='"'"'$ac_val'"'"'"
1358     done | sort
1359     echo
1360
1361     if test -n "$ac_subst_files"; then
1362       cat <<\_ASBOX
1363 ## ------------- ##
1364 ## Output files. ##
1365 ## ------------- ##
1366 _ASBOX
1367       echo
1368       for ac_var in $ac_subst_files
1369       do
1370         eval ac_val=$`echo $ac_var`
1371         echo "$ac_var='"'"'$ac_val'"'"'"
1372       done | sort
1373       echo
1374     fi
1375
1376     if test -s confdefs.h; then
1377       cat <<\_ASBOX
1378 ## ----------- ##
1379 ## confdefs.h. ##
1380 ## ----------- ##
1381 _ASBOX
1382       echo
1383       sed "/^$/d" confdefs.h | sort
1384       echo
1385     fi
1386     test "$ac_signal" != 0 &&
1387       echo "$as_me: caught signal $ac_signal"
1388     echo "$as_me: exit $exit_status"
1389   } >&5
1390   rm -f core *.core &&
1391   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1392     exit $exit_status
1393      ' 0
1394 for ac_signal in 1 2 13 15; do
1395   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1396 done
1397 ac_signal=0
1398
1399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1400 rm -rf conftest* confdefs.h
1401 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1402 echo >confdefs.h
1403
1404 # Predefined preprocessor variables.
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_NAME "$PACKAGE_NAME"
1408 _ACEOF
1409
1410
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1413 _ACEOF
1414
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_STRING "$PACKAGE_STRING"
1423 _ACEOF
1424
1425
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1428 _ACEOF
1429
1430
1431 # Let the site file select an alternate cache file if it wants to.
1432 # Prefer explicitly selected file to automatically selected ones.
1433 if test -z "$CONFIG_SITE"; then
1434   if test "x$prefix" != xNONE; then
1435     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1436   else
1437     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1438   fi
1439 fi
1440 for ac_site_file in $CONFIG_SITE; do
1441   if test -r "$ac_site_file"; then
1442     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1443 echo "$as_me: loading site script $ac_site_file" >&6;}
1444     sed 's/^/| /' "$ac_site_file" >&5
1445     . "$ac_site_file"
1446   fi
1447 done
1448
1449 if test -r "$cache_file"; then
1450   # Some versions of bash will fail to source /dev/null (special
1451   # files actually), so we avoid doing that.
1452   if test -f "$cache_file"; then
1453     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1454 echo "$as_me: loading cache $cache_file" >&6;}
1455     case $cache_file in
1456       [\\/]* | ?:[\\/]* ) . $cache_file;;
1457       *)                      . ./$cache_file;;
1458     esac
1459   fi
1460 else
1461   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1462 echo "$as_me: creating cache $cache_file" >&6;}
1463   >$cache_file
1464 fi
1465
1466 # Check that the precious variables saved in the cache have kept the same
1467 # value.
1468 ac_cache_corrupted=false
1469 for ac_var in `(set) 2>&1 |
1470                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1471   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1472   eval ac_new_set=\$ac_env_${ac_var}_set
1473   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1474   eval ac_new_val="\$ac_env_${ac_var}_value"
1475   case $ac_old_set,$ac_new_set in
1476     set,)
1477       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1478 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1479       ac_cache_corrupted=: ;;
1480     ,set)
1481       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1482 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1483       ac_cache_corrupted=: ;;
1484     ,);;
1485     *)
1486       if test "x$ac_old_val" != "x$ac_new_val"; then
1487         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1488 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1489         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1490 echo "$as_me:   former value:  $ac_old_val" >&2;}
1491         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1492 echo "$as_me:   current value: $ac_new_val" >&2;}
1493         ac_cache_corrupted=:
1494       fi;;
1495   esac
1496   # Pass precious variables to config.status.
1497   if test "$ac_new_set" = set; then
1498     case $ac_new_val in
1499     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1500       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1501     *) ac_arg=$ac_var=$ac_new_val ;;
1502     esac
1503     case " $ac_configure_args " in
1504       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1505       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1506     esac
1507   fi
1508 done
1509 if $ac_cache_corrupted; then
1510   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1511 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1512   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1513 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1514    { (exit 1); exit 1; }; }
1515 fi
1516
1517 ac_ext=c
1518 ac_cpp='$CPP $CPPFLAGS'
1519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550           ac_config_headers="$ac_config_headers config.h"
1551
1552
1553 am__api_version="1.9"
1554 ac_aux_dir=
1555 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1556   if test -f $ac_dir/install-sh; then
1557     ac_aux_dir=$ac_dir
1558     ac_install_sh="$ac_aux_dir/install-sh -c"
1559     break
1560   elif test -f $ac_dir/install.sh; then
1561     ac_aux_dir=$ac_dir
1562     ac_install_sh="$ac_aux_dir/install.sh -c"
1563     break
1564   elif test -f $ac_dir/shtool; then
1565     ac_aux_dir=$ac_dir
1566     ac_install_sh="$ac_aux_dir/shtool install -c"
1567     break
1568   fi
1569 done
1570 if test -z "$ac_aux_dir"; then
1571   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1572 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1573    { (exit 1); exit 1; }; }
1574 fi
1575 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578
1579 # Find a good install program.  We prefer a C program (faster),
1580 # so one script is as good as another.  But avoid the broken or
1581 # incompatible versions:
1582 # SysV /etc/install, /usr/sbin/install
1583 # SunOS /usr/etc/install
1584 # IRIX /sbin/install
1585 # AIX /bin/install
1586 # AmigaOS /C/install, which installs bootblocks on floppy discs
1587 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1590 # OS/2's system install, which has a completely different semantic
1591 # ./install, which can be erroneously created by make from ./install.sh.
1592 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1593 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1594 if test -z "$INSTALL"; then
1595 if test "${ac_cv_path_install+set}" = set; then
1596   echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1600 do
1601   IFS=$as_save_IFS
1602   test -z "$as_dir" && as_dir=.
1603   # Account for people who put trailing slashes in PATH elements.
1604 case $as_dir/ in
1605   ./ | .// | /cC/* | \
1606   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1607   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1608   /usr/ucb/* ) ;;
1609   *)
1610     # OSF1 and SCO ODT 3.0 have their own names for install.
1611     # Don't use installbsd from OSF since it installs stuff as root
1612     # by default.
1613     for ac_prog in ginstall scoinst install; do
1614       for ac_exec_ext in '' $ac_executable_extensions; do
1615         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1616           if test $ac_prog = install &&
1617             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1618             # AIX install.  It has an incompatible calling convention.
1619             :
1620           elif test $ac_prog = install &&
1621             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1622             # program-specific install script used by HP pwplus--don't use.
1623             :
1624           else
1625             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1626             break 3
1627           fi
1628         fi
1629       done
1630     done
1631     ;;
1632 esac
1633 done
1634
1635
1636 fi
1637   if test "${ac_cv_path_install+set}" = set; then
1638     INSTALL=$ac_cv_path_install
1639   else
1640     # As a last resort, use the slow shell script.  We don't cache a
1641     # path for INSTALL within a source directory, because that will
1642     # break other packages using the cache if that directory is
1643     # removed, or if the path is relative.
1644     INSTALL=$ac_install_sh
1645   fi
1646 fi
1647 echo "$as_me:$LINENO: result: $INSTALL" >&5
1648 echo "${ECHO_T}$INSTALL" >&6
1649
1650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1651 # It thinks the first close brace ends the variable substitution.
1652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1653
1654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1655
1656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1657
1658 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1659 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1660 # Just in case
1661 sleep 1
1662 echo timestamp > conftest.file
1663 # Do `set' in a subshell so we don't clobber the current shell's
1664 # arguments.  Must try -L first in case configure is actually a
1665 # symlink; some systems play weird games with the mod time of symlinks
1666 # (eg FreeBSD returns the mod time of the symlink's containing
1667 # directory).
1668 if (
1669    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1670    if test "$*" = "X"; then
1671       # -L didn't work.
1672       set X `ls -t $srcdir/configure conftest.file`
1673    fi
1674    rm -f conftest.file
1675    if test "$*" != "X $srcdir/configure conftest.file" \
1676       && test "$*" != "X conftest.file $srcdir/configure"; then
1677
1678       # If neither matched, then we have a broken ls.  This can happen
1679       # if, for instance, CONFIG_SHELL is bash and it inherits a
1680       # broken ls alias from the environment.  This has actually
1681       # happened.  Such a system could not be considered "sane".
1682       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1683 alias in your environment" >&5
1684 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1685 alias in your environment" >&2;}
1686    { (exit 1); exit 1; }; }
1687    fi
1688
1689    test "$2" = conftest.file
1690    )
1691 then
1692    # Ok.
1693    :
1694 else
1695    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1696 Check your system clock" >&5
1697 echo "$as_me: error: newly created file is older than distributed files!
1698 Check your system clock" >&2;}
1699    { (exit 1); exit 1; }; }
1700 fi
1701 echo "$as_me:$LINENO: result: yes" >&5
1702 echo "${ECHO_T}yes" >&6
1703 test "$program_prefix" != NONE &&
1704   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1705 # Use a double $ so make ignores it.
1706 test "$program_suffix" != NONE &&
1707   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1708 # Double any \ or $.  echo might interpret backslashes.
1709 # By default was `s,x,x', remove it if useless.
1710 cat <<\_ACEOF >conftest.sed
1711 s/[\\$]/&&/g;s/;s,x,x,$//
1712 _ACEOF
1713 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1714 rm conftest.sed
1715
1716 # expand $ac_aux_dir to an absolute path
1717 am_aux_dir=`cd $ac_aux_dir && pwd`
1718
1719 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1720 # Use eval to expand $SHELL
1721 if eval "$MISSING --run true"; then
1722   am_missing_run="$MISSING --run "
1723 else
1724   am_missing_run=
1725   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1726 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1727 fi
1728
1729 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1730   # We used to keeping the `.' as first argument, in order to
1731   # allow $(mkdir_p) to be used without argument.  As in
1732   #   $(mkdir_p) $(somedir)
1733   # where $(somedir) is conditionally defined.  However this is wrong
1734   # for two reasons:
1735   #  1. if the package is installed by a user who cannot write `.'
1736   #     make install will fail,
1737   #  2. the above comment should most certainly read
1738   #     $(mkdir_p) $(DESTDIR)$(somedir)
1739   #     so it does not work when $(somedir) is undefined and
1740   #     $(DESTDIR) is not.
1741   #  To support the latter case, we have to write
1742   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1743   #  so the `.' trick is pointless.
1744   mkdir_p='mkdir -p --'
1745 else
1746   # On NextStep and OpenStep, the `mkdir' command does not
1747   # recognize any option.  It will interpret all options as
1748   # directories to create, and then abort because `.' already
1749   # exists.
1750   for d in ./-p ./--version;
1751   do
1752     test -d $d && rmdir $d
1753   done
1754   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1755   if test -f "$ac_aux_dir/mkinstalldirs"; then
1756     mkdir_p='$(mkinstalldirs)'
1757   else
1758     mkdir_p='$(install_sh) -d'
1759   fi
1760 fi
1761
1762 for ac_prog in gawk mawk nawk awk
1763 do
1764   # Extract the first word of "$ac_prog", so it can be a program name with args.
1765 set dummy $ac_prog; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_AWK+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   if test -n "$AWK"; then
1772   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777   IFS=$as_save_IFS
1778   test -z "$as_dir" && as_dir=.
1779   for ac_exec_ext in '' $ac_executable_extensions; do
1780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781     ac_cv_prog_AWK="$ac_prog"
1782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783     break 2
1784   fi
1785 done
1786 done
1787
1788 fi
1789 fi
1790 AWK=$ac_cv_prog_AWK
1791 if test -n "$AWK"; then
1792   echo "$as_me:$LINENO: result: $AWK" >&5
1793 echo "${ECHO_T}$AWK" >&6
1794 else
1795   echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799   test -n "$AWK" && break
1800 done
1801
1802 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1803 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1804 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1805 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1806   echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808   cat >conftest.make <<\_ACEOF
1809 all:
1810         @echo 'ac_maketemp="$(MAKE)"'
1811 _ACEOF
1812 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1813 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1814 if test -n "$ac_maketemp"; then
1815   eval ac_cv_prog_make_${ac_make}_set=yes
1816 else
1817   eval ac_cv_prog_make_${ac_make}_set=no
1818 fi
1819 rm -f conftest.make
1820 fi
1821 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1822   echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1824   SET_MAKE=
1825 else
1826   echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828   SET_MAKE="MAKE=${MAKE-make}"
1829 fi
1830
1831 rm -rf .tst 2>/dev/null
1832 mkdir .tst 2>/dev/null
1833 if test -d .tst; then
1834   am__leading_dot=.
1835 else
1836   am__leading_dot=_
1837 fi
1838 rmdir .tst 2>/dev/null
1839
1840 # test to see if srcdir already configured
1841 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1842    test -f $srcdir/config.status; then
1843   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1844 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1845    { (exit 1); exit 1; }; }
1846 fi
1847
1848 # test whether we have cygpath
1849 if test -z "$CYGPATH_W"; then
1850   if (cygpath --version) >/dev/null 2>/dev/null; then
1851     CYGPATH_W='cygpath -w'
1852   else
1853     CYGPATH_W=echo
1854   fi
1855 fi
1856
1857
1858 # Define the identity of the package.
1859  PACKAGE='util-vserver'
1860  VERSION='0.30.212'
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE "$PACKAGE"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define VERSION "$VERSION"
1870 _ACEOF
1871
1872 # Some tools Automake needs.
1873
1874 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1875
1876
1877 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1878
1879
1880 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1881
1882
1883 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1884
1885
1886 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1887
1888 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1889
1890 # Installed binaries are usually stripped using `strip' when the user
1891 # run `make install-strip'.  However `strip' might not be the right
1892 # tool to use in cross-compilation environments, therefore Automake
1893 # will honor the `STRIP' environment variable to overrule this program.
1894 if test "$cross_compiling" != no; then
1895   if test -n "$ac_tool_prefix"; then
1896   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1897 set dummy ${ac_tool_prefix}strip; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_STRIP+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   if test -n "$STRIP"; then
1904   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909   IFS=$as_save_IFS
1910   test -z "$as_dir" && as_dir=.
1911   for ac_exec_ext in '' $ac_executable_extensions; do
1912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915     break 2
1916   fi
1917 done
1918 done
1919
1920 fi
1921 fi
1922 STRIP=$ac_cv_prog_STRIP
1923 if test -n "$STRIP"; then
1924   echo "$as_me:$LINENO: result: $STRIP" >&5
1925 echo "${ECHO_T}$STRIP" >&6
1926 else
1927   echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1930
1931 fi
1932 if test -z "$ac_cv_prog_STRIP"; then
1933   ac_ct_STRIP=$STRIP
1934   # Extract the first word of "strip", so it can be a program name with args.
1935 set dummy strip; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   if test -n "$ac_ct_STRIP"; then
1942   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947   IFS=$as_save_IFS
1948   test -z "$as_dir" && as_dir=.
1949   for ac_exec_ext in '' $ac_executable_extensions; do
1950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951     ac_cv_prog_ac_ct_STRIP="strip"
1952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953     break 2
1954   fi
1955 done
1956 done
1957
1958   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1959 fi
1960 fi
1961 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1962 if test -n "$ac_ct_STRIP"; then
1963   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1964 echo "${ECHO_T}$ac_ct_STRIP" >&6
1965 else
1966   echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1968 fi
1969
1970   STRIP=$ac_ct_STRIP
1971 else
1972   STRIP="$ac_cv_prog_STRIP"
1973 fi
1974
1975 fi
1976 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1977
1978 # We need awk for the "check" target.  The system "awk" is bad on
1979 # some platforms.
1980 # Always define AMTAR for backward compatibility.
1981
1982 AMTAR=${AMTAR-"${am_missing_run}tar"}
1983
1984 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1985
1986
1987
1988
1989
1990 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1991 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1992     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1993 if test "${enable_maintainer_mode+set}" = set; then
1994   enableval="$enable_maintainer_mode"
1995   USE_MAINTAINER_MODE=$enableval
1996 else
1997   USE_MAINTAINER_MODE=no
1998 fi;
1999   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2000 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2001
2002
2003 if test $USE_MAINTAINER_MODE = yes; then
2004   MAINTAINER_MODE_TRUE=
2005   MAINTAINER_MODE_FALSE='#'
2006 else
2007   MAINTAINER_MODE_TRUE='#'
2008   MAINTAINER_MODE_FALSE=
2009 fi
2010
2011   MAINT=$MAINTAINER_MODE_TRUE
2012
2013
2014
2015 # Make sure we can run config.sub.
2016 $ac_config_sub sun4 >/dev/null 2>&1 ||
2017   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2018 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2019    { (exit 1); exit 1; }; }
2020
2021 echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2023 if test "${ac_cv_build+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   ac_cv_build_alias=$build_alias
2027 test -z "$ac_cv_build_alias" &&
2028   ac_cv_build_alias=`$ac_config_guess`
2029 test -z "$ac_cv_build_alias" &&
2030   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032    { (exit 1); exit 1; }; }
2033 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2034   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2035 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2036    { (exit 1); exit 1; }; }
2037
2038 fi
2039 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6
2041 build=$ac_cv_build
2042 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2043 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2044 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2045
2046
2047 echo "$as_me:$LINENO: checking host system type" >&5
2048 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2049 if test "${ac_cv_host+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   ac_cv_host_alias=$host_alias
2053 test -z "$ac_cv_host_alias" &&
2054   ac_cv_host_alias=$ac_cv_build_alias
2055 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2056   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2057 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2058    { (exit 1); exit 1; }; }
2059
2060 fi
2061 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2062 echo "${ECHO_T}$ac_cv_host" >&6
2063 host=$ac_cv_host
2064 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2065 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2066 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2067
2068
2069
2070 GPG_KEY="0xFFD316AC53ACA43A!"
2071
2072
2073 # Checks for programs.
2074 ac_ext=cc
2075 ac_cpp='$CXXCPP $CPPFLAGS'
2076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2079 if test -n "$ac_tool_prefix"; then
2080   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2081   do
2082     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_CXX+set}" = set; then
2087   echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089   if test -n "$CXX"; then
2090   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2091 else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2094 do
2095   IFS=$as_save_IFS
2096   test -z "$as_dir" && as_dir=.
2097   for ac_exec_ext in '' $ac_executable_extensions; do
2098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101     break 2
2102   fi
2103 done
2104 done
2105
2106 fi
2107 fi
2108 CXX=$ac_cv_prog_CXX
2109 if test -n "$CXX"; then
2110   echo "$as_me:$LINENO: result: $CXX" >&5
2111 echo "${ECHO_T}$CXX" >&6
2112 else
2113   echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2115 fi
2116
2117     test -n "$CXX" && break
2118   done
2119 fi
2120 if test -z "$CXX"; then
2121   ac_ct_CXX=$CXX
2122   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2123 do
2124   # Extract the first word of "$ac_prog", so it can be a program name with args.
2125 set dummy $ac_prog; ac_word=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2129   echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131   if test -n "$ac_ct_CXX"; then
2132   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2133 else
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2136 do
2137   IFS=$as_save_IFS
2138   test -z "$as_dir" && as_dir=.
2139   for ac_exec_ext in '' $ac_executable_extensions; do
2140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141     ac_cv_prog_ac_ct_CXX="$ac_prog"
2142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143     break 2
2144   fi
2145 done
2146 done
2147
2148 fi
2149 fi
2150 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2151 if test -n "$ac_ct_CXX"; then
2152   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2153 echo "${ECHO_T}$ac_ct_CXX" >&6
2154 else
2155   echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2157 fi
2158
2159   test -n "$ac_ct_CXX" && break
2160 done
2161 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2162
2163   CXX=$ac_ct_CXX
2164 fi
2165
2166
2167 # Provide some information about the compiler.
2168 echo "$as_me:$LINENO:" \
2169      "checking for C++ compiler version" >&5
2170 ac_compiler=`set X $ac_compile; echo $2`
2171 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2172   (eval $ac_compiler --version </dev/null >&5) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }
2176 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2177   (eval $ac_compiler -v </dev/null >&5) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }
2181 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2182   (eval $ac_compiler -V </dev/null >&5) 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); }
2186
2187 cat >conftest.$ac_ext <<_ACEOF
2188 /* confdefs.h.  */
2189 _ACEOF
2190 cat confdefs.h >>conftest.$ac_ext
2191 cat >>conftest.$ac_ext <<_ACEOF
2192 /* end confdefs.h.  */
2193
2194 int
2195 main ()
2196 {
2197
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 ac_clean_files_save=$ac_clean_files
2203 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2204 # Try to create an executable without -o first, disregard a.out.
2205 # It will help us diagnose broken compilers, and finding out an intuition
2206 # of exeext.
2207 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2208 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2209 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2210 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2211   (eval $ac_link_default) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; then
2215   # Find the output, starting from the most likely.  This scheme is
2216 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2217 # resort.
2218
2219 # Be careful to initialize this variable, since it used to be cached.
2220 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2221 ac_cv_exeext=
2222 # b.out is created by i960 compilers.
2223 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2224 do
2225   test -f "$ac_file" || continue
2226   case $ac_file in
2227     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2228         ;;
2229     conftest.$ac_ext )
2230         # This is the source file.
2231         ;;
2232     [ab].out )
2233         # We found the default executable, but exeext='' is most
2234         # certainly right.
2235         break;;
2236     *.* )
2237         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2238         # FIXME: I believe we export ac_cv_exeext for Libtool,
2239         # but it would be cool to find out if it's true.  Does anybody
2240         # maintain Libtool? --akim.
2241         export ac_cv_exeext
2242         break;;
2243     * )
2244         break;;
2245   esac
2246 done
2247 else
2248   echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250
2251 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: C++ compiler cannot create executables
2254 See \`config.log' for more details." >&2;}
2255    { (exit 77); exit 77; }; }
2256 fi
2257
2258 ac_exeext=$ac_cv_exeext
2259 echo "$as_me:$LINENO: result: $ac_file" >&5
2260 echo "${ECHO_T}$ac_file" >&6
2261
2262 # Check the compiler produces executables we can run.  If not, either
2263 # the compiler is broken, or we cross compile.
2264 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2265 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2266 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2267 # If not cross compiling, check that we can run a simple program.
2268 if test "$cross_compiling" != yes; then
2269   if { ac_try='./$ac_file'
2270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271   (eval $ac_try) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; }; then
2275     cross_compiling=no
2276   else
2277     if test "$cross_compiling" = maybe; then
2278         cross_compiling=yes
2279     else
2280         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2281 If you meant to cross compile, use \`--host'.
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot run C++ compiled programs.
2284 If you meant to cross compile, use \`--host'.
2285 See \`config.log' for more details." >&2;}
2286    { (exit 1); exit 1; }; }
2287     fi
2288   fi
2289 fi
2290 echo "$as_me:$LINENO: result: yes" >&5
2291 echo "${ECHO_T}yes" >&6
2292
2293 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2294 ac_clean_files=$ac_clean_files_save
2295 # Check the compiler produces executables we can run.  If not, either
2296 # the compiler is broken, or we cross compile.
2297 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2298 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2299 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2300 echo "${ECHO_T}$cross_compiling" >&6
2301
2302 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2303 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2305   (eval $ac_link) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; then
2309   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2310 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2311 # work properly (i.e., refer to `conftest.exe'), while it won't with
2312 # `rm'.
2313 for ac_file in conftest.exe conftest conftest.*; do
2314   test -f "$ac_file" || continue
2315   case $ac_file in
2316     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2317     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2318           export ac_cv_exeext
2319           break;;
2320     * ) break;;
2321   esac
2322 done
2323 else
2324   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&2;}
2328    { (exit 1); exit 1; }; }
2329 fi
2330
2331 rm -f conftest$ac_cv_exeext
2332 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2333 echo "${ECHO_T}$ac_cv_exeext" >&6
2334
2335 rm -f conftest.$ac_ext
2336 EXEEXT=$ac_cv_exeext
2337 ac_exeext=$EXEEXT
2338 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2339 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2340 if test "${ac_cv_objext+set}" = set; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   cat >conftest.$ac_ext <<_ACEOF
2344 /* confdefs.h.  */
2345 _ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h.  */
2349
2350 int
2351 main ()
2352 {
2353
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 rm -f conftest.o conftest.obj
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360   (eval $ac_compile) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; then
2364   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2365   case $ac_file in
2366     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2367     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2368        break;;
2369   esac
2370 done
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2376 See \`config.log' for more details." >&5
2377 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2378 See \`config.log' for more details." >&2;}
2379    { (exit 1); exit 1; }; }
2380 fi
2381
2382 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2383 fi
2384 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2385 echo "${ECHO_T}$ac_cv_objext" >&6
2386 OBJEXT=$ac_cv_objext
2387 ac_objext=$OBJEXT
2388 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2389 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2390 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   cat >conftest.$ac_ext <<_ACEOF
2394 /* confdefs.h.  */
2395 _ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h.  */
2399
2400 int
2401 main ()
2402 {
2403 #ifndef __GNUC__
2404        choke me
2405 #endif
2406
2407   ;
2408   return 0;
2409 }
2410 _ACEOF
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413   (eval $ac_compile) 2>conftest.er1
2414   ac_status=$?
2415   grep -v '^ *+' conftest.er1 >conftest.err
2416   rm -f conftest.er1
2417   cat conftest.err >&5
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); } &&
2420          { ac_try='test -z "$ac_cxx_werror_flag"
2421                          || test ! -s conftest.err'
2422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423   (eval $ac_try) 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }; } &&
2427          { ac_try='test -s conftest.$ac_objext'
2428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429   (eval $ac_try) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; }; then
2433   ac_compiler_gnu=yes
2434 else
2435   echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 ac_compiler_gnu=no
2439 fi
2440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2442
2443 fi
2444 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2445 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2446 GXX=`test $ac_compiler_gnu = yes && echo yes`
2447 ac_test_CXXFLAGS=${CXXFLAGS+set}
2448 ac_save_CXXFLAGS=$CXXFLAGS
2449 CXXFLAGS="-g"
2450 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2451 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2452 if test "${ac_cv_prog_cxx_g+set}" = set; then
2453   echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455   cat >conftest.$ac_ext <<_ACEOF
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461
2462 int
2463 main ()
2464 {
2465
2466   ;
2467   return 0;
2468 }
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472   (eval $ac_compile) 2>conftest.er1
2473   ac_status=$?
2474   grep -v '^ *+' conftest.er1 >conftest.err
2475   rm -f conftest.er1
2476   cat conftest.err >&5
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); } &&
2479          { ac_try='test -z "$ac_cxx_werror_flag"
2480                          || test ! -s conftest.err'
2481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482   (eval $ac_try) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }; } &&
2486          { ac_try='test -s conftest.$ac_objext'
2487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488   (eval $ac_try) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }; }; then
2492   ac_cv_prog_cxx_g=yes
2493 else
2494   echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2496
2497 ac_cv_prog_cxx_g=no
2498 fi
2499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500 fi
2501 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2502 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2503 if test "$ac_test_CXXFLAGS" = set; then
2504   CXXFLAGS=$ac_save_CXXFLAGS
2505 elif test $ac_cv_prog_cxx_g = yes; then
2506   if test "$GXX" = yes; then
2507     CXXFLAGS="-g -O2"
2508   else
2509     CXXFLAGS="-g"
2510   fi
2511 else
2512   if test "$GXX" = yes; then
2513     CXXFLAGS="-O2"
2514   else
2515     CXXFLAGS=
2516   fi
2517 fi
2518 for ac_declaration in \
2519    '' \
2520    'extern "C" void std::exit (int) throw (); using std::exit;' \
2521    'extern "C" void std::exit (int); using std::exit;' \
2522    'extern "C" void exit (int) throw ();' \
2523    'extern "C" void exit (int);' \
2524    'void exit (int);'
2525 do
2526   cat >conftest.$ac_ext <<_ACEOF
2527 /* confdefs.h.  */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h.  */
2532 $ac_declaration
2533 #include <stdlib.h>
2534 int
2535 main ()
2536 {
2537 exit (42);
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544   (eval $ac_compile) 2>conftest.er1
2545   ac_status=$?
2546   grep -v '^ *+' conftest.er1 >conftest.err
2547   rm -f conftest.er1
2548   cat conftest.err >&5
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); } &&
2551          { ac_try='test -z "$ac_cxx_werror_flag"
2552                          || test ! -s conftest.err'
2553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554   (eval $ac_try) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }; } &&
2558          { ac_try='test -s conftest.$ac_objext'
2559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560   (eval $ac_try) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; }; then
2564   :
2565 else
2566   echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2568
2569 continue
2570 fi
2571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2572   cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h.  */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h.  */
2578 $ac_declaration
2579 int
2580 main ()
2581 {
2582 exit (42);
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>conftest.er1
2590   ac_status=$?
2591   grep -v '^ *+' conftest.er1 >conftest.err
2592   rm -f conftest.er1
2593   cat conftest.err >&5
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } &&
2596          { ac_try='test -z "$ac_cxx_werror_flag"
2597                          || test ! -s conftest.err'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; } &&
2603          { ac_try='test -s conftest.$ac_objext'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609   break
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 fi
2615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2616 done
2617 rm -f conftest*
2618 if test -n "$ac_declaration"; then
2619   echo '#ifdef __cplusplus' >>confdefs.h
2620   echo $ac_declaration      >>confdefs.h
2621   echo '#endif'             >>confdefs.h
2622 fi
2623
2624 ac_ext=c
2625 ac_cpp='$CPP $CPPFLAGS'
2626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629 DEPDIR="${am__leading_dot}deps"
2630
2631           ac_config_commands="$ac_config_commands depfiles"
2632
2633
2634 am_make=${MAKE-make}
2635 cat > confinc << 'END'
2636 am__doit:
2637         @echo done
2638 .PHONY: am__doit
2639 END
2640 # If we don't find an include directive, just comment out the code.
2641 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2642 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2643 am__include="#"
2644 am__quote=
2645 _am_result=none
2646 # First try GNU make style include.
2647 echo "include confinc" > confmf
2648 # We grep out `Entering directory' and `Leaving directory'
2649 # messages which can occur if `w' ends up in MAKEFLAGS.
2650 # In particular we don't look at `^make:' because GNU make might
2651 # be invoked under some other name (usually "gmake"), in which
2652 # case it prints its new name instead of `make'.
2653 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2654    am__include=include
2655    am__quote=
2656    _am_result=GNU
2657 fi
2658 # Now try BSD make style include.
2659 if test "$am__include" = "#"; then
2660    echo '.include "confinc"' > confmf
2661    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2662       am__include=.include
2663       am__quote="\""
2664       _am_result=BSD
2665    fi
2666 fi
2667
2668
2669 echo "$as_me:$LINENO: result: $_am_result" >&5
2670 echo "${ECHO_T}$_am_result" >&6
2671 rm -f confinc confmf
2672
2673 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2674 if test "${enable_dependency_tracking+set}" = set; then
2675   enableval="$enable_dependency_tracking"
2676
2677 fi;
2678 if test "x$enable_dependency_tracking" != xno; then
2679   am_depcomp="$ac_aux_dir/depcomp"
2680   AMDEPBACKSLASH='\'
2681 fi
2682
2683
2684 if test "x$enable_dependency_tracking" != xno; then
2685   AMDEP_TRUE=
2686   AMDEP_FALSE='#'
2687 else
2688   AMDEP_TRUE='#'
2689   AMDEP_FALSE=
2690 fi
2691
2692
2693
2694
2695 depcc="$CXX"  am_compiler_list=
2696
2697 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2698 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2699 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2700   echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2703   # We make a subdir and do the tests there.  Otherwise we can end up
2704   # making bogus files that we don't know about and never remove.  For
2705   # instance it was reported that on HP-UX the gcc test will end up
2706   # making a dummy file named `D' -- because `-MD' means `put the output
2707   # in D'.
2708   mkdir conftest.dir
2709   # Copy depcomp to subdir because otherwise we won't find it if we're
2710   # using a relative directory.
2711   cp "$am_depcomp" conftest.dir
2712   cd conftest.dir
2713   # We will build objects and dependencies in a subdirectory because
2714   # it helps to detect inapplicable dependency modes.  For instance
2715   # both Tru64's cc and ICC support -MD to output dependencies as a
2716   # side effect of compilation, but ICC will put the dependencies in
2717   # the current directory while Tru64 will put them in the object
2718   # directory.
2719   mkdir sub
2720
2721   am_cv_CXX_dependencies_compiler_type=none
2722   if test "$am_compiler_list" = ""; then
2723      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2724   fi
2725   for depmode in $am_compiler_list; do
2726     # Setup a source with many dependencies, because some compilers
2727     # like to wrap large dependency lists on column 80 (with \), and
2728     # we should not choose a depcomp mode which is confused by this.
2729     #
2730     # We need to recreate these files for each test, as the compiler may
2731     # overwrite some of them when testing with obscure command lines.
2732     # This happens at least with the AIX C compiler.
2733     : > sub/conftest.c
2734     for i in 1 2 3 4 5 6; do
2735       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2736       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2737       # Solaris 8's {/usr,}/bin/sh.
2738       touch sub/conftst$i.h
2739     done
2740     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2741
2742     case $depmode in
2743     nosideeffect)
2744       # after this tag, mechanisms are not by side-effect, so they'll
2745       # only be used when explicitly requested
2746       if test "x$enable_dependency_tracking" = xyes; then
2747         continue
2748       else
2749         break
2750       fi
2751       ;;
2752     none) break ;;
2753     esac
2754     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2755     # mode.  It turns out that the SunPro C++ compiler does not properly
2756     # handle `-M -o', and we need to detect this.
2757     if depmode=$depmode \
2758        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2759        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2760        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2761          >/dev/null 2>conftest.err &&
2762        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2763        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2764        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2765       # icc doesn't choke on unknown options, it will just issue warnings
2766       # or remarks (even with -Werror).  So we grep stderr for any message
2767       # that says an option was ignored or not supported.
2768       # When given -MP, icc 7.0 and 7.1 complain thusly:
2769       #   icc: Command line warning: ignoring option '-M'; no argument required
2770       # The diagnosis changed in icc 8.0:
2771       #   icc: Command line remark: option '-MP' not supported
2772       if (grep 'ignoring option' conftest.err ||
2773           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2774         am_cv_CXX_dependencies_compiler_type=$depmode
2775         break
2776       fi
2777     fi
2778   done
2779
2780   cd ..
2781   rm -rf conftest.dir
2782 else
2783   am_cv_CXX_dependencies_compiler_type=none
2784 fi
2785
2786 fi
2787 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2788 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2789 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2790
2791
2792
2793 if
2794   test "x$enable_dependency_tracking" != xno \
2795   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2796   am__fastdepCXX_TRUE=
2797   am__fastdepCXX_FALSE='#'
2798 else
2799   am__fastdepCXX_TRUE='#'
2800   am__fastdepCXX_FALSE=
2801 fi
2802
2803
2804 ac_ext=c
2805 ac_cpp='$CPP $CPPFLAGS'
2806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 if test -n "$ac_tool_prefix"; then
2810   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2812 echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814 if test "${ac_cv_prog_CC+set}" = set; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   if test -n "$CC"; then
2818   ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825   for ac_exec_ext in '' $ac_executable_extensions; do
2826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829     break 2
2830   fi
2831 done
2832 done
2833
2834 fi
2835 fi
2836 CC=$ac_cv_prog_CC
2837 if test -n "$CC"; then
2838   echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6
2840 else
2841   echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2843 fi
2844
2845 fi
2846 if test -z "$ac_cv_prog_CC"; then
2847   ac_ct_CC=$CC
2848   # Extract the first word of "gcc", so it can be a program name with args.
2849 set dummy gcc; ac_word=$2
2850 echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   if test -n "$ac_ct_CC"; then
2856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863   for ac_exec_ext in '' $ac_executable_extensions; do
2864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865     ac_cv_prog_ac_ct_CC="gcc"
2866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870 done
2871
2872 fi
2873 fi
2874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2875 if test -n "$ac_ct_CC"; then
2876   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2877 echo "${ECHO_T}$ac_ct_CC" >&6
2878 else
2879   echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6
2881 fi
2882
2883   CC=$ac_ct_CC
2884 else
2885   CC="$ac_cv_prog_CC"
2886 fi
2887
2888 if test -z "$CC"; then
2889   if test -n "$ac_tool_prefix"; then
2890   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}cc; ac_word=$2
2892 echo "$as_me:$LINENO: checking for $ac_word" >&5
2893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2894 if test "${ac_cv_prog_CC+set}" = set; then
2895   echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897   if test -n "$CC"; then
2898   ac_cv_prog_CC="$CC" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903   IFS=$as_save_IFS
2904   test -z "$as_dir" && as_dir=.
2905   for ac_exec_ext in '' $ac_executable_extensions; do
2906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907     ac_cv_prog_CC="${ac_tool_prefix}cc"
2908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909     break 2
2910   fi
2911 done
2912 done
2913
2914 fi
2915 fi
2916 CC=$ac_cv_prog_CC
2917 if test -n "$CC"; then
2918   echo "$as_me:$LINENO: result: $CC" >&5
2919 echo "${ECHO_T}$CC" >&6
2920 else
2921   echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
2923 fi
2924
2925 fi
2926 if test -z "$ac_cv_prog_CC"; then
2927   ac_ct_CC=$CC
2928   # Extract the first word of "cc", so it can be a program name with args.
2929 set dummy cc; ac_word=$2
2930 echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2933   echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935   if test -n "$ac_ct_CC"; then
2936   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941   IFS=$as_save_IFS
2942   test -z "$as_dir" && as_dir=.
2943   for ac_exec_ext in '' $ac_executable_extensions; do
2944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945     ac_cv_prog_ac_ct_CC="cc"
2946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947     break 2
2948   fi
2949 done
2950 done
2951
2952 fi
2953 fi
2954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2955 if test -n "$ac_ct_CC"; then
2956   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2957 echo "${ECHO_T}$ac_ct_CC" >&6
2958 else
2959   echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2961 fi
2962
2963   CC=$ac_ct_CC
2964 else
2965   CC="$ac_cv_prog_CC"
2966 fi
2967
2968 fi
2969 if test -z "$CC"; then
2970   # Extract the first word of "cc", so it can be a program name with args.
2971 set dummy cc; ac_word=$2
2972 echo "$as_me:$LINENO: checking for $ac_word" >&5
2973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2974 if test "${ac_cv_prog_CC+set}" = set; then
2975   echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977   if test -n "$CC"; then
2978   ac_cv_prog_CC="$CC" # Let the user override the test.
2979 else
2980   ac_prog_rejected=no
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984   IFS=$as_save_IFS
2985   test -z "$as_dir" && as_dir=.
2986   for ac_exec_ext in '' $ac_executable_extensions; do
2987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989        ac_prog_rejected=yes
2990        continue
2991      fi
2992     ac_cv_prog_CC="cc"
2993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994     break 2
2995   fi
2996 done
2997 done
2998
2999 if test $ac_prog_rejected = yes; then
3000   # We found a bogon in the path, so make sure we never use it.
3001   set dummy $ac_cv_prog_CC
3002   shift
3003   if test $# != 0; then
3004     # We chose a different compiler from the bogus one.
3005     # However, it has the same basename, so the bogon will be chosen
3006     # first if we set CC to just the basename; use the full file name.
3007     shift
3008     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3009   fi
3010 fi
3011 fi
3012 fi
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015   echo "$as_me:$LINENO: result: $CC" >&5
3016 echo "${ECHO_T}$CC" >&6
3017 else
3018   echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3020 fi
3021
3022 fi
3023 if test -z "$CC"; then
3024   if test -n "$ac_tool_prefix"; then
3025   for ac_prog in cl
3026   do
3027     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3029 echo "$as_me:$LINENO: checking for $ac_word" >&5
3030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3031 if test "${ac_cv_prog_CC+set}" = set; then
3032   echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034   if test -n "$CC"; then
3035   ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040   IFS=$as_save_IFS
3041   test -z "$as_dir" && as_dir=.
3042   for ac_exec_ext in '' $ac_executable_extensions; do
3043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3046     break 2
3047   fi
3048 done
3049 done
3050
3051 fi
3052 fi
3053 CC=$ac_cv_prog_CC
3054 if test -n "$CC"; then
3055   echo "$as_me:$LINENO: result: $CC" >&5
3056 echo "${ECHO_T}$CC" >&6
3057 else
3058   echo "$as_me:$LINENO: result: no" >&5
3059 echo "${ECHO_T}no" >&6
3060 fi
3061
3062     test -n "$CC" && break
3063   done
3064 fi
3065 if test -z "$CC"; then
3066   ac_ct_CC=$CC
3067   for ac_prog in cl
3068 do
3069   # Extract the first word of "$ac_prog", so it can be a program name with args.
3070 set dummy $ac_prog; ac_word=$2
3071 echo "$as_me:$LINENO: checking for $ac_word" >&5
3072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076   if test -n "$ac_ct_CC"; then
3077   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084   for ac_exec_ext in '' $ac_executable_extensions; do
3085   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086     ac_cv_prog_ac_ct_CC="$ac_prog"
3087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088     break 2
3089   fi
3090 done
3091 done
3092
3093 fi
3094 fi
3095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096 if test -n "$ac_ct_CC"; then
3097   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3098 echo "${ECHO_T}$ac_ct_CC" >&6
3099 else
3100   echo "$as_me:$LINENO: result: no" >&5
3101 echo "${ECHO_T}no" >&6
3102 fi
3103
3104   test -n "$ac_ct_CC" && break
3105 done
3106
3107   CC=$ac_ct_CC
3108 fi
3109
3110 fi
3111
3112
3113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3114 See \`config.log' for more details." >&5
3115 echo "$as_me: error: no acceptable C compiler found in \$PATH
3116 See \`config.log' for more details." >&2;}
3117    { (exit 1); exit 1; }; }
3118
3119 # Provide some information about the compiler.
3120 echo "$as_me:$LINENO:" \
3121      "checking for C compiler version" >&5
3122 ac_compiler=`set X $ac_compile; echo $2`
3123 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3124   (eval $ac_compiler --version </dev/null >&5) 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }
3128 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3129   (eval $ac_compiler -v </dev/null >&5) 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }
3133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3134   (eval $ac_compiler -V </dev/null >&5) 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }
3138
3139 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3141 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142   echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144   cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h.  */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h.  */
3150
3151 int
3152 main ()
3153 {
3154 #ifndef __GNUC__
3155        choke me
3156 #endif
3157
3158   ;
3159   return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164   (eval $ac_compile) 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } &&
3171          { ac_try='test -z "$ac_c_werror_flag"
3172                          || test ! -s conftest.err'
3173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174   (eval $ac_try) 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; } &&
3178          { ac_try='test -s conftest.$ac_objext'
3179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180   (eval $ac_try) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   ac_compiler_gnu=yes
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 ac_compiler_gnu=no
3190 fi
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3193
3194 fi
3195 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3196 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3197 GCC=`test $ac_compiler_gnu = yes && echo yes`
3198 ac_test_CFLAGS=${CFLAGS+set}
3199 ac_save_CFLAGS=$CFLAGS
3200 CFLAGS="-g"
3201 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3203 if test "${ac_cv_prog_cc_g+set}" = set; then
3204   echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206   cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212
3213 int
3214 main ()
3215 {
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223   (eval $ac_compile) 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } &&
3230          { ac_try='test -z "$ac_c_werror_flag"
3231                          || test ! -s conftest.err'
3232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233   (eval $ac_try) 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; } &&
3237          { ac_try='test -s conftest.$ac_objext'
3238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239   (eval $ac_try) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }; }; then
3243   ac_cv_prog_cc_g=yes
3244 else
3245   echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 ac_cv_prog_cc_g=no
3249 fi
3250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3251 fi
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3254 if test "$ac_test_CFLAGS" = set; then
3255   CFLAGS=$ac_save_CFLAGS
3256 elif test $ac_cv_prog_cc_g = yes; then
3257   if test "$GCC" = yes; then
3258     CFLAGS="-g -O2"
3259   else
3260     CFLAGS="-g"
3261   fi
3262 else
3263   if test "$GCC" = yes; then
3264     CFLAGS="-O2"
3265   else
3266     CFLAGS=
3267   fi
3268 fi
3269 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3270 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3271 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3272   echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274   ac_cv_prog_cc_stdc=no
3275 ac_save_CC=$CC
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282 #include <stdarg.h>
3283 #include <stdio.h>
3284 #include <sys/types.h>
3285 #include <sys/stat.h>
3286 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3287 struct buf { int x; };
3288 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289 static char *e (p, i)
3290      char **p;
3291      int i;
3292 {
3293   return p[i];
3294 }
3295 static char *f (char * (*g) (char **, int), char **p, ...)
3296 {
3297   char *s;
3298   va_list v;
3299   va_start (v,p);
3300   s = g (p, va_arg (v,int));
3301   va_end (v);
3302   return s;
3303 }
3304
3305 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3306    function prototypes and stuff, but not '\xHH' hex character constants.
3307    These don't provoke an error unfortunately, instead are silently treated
3308    as 'x'.  The following induces an error, until -std1 is added to get
3309    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3310    array size at least.  It's necessary to write '\x00'==0 to get something
3311    that's true only with -std1.  */
3312 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313
3314 int test (int i, double x);
3315 struct s1 {int (*f) (int a);};
3316 struct s2 {int (*f) (double a);};
3317 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3318 int argc;
3319 char **argv;
3320 int
3321 main ()
3322 {
3323 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3324   ;
3325   return 0;
3326 }
3327 _ACEOF
3328 # Don't try gcc -ansi; that turns off useful extensions and
3329 # breaks some systems' header files.
3330 # AIX                   -qlanglvl=ansi
3331 # Ultrix and OSF/1      -std1
3332 # HP-UX 10.20 and later -Ae
3333 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3334 # SVR4                  -Xc -D__EXTENSIONS__
3335 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336 do
3337   CC="$ac_save_CC $ac_arg"
3338   rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340   (eval $ac_compile) 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } &&
3347          { ac_try='test -z "$ac_c_werror_flag"
3348                          || test ! -s conftest.err'
3349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350   (eval $ac_try) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; } &&
3354          { ac_try='test -s conftest.$ac_objext'
3355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356   (eval $ac_try) 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; }; then
3360   ac_cv_prog_cc_stdc=$ac_arg
3361 break
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366 fi
3367 rm -f conftest.err conftest.$ac_objext
3368 done
3369 rm -f conftest.$ac_ext conftest.$ac_objext
3370 CC=$ac_save_CC
3371
3372 fi
3373
3374 case "x$ac_cv_prog_cc_stdc" in
3375   x|xno)
3376     echo "$as_me:$LINENO: result: none needed" >&5
3377 echo "${ECHO_T}none needed" >&6 ;;
3378   *)
3379     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3380 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3381     CC="$CC $ac_cv_prog_cc_stdc" ;;
3382 esac
3383
3384 # Some people use a C++ compiler to compile C.  Since we use `exit',
3385 # in C++ we need to declare it.  In case someone uses the same compiler
3386 # for both compiling C and C++ we need to have the C++ compiler decide
3387 # the declaration of exit, since it's the most demanding environment.
3388 cat >conftest.$ac_ext <<_ACEOF
3389 #ifndef __cplusplus
3390   choke me
3391 #endif
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395   (eval $ac_compile) 2>conftest.er1
3396   ac_status=$?
3397   grep -v '^ *+' conftest.er1 >conftest.err
3398   rm -f conftest.er1
3399   cat conftest.err >&5
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); } &&
3402          { ac_try='test -z "$ac_c_werror_flag"
3403                          || test ! -s conftest.err'
3404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405   (eval $ac_try) 2>&5
3406   ac_status=$?
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); }; } &&
3409          { ac_try='test -s conftest.$ac_objext'
3410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411   (eval $ac_try) 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); }; }; then
3415   for ac_declaration in \
3416    '' \
3417    'extern "C" void std::exit (int) throw (); using std::exit;' \
3418    'extern "C" void std::exit (int); using std::exit;' \
3419    'extern "C" void exit (int) throw ();' \
3420    'extern "C" void exit (int);' \
3421    'void exit (int);'
3422 do
3423   cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429 $ac_declaration
3430 #include <stdlib.h>
3431 int
3432 main ()
3433 {
3434 exit (42);
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441   (eval $ac_compile) 2>conftest.er1
3442   ac_status=$?
3443   grep -v '^ *+' conftest.er1 >conftest.err
3444   rm -f conftest.er1
3445   cat conftest.err >&5
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); } &&
3448          { ac_try='test -z "$ac_c_werror_flag"
3449                          || test ! -s conftest.err'
3450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451   (eval $ac_try) 2>&5
3452   ac_status=$?
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); }; } &&
3455          { ac_try='test -s conftest.$ac_objext'
3456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457   (eval $ac_try) 2>&5
3458   ac_status=$?
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); }; }; then
3461   :
3462 else
3463   echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 continue
3467 fi
3468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469   cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475 $ac_declaration
3476 int
3477 main ()
3478 {
3479 exit (42);
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486   (eval $ac_compile) 2>conftest.er1
3487   ac_status=$?
3488   grep -v '^ *+' conftest.er1 >conftest.err
3489   rm -f conftest.er1
3490   cat conftest.err >&5
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } &&
3493          { ac_try='test -z "$ac_c_werror_flag"
3494                          || test ! -s conftest.err'
3495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496   (eval $ac_try) 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; } &&
3500          { ac_try='test -s conftest.$ac_objext'
3501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502   (eval $ac_try) 2>&5
3503   ac_status=$?
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); }; }; then
3506   break
3507 else
3508   echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3510
3511 fi
3512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513 done
3514 rm -f conftest*
3515 if test -n "$ac_declaration"; then
3516   echo '#ifdef __cplusplus' >>confdefs.h
3517   echo $ac_declaration      >>confdefs.h
3518   echo '#endif'             >>confdefs.h
3519 fi
3520
3521 else
3522   echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 fi
3526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533 depcc="$CC"   am_compiler_list=
3534
3535 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3536 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3537 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3541   # We make a subdir and do the tests there.  Otherwise we can end up
3542   # making bogus files that we don't know about and never remove.  For
3543   # instance it was reported that on HP-UX the gcc test will end up
3544   # making a dummy file named `D' -- because `-MD' means `put the output
3545   # in D'.
3546   mkdir conftest.dir
3547   # Copy depcomp to subdir because otherwise we won't find it if we're
3548   # using a relative directory.
3549   cp "$am_depcomp" conftest.dir
3550   cd conftest.dir
3551   # We will build objects and dependencies in a subdirectory because
3552   # it helps to detect inapplicable dependency modes.  For instance
3553   # both Tru64's cc and ICC support -MD to output dependencies as a
3554   # side effect of compilation, but ICC will put the dependencies in
3555   # the current directory while Tru64 will put them in the object
3556   # directory.
3557   mkdir sub
3558
3559   am_cv_CC_dependencies_compiler_type=none
3560   if test "$am_compiler_list" = ""; then
3561      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3562   fi
3563   for depmode in $am_compiler_list; do
3564     # Setup a source with many dependencies, because some compilers
3565     # like to wrap large dependency lists on column 80 (with \), and
3566     # we should not choose a depcomp mode which is confused by this.
3567     #
3568     # We need to recreate these files for each test, as the compiler may
3569     # overwrite some of them when testing with obscure command lines.
3570     # This happens at least with the AIX C compiler.
3571     : > sub/conftest.c
3572     for i in 1 2 3 4 5 6; do
3573       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3574       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3575       # Solaris 8's {/usr,}/bin/sh.
3576       touch sub/conftst$i.h
3577     done
3578     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3579
3580     case $depmode in
3581     nosideeffect)
3582       # after this tag, mechanisms are not by side-effect, so they'll
3583       # only be used when explicitly requested
3584       if test "x$enable_dependency_tracking" = xyes; then
3585         continue
3586       else
3587         break
3588       fi
3589       ;;
3590     none) break ;;
3591     esac
3592     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3593     # mode.  It turns out that the SunPro C++ compiler does not properly
3594     # handle `-M -o', and we need to detect this.
3595     if depmode=$depmode \
3596        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3597        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3598        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3599          >/dev/null 2>conftest.err &&
3600        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3601        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3602        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3603       # icc doesn't choke on unknown options, it will just issue warnings
3604       # or remarks (even with -Werror).  So we grep stderr for any message
3605       # that says an option was ignored or not supported.
3606       # When given -MP, icc 7.0 and 7.1 complain thusly:
3607       #   icc: Command line warning: ignoring option '-M'; no argument required
3608       # The diagnosis changed in icc 8.0:
3609       #   icc: Command line remark: option '-MP' not supported
3610       if (grep 'ignoring option' conftest.err ||
3611           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3612         am_cv_CC_dependencies_compiler_type=$depmode
3613         break
3614       fi
3615     fi
3616   done
3617
3618   cd ..
3619   rm -rf conftest.dir
3620 else
3621   am_cv_CC_dependencies_compiler_type=none
3622 fi
3623
3624 fi
3625 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3626 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3627 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3628
3629
3630
3631 if
3632   test "x$enable_dependency_tracking" != xno \
3633   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3634   am__fastdepCC_TRUE=
3635   am__fastdepCC_FALSE='#'
3636 else
3637   am__fastdepCC_TRUE='#'
3638   am__fastdepCC_FALSE=
3639 fi
3640
3641
3642 # Find a good install program.  We prefer a C program (faster),
3643 # so one script is as good as another.  But avoid the broken or
3644 # incompatible versions:
3645 # SysV /etc/install, /usr/sbin/install
3646 # SunOS /usr/etc/install
3647 # IRIX /sbin/install
3648 # AIX /bin/install
3649 # AmigaOS /C/install, which installs bootblocks on floppy discs
3650 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3651 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3652 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3653 # OS/2's system install, which has a completely different semantic
3654 # ./install, which can be erroneously created by make from ./install.sh.
3655 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3656 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3657 if test -z "$INSTALL"; then
3658 if test "${ac_cv_path_install+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666   # Account for people who put trailing slashes in PATH elements.
3667 case $as_dir/ in
3668   ./ | .// | /cC/* | \
3669   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3670   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3671   /usr/ucb/* ) ;;
3672   *)
3673     # OSF1 and SCO ODT 3.0 have their own names for install.
3674     # Don't use installbsd from OSF since it installs stuff as root
3675     # by default.
3676     for ac_prog in ginstall scoinst install; do
3677       for ac_exec_ext in '' $ac_executable_extensions; do
3678         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3679           if test $ac_prog = install &&
3680             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3681             # AIX install.  It has an incompatible calling convention.
3682             :
3683           elif test $ac_prog = install &&
3684             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3685             # program-specific install script used by HP pwplus--don't use.
3686             :
3687           else
3688             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3689             break 3
3690           fi
3691         fi
3692       done
3693     done
3694     ;;
3695 esac
3696 done
3697
3698
3699 fi
3700   if test "${ac_cv_path_install+set}" = set; then
3701     INSTALL=$ac_cv_path_install
3702   else
3703     # As a last resort, use the slow shell script.  We don't cache a
3704     # path for INSTALL within a source directory, because that will
3705     # break other packages using the cache if that directory is
3706     # removed, or if the path is relative.
3707     INSTALL=$ac_install_sh
3708   fi
3709 fi
3710 echo "$as_me:$LINENO: result: $INSTALL" >&5
3711 echo "${ECHO_T}$INSTALL" >&6
3712
3713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3714 # It thinks the first close brace ends the variable substitution.
3715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3716
3717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3718
3719 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3720
3721 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3722 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3723 LN_S=$as_ln_s
3724 if test "$LN_S" = "ln -s"; then
3725   echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6
3727 else
3728   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3729 echo "${ECHO_T}no, using $LN_S" >&6
3730 fi
3731
3732 if test "x$CC" != xcc; then
3733   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3734 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3735 else
3736   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3737 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3738 fi
3739 set dummy $CC; ac_cc=`echo $2 |
3740                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3741 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3742   echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744   cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h.  */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h.  */
3750
3751 int
3752 main ()
3753 {
3754
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 # Make sure it works both with $CC and with simple cc.
3760 # We do the test twice because some compilers refuse to overwrite an
3761 # existing .o file with -o, though they will create one.
3762 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3763 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764   (eval $ac_try) 2>&5
3765   ac_status=$?
3766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767   (exit $ac_status); } &&
3768    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769   (eval $ac_try) 2>&5
3770   ac_status=$?
3771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772   (exit $ac_status); };
3773 then
3774   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3775   if test "x$CC" != xcc; then
3776     # Test first that cc exists at all.
3777     if { ac_try='cc -c conftest.$ac_ext >&5'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; }; then
3783       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3784       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); } &&
3789          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790   (eval $ac_try) 2>&5
3791   ac_status=$?
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); };
3794       then
3795         # cc works too.
3796         :
3797       else
3798         # cc exists but doesn't like -o.
3799         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3800       fi
3801     fi
3802   fi
3803 else
3804   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3805 fi
3806 rm -f conftest*
3807
3808 fi
3809 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3810   echo "$as_me:$LINENO: result: yes" >&5
3811 echo "${ECHO_T}yes" >&6
3812 else
3813   echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3815
3816 cat >>confdefs.h <<\_ACEOF
3817 #define NO_MINUS_C_MINUS_O 1
3818 _ACEOF
3819
3820 fi
3821
3822 # FIXME: we rely on the cache variable name because
3823 # there is no other way.
3824 set dummy $CC
3825 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3826 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3827    # Losing compiler, so override with the script.
3828    # FIXME: It is wrong to rewrite CC.
3829    # But if we don't then we get into trouble of one sort or another.
3830    # A longer-term fix would be to have automake use am__CC in this case,
3831    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3832    CC="$am_aux_dir/compile $CC"
3833 fi
3834
3835
3836
3837
3838
3839         echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
3840 echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6
3841 if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844
3845                 ac_ext=cc
3846 ac_cpp='$CXXCPP $CPPFLAGS'
3847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3850
3851                 cat >conftest.$ac_ext <<_ACEOF
3852
3853                     #include <ostream>
3854
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858   (eval $ac_compile) 2>conftest.er1
3859   ac_status=$?
3860   grep -v '^ *+' conftest.er1 >conftest.err
3861   rm -f conftest.er1
3862   cat conftest.err >&5
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); } &&
3865          { ac_try='test -z "$ac_cxx_werror_flag"
3866                          || test ! -s conftest.err'
3867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868   (eval $ac_try) 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); }; } &&
3872          { ac_try='test -s conftest.$ac_objext'
3873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874   (eval $ac_try) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; }; then
3878   ensc_cv_cxx_cxxcompiler=yes
3879 else
3880   echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 ensc_cv_cxx_cxxcompiler=no
3884 fi
3885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3886                 ac_ext=c
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891
3892
3893 fi
3894 echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
3895 echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6
3896
3897
3898
3899 if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
3900   ENSC_HAVE_CXX_COMPILER_TRUE=
3901   ENSC_HAVE_CXX_COMPILER_FALSE='#'
3902 else
3903   ENSC_HAVE_CXX_COMPILER_TRUE='#'
3904   ENSC_HAVE_CXX_COMPILER_FALSE=
3905 fi
3906
3907
3908         if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
3909                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
3910 echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
3911         fi
3912
3913
3914
3915
3916
3917         echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
3918 echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6
3919 if test "${ensc_cv_c99_c99compiler+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922
3923                 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928
3929                 cat >conftest.$ac_ext <<_ACEOF
3930
3931 int main(int argc, char *argv) {
3932   struct { int x; }   a = { .x = argc };
3933   if (0) return 0;
3934   int b;
3935 }
3936
3937 _ACEOF
3938 rm -f conftest.$ac_objext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3940   (eval $ac_compile) 2>conftest.er1
3941   ac_status=$?
3942   grep -v '^ *+' conftest.er1 >conftest.err
3943   rm -f conftest.er1
3944   cat conftest.err >&5
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); } &&
3947          { ac_try='test -z "$ac_c_werror_flag"
3948                          || test ! -s conftest.err'
3949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950   (eval $ac_try) 2>&5
3951   ac_status=$?
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); }; } &&
3954          { ac_try='test -s conftest.$ac_objext'
3955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956   (eval $ac_try) 2>&5
3957   ac_status=$?
3958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); }; }; then
3960   ensc_cv_c99_c99compiler=yes
3961 else
3962   echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3964
3965 ensc_cv_c99_c99compiler=no
3966 fi
3967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3968                 ac_ext=c
3969 ac_cpp='$CPP $CPPFLAGS'
3970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973
3974
3975 fi
3976 echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
3977 echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6
3978
3979
3980
3981 if test x"$ensc_cv_c99_c99compiler" = xyes; then
3982   ENSC_HAVE_C99_COMPILER_TRUE=
3983   ENSC_HAVE_C99_COMPILER_FALSE='#'
3984 else
3985   ENSC_HAVE_C99_COMPILER_TRUE='#'
3986   ENSC_HAVE_C99_COMPILER_FALSE=
3987 fi
3988
3989
3990         if test x"$ensc_cv_c99_c99compiler" = xno; then
3991                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
3992 echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
3993         fi
3994
3995
3996
3997         ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
3998
3999
4000         ENSC_PATHPROG_SED=
4001
4002
4003
4004
4005
4006
4007
4008         if test -z ""; then
4009                 rq=true
4010         else
4011                 rq=false
4012         fi
4013
4014         if $rq; then
4015                 ensc_dflt=
4016         else
4017                 ensc_dflt=""
4018         fi
4019
4020         for ac_prog in awk
4021 do
4022   # Extract the first word of "$ac_prog", so it can be a program name with args.
4023 set dummy $ac_prog; ac_word=$2
4024 echo "$as_me:$LINENO: checking for $ac_word" >&5
4025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4026 if test "${ac_cv_path_AWK+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029   case $AWK in
4030   [\\/]* | ?:[\\/]*)
4031   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4032   ;;
4033   *)
4034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $ensc_searchpath
4036 do
4037   IFS=$as_save_IFS
4038   test -z "$as_dir" && as_dir=.
4039   for ac_exec_ext in '' $ac_executable_extensions; do
4040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043     break 2
4044   fi
4045 done
4046 done
4047
4048   ;;
4049 esac
4050 fi
4051 AWK=$ac_cv_path_AWK
4052
4053 if test -n "$AWK"; then
4054   echo "$as_me:$LINENO: result: $AWK" >&5
4055 echo "${ECHO_T}$AWK" >&6
4056 else
4057   echo "$as_me:$LINENO: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4059 fi
4060
4061   test -n "$AWK" && break
4062 done
4063 test -n "$AWK" || AWK="$ensc_dflt"
4064
4065
4066         if test -z "${AWK}" && $rq; then
4067                 if test -z ""; then
4068                         { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
4069 echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4070    { (exit 1); exit 1; }; }
4071                 else
4072                         { { echo "$as_me:$LINENO: error:
4073 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4074 " >&5
4075 echo "$as_me: error:
4076 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4077 " >&2;}
4078    { (exit 1); exit 1; }; }
4079                 fi
4080         fi
4081
4082         test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
4083
4084         test "${AWK}"
4085
4086
4087
4088
4089         if test -z ""; then
4090                 rq=true
4091         else
4092                 rq=false
4093         fi
4094
4095         if $rq; then
4096                 ensc_dflt=
4097         else
4098                 ensc_dflt=""
4099         fi
4100
4101         for ac_prog in cat
4102 do
4103   # Extract the first word of "$ac_prog", so it can be a program name with args.
4104 set dummy $ac_prog; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_CAT+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   case $CAT in
4111   [\\/]* | ?:[\\/]*)
4112   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4113   ;;
4114   *)
4115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $ensc_searchpath
4117 do
4118   IFS=$as_save_IFS
4119   test -z "$as_dir" && as_dir=.
4120   for ac_exec_ext in '' $ac_executable_extensions; do
4121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124     break 2
4125   fi
4126 done
4127 done
4128
4129   ;;
4130 esac
4131 fi
4132 CAT=$ac_cv_path_CAT
4133
4134 if test -n "$CAT"; then
4135   echo "$as_me:$LINENO: result: $CAT" >&5
4136 echo "${ECHO_T}$CAT" >&6
4137 else
4138   echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6
4140 fi
4141
4142   test -n "$CAT" && break
4143 done
4144 test -n "$CAT" || CAT="$ensc_dflt"
4145
4146
4147         if test -z "${CAT}" && $rq; then
4148                 if test -z ""; then
4149                         { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
4150 echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4151    { (exit 1); exit 1; }; }
4152                 else
4153                         { { echo "$as_me:$LINENO: error:
4154 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4155 " >&5
4156 echo "$as_me: error:
4157 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4158 " >&2;}
4159    { (exit 1); exit 1; }; }
4160                 fi
4161         fi
4162
4163         test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
4164
4165         test "${CAT}"
4166
4167
4168
4169
4170         if test -z ""; then
4171                 rq=true
4172         else
4173                 rq=false
4174         fi
4175
4176         if $rq; then
4177                 ensc_dflt=
4178         else
4179                 ensc_dflt=""
4180         fi
4181
4182         for ac_prog in chown
4183 do
4184   # Extract the first word of "$ac_prog", so it can be a program name with args.
4185 set dummy $ac_prog; ac_word=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_path_CHOWN+set}" = set; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191   case $CHOWN in
4192   [\\/]* | ?:[\\/]*)
4193   ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
4194   ;;
4195   *)
4196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $ensc_searchpath
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201   for ac_exec_ext in '' $ac_executable_extensions; do
4202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203     ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
4204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205     break 2
4206   fi
4207 done
4208 done
4209
4210   ;;
4211 esac
4212 fi
4213 CHOWN=$ac_cv_path_CHOWN
4214
4215 if test -n "$CHOWN"; then
4216   echo "$as_me:$LINENO: result: $CHOWN" >&5
4217 echo "${ECHO_T}$CHOWN" >&6
4218 else
4219   echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6
4221 fi
4222
4223   test -n "$CHOWN" && break
4224 done
4225 test -n "$CHOWN" || CHOWN="$ensc_dflt"
4226
4227
4228         if test -z "${CHOWN}" && $rq; then
4229                 if test -z ""; then
4230                         { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
4231 echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4232    { (exit 1); exit 1; }; }
4233                 else
4234                         { { echo "$as_me:$LINENO: error:
4235 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4236 " >&5
4237 echo "$as_me: error:
4238 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4239 " >&2;}
4240    { (exit 1); exit 1; }; }
4241                 fi
4242         fi
4243
4244         test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
4245
4246         test "${CHOWN}"
4247
4248
4249
4250
4251         if test -z ""; then
4252                 rq=true
4253         else
4254                 rq=false
4255         fi
4256
4257         if $rq; then
4258                 ensc_dflt=
4259         else
4260                 ensc_dflt=""
4261         fi
4262
4263         for ac_prog in cmp
4264 do
4265   # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_path_CMP+set}" = set; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   case $CMP in
4273   [\\/]* | ?:[\\/]*)
4274   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4275   ;;
4276   *)
4277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $ensc_searchpath
4279 do
4280   IFS=$as_save_IFS
4281   test -z "$as_dir" && as_dir=.
4282   for ac_exec_ext in '' $ac_executable_extensions; do
4283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286     break 2
4287   fi
4288 done
4289 done
4290
4291   ;;
4292 esac
4293 fi
4294 CMP=$ac_cv_path_CMP
4295
4296 if test -n "$CMP"; then
4297   echo "$as_me:$LINENO: result: $CMP" >&5
4298 echo "${ECHO_T}$CMP" >&6
4299 else
4300   echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303
4304   test -n "$CMP" && break
4305 done
4306 test -n "$CMP" || CMP="$ensc_dflt"
4307
4308
4309         if test -z "${CMP}" && $rq; then
4310                 if test -z ""; then
4311                         { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
4312 echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4313    { (exit 1); exit 1; }; }
4314                 else
4315                         { { echo "$as_me:$LINENO: error:
4316 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4317 " >&5
4318 echo "$as_me: error:
4319 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4320 " >&2;}
4321    { (exit 1); exit 1; }; }
4322                 fi
4323         fi
4324
4325         test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
4326
4327         test "${CMP}"
4328
4329
4330
4331
4332         if test -z ""; then
4333                 rq=true
4334         else
4335                 rq=false
4336         fi
4337
4338         if $rq; then
4339                 ensc_dflt=
4340         else
4341                 ensc_dflt=""
4342         fi
4343
4344         for ac_prog in cp
4345 do
4346   # Extract the first word of "$ac_prog", so it can be a program name with args.
4347 set dummy $ac_prog; ac_word=$2
4348 echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4350 if test "${ac_cv_path_CP+set}" = set; then
4351   echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353   case $CP in
4354   [\\/]* | ?:[\\/]*)
4355   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4356   ;;
4357   *)
4358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $ensc_searchpath
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367     break 2
4368   fi
4369 done
4370 done
4371
4372   ;;
4373 esac
4374 fi
4375 CP=$ac_cv_path_CP
4376
4377 if test -n "$CP"; then
4378   echo "$as_me:$LINENO: result: $CP" >&5
4379 echo "${ECHO_T}$CP" >&6
4380 else
4381   echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6
4383 fi
4384
4385   test -n "$CP" && break
4386 done
4387 test -n "$CP" || CP="$ensc_dflt"
4388
4389
4390         if test -z "${CP}" && $rq; then
4391                 if test -z ""; then
4392                         { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
4393 echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4394    { (exit 1); exit 1; }; }
4395                 else
4396                         { { echo "$as_me:$LINENO: error:
4397 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4398 " >&5
4399 echo "$as_me: error:
4400 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4401 " >&2;}
4402    { (exit 1); exit 1; }; }
4403                 fi
4404         fi
4405
4406         test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
4407
4408         test "${CP}"
4409
4410
4411
4412
4413         if test -z ""; then
4414                 rq=true
4415         else
4416                 rq=false
4417         fi
4418
4419         if $rq; then
4420                 ensc_dflt=
4421         else
4422                 ensc_dflt=""
4423         fi
4424
4425         for ac_prog in dirname
4426 do
4427   # Extract the first word of "$ac_prog", so it can be a program name with args.
4428 set dummy $ac_prog; ac_word=$2
4429 echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4431 if test "${ac_cv_path_DIRNAME+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   case $DIRNAME in
4435   [\\/]* | ?:[\\/]*)
4436   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4437   ;;
4438   *)
4439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $ensc_searchpath
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444   for ac_exec_ext in '' $ac_executable_extensions; do
4445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448     break 2
4449   fi
4450 done
4451 done
4452
4453   ;;
4454 esac
4455 fi
4456 DIRNAME=$ac_cv_path_DIRNAME
4457
4458 if test -n "$DIRNAME"; then
4459   echo "$as_me:$LINENO: result: $DIRNAME" >&5
4460 echo "${ECHO_T}$DIRNAME" >&6
4461 else
4462   echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6
4464 fi
4465
4466   test -n "$DIRNAME" && break
4467 done
4468 test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
4469
4470
4471         if test -z "${DIRNAME}" && $rq; then
4472                 if test -z ""; then
4473                         { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
4474 echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4475    { (exit 1); exit 1; }; }
4476                 else
4477                         { { echo "$as_me:$LINENO: error:
4478 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4479 " >&5
4480 echo "$as_me: error:
4481 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4482 " >&2;}
4483    { (exit 1); exit 1; }; }
4484                 fi
4485         fi
4486
4487         test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
4488
4489         test "${DIRNAME}"
4490
4491
4492
4493
4494         if test -z ""; then
4495                 rq=true
4496         else
4497                 rq=false
4498         fi
4499
4500         if $rq; then
4501                 ensc_dflt=
4502         else
4503                 ensc_dflt=""
4504         fi
4505
4506         for ac_prog in egrep
4507 do
4508   # Extract the first word of "$ac_prog", so it can be a program name with args.
4509 set dummy $ac_prog; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_path_EGREP+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   case $EGREP in
4516   [\\/]* | ?:[\\/]*)
4517   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
4518   ;;
4519   *)
4520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $ensc_searchpath
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525   for ac_exec_ext in '' $ac_executable_extensions; do
4526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
4528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532 done
4533
4534   ;;
4535 esac
4536 fi
4537 EGREP=$ac_cv_path_EGREP
4538
4539 if test -n "$EGREP"; then
4540   echo "$as_me:$LINENO: result: $EGREP" >&5
4541 echo "${ECHO_T}$EGREP" >&6
4542 else
4543   echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4545 fi
4546
4547   test -n "$EGREP" && break
4548 done
4549 test -n "$EGREP" || EGREP="$ensc_dflt"
4550
4551
4552         if test -z "${EGREP}" && $rq; then
4553                 if test -z ""; then
4554                         { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
4555 echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4556    { (exit 1); exit 1; }; }
4557                 else
4558                         { { echo "$as_me:$LINENO: error:
4559 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4560 " >&5
4561 echo "$as_me: error:
4562 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4563 " >&2;}
4564    { (exit 1); exit 1; }; }
4565                 fi
4566         fi
4567
4568         test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
4569
4570         test "${EGREP}"
4571         env_old_searchpath="${ensc_searchpath}"
4572         ensc_searchpath="/bin:${ensc_searchpath:-$PATH}"
4573
4574
4575
4576
4577         if test -z ""; then
4578                 rq=true
4579         else
4580                 rq=false
4581         fi
4582
4583         if $rq; then
4584                 ensc_dflt=
4585         else
4586                 ensc_dflt=""
4587         fi
4588
4589         for ac_prog in env
4590 do
4591   # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy $ac_prog; ac_word=$2
4593 echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4595 if test "${ac_cv_path_ENV+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   case $ENV in
4599   [\\/]* | ?:[\\/]*)
4600   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
4601   ;;
4602   *)
4603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $ensc_searchpath
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608   for ac_exec_ext in '' $ac_executable_extensions; do
4609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
4611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615 done
4616
4617   ;;
4618 esac
4619 fi
4620 ENV=$ac_cv_path_ENV
4621
4622 if test -n "$ENV"; then
4623   echo "$as_me:$LINENO: result: $ENV" >&5
4624 echo "${ECHO_T}$ENV" >&6
4625 else
4626   echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4628 fi
4629
4630   test -n "$ENV" && break
4631 done
4632 test -n "$ENV" || ENV="$ensc_dflt"
4633
4634
4635         if test -z "${ENV}" && $rq; then
4636                 if test -z ""; then
4637                         { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
4638 echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4639    { (exit 1); exit 1; }; }
4640                 else
4641                         { { echo "$as_me:$LINENO: error:
4642 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4643 " >&5
4644 echo "$as_me: error:
4645 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4646 " >&2;}
4647    { (exit 1); exit 1; }; }
4648                 fi
4649         fi
4650
4651         test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
4652
4653         test "${ENV}"
4654         ensc_searchpath="${env_old_searchpath}"
4655
4656
4657
4658
4659         if test -z ""; then
4660                 rq=true
4661         else
4662                 rq=false
4663         fi
4664
4665         if $rq; then
4666                 ensc_dflt=
4667         else
4668                 ensc_dflt=""
4669         fi
4670
4671         for ac_prog in grep
4672 do
4673   # Extract the first word of "$ac_prog", so it can be a program name with args.
4674 set dummy $ac_prog; ac_word=$2
4675 echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4677 if test "${ac_cv_path_GREP+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   case $GREP in
4681   [\\/]* | ?:[\\/]*)
4682   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4683   ;;
4684   *)
4685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $ensc_searchpath
4687 do
4688   IFS=$as_save_IFS
4689   test -z "$as_dir" && as_dir=.
4690   for ac_exec_ext in '' $ac_executable_extensions; do
4691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4692     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694     break 2
4695   fi
4696 done
4697 done
4698
4699   ;;
4700 esac
4701 fi
4702 GREP=$ac_cv_path_GREP
4703
4704 if test -n "$GREP"; then
4705   echo "$as_me:$LINENO: result: $GREP" >&5
4706 echo "${ECHO_T}$GREP" >&6
4707 else
4708   echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4710 fi
4711
4712   test -n "$GREP" && break
4713 done
4714 test -n "$GREP" || GREP="$ensc_dflt"
4715
4716
4717         if test -z "${GREP}" && $rq; then
4718                 if test -z ""; then
4719                         { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
4720 echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4721    { (exit 1); exit 1; }; }
4722                 else
4723                         { { echo "$as_me:$LINENO: error:
4724 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4725 " >&5
4726 echo "$as_me: error:
4727 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4728 " >&2;}
4729    { (exit 1); exit 1; }; }
4730                 fi
4731         fi
4732
4733         test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
4734
4735         test "${GREP}"
4736
4737
4738
4739
4740         if test -z ""; then
4741                 rq=true
4742         else
4743                 rq=false
4744         fi
4745
4746         if $rq; then
4747                 ensc_dflt=
4748         else
4749                 ensc_dflt=""
4750         fi
4751
4752         for ac_prog in ln
4753 do
4754   # Extract the first word of "$ac_prog", so it can be a program name with args.
4755 set dummy $ac_prog; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_path_LN+set}" = set; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   case $LN in
4762   [\\/]* | ?:[\\/]*)
4763   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4764   ;;
4765   *)
4766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $ensc_searchpath
4768 do
4769   IFS=$as_save_IFS
4770   test -z "$as_dir" && as_dir=.
4771   for ac_exec_ext in '' $ac_executable_extensions; do
4772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4773     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775     break 2
4776   fi
4777 done
4778 done
4779
4780   ;;
4781 esac
4782 fi
4783 LN=$ac_cv_path_LN
4784
4785 if test -n "$LN"; then
4786   echo "$as_me:$LINENO: result: $LN" >&5
4787 echo "${ECHO_T}$LN" >&6
4788 else
4789   echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6
4791 fi
4792
4793   test -n "$LN" && break
4794 done
4795 test -n "$LN" || LN="$ensc_dflt"
4796
4797
4798         if test -z "${LN}" && $rq; then
4799                 if test -z ""; then
4800                         { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
4801 echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4802    { (exit 1); exit 1; }; }
4803                 else
4804                         { { echo "$as_me:$LINENO: error:
4805 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4806 " >&5
4807 echo "$as_me: error:
4808 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4809 " >&2;}
4810    { (exit 1); exit 1; }; }
4811                 fi
4812         fi
4813
4814         test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
4815
4816         test "${LN}"
4817
4818
4819
4820
4821         if test -z ""; then
4822                 rq=true
4823         else
4824                 rq=false
4825         fi
4826
4827         if $rq; then
4828                 ensc_dflt=
4829         else
4830                 ensc_dflt=""
4831         fi
4832
4833         for ac_prog in mkdir
4834 do
4835   # Extract the first word of "$ac_prog", so it can be a program name with args.
4836 set dummy $ac_prog; ac_word=$2
4837 echo "$as_me:$LINENO: checking for $ac_word" >&5
4838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4839 if test "${ac_cv_path_MKDIR+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   case $MKDIR in
4843   [\\/]* | ?:[\\/]*)
4844   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4845   ;;
4846   *)
4847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $ensc_searchpath
4849 do
4850   IFS=$as_save_IFS
4851   test -z "$as_dir" && as_dir=.
4852   for ac_exec_ext in '' $ac_executable_extensions; do
4853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856     break 2
4857   fi
4858 done
4859 done
4860
4861   ;;
4862 esac
4863 fi
4864 MKDIR=$ac_cv_path_MKDIR
4865
4866 if test -n "$MKDIR"; then
4867   echo "$as_me:$LINENO: result: $MKDIR" >&5
4868 echo "${ECHO_T}$MKDIR" >&6
4869 else
4870   echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6
4872 fi
4873
4874   test -n "$MKDIR" && break
4875 done
4876 test -n "$MKDIR" || MKDIR="$ensc_dflt"
4877
4878
4879         if test -z "${MKDIR}" && $rq; then
4880                 if test -z ""; then
4881                         { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
4882 echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4883    { (exit 1); exit 1; }; }
4884                 else
4885                         { { echo "$as_me:$LINENO: error:
4886 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
4887 " >&5
4888 echo "$as_me: error:
4889 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
4890 " >&2;}
4891    { (exit 1); exit 1; }; }
4892                 fi
4893         fi
4894
4895         test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
4896
4897         test "${MKDIR}"
4898
4899
4900
4901
4902         if test -z ""; then
4903                 rq=true
4904         else
4905                 rq=false
4906         fi
4907
4908         if $rq; then
4909                 ensc_dflt=
4910         else
4911                 ensc_dflt=""
4912         fi
4913
4914         for ac_prog in mkfifo
4915 do
4916   # Extract the first word of "$ac_prog", so it can be a program name with args.
4917 set dummy $ac_prog; ac_word=$2
4918 echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920 if test "${ac_cv_path_MKFIFO+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923   case $MKFIFO in
4924   [\\/]* | ?:[\\/]*)
4925   ac_cv_path_MKFIFO="$MKFIFO" # Let the user override the test with a path.
4926   ;;
4927   *)
4928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $ensc_searchpath
4930 do
4931   IFS=$as_save_IFS
4932   test -z "$as_dir" && as_dir=.
4933   for ac_exec_ext in '' $ac_executable_extensions; do
4934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935     ac_cv_path_MKFIFO="$as_dir/$ac_word$ac_exec_ext"
4936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937     break 2
4938   fi
4939 done
4940 done
4941
4942   ;;
4943 esac
4944 fi
4945 MKFIFO=$ac_cv_path_MKFIFO
4946
4947 if test -n "$MKFIFO"; then
4948   echo "$as_me:$LINENO: result: $MKFIFO" >&5
4949 echo "${ECHO_T}$MKFIFO" >&6
4950 else
4951   echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4953 fi
4954
4955   test -n "$MKFIFO" && break
4956 done
4957 test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
4958
4959
4960         if test -z "${MKFIFO}" && $rq; then
4961                 if test -z ""; then
4962                         { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
4963 echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4964    { (exit 1); exit 1; }; }
4965                 else
4966                         { { echo "$as_me:$LINENO: error:
4967 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
4968 " >&5
4969 echo "$as_me: error:
4970 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
4971 " >&2;}
4972    { (exit 1); exit 1; }; }
4973                 fi
4974         fi
4975
4976         test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
4977
4978         test "${MKFIFO}"
4979
4980
4981
4982
4983         if test -z ""; then
4984                 rq=true
4985         else
4986                 rq=false
4987         fi
4988
4989         if $rq; then
4990                 ensc_dflt=
4991         else
4992                 ensc_dflt=""
4993         fi
4994
4995         for ac_prog in mktemp
4996 do
4997   # Extract the first word of "$ac_prog", so it can be a program name with args.
4998 set dummy $ac_prog; ac_word=$2
4999 echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_path_MKTEMP+set}" = set; then
5002   echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004   case $MKTEMP in
5005   [\\/]* | ?:[\\/]*)
5006   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5007   ;;
5008   *)
5009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $ensc_searchpath
5011 do
5012   IFS=$as_save_IFS
5013   test -z "$as_dir" && as_dir=.
5014   for ac_exec_ext in '' $ac_executable_extensions; do
5015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018     break 2
5019   fi
5020 done
5021 done
5022
5023   ;;
5024 esac
5025 fi
5026 MKTEMP=$ac_cv_path_MKTEMP
5027
5028 if test -n "$MKTEMP"; then
5029   echo "$as_me:$LINENO: result: $MKTEMP" >&5
5030 echo "${ECHO_T}$MKTEMP" >&6
5031 else
5032   echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6
5034 fi
5035
5036   test -n "$MKTEMP" && break
5037 done
5038 test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
5039
5040
5041         if test -z "${MKTEMP}" && $rq; then
5042                 if test -z ""; then
5043                         { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
5044 echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5045    { (exit 1); exit 1; }; }
5046                 else
5047                         { { echo "$as_me:$LINENO: error:
5048 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5049 " >&5
5050 echo "$as_me: error:
5051 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5052 " >&2;}
5053    { (exit 1); exit 1; }; }
5054                 fi
5055         fi
5056
5057         test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
5058
5059         test "${MKTEMP}"
5060
5061
5062
5063
5064         if test -z ""; then
5065                 rq=true
5066         else
5067                 rq=false
5068         fi
5069
5070         if $rq; then
5071                 ensc_dflt=
5072         else
5073                 ensc_dflt=""
5074         fi
5075
5076         for ac_prog in mount
5077 do
5078   # Extract the first word of "$ac_prog", so it can be a program name with args.
5079 set dummy $ac_prog; ac_word=$2
5080 echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5082 if test "${ac_cv_path_MOUNT+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085   case $MOUNT in
5086   [\\/]* | ?:[\\/]*)
5087   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
5088   ;;
5089   *)
5090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $ensc_searchpath
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095   for ac_exec_ext in '' $ac_executable_extensions; do
5096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
5098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102 done
5103
5104   ;;
5105 esac
5106 fi
5107 MOUNT=$ac_cv_path_MOUNT
5108
5109 if test -n "$MOUNT"; then
5110   echo "$as_me:$LINENO: result: $MOUNT" >&5
5111 echo "${ECHO_T}$MOUNT" >&6
5112 else
5113   echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6
5115 fi
5116
5117   test -n "$MOUNT" && break
5118 done
5119 test -n "$MOUNT" || MOUNT="$ensc_dflt"
5120
5121
5122         if test -z "${MOUNT}" && $rq; then
5123                 if test -z ""; then
5124                         { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
5125 echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5126    { (exit 1); exit 1; }; }
5127                 else
5128                         { { echo "$as_me:$LINENO: error:
5129 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5130 " >&5
5131 echo "$as_me: error:
5132 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5133 " >&2;}
5134    { (exit 1); exit 1; }; }
5135                 fi
5136         fi
5137
5138         test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
5139
5140         test "${MOUNT}"
5141
5142
5143
5144
5145         if test -z ""; then
5146                 rq=true
5147         else
5148                 rq=false
5149         fi
5150
5151         if $rq; then
5152                 ensc_dflt=
5153         else
5154                 ensc_dflt=""
5155         fi
5156
5157         for ac_prog in mv
5158 do
5159   # Extract the first word of "$ac_prog", so it can be a program name with args.
5160 set dummy $ac_prog; ac_word=$2
5161 echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5163 if test "${ac_cv_path_MV+set}" = set; then
5164   echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166   case $MV in
5167   [\\/]* | ?:[\\/]*)
5168   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5169   ;;
5170   *)
5171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $ensc_searchpath
5173 do
5174   IFS=$as_save_IFS
5175   test -z "$as_dir" && as_dir=.
5176   for ac_exec_ext in '' $ac_executable_extensions; do
5177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180     break 2
5181   fi
5182 done
5183 done
5184
5185   ;;
5186 esac
5187 fi
5188 MV=$ac_cv_path_MV
5189
5190 if test -n "$MV"; then
5191   echo "$as_me:$LINENO: result: $MV" >&5
5192 echo "${ECHO_T}$MV" >&6
5193 else
5194   echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5196 fi
5197
5198   test -n "$MV" && break
5199 done
5200 test -n "$MV" || MV="$ensc_dflt"
5201
5202
5203         if test -z "${MV}" && $rq; then
5204                 if test -z ""; then
5205                         { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
5206 echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5207    { (exit 1); exit 1; }; }
5208                 else
5209                         { { echo "$as_me:$LINENO: error:
5210 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5211 " >&5
5212 echo "$as_me: error:
5213 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5214 " >&2;}
5215    { (exit 1); exit 1; }; }
5216                 fi
5217         fi
5218
5219         test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
5220
5221         test "${MV}"
5222
5223
5224
5225
5226         if test -z ""; then
5227                 rq=true
5228         else
5229                 rq=false
5230         fi
5231
5232         if $rq; then
5233                 ensc_dflt=
5234         else
5235                 ensc_dflt=""
5236         fi
5237
5238         for ac_prog in nice
5239 do
5240   # Extract the first word of "$ac_prog", so it can be a program name with args.
5241 set dummy $ac_prog; ac_word=$2
5242 echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244 if test "${ac_cv_path_NICE+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   case $NICE in
5248   [\\/]* | ?:[\\/]*)
5249   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
5250   ;;
5251   *)
5252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $ensc_searchpath
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257   for ac_exec_ext in '' $ac_executable_extensions; do
5258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
5260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261     break 2
5262   fi
5263 done
5264 done
5265
5266   ;;
5267 esac
5268 fi
5269 NICE=$ac_cv_path_NICE
5270
5271 if test -n "$NICE"; then
5272   echo "$as_me:$LINENO: result: $NICE" >&5
5273 echo "${ECHO_T}$NICE" >&6
5274 else
5275   echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5277 fi
5278
5279   test -n "$NICE" && break
5280 done
5281 test -n "$NICE" || NICE="$ensc_dflt"
5282
5283
5284         if test -z "${NICE}" && $rq; then
5285                 if test -z ""; then
5286                         { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
5287 echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5288    { (exit 1); exit 1; }; }
5289                 else
5290                         { { echo "$as_me:$LINENO: error:
5291 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5292 " >&5
5293 echo "$as_me: error:
5294 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5295 " >&2;}
5296    { (exit 1); exit 1; }; }
5297                 fi
5298         fi
5299
5300         test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
5301
5302         test "${NICE}"
5303
5304
5305
5306
5307         if test -z ""; then
5308                 rq=true
5309         else
5310                 rq=false
5311         fi
5312
5313         if $rq; then
5314                 ensc_dflt=
5315         else
5316                 ensc_dflt=""
5317         fi
5318
5319         for ac_prog in ps
5320 do
5321   # Extract the first word of "$ac_prog", so it can be a program name with args.
5322 set dummy $ac_prog; ac_word=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_path_PS+set}" = set; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   case $PS in
5329   [\\/]* | ?:[\\/]*)
5330   ac_cv_path_PS="$PS" # Let the user override the test with a path.
5331   ;;
5332   *)
5333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $ensc_searchpath
5335 do
5336   IFS=$as_save_IFS
5337   test -z "$as_dir" && as_dir=.
5338   for ac_exec_ext in '' $ac_executable_extensions; do
5339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342     break 2
5343   fi
5344 done
5345 done
5346
5347   ;;
5348 esac
5349 fi
5350 PS=$ac_cv_path_PS
5351
5352 if test -n "$PS"; then
5353   echo "$as_me:$LINENO: result: $PS" >&5
5354 echo "${ECHO_T}$PS" >&6
5355 else
5356   echo "$as_me:$LINENO: result: no" >&5
5357 echo "${ECHO_T}no" >&6
5358 fi
5359
5360   test -n "$PS" && break
5361 done
5362 test -n "$PS" || PS="$ensc_dflt"
5363
5364
5365         if test -z "${PS}" && $rq; then
5366                 if test -z ""; then
5367                         { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
5368 echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5369    { (exit 1); exit 1; }; }
5370                 else
5371                         { { echo "$as_me:$LINENO: error:
5372 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5373 " >&5
5374 echo "$as_me: error:
5375 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5376 " >&2;}
5377    { (exit 1); exit 1; }; }
5378                 fi
5379         fi
5380
5381         test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
5382
5383         test "${PS}"
5384
5385
5386
5387
5388         if test -z ""; then
5389                 rq=true
5390         else
5391                 rq=false
5392         fi
5393
5394         if $rq; then
5395                 ensc_dflt=
5396         else
5397                 ensc_dflt=""
5398         fi
5399
5400         for ac_prog in rm
5401 do
5402   # Extract the first word of "$ac_prog", so it can be a program name with args.
5403 set dummy $ac_prog; ac_word=$2
5404 echo "$as_me:$LINENO: checking for $ac_word" >&5
5405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5406 if test "${ac_cv_path_RM+set}" = set; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409   case $RM in
5410   [\\/]* | ?:[\\/]*)
5411   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5412   ;;
5413   *)
5414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $ensc_searchpath
5416 do
5417   IFS=$as_save_IFS
5418   test -z "$as_dir" && as_dir=.
5419   for ac_exec_ext in '' $ac_executable_extensions; do
5420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423     break 2
5424   fi
5425 done
5426 done
5427
5428   ;;
5429 esac
5430 fi
5431 RM=$ac_cv_path_RM
5432
5433 if test -n "$RM"; then
5434   echo "$as_me:$LINENO: result: $RM" >&5
5435 echo "${ECHO_T}$RM" >&6
5436 else
5437   echo "$as_me:$LINENO: result: no" >&5
5438 echo "${ECHO_T}no" >&6
5439 fi
5440
5441   test -n "$RM" && break
5442 done
5443 test -n "$RM" || RM="$ensc_dflt"
5444
5445
5446         if test -z "${RM}" && $rq; then
5447                 if test -z ""; then
5448                         { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
5449 echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5450    { (exit 1); exit 1; }; }
5451                 else
5452                         { { echo "$as_me:$LINENO: error:
5453 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5454 " >&5
5455 echo "$as_me: error:
5456 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5457 " >&2;}
5458    { (exit 1); exit 1; }; }
5459                 fi
5460         fi
5461
5462         test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
5463
5464         test "${RM}"
5465
5466
5467
5468
5469         if test -z ""; then
5470                 rq=true
5471         else
5472                 rq=false
5473         fi
5474
5475         if $rq; then
5476                 ensc_dflt=
5477         else
5478                 ensc_dflt=""
5479         fi
5480
5481         for ac_prog in rmdir
5482 do
5483   # Extract the first word of "$ac_prog", so it can be a program name with args.
5484 set dummy $ac_prog; ac_word=$2
5485 echo "$as_me:$LINENO: checking for $ac_word" >&5
5486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487 if test "${ac_cv_path_RMDIR+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   case $RMDIR in
5491   [\\/]* | ?:[\\/]*)
5492   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
5493   ;;
5494   *)
5495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $ensc_searchpath
5497 do
5498   IFS=$as_save_IFS
5499   test -z "$as_dir" && as_dir=.
5500   for ac_exec_ext in '' $ac_executable_extensions; do
5501   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
5503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5504     break 2
5505   fi
5506 done
5507 done
5508
5509   ;;
5510 esac
5511 fi
5512 RMDIR=$ac_cv_path_RMDIR
5513
5514 if test -n "$RMDIR"; then
5515   echo "$as_me:$LINENO: result: $RMDIR" >&5
5516 echo "${ECHO_T}$RMDIR" >&6
5517 else
5518   echo "$as_me:$LINENO: result: no" >&5
5519 echo "${ECHO_T}no" >&6
5520 fi
5521
5522   test -n "$RMDIR" && break
5523 done
5524 test -n "$RMDIR" || RMDIR="$ensc_dflt"
5525
5526
5527         if test -z "${RMDIR}" && $rq; then
5528                 if test -z ""; then
5529                         { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5530 echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5531    { (exit 1); exit 1; }; }
5532                 else
5533                         { { echo "$as_me:$LINENO: error:
5534 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5535 " >&5
5536 echo "$as_me: error:
5537 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5538 " >&2;}
5539    { (exit 1); exit 1; }; }
5540                 fi
5541         fi
5542
5543         test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
5544
5545         test "${RMDIR}"
5546
5547
5548
5549
5550         if test -z ""; then
5551                 rq=true
5552         else
5553                 rq=false
5554         fi
5555
5556         if $rq; then
5557                 ensc_dflt=
5558         else
5559                 ensc_dflt=""
5560         fi
5561
5562         for ac_prog in sed
5563 do
5564   # Extract the first word of "$ac_prog", so it can be a program name with args.
5565 set dummy $ac_prog; ac_word=$2
5566 echo "$as_me:$LINENO: checking for $ac_word" >&5
5567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5568 if test "${ac_cv_path_SED+set}" = set; then
5569   echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571   case $SED in
5572   [\\/]* | ?:[\\/]*)
5573   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5574   ;;
5575   *)
5576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $ensc_searchpath
5578 do
5579   IFS=$as_save_IFS
5580   test -z "$as_dir" && as_dir=.
5581   for ac_exec_ext in '' $ac_executable_extensions; do
5582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5585     break 2
5586   fi
5587 done
5588 done
5589
5590   ;;
5591 esac
5592 fi
5593 SED=$ac_cv_path_SED
5594
5595 if test -n "$SED"; then
5596   echo "$as_me:$LINENO: result: $SED" >&5
5597 echo "${ECHO_T}$SED" >&6
5598 else
5599   echo "$as_me:$LINENO: result: no" >&5
5600 echo "${ECHO_T}no" >&6
5601 fi
5602
5603   test -n "$SED" && break
5604 done
5605 test -n "$SED" || SED="$ensc_dflt"
5606
5607
5608         if test -z "${SED}" && $rq; then
5609                 if test -z ""; then
5610                         { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
5611 echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5612    { (exit 1); exit 1; }; }
5613                 else
5614                         { { echo "$as_me:$LINENO: error:
5615 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5616 " >&5
5617 echo "$as_me: error:
5618 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5619 " >&2;}
5620    { (exit 1); exit 1; }; }
5621                 fi
5622         fi
5623
5624         test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
5625
5626         test "${SED}"
5627
5628
5629
5630
5631         if test -z ""; then
5632                 rq=true
5633         else
5634                 rq=false
5635         fi
5636
5637         if $rq; then
5638                 ensc_dflt=
5639         else
5640                 ensc_dflt=""
5641         fi
5642
5643         for ac_prog in sh
5644 do
5645   # Extract the first word of "$ac_prog", so it can be a program name with args.
5646 set dummy $ac_prog; ac_word=$2
5647 echo "$as_me:$LINENO: checking for $ac_word" >&5
5648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5649 if test "${ac_cv_path_SH+set}" = set; then
5650   echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652   case $SH in
5653   [\\/]* | ?:[\\/]*)
5654   ac_cv_path_SH="$SH" # Let the user override the test with a path.
5655   ;;
5656   *)
5657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $ensc_searchpath
5659 do
5660   IFS=$as_save_IFS
5661   test -z "$as_dir" && as_dir=.
5662   for ac_exec_ext in '' $ac_executable_extensions; do
5663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666     break 2
5667   fi
5668 done
5669 done
5670
5671   ;;
5672 esac
5673 fi
5674 SH=$ac_cv_path_SH
5675
5676 if test -n "$SH"; then
5677   echo "$as_me:$LINENO: result: $SH" >&5
5678 echo "${ECHO_T}$SH" >&6
5679 else
5680   echo "$as_me:$LINENO: result: no" >&5
5681 echo "${ECHO_T}no" >&6
5682 fi
5683
5684   test -n "$SH" && break
5685 done
5686 test -n "$SH" || SH="$ensc_dflt"
5687
5688
5689         if test -z "${SH}" && $rq; then
5690                 if test -z ""; then
5691                         { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
5692 echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5693    { (exit 1); exit 1; }; }
5694                 else
5695                         { { echo "$as_me:$LINENO: error:
5696 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5697 " >&5
5698 echo "$as_me: error:
5699 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5700 " >&2;}
5701    { (exit 1); exit 1; }; }
5702                 fi
5703         fi
5704
5705         test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
5706
5707         test "${SH}"
5708
5709
5710
5711
5712         if test -z ""; then
5713                 rq=true
5714         else
5715                 rq=false
5716         fi
5717
5718         if $rq; then
5719                 ensc_dflt=
5720         else
5721                 ensc_dflt=""
5722         fi
5723
5724         for ac_prog in tac
5725 do
5726   # Extract the first word of "$ac_prog", so it can be a program name with args.
5727 set dummy $ac_prog; ac_word=$2
5728 echo "$as_me:$LINENO: checking for $ac_word" >&5
5729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5730 if test "${ac_cv_path_TAC+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   case $TAC in
5734   [\\/]* | ?:[\\/]*)
5735   ac_cv_path_TAC="$TAC" # Let the user override the test with a path.
5736   ;;
5737   *)
5738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $ensc_searchpath
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743   for ac_exec_ext in '' $ac_executable_extensions; do
5744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745     ac_cv_path_TAC="$as_dir/$ac_word$ac_exec_ext"
5746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750 done
5751
5752   ;;
5753 esac
5754 fi
5755 TAC=$ac_cv_path_TAC
5756
5757 if test -n "$TAC"; then
5758   echo "$as_me:$LINENO: result: $TAC" >&5
5759 echo "${ECHO_T}$TAC" >&6
5760 else
5761   echo "$as_me:$LINENO: result: no" >&5
5762 echo "${ECHO_T}no" >&6
5763 fi
5764
5765   test -n "$TAC" && break
5766 done
5767 test -n "$TAC" || TAC="$ensc_dflt"
5768
5769
5770         if test -z "${TAC}" && $rq; then
5771                 if test -z ""; then
5772                         { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
5773 echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5774    { (exit 1); exit 1; }; }
5775                 else
5776                         { { echo "$as_me:$LINENO: error:
5777 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5778 " >&5
5779 echo "$as_me: error:
5780 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5781 " >&2;}
5782    { (exit 1); exit 1; }; }
5783                 fi
5784         fi
5785
5786         test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
5787
5788         test "${TAC}"
5789
5790
5791
5792
5793         if test -z ""; then
5794                 rq=true
5795         else
5796                 rq=false
5797         fi
5798
5799         if $rq; then
5800                 ensc_dflt=
5801         else
5802                 ensc_dflt=""
5803         fi
5804
5805         for ac_prog in tar
5806 do
5807   # Extract the first word of "$ac_prog", so it can be a program name with args.
5808 set dummy $ac_prog; ac_word=$2
5809 echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811 if test "${ac_cv_path_TAR+set}" = set; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   case $TAR in
5815   [\\/]* | ?:[\\/]*)
5816   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5817   ;;
5818   *)
5819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $ensc_searchpath
5821 do
5822   IFS=$as_save_IFS
5823   test -z "$as_dir" && as_dir=.
5824   for ac_exec_ext in '' $ac_executable_extensions; do
5825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828     break 2
5829   fi
5830 done
5831 done
5832
5833   ;;
5834 esac
5835 fi
5836 TAR=$ac_cv_path_TAR
5837
5838 if test -n "$TAR"; then
5839   echo "$as_me:$LINENO: result: $TAR" >&5
5840 echo "${ECHO_T}$TAR" >&6
5841 else
5842   echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6
5844 fi
5845
5846   test -n "$TAR" && break
5847 done
5848 test -n "$TAR" || TAR="$ensc_dflt"
5849
5850
5851         if test -z "${TAR}" && $rq; then
5852                 if test -z ""; then
5853                         { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
5854 echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5855    { (exit 1); exit 1; }; }
5856                 else
5857                         { { echo "$as_me:$LINENO: error:
5858 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
5859 " >&5
5860 echo "$as_me: error:
5861 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
5862 " >&2;}
5863    { (exit 1); exit 1; }; }
5864                 fi
5865         fi
5866
5867         test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
5868
5869         test "${TAR}"
5870
5871
5872
5873
5874         if test -z ""; then
5875                 rq=true
5876         else
5877                 rq=false
5878         fi
5879
5880         if $rq; then
5881                 ensc_dflt=
5882         else
5883                 ensc_dflt=""
5884         fi
5885
5886         for ac_prog in touch
5887 do
5888   # Extract the first word of "$ac_prog", so it can be a program name with args.
5889 set dummy $ac_prog; ac_word=$2
5890 echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892 if test "${ac_cv_path_TOUCH+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   case $TOUCH in
5896   [\\/]* | ?:[\\/]*)
5897   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5898   ;;
5899   *)
5900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $ensc_searchpath
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905   for ac_exec_ext in '' $ac_executable_extensions; do
5906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912 done
5913
5914   ;;
5915 esac
5916 fi
5917 TOUCH=$ac_cv_path_TOUCH
5918
5919 if test -n "$TOUCH"; then
5920   echo "$as_me:$LINENO: result: $TOUCH" >&5
5921 echo "${ECHO_T}$TOUCH" >&6
5922 else
5923   echo "$as_me:$LINENO: result: no" >&5
5924 echo "${ECHO_T}no" >&6
5925 fi
5926
5927   test -n "$TOUCH" && break
5928 done
5929 test -n "$TOUCH" || TOUCH="$ensc_dflt"
5930
5931
5932         if test -z "${TOUCH}" && $rq; then
5933                 if test -z ""; then
5934                         { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
5935 echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5936    { (exit 1); exit 1; }; }
5937                 else
5938                         { { echo "$as_me:$LINENO: error:
5939 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
5940 " >&5
5941 echo "$as_me: error:
5942 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
5943 " >&2;}
5944    { (exit 1); exit 1; }; }
5945                 fi
5946         fi
5947
5948         test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
5949
5950         test "${TOUCH}"
5951
5952
5953
5954
5955         if test -z ""; then
5956                 rq=true
5957         else
5958                 rq=false
5959         fi
5960
5961         if $rq; then
5962                 ensc_dflt=
5963         else
5964                 ensc_dflt=""
5965         fi
5966
5967         for ac_prog in tty
5968 do
5969   # Extract the first word of "$ac_prog", so it can be a program name with args.
5970 set dummy $ac_prog; ac_word=$2
5971 echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973 if test "${ac_cv_path_TTY+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   case $TTY in
5977   [\\/]* | ?:[\\/]*)
5978   ac_cv_path_TTY="$TTY" # Let the user override the test with a path.
5979   ;;
5980   *)
5981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $ensc_searchpath
5983 do
5984   IFS=$as_save_IFS
5985   test -z "$as_dir" && as_dir=.
5986   for ac_exec_ext in '' $ac_executable_extensions; do
5987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988     ac_cv_path_TTY="$as_dir/$ac_word$ac_exec_ext"
5989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990     break 2
5991   fi
5992 done
5993 done
5994
5995   ;;
5996 esac
5997 fi
5998 TTY=$ac_cv_path_TTY
5999
6000 if test -n "$TTY"; then
6001   echo "$as_me:$LINENO: result: $TTY" >&5
6002 echo "${ECHO_T}$TTY" >&6
6003 else
6004   echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6006 fi
6007
6008   test -n "$TTY" && break
6009 done
6010 test -n "$TTY" || TTY="$ensc_dflt"
6011
6012
6013         if test -z "${TTY}" && $rq; then
6014                 if test -z ""; then
6015                         { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
6016 echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6017    { (exit 1); exit 1; }; }
6018                 else
6019                         { { echo "$as_me:$LINENO: error:
6020 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6021 " >&5
6022 echo "$as_me: error:
6023 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6024 " >&2;}
6025    { (exit 1); exit 1; }; }
6026                 fi
6027         fi
6028
6029         test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
6030
6031         test "${TTY}"
6032
6033
6034
6035
6036         if test -z ""; then
6037                 rq=true
6038         else
6039                 rq=false
6040         fi
6041
6042         if $rq; then
6043                 ensc_dflt=
6044         else
6045                 ensc_dflt=""
6046         fi
6047
6048         for ac_prog in umount
6049 do
6050   # Extract the first word of "$ac_prog", so it can be a program name with args.
6051 set dummy $ac_prog; ac_word=$2
6052 echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6054 if test "${ac_cv_path_UMOUNT+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   case $UMOUNT in
6058   [\\/]* | ?:[\\/]*)
6059   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
6060   ;;
6061   *)
6062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $ensc_searchpath
6064 do
6065   IFS=$as_save_IFS
6066   test -z "$as_dir" && as_dir=.
6067   for ac_exec_ext in '' $ac_executable_extensions; do
6068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
6070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071     break 2
6072   fi
6073 done
6074 done
6075
6076   ;;
6077 esac
6078 fi
6079 UMOUNT=$ac_cv_path_UMOUNT
6080
6081 if test -n "$UMOUNT"; then
6082   echo "$as_me:$LINENO: result: $UMOUNT" >&5
6083 echo "${ECHO_T}$UMOUNT" >&6
6084 else
6085   echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6
6087 fi
6088
6089   test -n "$UMOUNT" && break
6090 done
6091 test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
6092
6093
6094         if test -z "${UMOUNT}" && $rq; then
6095                 if test -z ""; then
6096                         { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
6097 echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6098    { (exit 1); exit 1; }; }
6099                 else
6100                         { { echo "$as_me:$LINENO: error:
6101 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6102 " >&5
6103 echo "$as_me: error:
6104 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6105 " >&2;}
6106    { (exit 1); exit 1; }; }
6107                 fi
6108         fi
6109
6110         test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
6111
6112         test "${UMOUNT}"
6113
6114
6115
6116
6117         if test -z ""; then
6118                 rq=true
6119         else
6120                 rq=false
6121         fi
6122
6123         if $rq; then
6124                 ensc_dflt=
6125         else
6126                 ensc_dflt=""
6127         fi
6128
6129         for ac_prog in wc
6130 do
6131   # Extract the first word of "$ac_prog", so it can be a program name with args.
6132 set dummy $ac_prog; ac_word=$2
6133 echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6135 if test "${ac_cv_path_WC+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   case $WC in
6139   [\\/]* | ?:[\\/]*)
6140   ac_cv_path_WC="$WC" # Let the user override the test with a path.
6141   ;;
6142   *)
6143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $ensc_searchpath
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148   for ac_exec_ext in '' $ac_executable_extensions; do
6149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
6151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155 done
6156
6157   ;;
6158 esac
6159 fi
6160 WC=$ac_cv_path_WC
6161
6162 if test -n "$WC"; then
6163   echo "$as_me:$LINENO: result: $WC" >&5
6164 echo "${ECHO_T}$WC" >&6
6165 else
6166   echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6
6168 fi
6169
6170   test -n "$WC" && break
6171 done
6172 test -n "$WC" || WC="$ensc_dflt"
6173
6174
6175         if test -z "${WC}" && $rq; then
6176                 if test -z ""; then
6177                         { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
6178 echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6179    { (exit 1); exit 1; }; }
6180                 else
6181                         { { echo "$as_me:$LINENO: error:
6182 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6183 " >&5
6184 echo "$as_me: error:
6185 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6186 " >&2;}
6187    { (exit 1); exit 1; }; }
6188                 fi
6189         fi
6190
6191         test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
6192
6193         test "${WC}"
6194
6195
6196
6197
6198
6199
6200         if test -z ""; then
6201                 rq=true
6202         else
6203                 rq=false
6204         fi
6205
6206         if $rq; then
6207                 ensc_dflt=
6208         else
6209                 ensc_dflt=""
6210         fi
6211
6212         for ac_prog in ip
6213 do
6214   # Extract the first word of "$ac_prog", so it can be a program name with args.
6215 set dummy $ac_prog; ac_word=$2
6216 echo "$as_me:$LINENO: checking for $ac_word" >&5
6217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6218 if test "${ac_cv_path_IP+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   case $IP in
6222   [\\/]* | ?:[\\/]*)
6223   ac_cv_path_IP="$IP" # Let the user override the test with a path.
6224   ;;
6225   *)
6226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $ensc_searchpath
6228 do
6229   IFS=$as_save_IFS
6230   test -z "$as_dir" && as_dir=.
6231   for ac_exec_ext in '' $ac_executable_extensions; do
6232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233     ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
6234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235     break 2
6236   fi
6237 done
6238 done
6239
6240   ;;
6241 esac
6242 fi
6243 IP=$ac_cv_path_IP
6244
6245 if test -n "$IP"; then
6246   echo "$as_me:$LINENO: result: $IP" >&5
6247 echo "${ECHO_T}$IP" >&6
6248 else
6249   echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6
6251 fi
6252
6253   test -n "$IP" && break
6254 done
6255 test -n "$IP" || IP="$ensc_dflt"
6256
6257
6258         if test -z "${IP}" && $rq; then
6259                 if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
6260                         { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
6261 echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6262    { (exit 1); exit 1; }; }
6263                 else
6264                         { { echo "$as_me:$LINENO: error:
6265 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6266 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
6267 echo "$as_me: error:
6268 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6269 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
6270    { (exit 1); exit 1; }; }
6271                 fi
6272         fi
6273
6274         test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
6275
6276         test "${IP}"
6277
6278
6279
6280
6281         if test -z ""; then
6282                 rq=true
6283         else
6284                 rq=false
6285         fi
6286
6287         if $rq; then
6288                 ensc_dflt=
6289         else
6290                 ensc_dflt=""
6291         fi
6292
6293         for ac_prog in iptables
6294 do
6295   # Extract the first word of "$ac_prog", so it can be a program name with args.
6296 set dummy $ac_prog; ac_word=$2
6297 echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6299 if test "${ac_cv_path_IPTABLES+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   case $IPTABLES in
6303   [\\/]* | ?:[\\/]*)
6304   ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
6305   ;;
6306   *)
6307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $ensc_searchpath
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312   for ac_exec_ext in '' $ac_executable_extensions; do
6313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314     ac_cv_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
6315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319 done
6320
6321   ;;
6322 esac
6323 fi
6324 IPTABLES=$ac_cv_path_IPTABLES
6325
6326 if test -n "$IPTABLES"; then
6327   echo "$as_me:$LINENO: result: $IPTABLES" >&5
6328 echo "${ECHO_T}$IPTABLES" >&6
6329 else
6330   echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6
6332 fi
6333
6334   test -n "$IPTABLES" && break
6335 done
6336 test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
6337
6338
6339         if test -z "${IPTABLES}" && $rq; then
6340                 if test -z ""; then
6341                         { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
6342 echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6343    { (exit 1); exit 1; }; }
6344                 else
6345                         { { echo "$as_me:$LINENO: error:
6346 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6347 " >&5
6348 echo "$as_me: error:
6349 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6350 " >&2;}
6351    { (exit 1); exit 1; }; }
6352                 fi
6353         fi
6354
6355         test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
6356
6357         test "${IPTABLES}"
6358
6359
6360
6361
6362         if test -z ""; then
6363                 rq=true
6364         else
6365                 rq=false
6366         fi
6367
6368         if $rq; then
6369                 ensc_dflt=
6370         else
6371                 ensc_dflt=""
6372         fi
6373
6374         for ac_prog in modprobe
6375 do
6376   # Extract the first word of "$ac_prog", so it can be a program name with args.
6377 set dummy $ac_prog; ac_word=$2
6378 echo "$as_me:$LINENO: checking for $ac_word" >&5
6379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6380 if test "${ac_cv_path_MODPROBE+set}" = set; then
6381   echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383   case $MODPROBE in
6384   [\\/]* | ?:[\\/]*)
6385   ac_cv_path_MODPROBE="$MODPROBE" # Let the user override the test with a path.
6386   ;;
6387   *)
6388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $ensc_searchpath
6390 do
6391   IFS=$as_save_IFS
6392   test -z "$as_dir" && as_dir=.
6393   for ac_exec_ext in '' $ac_executable_extensions; do
6394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395     ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
6396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397     break 2
6398   fi
6399 done
6400 done
6401
6402   ;;
6403 esac
6404 fi
6405 MODPROBE=$ac_cv_path_MODPROBE
6406
6407 if test -n "$MODPROBE"; then
6408   echo "$as_me:$LINENO: result: $MODPROBE" >&5
6409 echo "${ECHO_T}$MODPROBE" >&6
6410 else
6411   echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6
6413 fi
6414
6415   test -n "$MODPROBE" && break
6416 done
6417 test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
6418
6419
6420         if test -z "${MODPROBE}" && $rq; then
6421                 if test -z ""; then
6422                         { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
6423 echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6424    { (exit 1); exit 1; }; }
6425                 else
6426                         { { echo "$as_me:$LINENO: error:
6427 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6428 " >&5
6429 echo "$as_me: error:
6430 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6431 " >&2;}
6432    { (exit 1); exit 1; }; }
6433                 fi
6434         fi
6435
6436         test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
6437
6438         test "${MODPROBE}"
6439
6440
6441
6442
6443         if test -z ""; then
6444                 rq=true
6445         else
6446                 rq=false
6447         fi
6448
6449         if $rq; then
6450                 ensc_dflt=
6451         else
6452                 ensc_dflt=""
6453         fi
6454
6455         for ac_prog in nameif
6456 do
6457   # Extract the first word of "$ac_prog", so it can be a program name with args.
6458 set dummy $ac_prog; ac_word=$2
6459 echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6461 if test "${ac_cv_path_NAMEIF+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   case $NAMEIF in
6465   [\\/]* | ?:[\\/]*)
6466   ac_cv_path_NAMEIF="$NAMEIF" # Let the user override the test with a path.
6467   ;;
6468   *)
6469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $ensc_searchpath
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474   for ac_exec_ext in '' $ac_executable_extensions; do
6475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476     ac_cv_path_NAMEIF="$as_dir/$ac_word$ac_exec_ext"
6477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481 done
6482
6483   ;;
6484 esac
6485 fi
6486 NAMEIF=$ac_cv_path_NAMEIF
6487
6488 if test -n "$NAMEIF"; then
6489   echo "$as_me:$LINENO: result: $NAMEIF" >&5
6490 echo "${ECHO_T}$NAMEIF" >&6
6491 else
6492   echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6
6494 fi
6495
6496   test -n "$NAMEIF" && break
6497 done
6498 test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
6499
6500
6501         if test -z "${NAMEIF}" && $rq; then
6502                 if test -z ""; then
6503                         { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
6504 echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6505    { (exit 1); exit 1; }; }
6506                 else
6507                         { { echo "$as_me:$LINENO: error:
6508 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6509 " >&5
6510 echo "$as_me: error:
6511 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6512 " >&2;}
6513    { (exit 1); exit 1; }; }
6514                 fi
6515         fi
6516
6517         test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
6518
6519         test "${NAMEIF}"
6520
6521
6522
6523
6524         if test -z ""; then
6525                 rq=true
6526         else
6527                 rq=false
6528         fi
6529
6530         if $rq; then
6531                 ensc_dflt=
6532         else
6533                 ensc_dflt=""
6534         fi
6535
6536         for ac_prog in nohup
6537 do
6538   # Extract the first word of "$ac_prog", so it can be a program name with args.
6539 set dummy $ac_prog; ac_word=$2
6540 echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6542 if test "${ac_cv_path_NOHUP+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   case $NOHUP in
6546   [\\/]* | ?:[\\/]*)
6547   ac_cv_path_NOHUP="$NOHUP" # Let the user override the test with a path.
6548   ;;
6549   *)
6550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $ensc_searchpath
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557     ac_cv_path_NOHUP="$as_dir/$ac_word$ac_exec_ext"
6558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562 done
6563
6564   ;;
6565 esac
6566 fi
6567 NOHUP=$ac_cv_path_NOHUP
6568
6569 if test -n "$NOHUP"; then
6570   echo "$as_me:$LINENO: result: $NOHUP" >&5
6571 echo "${ECHO_T}$NOHUP" >&6
6572 else
6573   echo "$as_me:$LINENO: result: no" >&5
6574 echo "${ECHO_T}no" >&6
6575 fi
6576
6577   test -n "$NOHUP" && break
6578 done
6579 test -n "$NOHUP" || NOHUP="$ensc_dflt"
6580
6581
6582         if test -z "${NOHUP}" && $rq; then
6583                 if test -z ""; then
6584                         { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
6585 echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6586    { (exit 1); exit 1; }; }
6587                 else
6588                         { { echo "$as_me:$LINENO: error:
6589 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6590 " >&5
6591 echo "$as_me: error:
6592 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6593 " >&2;}
6594    { (exit 1); exit 1; }; }
6595                 fi
6596         fi
6597
6598         test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
6599
6600         test "${NOHUP}"
6601
6602
6603
6604
6605         if test -z ""; then
6606                 rq=true
6607         else
6608                 rq=false
6609         fi
6610
6611         if $rq; then
6612                 ensc_dflt=
6613         else
6614                 ensc_dflt=""
6615         fi
6616
6617         for ac_prog in rmmod
6618 do
6619   # Extract the first word of "$ac_prog", so it can be a program name with args.
6620 set dummy $ac_prog; ac_word=$2
6621 echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6623 if test "${ac_cv_path_RMMOD+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   case $RMMOD in
6627   [\\/]* | ?:[\\/]*)
6628   ac_cv_path_RMMOD="$RMMOD" # Let the user override the test with a path.
6629   ;;
6630   *)
6631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $ensc_searchpath
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636   for ac_exec_ext in '' $ac_executable_extensions; do
6637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638     ac_cv_path_RMMOD="$as_dir/$ac_word$ac_exec_ext"
6639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640     break 2
6641   fi
6642 done
6643 done
6644
6645   ;;
6646 esac
6647 fi
6648 RMMOD=$ac_cv_path_RMMOD
6649
6650 if test -n "$RMMOD"; then
6651   echo "$as_me:$LINENO: result: $RMMOD" >&5
6652 echo "${ECHO_T}$RMMOD" >&6
6653 else
6654   echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6
6656 fi
6657
6658   test -n "$RMMOD" && break
6659 done
6660 test -n "$RMMOD" || RMMOD="$ensc_dflt"
6661
6662
6663         if test -z "${RMMOD}" && $rq; then
6664                 if test -z ""; then
6665                         { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
6666 echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6667    { (exit 1); exit 1; }; }
6668                 else
6669                         { { echo "$as_me:$LINENO: error:
6670 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6671 " >&5
6672 echo "$as_me: error:
6673 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6674 " >&2;}
6675    { (exit 1); exit 1; }; }
6676                 fi
6677         fi
6678
6679         test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
6680
6681         test "${RMMOD}"
6682
6683
6684
6685
6686         if test -z ""; then
6687                 rq=true
6688         else
6689                 rq=false
6690         fi
6691
6692         if $rq; then
6693                 ensc_dflt=
6694         else
6695                 ensc_dflt=""
6696         fi
6697
6698         for ac_prog in vconfig
6699 do
6700   # Extract the first word of "$ac_prog", so it can be a program name with args.
6701 set dummy $ac_prog; ac_word=$2
6702 echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6704 if test "${ac_cv_path_VCONFIG+set}" = set; then
6705   echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707   case $VCONFIG in
6708   [\\/]* | ?:[\\/]*)
6709   ac_cv_path_VCONFIG="$VCONFIG" # Let the user override the test with a path.
6710   ;;
6711   *)
6712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $ensc_searchpath
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717   for ac_exec_ext in '' $ac_executable_extensions; do
6718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719     ac_cv_path_VCONFIG="$as_dir/$ac_word$ac_exec_ext"
6720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724 done
6725
6726   ;;
6727 esac
6728 fi
6729 VCONFIG=$ac_cv_path_VCONFIG
6730
6731 if test -n "$VCONFIG"; then
6732   echo "$as_me:$LINENO: result: $VCONFIG" >&5
6733 echo "${ECHO_T}$VCONFIG" >&6
6734 else
6735   echo "$as_me:$LINENO: result: no" >&5
6736 echo "${ECHO_T}no" >&6
6737 fi
6738
6739   test -n "$VCONFIG" && break
6740 done
6741 test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
6742
6743
6744         if test -z "${VCONFIG}" && $rq; then
6745                 if test -z "See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution"; then
6746                         { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
6747 echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6748    { (exit 1); exit 1; }; }
6749                 else
6750                         { { echo "$as_me:$LINENO: error:
6751 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6752 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
6753 echo "$as_me: error:
6754 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6755 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
6756    { (exit 1); exit 1; }; }
6757                 fi
6758         fi
6759
6760         test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
6761
6762         test "${VCONFIG}"
6763
6764
6765
6766
6767         if test -z ""; then
6768                 rq=true
6769         else
6770                 rq=false
6771         fi
6772
6773         if $rq; then
6774                 ensc_dflt=
6775         else
6776                 ensc_dflt=""
6777         fi
6778
6779         for ac_prog in wget
6780 do
6781   # Extract the first word of "$ac_prog", so it can be a program name with args.
6782 set dummy $ac_prog; ac_word=$2
6783 echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6785 if test "${ac_cv_path_WGET+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   case $WGET in
6789   [\\/]* | ?:[\\/]*)
6790   ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
6791   ;;
6792   *)
6793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $ensc_searchpath
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798   for ac_exec_ext in '' $ac_executable_extensions; do
6799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6800     ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
6801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805 done
6806
6807   ;;
6808 esac
6809 fi
6810 WGET=$ac_cv_path_WGET
6811
6812 if test -n "$WGET"; then
6813   echo "$as_me:$LINENO: result: $WGET" >&5
6814 echo "${ECHO_T}$WGET" >&6
6815 else
6816   echo "$as_me:$LINENO: result: no" >&5
6817 echo "${ECHO_T}no" >&6
6818 fi
6819
6820   test -n "$WGET" && break
6821 done
6822 test -n "$WGET" || WGET="$ensc_dflt"
6823
6824
6825         if test -z "${WGET}" && $rq; then
6826                 if test -z ""; then
6827                         { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
6828 echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6829    { (exit 1); exit 1; }; }
6830                 else
6831                         { { echo "$as_me:$LINENO: error:
6832 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
6833 " >&5
6834 echo "$as_me: error:
6835 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
6836 " >&2;}
6837    { (exit 1); exit 1; }; }
6838                 fi
6839         fi
6840
6841         test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
6842
6843         test "${WGET}"
6844
6845
6846
6847
6848         if test -z "file"; then
6849                 rq=true
6850         else
6851                 rq=false
6852         fi
6853
6854         if $rq; then
6855                 ensc_dflt=
6856         else
6857                 ensc_dflt="file"
6858         fi
6859
6860         for ac_prog in file
6861 do
6862   # Extract the first word of "$ac_prog", so it can be a program name with args.
6863 set dummy $ac_prog; ac_word=$2
6864 echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6866 if test "${ac_cv_path_FILE+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   case $FILE in
6870   [\\/]* | ?:[\\/]*)
6871   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6872   ;;
6873   *)
6874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $ensc_searchpath
6876 do
6877   IFS=$as_save_IFS
6878   test -z "$as_dir" && as_dir=.
6879   for ac_exec_ext in '' $ac_executable_extensions; do
6880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883     break 2
6884   fi
6885 done
6886 done
6887
6888   ;;
6889 esac
6890 fi
6891 FILE=$ac_cv_path_FILE
6892
6893 if test -n "$FILE"; then
6894   echo "$as_me:$LINENO: result: $FILE" >&5
6895 echo "${ECHO_T}$FILE" >&6
6896 else
6897   echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6
6899 fi
6900
6901   test -n "$FILE" && break
6902 done
6903 test -n "$FILE" || FILE="$ensc_dflt"
6904
6905
6906         if test -z "${FILE}" && $rq; then
6907                 if test -z ""; then
6908                         { { echo "$as_me:$LINENO: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&5
6909 echo "$as_me: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6910    { (exit 1); exit 1; }; }
6911                 else
6912                         { { echo "$as_me:$LINENO: error:
6913 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
6914 " >&5
6915 echo "$as_me: error:
6916 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
6917 " >&2;}
6918    { (exit 1); exit 1; }; }
6919                 fi
6920         fi
6921
6922         test "${FILE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'FILE'@!${FILE}!g;"
6923
6924         test "${FILE}"
6925
6926
6927
6928
6929         if test -z "gzip"; then
6930                 rq=true
6931         else
6932                 rq=false
6933         fi
6934
6935         if $rq; then
6936                 ensc_dflt=
6937         else
6938                 ensc_dflt="gzip"
6939         fi
6940
6941         for ac_prog in gzip
6942 do
6943   # Extract the first word of "$ac_prog", so it can be a program name with args.
6944 set dummy $ac_prog; ac_word=$2
6945 echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6947 if test "${ac_cv_path_GZIP+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   case $GZIP in
6951   [\\/]* | ?:[\\/]*)
6952   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
6953   ;;
6954   *)
6955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $ensc_searchpath
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960   for ac_exec_ext in '' $ac_executable_extensions; do
6961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6962     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
6963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964     break 2
6965   fi
6966 done
6967 done
6968
6969   ;;
6970 esac
6971 fi
6972 GZIP=$ac_cv_path_GZIP
6973
6974 if test -n "$GZIP"; then
6975   echo "$as_me:$LINENO: result: $GZIP" >&5
6976 echo "${ECHO_T}$GZIP" >&6
6977 else
6978   echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6
6980 fi
6981
6982   test -n "$GZIP" && break
6983 done
6984 test -n "$GZIP" || GZIP="$ensc_dflt"
6985
6986
6987         if test -z "${GZIP}" && $rq; then
6988                 if test -z ""; then
6989                         { { echo "$as_me:$LINENO: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&5
6990 echo "$as_me: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6991    { (exit 1); exit 1; }; }
6992                 else
6993                         { { echo "$as_me:$LINENO: error:
6994 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
6995 " >&5
6996 echo "$as_me: error:
6997 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
6998 " >&2;}
6999    { (exit 1); exit 1; }; }
7000                 fi
7001         fi
7002
7003         test "${GZIP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GZIP'@!${GZIP}!g;"
7004
7005         test "${GZIP}"
7006
7007
7008
7009
7010         if test -z "bzip2"; then
7011                 rq=true
7012         else
7013                 rq=false
7014         fi
7015
7016         if $rq; then
7017                 ensc_dflt=
7018         else
7019                 ensc_dflt="bzip2"
7020         fi
7021
7022         for ac_prog in bzip2
7023 do
7024   # Extract the first word of "$ac_prog", so it can be a program name with args.
7025 set dummy $ac_prog; ac_word=$2
7026 echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7028 if test "${ac_cv_path_BZIP2+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   case $BZIP2 in
7032   [\\/]* | ?:[\\/]*)
7033   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7034   ;;
7035   *)
7036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $ensc_searchpath
7038 do
7039   IFS=$as_save_IFS
7040   test -z "$as_dir" && as_dir=.
7041   for ac_exec_ext in '' $ac_executable_extensions; do
7042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045     break 2
7046   fi
7047 done
7048 done
7049
7050   ;;
7051 esac
7052 fi
7053 BZIP2=$ac_cv_path_BZIP2
7054
7055 if test -n "$BZIP2"; then
7056   echo "$as_me:$LINENO: result: $BZIP2" >&5
7057 echo "${ECHO_T}$BZIP2" >&6
7058 else
7059   echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6
7061 fi
7062
7063   test -n "$BZIP2" && break
7064 done
7065 test -n "$BZIP2" || BZIP2="$ensc_dflt"
7066
7067
7068         if test -z "${BZIP2}" && $rq; then
7069                 if test -z ""; then
7070                         { { echo "$as_me:$LINENO: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&5
7071 echo "$as_me: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7072    { (exit 1); exit 1; }; }
7073                 else
7074                         { { echo "$as_me:$LINENO: error:
7075 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7076 " >&5
7077 echo "$as_me: error:
7078 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7079 " >&2;}
7080    { (exit 1); exit 1; }; }
7081                 fi
7082         fi
7083
7084         test "${BZIP2}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'BZIP2'@!${BZIP2}!g;"
7085
7086         test "${BZIP2}"
7087
7088
7089
7090
7091         if test -z "cpio"; then
7092                 rq=true
7093         else
7094                 rq=false
7095         fi
7096
7097         if $rq; then
7098                 ensc_dflt=
7099         else
7100                 ensc_dflt="cpio"
7101         fi
7102
7103         for ac_prog in cpio
7104 do
7105   # Extract the first word of "$ac_prog", so it can be a program name with args.
7106 set dummy $ac_prog; ac_word=$2
7107 echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7109 if test "${ac_cv_path_CPIO+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   case $CPIO in
7113   [\\/]* | ?:[\\/]*)
7114   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
7115   ;;
7116   *)
7117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $ensc_searchpath
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130
7131   ;;
7132 esac
7133 fi
7134 CPIO=$ac_cv_path_CPIO
7135
7136 if test -n "$CPIO"; then
7137   echo "$as_me:$LINENO: result: $CPIO" >&5
7138 echo "${ECHO_T}$CPIO" >&6
7139 else
7140   echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6
7142 fi
7143
7144   test -n "$CPIO" && break
7145 done
7146 test -n "$CPIO" || CPIO="$ensc_dflt"
7147
7148
7149         if test -z "${CPIO}" && $rq; then
7150                 if test -z ""; then
7151                         { { echo "$as_me:$LINENO: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&5
7152 echo "$as_me: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7153    { (exit 1); exit 1; }; }
7154                 else
7155                         { { echo "$as_me:$LINENO: error:
7156 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
7157 " >&5
7158 echo "$as_me: error:
7159 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
7160 " >&2;}
7161    { (exit 1); exit 1; }; }
7162                 fi
7163         fi
7164
7165         test "${CPIO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CPIO'@!${CPIO}!g;"
7166
7167         test "${CPIO}"
7168
7169
7170
7171
7172         if test -z "restore"; then
7173                 rq=true
7174         else
7175                 rq=false
7176         fi
7177
7178         if $rq; then
7179                 ensc_dflt=
7180         else
7181                 ensc_dflt="restore"
7182         fi
7183
7184         for ac_prog in restore
7185 do
7186   # Extract the first word of "$ac_prog", so it can be a program name with args.
7187 set dummy $ac_prog; ac_word=$2
7188 echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7190 if test "${ac_cv_path_RESTORE+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   case $RESTORE in
7194   [\\/]* | ?:[\\/]*)
7195   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
7196   ;;
7197   *)
7198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $ensc_searchpath
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203   for ac_exec_ext in '' $ac_executable_extensions; do
7204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
7206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210 done
7211
7212   ;;
7213 esac
7214 fi
7215 RESTORE=$ac_cv_path_RESTORE
7216
7217 if test -n "$RESTORE"; then
7218   echo "$as_me:$LINENO: result: $RESTORE" >&5
7219 echo "${ECHO_T}$RESTORE" >&6
7220 else
7221   echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6
7223 fi
7224
7225   test -n "$RESTORE" && break
7226 done
7227 test -n "$RESTORE" || RESTORE="$ensc_dflt"
7228
7229
7230         if test -z "${RESTORE}" && $rq; then
7231                 if test -z ""; then
7232                         { { echo "$as_me:$LINENO: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&5
7233 echo "$as_me: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7234    { (exit 1); exit 1; }; }
7235                 else
7236                         { { echo "$as_me:$LINENO: error:
7237 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
7238 " >&5
7239 echo "$as_me: error:
7240 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
7241 " >&2;}
7242    { (exit 1); exit 1; }; }
7243                 fi
7244         fi
7245
7246         test "${RESTORE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RESTORE'@!${RESTORE}!g;"
7247
7248         test "${RESTORE}"
7249
7250
7251
7252
7253         if test -z "rsync"; then
7254                 rq=true
7255         else
7256                 rq=false
7257         fi
7258
7259         if $rq; then
7260                 ensc_dflt=
7261         else
7262                 ensc_dflt="rsync"
7263         fi
7264
7265         for ac_prog in rsync
7266 do
7267   # Extract the first word of "$ac_prog", so it can be a program name with args.
7268 set dummy $ac_prog; ac_word=$2
7269 echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7271 if test "${ac_cv_path_RSYNC+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   case $RSYNC in
7275   [\\/]* | ?:[\\/]*)
7276   ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
7277   ;;
7278   *)
7279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $ensc_searchpath
7281 do
7282   IFS=$as_save_IFS
7283   test -z "$as_dir" && as_dir=.
7284   for ac_exec_ext in '' $ac_executable_extensions; do
7285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286     ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
7287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288     break 2
7289   fi
7290 done
7291 done
7292
7293   ;;
7294 esac
7295 fi
7296 RSYNC=$ac_cv_path_RSYNC
7297
7298 if test -n "$RSYNC"; then
7299   echo "$as_me:$LINENO: result: $RSYNC" >&5
7300 echo "${ECHO_T}$RSYNC" >&6
7301 else
7302   echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304 fi
7305
7306   test -n "$RSYNC" && break
7307 done
7308 test -n "$RSYNC" || RSYNC="$ensc_dflt"
7309
7310
7311         if test -z "${RSYNC}" && $rq; then
7312                 if test -z ""; then
7313                         { { echo "$as_me:$LINENO: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&5
7314 echo "$as_me: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7315    { (exit 1); exit 1; }; }
7316                 else
7317                         { { echo "$as_me:$LINENO: error:
7318 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
7319 " >&5
7320 echo "$as_me: error:
7321 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
7322 " >&2;}
7323    { (exit 1); exit 1; }; }
7324                 fi
7325         fi
7326
7327         test "${RSYNC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RSYNC'@!${RSYNC}!g;"
7328
7329         test "${RSYNC}"
7330
7331
7332
7333
7334
7335         if test -z ":"; then
7336                 rq=true
7337         else
7338                 rq=false
7339         fi
7340
7341         if $rq; then
7342                 ensc_dflt=
7343         else
7344                 ensc_dflt=":"
7345         fi
7346
7347         for ac_prog in doxygen
7348 do
7349   # Extract the first word of "$ac_prog", so it can be a program name with args.
7350 set dummy $ac_prog; ac_word=$2
7351 echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7353 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356   case $DOXYGEN in
7357   [\\/]* | ?:[\\/]*)
7358   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7359   ;;
7360   *)
7361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $ensc_searchpath
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366   for ac_exec_ext in '' $ac_executable_extensions; do
7367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373 done
7374
7375   ;;
7376 esac
7377 fi
7378 DOXYGEN=$ac_cv_path_DOXYGEN
7379
7380 if test -n "$DOXYGEN"; then
7381   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7382 echo "${ECHO_T}$DOXYGEN" >&6
7383 else
7384   echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6
7386 fi
7387
7388   test -n "$DOXYGEN" && break
7389 done
7390 test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
7391
7392
7393         if test -z "${DOXYGEN}" && $rq; then
7394                 if test -z ""; then
7395                         { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
7396 echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7397    { (exit 1); exit 1; }; }
7398                 else
7399                         { { echo "$as_me:$LINENO: error:
7400 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7401 " >&5
7402 echo "$as_me: error:
7403 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7404 " >&2;}
7405    { (exit 1); exit 1; }; }
7406                 fi
7407         fi
7408
7409         test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
7410
7411         test "${DOXYGEN}"
7412
7413
7414
7415
7416         if test -z ":"; then
7417                 rq=true
7418         else
7419                 rq=false
7420         fi
7421
7422         if $rq; then
7423                 ensc_dflt=
7424         else
7425                 ensc_dflt=":"
7426         fi
7427
7428         for ac_prog in xsltp
7429 do
7430   # Extract the first word of "$ac_prog", so it can be a program name with args.
7431 set dummy $ac_prog; ac_word=$2
7432 echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7434 if test "${ac_cv_path_XSLTP+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   case $XSLTP in
7438   [\\/]* | ?:[\\/]*)
7439   ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
7440   ;;
7441   *)
7442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $ensc_searchpath
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447   for ac_exec_ext in '' $ac_executable_extensions; do
7448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449     ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
7450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454 done
7455
7456   ;;
7457 esac
7458 fi
7459 XSLTP=$ac_cv_path_XSLTP
7460
7461 if test -n "$XSLTP"; then
7462   echo "$as_me:$LINENO: result: $XSLTP" >&5
7463 echo "${ECHO_T}$XSLTP" >&6
7464 else
7465   echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6
7467 fi
7468
7469   test -n "$XSLTP" && break
7470 done
7471 test -n "$XSLTP" || XSLTP="$ensc_dflt"
7472
7473
7474         if test -z "${XSLTP}" && $rq; then
7475                 if test -z ""; then
7476                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
7477 echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7478    { (exit 1); exit 1; }; }
7479                 else
7480                         { { echo "$as_me:$LINENO: error:
7481 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7482 " >&5
7483 echo "$as_me: error:
7484 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7485 " >&2;}
7486    { (exit 1); exit 1; }; }
7487                 fi
7488         fi
7489
7490         test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
7491
7492         test "${XSLTP}"
7493
7494
7495
7496
7497         if test -z ":"; then
7498                 rq=true
7499         else
7500                 rq=false
7501         fi
7502
7503         if $rq; then
7504                 ensc_dflt=
7505         else
7506                 ensc_dflt=":"
7507         fi
7508
7509         for ac_prog in xsltproc
7510 do
7511   # Extract the first word of "$ac_prog", so it can be a program name with args.
7512 set dummy $ac_prog; ac_word=$2
7513 echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7515 if test "${ac_cv_path_XSLTPROC+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   case $XSLTPROC in
7519   [\\/]* | ?:[\\/]*)
7520   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
7521   ;;
7522   *)
7523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $ensc_searchpath
7525 do
7526   IFS=$as_save_IFS
7527   test -z "$as_dir" && as_dir=.
7528   for ac_exec_ext in '' $ac_executable_extensions; do
7529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
7531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532     break 2
7533   fi
7534 done
7535 done
7536
7537   ;;
7538 esac
7539 fi
7540 XSLTPROC=$ac_cv_path_XSLTPROC
7541
7542 if test -n "$XSLTPROC"; then
7543   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
7544 echo "${ECHO_T}$XSLTPROC" >&6
7545 else
7546   echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7548 fi
7549
7550   test -n "$XSLTPROC" && break
7551 done
7552 test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
7553
7554
7555         if test -z "${XSLTPROC}" && $rq; then
7556                 if test -z ""; then
7557                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
7558 echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7559    { (exit 1); exit 1; }; }
7560                 else
7561                         { { echo "$as_me:$LINENO: error:
7562 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7563 " >&5
7564 echo "$as_me: error:
7565 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7566 " >&2;}
7567    { (exit 1); exit 1; }; }
7568                 fi
7569         fi
7570
7571         test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
7572
7573         test "${XSLTPROC}"
7574
7575
7576
7577
7578 if test "$XSLTP"    != ':'; then
7579   HAVE_XSLTP_TRUE=
7580   HAVE_XSLTP_FALSE='#'
7581 else
7582   HAVE_XSLTP_TRUE='#'
7583   HAVE_XSLTP_FALSE=
7584 fi
7585
7586
7587
7588 if test "$XSLTPROC" != ':'; then
7589   HAVE_XSLTPROC_TRUE=
7590   HAVE_XSLTPROC_FALSE='#'
7591 else
7592   HAVE_XSLTPROC_TRUE='#'
7593   HAVE_XSLTPROC_FALSE=
7594 fi
7595
7596
7597 if test x"$prefix" = x/; then
7598         prefix=
7599 fi
7600
7601
7602
7603         warn_flags="-Werror -W"
7604         echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
7605 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6
7606         ac_ext=c
7607 ac_cpp='$CPP $CPPFLAGS'
7608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7611
7612         __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
7613         CFLAGS="$warn_flags"
7614         cat >conftest.$ac_ext <<_ACEOF
7615 /* confdefs.h.  */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h.  */
7620 inline static void f(){}
7621 int
7622 main ()
7623 {
7624
7625   ;
7626   return 0;
7627 }
7628 _ACEOF
7629 rm -f conftest.$ac_objext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7631   (eval $ac_compile) 2>conftest.er1
7632   ac_status=$?
7633   grep -v '^ *+' conftest.er1 >conftest.err
7634   rm -f conftest.er1
7635   cat conftest.err >&5
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); } &&
7638          { ac_try='test -z "$ac_c_werror_flag"
7639                          || test ! -s conftest.err'
7640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641   (eval $ac_try) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; } &&
7645          { ac_try='test -s conftest.$ac_objext'
7646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647   (eval $ac_try) 2>&5
7648   ac_status=$?
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); }; }; then
7651   ensc_sys_compilerwarnflags_C=${warn_flags}
7652 else
7653   echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7655
7656 ensc_sys_compilerwarnflags_C=
7657 fi
7658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7659         ac_ext=c
7660 ac_cpp='$CPP $CPPFLAGS'
7661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7664
7665         CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7666
7667         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
7668                 echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7670         else
7671                 echo "$as_me:$LINENO: result: yes" >&5
7672 echo "${ECHO_T}yes" >&6
7673         fi
7674
7675
7676
7677
7678
7679 echo 'void f(){}' > conftest.c
7680   for i in -std=c99 -Wall -pedantic -W
7681   do
7682     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7683 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7684     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7685     then
7686       CFLAGS="${CFLAGS} $i"
7687       echo "$as_me:$LINENO: result: yes" >&5
7688 echo "${ECHO_T}yes" >&6
7689     else
7690       echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6
7692     fi
7693   done
7694   rm -f conftest.c conftest.o
7695
7696
7697
7698         warn_flags="-Werror -W"
7699         echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
7700 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6
7701         ac_ext=cc
7702 ac_cpp='$CXXCPP $CPPFLAGS'
7703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7706
7707         __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
7708         CXXFLAGS="$warn_flags"
7709         cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h.  */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h.  */
7715 inline static void f(){}
7716 int
7717 main ()
7718 {
7719
7720   ;
7721   return 0;
7722 }
7723 _ACEOF
7724 rm -f conftest.$ac_objext
7725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7726   (eval $ac_compile) 2>conftest.er1
7727   ac_status=$?
7728   grep -v '^ *+' conftest.er1 >conftest.err
7729   rm -f conftest.er1
7730   cat conftest.err >&5
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); } &&
7733          { ac_try='test -z "$ac_cxx_werror_flag"
7734                          || test ! -s conftest.err'
7735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736   (eval $ac_try) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); }; } &&
7740          { ac_try='test -s conftest.$ac_objext'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; }; then
7746   ensc_sys_compilerwarnflags_CXX=${warn_flags}
7747 else
7748   echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 ensc_sys_compilerwarnflags_CXX=
7752 fi
7753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7754         ac_ext=c
7755 ac_cpp='$CPP $CPPFLAGS'
7756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7759
7760         CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7761
7762         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
7763                 echo "$as_me:$LINENO: result: no" >&5
7764 echo "${ECHO_T}no" >&6
7765         else
7766                 echo "$as_me:$LINENO: result: yes" >&5
7767 echo "${ECHO_T}yes" >&6
7768         fi
7769
7770
7771
7772
7773
7774   echo 'void f(){}' > conftest.cc
7775   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
7776   do
7777     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
7778 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
7779     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
7780     then
7781       CXXFLAGS="${CXXFLAGS} $i"
7782       echo "$as_me:$LINENO: result: yes" >&5
7783 echo "${ECHO_T}yes" >&6
7784     else
7785       echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6
7787     fi
7788   done
7789   rm -f conftest.cc conftest.o
7790
7791
7792 echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
7793 echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6
7794 # Check whether --enable-extra-optimizations or --disable-extra-optimizations was given.
7795 if test "${enable_extra_optimizations+set}" = set; then
7796   enableval="$enable_extra_optimizations"
7797   case "$enableval" in
7798                   (yes) use_extra_optimizations=1;;
7799                   (no)  use_extra_optimizations=;;
7800                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
7801 echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
7802    { (exit 1); exit 1; }; };;
7803                esac
7804 else
7805   use_extra_optimizations=1
7806 fi;
7807
7808 if test x"$use_extra_optimizations" = x; then
7809         echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6
7811 else
7812         echo "$as_me:$LINENO: result: yes" >&5
7813 echo "${ECHO_T}yes" >&6
7814
7815
7816
7817 echo 'void f(){}' > conftest.c
7818   for i in -funit-at-a-time
7819   do
7820     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7821 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7822     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7823     then
7824       CFLAGS="${CFLAGS} $i"
7825       echo "$as_me:$LINENO: result: yes" >&5
7826 echo "${ECHO_T}yes" >&6
7827     else
7828       echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6
7830     fi
7831   done
7832   rm -f conftest.c conftest.o
7833
7834
7835
7836
7837   echo 'void f(){}' > conftest.cc
7838   for i in -funit-at-a-time
7839   do
7840     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
7841 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
7842     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
7843     then
7844       CXXFLAGS="${CXXFLAGS} $i"
7845       echo "$as_me:$LINENO: result: yes" >&5
7846 echo "${ECHO_T}yes" >&6
7847     else
7848       echo "$as_me:$LINENO: result: no" >&5
7849 echo "${ECHO_T}no" >&6
7850     fi
7851   done
7852   rm -f conftest.cc conftest.o
7853
7854 fi
7855
7856 echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
7857 echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6
7858 # Check whether --enable-lib-debug or --disable-lib-debug was given.
7859 if test "${enable_lib_debug+set}" = set; then
7860   enableval="$enable_lib_debug"
7861   case "$enableval" in
7862                   (yes) use_lib_debug=1;;
7863                   (no)  use_lib_debug=;;
7864                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
7865 echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
7866    { (exit 1); exit 1; }; };;
7867                esac
7868 else
7869    use_lib_debug=
7870 fi;
7871
7872 if test x"$use_lib_debug" = x; then
7873         LIB_DEBUG_CPPFLAGS=-DNDEBUG
7874
7875         echo "$as_me:$LINENO: result: no" >&5
7876 echo "${ECHO_T}no" >&6
7877 else
7878
7879         echo "$as_me:$LINENO: result: yes" >&5
7880 echo "${ECHO_T}yes" >&6
7881 fi
7882
7883 echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
7884 echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6
7885 # Check whether --enable-expensive-tests or --disable-expensive-tests was given.
7886 if test "${enable_expensive_tests+set}" = set; then
7887   enableval="$enable_expensive_tests"
7888   case "$enableval" in
7889                  (yes|no)  use_expensive_tests=$enableval;;
7890                  (*)       { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&5
7891 echo "$as_me: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&2;}
7892    { (exit 1); exit 1; }; };;
7893                esac
7894 else
7895    use_expensive_tests=no
7896 fi;
7897 echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
7898 echo "${ECHO_T}$use_expensive_tests" >&6
7899
7900 ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
7901
7902
7903
7904
7905         echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
7906 echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6
7907         echo "$as_me:$LINENO: result: " >&5
7908 echo "${ECHO_T}" >&6
7909
7910         ac_ext=c
7911 ac_cpp='$CPP $CPPFLAGS'
7912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915
7916         echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
7917 echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6
7918 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921   cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h.  */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h.  */
7927
7928 #include <linux/personality.h>
7929
7930
7931 int
7932 main ()
7933 {
7934 #ifndef MMAP_PAGE_ZERO
7935   char *p = (char *) MMAP_PAGE_ZERO;
7936 #endif
7937
7938   ;
7939   return 0;
7940 }
7941 _ACEOF
7942 rm -f conftest.$ac_objext
7943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944   (eval $ac_compile) 2>conftest.er1
7945   ac_status=$?
7946   grep -v '^ *+' conftest.er1 >conftest.err
7947   rm -f conftest.er1
7948   cat conftest.err >&5
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); } &&
7951          { ac_try='test -z "$ac_c_werror_flag"
7952                          || test ! -s conftest.err'
7953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954   (eval $ac_try) 2>&5
7955   ac_status=$?
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); }; } &&
7958          { ac_try='test -s conftest.$ac_objext'
7959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960   (eval $ac_try) 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); }; }; then
7964   ac_cv_have_decl_MMAP_PAGE_ZERO=yes
7965 else
7966   echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7968
7969 ac_cv_have_decl_MMAP_PAGE_ZERO=no
7970 fi
7971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7972 fi
7973 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
7974 echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6
7975 if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
7976
7977 cat >>confdefs.h <<_ACEOF
7978 #define HAVE_DECL_MMAP_PAGE_ZERO 1
7979 _ACEOF
7980
7981
7982 else
7983   cat >>confdefs.h <<_ACEOF
7984 #define HAVE_DECL_MMAP_PAGE_ZERO 0
7985 _ACEOF
7986
7987
7988 fi
7989 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
7990 echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6
7991 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h.  */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h.  */
8000
8001 #include <linux/personality.h>
8002
8003
8004 int
8005 main ()
8006 {
8007 #ifndef ADDR_LIMIT_32BIT
8008   char *p = (char *) ADDR_LIMIT_32BIT;
8009 #endif
8010
8011   ;
8012   return 0;
8013 }
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8017   (eval $ac_compile) 2>conftest.er1
8018   ac_status=$?
8019   grep -v '^ *+' conftest.er1 >conftest.err
8020   rm -f conftest.er1
8021   cat conftest.err >&5
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); } &&
8024          { ac_try='test -z "$ac_c_werror_flag"
8025                          || test ! -s conftest.err'
8026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027   (eval $ac_try) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); }; } &&
8031          { ac_try='test -s conftest.$ac_objext'
8032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033   (eval $ac_try) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }; }; then
8037   ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
8038 else
8039   echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042 ac_cv_have_decl_ADDR_LIMIT_32BIT=no
8043 fi
8044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8045 fi
8046 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
8047 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6
8048 if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
8049
8050 cat >>confdefs.h <<_ACEOF
8051 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
8052 _ACEOF
8053
8054
8055 else
8056   cat >>confdefs.h <<_ACEOF
8057 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
8058 _ACEOF
8059
8060
8061 fi
8062 echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
8063 echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6
8064 if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
8065   echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067   cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073
8074 #include <linux/personality.h>
8075
8076
8077 int
8078 main ()
8079 {
8080 #ifndef SHORT_INODE
8081   char *p = (char *) SHORT_INODE;
8082 #endif
8083
8084   ;
8085   return 0;
8086 }
8087 _ACEOF
8088 rm -f conftest.$ac_objext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8090   (eval $ac_compile) 2>conftest.er1
8091   ac_status=$?
8092   grep -v '^ *+' conftest.er1 >conftest.err
8093   rm -f conftest.er1
8094   cat conftest.err >&5
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); } &&
8097          { ac_try='test -z "$ac_c_werror_flag"
8098                          || test ! -s conftest.err'
8099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100   (eval $ac_try) 2>&5
8101   ac_status=$?
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); }; } &&
8104          { ac_try='test -s conftest.$ac_objext'
8105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106   (eval $ac_try) 2>&5
8107   ac_status=$?
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); }; }; then
8110   ac_cv_have_decl_SHORT_INODE=yes
8111 else
8112   echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115 ac_cv_have_decl_SHORT_INODE=no
8116 fi
8117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8118 fi
8119 echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
8120 echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6
8121 if test $ac_cv_have_decl_SHORT_INODE = yes; then
8122
8123 cat >>confdefs.h <<_ACEOF
8124 #define HAVE_DECL_SHORT_INODE 1
8125 _ACEOF
8126
8127
8128 else
8129   cat >>confdefs.h <<_ACEOF
8130 #define HAVE_DECL_SHORT_INODE 0
8131 _ACEOF
8132
8133
8134 fi
8135 echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
8136 echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6
8137 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h.  */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h.  */
8146
8147 #include <linux/personality.h>
8148
8149
8150 int
8151 main ()
8152 {
8153 #ifndef WHOLE_SECONDS
8154   char *p = (char *) WHOLE_SECONDS;
8155 #endif
8156
8157   ;
8158   return 0;
8159 }
8160 _ACEOF
8161 rm -f conftest.$ac_objext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8163   (eval $ac_compile) 2>conftest.er1
8164   ac_status=$?
8165   grep -v '^ *+' conftest.er1 >conftest.err
8166   rm -f conftest.er1
8167   cat conftest.err >&5
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } &&
8170          { ac_try='test -z "$ac_c_werror_flag"
8171                          || test ! -s conftest.err'
8172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173   (eval $ac_try) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); }; } &&
8177          { ac_try='test -s conftest.$ac_objext'
8178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179   (eval $ac_try) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; }; then
8183   ac_cv_have_decl_WHOLE_SECONDS=yes
8184 else
8185   echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188 ac_cv_have_decl_WHOLE_SECONDS=no
8189 fi
8190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8191 fi
8192 echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
8193 echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6
8194 if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
8195
8196 cat >>confdefs.h <<_ACEOF
8197 #define HAVE_DECL_WHOLE_SECONDS 1
8198 _ACEOF
8199
8200
8201 else
8202   cat >>confdefs.h <<_ACEOF
8203 #define HAVE_DECL_WHOLE_SECONDS 0
8204 _ACEOF
8205
8206
8207 fi
8208 echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
8209 echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6
8210 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
8211   echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213   cat >conftest.$ac_ext <<_ACEOF
8214 /* confdefs.h.  */
8215 _ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h.  */
8219
8220 #include <linux/personality.h>
8221
8222
8223 int
8224 main ()
8225 {
8226 #ifndef STICKY_TIMEOUTS
8227   char *p = (char *) STICKY_TIMEOUTS;
8228 #endif
8229
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8236   (eval $ac_compile) 2>conftest.er1
8237   ac_status=$?
8238   grep -v '^ *+' conftest.er1 >conftest.err
8239   rm -f conftest.er1
8240   cat conftest.err >&5
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } &&
8243          { ac_try='test -z "$ac_c_werror_flag"
8244                          || test ! -s conftest.err'
8245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246   (eval $ac_try) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; } &&
8250          { ac_try='test -s conftest.$ac_objext'
8251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252   (eval $ac_try) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); }; }; then
8256   ac_cv_have_decl_STICKY_TIMEOUTS=yes
8257 else
8258   echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8260
8261 ac_cv_have_decl_STICKY_TIMEOUTS=no
8262 fi
8263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8264 fi
8265 echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
8266 echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6
8267 if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
8268
8269 cat >>confdefs.h <<_ACEOF
8270 #define HAVE_DECL_STICKY_TIMEOUTS 1
8271 _ACEOF
8272
8273
8274 else
8275   cat >>confdefs.h <<_ACEOF
8276 #define HAVE_DECL_STICKY_TIMEOUTS 0
8277 _ACEOF
8278
8279
8280 fi
8281 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
8282 echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6
8283 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286   cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h.  */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h.  */
8292
8293 #include <linux/personality.h>
8294
8295
8296 int
8297 main ()
8298 {
8299 #ifndef ADDR_LIMIT_3GB
8300   char *p = (char *) ADDR_LIMIT_3GB;
8301 #endif
8302
8303   ;
8304   return 0;
8305 }
8306 _ACEOF
8307 rm -f conftest.$ac_objext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309   (eval $ac_compile) 2>conftest.er1
8310   ac_status=$?
8311   grep -v '^ *+' conftest.er1 >conftest.err
8312   rm -f conftest.er1
8313   cat conftest.err >&5
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } &&
8316          { ac_try='test -z "$ac_c_werror_flag"
8317                          || test ! -s conftest.err'
8318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319   (eval $ac_try) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; } &&
8323          { ac_try='test -s conftest.$ac_objext'
8324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325   (eval $ac_try) 2>&5
8326   ac_status=$?
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); }; }; then
8329   ac_cv_have_decl_ADDR_LIMIT_3GB=yes
8330 else
8331   echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8333
8334 ac_cv_have_decl_ADDR_LIMIT_3GB=no
8335 fi
8336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8337 fi
8338 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
8339 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6
8340 if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
8341
8342 cat >>confdefs.h <<_ACEOF
8343 #define HAVE_DECL_ADDR_LIMIT_3GB 1
8344 _ACEOF
8345
8346
8347 else
8348   cat >>confdefs.h <<_ACEOF
8349 #define HAVE_DECL_ADDR_LIMIT_3GB 0
8350 _ACEOF
8351
8352
8353 fi
8354
8355
8356
8357         echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
8358 echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6
8359 if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
8360   echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362   cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h.  */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h.  */
8368
8369 #include <linux/personality.h>
8370
8371
8372 int
8373 main ()
8374 {
8375 #ifndef PER_LINUX
8376   char *p = (char *) PER_LINUX;
8377 #endif
8378
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest.$ac_objext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8385   (eval $ac_compile) 2>conftest.er1
8386   ac_status=$?
8387   grep -v '^ *+' conftest.er1 >conftest.err
8388   rm -f conftest.er1
8389   cat conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } &&
8392          { ac_try='test -z "$ac_c_werror_flag"
8393                          || test ! -s conftest.err'
8394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395   (eval $ac_try) 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }; } &&
8399          { ac_try='test -s conftest.$ac_objext'
8400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401   (eval $ac_try) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; }; then
8405   ac_cv_have_decl_PER_LINUX=yes
8406 else
8407   echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8409
8410 ac_cv_have_decl_PER_LINUX=no
8411 fi
8412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8413 fi
8414 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
8415 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6
8416 if test $ac_cv_have_decl_PER_LINUX = yes; then
8417
8418 cat >>confdefs.h <<_ACEOF
8419 #define HAVE_DECL_PER_LINUX 1
8420 _ACEOF
8421
8422
8423 else
8424   cat >>confdefs.h <<_ACEOF
8425 #define HAVE_DECL_PER_LINUX 0
8426 _ACEOF
8427
8428
8429 fi
8430 echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
8431 echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6
8432 if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h.  */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h.  */
8441
8442 #include <linux/personality.h>
8443
8444
8445 int
8446 main ()
8447 {
8448 #ifndef PER_LINUX_32BIT
8449   char *p = (char *) PER_LINUX_32BIT;
8450 #endif
8451
8452   ;
8453   return 0;
8454 }
8455 _ACEOF
8456 rm -f conftest.$ac_objext
8457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8458   (eval $ac_compile) 2>conftest.er1
8459   ac_status=$?
8460   grep -v '^ *+' conftest.er1 >conftest.err
8461   rm -f conftest.er1
8462   cat conftest.err >&5
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } &&
8465          { ac_try='test -z "$ac_c_werror_flag"
8466                          || test ! -s conftest.err'
8467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468   (eval $ac_try) 2>&5
8469   ac_status=$?
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); }; } &&
8472          { ac_try='test -s conftest.$ac_objext'
8473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474   (eval $ac_try) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; }; then
8478   ac_cv_have_decl_PER_LINUX_32BIT=yes
8479 else
8480   echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.$ac_ext >&5
8482
8483 ac_cv_have_decl_PER_LINUX_32BIT=no
8484 fi
8485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8486 fi
8487 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
8488 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6
8489 if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
8490
8491 cat >>confdefs.h <<_ACEOF
8492 #define HAVE_DECL_PER_LINUX_32BIT 1
8493 _ACEOF
8494
8495
8496 else
8497   cat >>confdefs.h <<_ACEOF
8498 #define HAVE_DECL_PER_LINUX_32BIT 0
8499 _ACEOF
8500
8501
8502 fi
8503 echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
8504 echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6
8505 if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
8506   echo $ECHO_N "(cached) $ECHO_C" >&6
8507 else
8508   cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h.  */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h.  */
8514
8515 #include <linux/personality.h>
8516
8517
8518 int
8519 main ()
8520 {
8521 #ifndef PER_SVR4
8522   char *p = (char *) PER_SVR4;
8523 #endif
8524
8525   ;
8526   return 0;
8527 }
8528 _ACEOF
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531   (eval $ac_compile) 2>conftest.er1
8532   ac_status=$?
8533   grep -v '^ *+' conftest.er1 >conftest.err
8534   rm -f conftest.er1
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } &&
8538          { ac_try='test -z "$ac_c_werror_flag"
8539                          || test ! -s conftest.err'
8540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541   (eval $ac_try) 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; } &&
8545          { ac_try='test -s conftest.$ac_objext'
8546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547   (eval $ac_try) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; }; then
8551   ac_cv_have_decl_PER_SVR4=yes
8552 else
8553   echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8555
8556 ac_cv_have_decl_PER_SVR4=no
8557 fi
8558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8559 fi
8560 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
8561 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6
8562 if test $ac_cv_have_decl_PER_SVR4 = yes; then
8563
8564 cat >>confdefs.h <<_ACEOF
8565 #define HAVE_DECL_PER_SVR4 1
8566 _ACEOF
8567
8568
8569 else
8570   cat >>confdefs.h <<_ACEOF
8571 #define HAVE_DECL_PER_SVR4 0
8572 _ACEOF
8573
8574
8575 fi
8576 echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
8577 echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6
8578 if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
8579   echo $ECHO_N "(cached) $ECHO_C" >&6
8580 else
8581   cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h.  */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h.  */
8587
8588 #include <linux/personality.h>
8589
8590
8591 int
8592 main ()
8593 {
8594 #ifndef PER_SVR3
8595   char *p = (char *) PER_SVR3;
8596 #endif
8597
8598   ;
8599   return 0;
8600 }
8601 _ACEOF
8602 rm -f conftest.$ac_objext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604   (eval $ac_compile) 2>conftest.er1
8605   ac_status=$?
8606   grep -v '^ *+' conftest.er1 >conftest.err
8607   rm -f conftest.er1
8608   cat conftest.err >&5
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } &&
8611          { ac_try='test -z "$ac_c_werror_flag"
8612                          || test ! -s conftest.err'
8613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614   (eval $ac_try) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; } &&
8618          { ac_try='test -s conftest.$ac_objext'
8619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620   (eval $ac_try) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; }; then
8624   ac_cv_have_decl_PER_SVR3=yes
8625 else
8626   echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8628
8629 ac_cv_have_decl_PER_SVR3=no
8630 fi
8631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8632 fi
8633 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
8634 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6
8635 if test $ac_cv_have_decl_PER_SVR3 = yes; then
8636
8637 cat >>confdefs.h <<_ACEOF
8638 #define HAVE_DECL_PER_SVR3 1
8639 _ACEOF
8640
8641
8642 else
8643   cat >>confdefs.h <<_ACEOF
8644 #define HAVE_DECL_PER_SVR3 0
8645 _ACEOF
8646
8647
8648 fi
8649 echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
8650 echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6
8651 if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h.  */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h.  */
8660
8661 #include <linux/personality.h>
8662
8663
8664 int
8665 main ()
8666 {
8667 #ifndef PER_SCOSVR3
8668   char *p = (char *) PER_SCOSVR3;
8669 #endif
8670
8671   ;
8672   return 0;
8673 }
8674 _ACEOF
8675 rm -f conftest.$ac_objext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677   (eval $ac_compile) 2>conftest.er1
8678   ac_status=$?
8679   grep -v '^ *+' conftest.er1 >conftest.err
8680   rm -f conftest.er1
8681   cat conftest.err >&5
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } &&
8684          { ac_try='test -z "$ac_c_werror_flag"
8685                          || test ! -s conftest.err'
8686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687   (eval $ac_try) 2>&5
8688   ac_status=$?
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); }; } &&
8691          { ac_try='test -s conftest.$ac_objext'
8692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693   (eval $ac_try) 2>&5
8694   ac_status=$?
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); }; }; then
8697   ac_cv_have_decl_PER_SCOSVR3=yes
8698 else
8699   echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 ac_cv_have_decl_PER_SCOSVR3=no
8703 fi
8704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8705 fi
8706 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
8707 echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6
8708 if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
8709
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_DECL_PER_SCOSVR3 1
8712 _ACEOF
8713
8714
8715 else
8716   cat >>confdefs.h <<_ACEOF
8717 #define HAVE_DECL_PER_SCOSVR3 0
8718 _ACEOF
8719
8720
8721 fi
8722 echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
8723 echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6
8724 if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
8725   echo $ECHO_N "(cached) $ECHO_C" >&6
8726 else
8727   cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h.  */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h.  */
8733
8734 #include <linux/personality.h>
8735
8736
8737 int
8738 main ()
8739 {
8740 #ifndef PER_OSR5
8741   char *p = (char *) PER_OSR5;
8742 #endif
8743
8744   ;
8745   return 0;
8746 }
8747 _ACEOF
8748 rm -f conftest.$ac_objext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750   (eval $ac_compile) 2>conftest.er1
8751   ac_status=$?
8752   grep -v '^ *+' conftest.er1 >conftest.err
8753   rm -f conftest.er1
8754   cat conftest.err >&5
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } &&
8757          { ac_try='test -z "$ac_c_werror_flag"
8758                          || test ! -s conftest.err'
8759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760   (eval $ac_try) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); }; } &&
8764          { ac_try='test -s conftest.$ac_objext'
8765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766   (eval $ac_try) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; }; then
8770   ac_cv_have_decl_PER_OSR5=yes
8771 else
8772   echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 ac_cv_have_decl_PER_OSR5=no
8776 fi
8777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8778 fi
8779 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
8780 echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6
8781 if test $ac_cv_have_decl_PER_OSR5 = yes; then
8782
8783 cat >>confdefs.h <<_ACEOF
8784 #define HAVE_DECL_PER_OSR5 1
8785 _ACEOF
8786
8787
8788 else
8789   cat >>confdefs.h <<_ACEOF
8790 #define HAVE_DECL_PER_OSR5 0
8791 _ACEOF
8792
8793
8794 fi
8795 echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
8796 echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6
8797 if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
8798   echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800   cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h.  */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h.  */
8806
8807 #include <linux/personality.h>
8808
8809
8810 int
8811 main ()
8812 {
8813 #ifndef PER_WYSEV386
8814   char *p = (char *) PER_WYSEV386;
8815 #endif
8816
8817   ;
8818   return 0;
8819 }
8820 _ACEOF
8821 rm -f conftest.$ac_objext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8823   (eval $ac_compile) 2>conftest.er1
8824   ac_status=$?
8825   grep -v '^ *+' conftest.er1 >conftest.err
8826   rm -f conftest.er1
8827   cat conftest.err >&5
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); } &&
8830          { ac_try='test -z "$ac_c_werror_flag"
8831                          || test ! -s conftest.err'
8832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833   (eval $ac_try) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); }; } &&
8837          { ac_try='test -s conftest.$ac_objext'
8838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839   (eval $ac_try) 2>&5
8840   ac_status=$?
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); }; }; then
8843   ac_cv_have_decl_PER_WYSEV386=yes
8844 else
8845   echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848 ac_cv_have_decl_PER_WYSEV386=no
8849 fi
8850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8851 fi
8852 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
8853 echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6
8854 if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
8855
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_DECL_PER_WYSEV386 1
8858 _ACEOF
8859
8860
8861 else
8862   cat >>confdefs.h <<_ACEOF
8863 #define HAVE_DECL_PER_WYSEV386 0
8864 _ACEOF
8865
8866
8867 fi
8868 echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
8869 echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6
8870 if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
8871   echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873   cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h.  */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h.  */
8879
8880 #include <linux/personality.h>
8881
8882
8883 int
8884 main ()
8885 {
8886 #ifndef PER_ISCR4
8887   char *p = (char *) PER_ISCR4;
8888 #endif
8889
8890   ;
8891   return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896   (eval $ac_compile) 2>conftest.er1
8897   ac_status=$?
8898   grep -v '^ *+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } &&
8903          { ac_try='test -z "$ac_c_werror_flag"
8904                          || test ! -s conftest.err'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; } &&
8910          { ac_try='test -s conftest.$ac_objext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   ac_cv_have_decl_PER_ISCR4=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ac_cv_have_decl_PER_ISCR4=no
8922 fi
8923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8924 fi
8925 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
8926 echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6
8927 if test $ac_cv_have_decl_PER_ISCR4 = yes; then
8928
8929 cat >>confdefs.h <<_ACEOF
8930 #define HAVE_DECL_PER_ISCR4 1
8931 _ACEOF
8932
8933
8934 else
8935   cat >>confdefs.h <<_ACEOF
8936 #define HAVE_DECL_PER_ISCR4 0
8937 _ACEOF
8938
8939
8940 fi
8941 echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
8942 echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6
8943 if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946   cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h.  */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h.  */
8952
8953 #include <linux/personality.h>
8954
8955
8956 int
8957 main ()
8958 {
8959 #ifndef PER_BSD
8960   char *p = (char *) PER_BSD;
8961 #endif
8962
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8969   (eval $ac_compile) 2>conftest.er1
8970   ac_status=$?
8971   grep -v '^ *+' conftest.er1 >conftest.err
8972   rm -f conftest.er1
8973   cat conftest.err >&5
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -z "$ac_c_werror_flag"
8977                          || test ! -s conftest.err'
8978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979   (eval $ac_try) 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; } &&
8983          { ac_try='test -s conftest.$ac_objext'
8984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985   (eval $ac_try) 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; }; then
8989   ac_cv_have_decl_PER_BSD=yes
8990 else
8991   echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 ac_cv_have_decl_PER_BSD=no
8995 fi
8996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8997 fi
8998 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
8999 echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6
9000 if test $ac_cv_have_decl_PER_BSD = yes; then
9001
9002 cat >>confdefs.h <<_ACEOF
9003 #define HAVE_DECL_PER_BSD 1
9004 _ACEOF
9005
9006
9007 else
9008   cat >>confdefs.h <<_ACEOF
9009 #define HAVE_DECL_PER_BSD 0
9010 _ACEOF
9011
9012
9013 fi
9014 echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
9015 echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6
9016 if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019   cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h.  */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h.  */
9025
9026 #include <linux/personality.h>
9027
9028
9029 int
9030 main ()
9031 {
9032 #ifndef PER_SUNOS
9033   char *p = (char *) PER_SUNOS;
9034 #endif
9035
9036   ;
9037   return 0;
9038 }
9039 _ACEOF
9040 rm -f conftest.$ac_objext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9042   (eval $ac_compile) 2>conftest.er1
9043   ac_status=$?
9044   grep -v '^ *+' conftest.er1 >conftest.err
9045   rm -f conftest.er1
9046   cat conftest.err >&5
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); } &&
9049          { ac_try='test -z "$ac_c_werror_flag"
9050                          || test ! -s conftest.err'
9051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052   (eval $ac_try) 2>&5
9053   ac_status=$?
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); }; } &&
9056          { ac_try='test -s conftest.$ac_objext'
9057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058   (eval $ac_try) 2>&5
9059   ac_status=$?
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); }; }; then
9062   ac_cv_have_decl_PER_SUNOS=yes
9063 else
9064   echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9066
9067 ac_cv_have_decl_PER_SUNOS=no
9068 fi
9069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9070 fi
9071 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
9072 echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6
9073 if test $ac_cv_have_decl_PER_SUNOS = yes; then
9074
9075 cat >>confdefs.h <<_ACEOF
9076 #define HAVE_DECL_PER_SUNOS 1
9077 _ACEOF
9078
9079
9080 else
9081   cat >>confdefs.h <<_ACEOF
9082 #define HAVE_DECL_PER_SUNOS 0
9083 _ACEOF
9084
9085
9086 fi
9087 echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
9088 echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6
9089 if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
9090   echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092   cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h.  */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h.  */
9098
9099 #include <linux/personality.h>
9100
9101
9102 int
9103 main ()
9104 {
9105 #ifndef PER_XENIX
9106   char *p = (char *) PER_XENIX;
9107 #endif
9108
9109   ;
9110   return 0;
9111 }
9112 _ACEOF
9113 rm -f conftest.$ac_objext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9115   (eval $ac_compile) 2>conftest.er1
9116   ac_status=$?
9117   grep -v '^ *+' conftest.er1 >conftest.err
9118   rm -f conftest.er1
9119   cat conftest.err >&5
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); } &&
9122          { ac_try='test -z "$ac_c_werror_flag"
9123                          || test ! -s conftest.err'
9124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125   (eval $ac_try) 2>&5
9126   ac_status=$?
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); }; } &&
9129          { ac_try='test -s conftest.$ac_objext'
9130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131   (eval $ac_try) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); }; }; then
9135   ac_cv_have_decl_PER_XENIX=yes
9136 else
9137   echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9139
9140 ac_cv_have_decl_PER_XENIX=no
9141 fi
9142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9143 fi
9144 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
9145 echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6
9146 if test $ac_cv_have_decl_PER_XENIX = yes; then
9147
9148 cat >>confdefs.h <<_ACEOF
9149 #define HAVE_DECL_PER_XENIX 1
9150 _ACEOF
9151
9152
9153 else
9154   cat >>confdefs.h <<_ACEOF
9155 #define HAVE_DECL_PER_XENIX 0
9156 _ACEOF
9157
9158
9159 fi
9160 echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
9161 echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6
9162 if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   cat >conftest.$ac_ext <<_ACEOF
9166 /* confdefs.h.  */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h.  */
9171
9172 #include <linux/personality.h>
9173
9174
9175 int
9176 main ()
9177 {
9178 #ifndef PER_LINUX32
9179   char *p = (char *) PER_LINUX32;
9180 #endif
9181
9182   ;
9183   return 0;
9184 }
9185 _ACEOF
9186 rm -f conftest.$ac_objext
9187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9188   (eval $ac_compile) 2>conftest.er1
9189   ac_status=$?
9190   grep -v '^ *+' conftest.er1 >conftest.err
9191   rm -f conftest.er1
9192   cat conftest.err >&5
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); } &&
9195          { ac_try='test -z "$ac_c_werror_flag"
9196                          || test ! -s conftest.err'
9197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198   (eval $ac_try) 2>&5
9199   ac_status=$?
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); }; } &&
9202          { ac_try='test -s conftest.$ac_objext'
9203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204   (eval $ac_try) 2>&5
9205   ac_status=$?
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); }; }; then
9208   ac_cv_have_decl_PER_LINUX32=yes
9209 else
9210   echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9212
9213 ac_cv_have_decl_PER_LINUX32=no
9214 fi
9215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9216 fi
9217 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
9218 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6
9219 if test $ac_cv_have_decl_PER_LINUX32 = yes; then
9220
9221 cat >>confdefs.h <<_ACEOF
9222 #define HAVE_DECL_PER_LINUX32 1
9223 _ACEOF
9224
9225
9226 else
9227   cat >>confdefs.h <<_ACEOF
9228 #define HAVE_DECL_PER_LINUX32 0
9229 _ACEOF
9230
9231
9232 fi
9233 echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
9234 echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6
9235 if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
9236   echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238   cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h.  */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h.  */
9244
9245 #include <linux/personality.h>
9246
9247
9248 int
9249 main ()
9250 {
9251 #ifndef PER_LINUX32_3GB
9252   char *p = (char *) PER_LINUX32_3GB;
9253 #endif
9254
9255   ;
9256   return 0;
9257 }
9258 _ACEOF
9259 rm -f conftest.$ac_objext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9261   (eval $ac_compile) 2>conftest.er1
9262   ac_status=$?
9263   grep -v '^ *+' conftest.er1 >conftest.err
9264   rm -f conftest.er1
9265   cat conftest.err >&5
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); } &&
9268          { ac_try='test -z "$ac_c_werror_flag"
9269                          || test ! -s conftest.err'
9270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271   (eval $ac_try) 2>&5
9272   ac_status=$?
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); }; } &&
9275          { ac_try='test -s conftest.$ac_objext'
9276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277   (eval $ac_try) 2>&5
9278   ac_status=$?
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); }; }; then
9281   ac_cv_have_decl_PER_LINUX32_3GB=yes
9282 else
9283   echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_cv_have_decl_PER_LINUX32_3GB=no
9287 fi
9288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9289 fi
9290 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
9291 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6
9292 if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
9293
9294 cat >>confdefs.h <<_ACEOF
9295 #define HAVE_DECL_PER_LINUX32_3GB 1
9296 _ACEOF
9297
9298
9299 else
9300   cat >>confdefs.h <<_ACEOF
9301 #define HAVE_DECL_PER_LINUX32_3GB 0
9302 _ACEOF
9303
9304
9305 fi
9306 echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
9307 echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6
9308 if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
9309   echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
9311   cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h.  */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h.  */
9317
9318 #include <linux/personality.h>
9319
9320
9321 int
9322 main ()
9323 {
9324 #ifndef PER_IRIX32
9325   char *p = (char *) PER_IRIX32;
9326 #endif
9327
9328   ;
9329   return 0;
9330 }
9331 _ACEOF
9332 rm -f conftest.$ac_objext
9333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9334   (eval $ac_compile) 2>conftest.er1
9335   ac_status=$?
9336   grep -v '^ *+' conftest.er1 >conftest.err
9337   rm -f conftest.er1
9338   cat conftest.err >&5
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); } &&
9341          { ac_try='test -z "$ac_c_werror_flag"
9342                          || test ! -s conftest.err'
9343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344   (eval $ac_try) 2>&5
9345   ac_status=$?
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); }; } &&
9348          { ac_try='test -s conftest.$ac_objext'
9349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350   (eval $ac_try) 2>&5
9351   ac_status=$?
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); }; }; then
9354   ac_cv_have_decl_PER_IRIX32=yes
9355 else
9356   echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9358
9359 ac_cv_have_decl_PER_IRIX32=no
9360 fi
9361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9362 fi
9363 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
9364 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6
9365 if test $ac_cv_have_decl_PER_IRIX32 = yes; then
9366
9367 cat >>confdefs.h <<_ACEOF
9368 #define HAVE_DECL_PER_IRIX32 1
9369 _ACEOF
9370
9371
9372 else
9373   cat >>confdefs.h <<_ACEOF
9374 #define HAVE_DECL_PER_IRIX32 0
9375 _ACEOF
9376
9377
9378 fi
9379 echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
9380 echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6
9381 if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
9382   echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384   cat >conftest.$ac_ext <<_ACEOF
9385 /* confdefs.h.  */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h.  */
9390
9391 #include <linux/personality.h>
9392
9393
9394 int
9395 main ()
9396 {
9397 #ifndef PER_IRIXN32
9398   char *p = (char *) PER_IRIXN32;
9399 #endif
9400
9401   ;
9402   return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407   (eval $ac_compile) 2>conftest.er1
9408   ac_status=$?
9409   grep -v '^ *+' conftest.er1 >conftest.err
9410   rm -f conftest.er1
9411   cat conftest.err >&5
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); } &&
9414          { ac_try='test -z "$ac_c_werror_flag"
9415                          || test ! -s conftest.err'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; } &&
9421          { ac_try='test -s conftest.$ac_objext'
9422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423   (eval $ac_try) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; }; then
9427   ac_cv_have_decl_PER_IRIXN32=yes
9428 else
9429   echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_cv_have_decl_PER_IRIXN32=no
9433 fi
9434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9435 fi
9436 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
9437 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6
9438 if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
9439
9440 cat >>confdefs.h <<_ACEOF
9441 #define HAVE_DECL_PER_IRIXN32 1
9442 _ACEOF
9443
9444
9445 else
9446   cat >>confdefs.h <<_ACEOF
9447 #define HAVE_DECL_PER_IRIXN32 0
9448 _ACEOF
9449
9450
9451 fi
9452 echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
9453 echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6
9454 if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457   cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h.  */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h.  */
9463
9464 #include <linux/personality.h>
9465
9466
9467 int
9468 main ()
9469 {
9470 #ifndef PER_IRIX64
9471   char *p = (char *) PER_IRIX64;
9472 #endif
9473
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9480   (eval $ac_compile) 2>conftest.er1
9481   ac_status=$?
9482   grep -v '^ *+' conftest.er1 >conftest.err
9483   rm -f conftest.er1
9484   cat conftest.err >&5
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } &&
9487          { ac_try='test -z "$ac_c_werror_flag"
9488                          || test ! -s conftest.err'
9489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490   (eval $ac_try) 2>&5
9491   ac_status=$?
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); }; } &&
9494          { ac_try='test -s conftest.$ac_objext'
9495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496   (eval $ac_try) 2>&5
9497   ac_status=$?
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); }; }; then
9500   ac_cv_have_decl_PER_IRIX64=yes
9501 else
9502   echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9504
9505 ac_cv_have_decl_PER_IRIX64=no
9506 fi
9507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9508 fi
9509 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
9510 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6
9511 if test $ac_cv_have_decl_PER_IRIX64 = yes; then
9512
9513 cat >>confdefs.h <<_ACEOF
9514 #define HAVE_DECL_PER_IRIX64 1
9515 _ACEOF
9516
9517
9518 else
9519   cat >>confdefs.h <<_ACEOF
9520 #define HAVE_DECL_PER_IRIX64 0
9521 _ACEOF
9522
9523
9524 fi
9525 echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
9526 echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6
9527 if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
9528   echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530   cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h.  */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h.  */
9536
9537 #include <linux/personality.h>
9538
9539
9540 int
9541 main ()
9542 {
9543 #ifndef PER_RISCOS
9544   char *p = (char *) PER_RISCOS;
9545 #endif
9546
9547   ;
9548   return 0;
9549 }
9550 _ACEOF
9551 rm -f conftest.$ac_objext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9553   (eval $ac_compile) 2>conftest.er1
9554   ac_status=$?
9555   grep -v '^ *+' conftest.er1 >conftest.err
9556   rm -f conftest.er1
9557   cat conftest.err >&5
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); } &&
9560          { ac_try='test -z "$ac_c_werror_flag"
9561                          || test ! -s conftest.err'
9562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563   (eval $ac_try) 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); }; } &&
9567          { ac_try='test -s conftest.$ac_objext'
9568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569   (eval $ac_try) 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); }; }; then
9573   ac_cv_have_decl_PER_RISCOS=yes
9574 else
9575   echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9577
9578 ac_cv_have_decl_PER_RISCOS=no
9579 fi
9580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9581 fi
9582 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
9583 echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6
9584 if test $ac_cv_have_decl_PER_RISCOS = yes; then
9585
9586 cat >>confdefs.h <<_ACEOF
9587 #define HAVE_DECL_PER_RISCOS 1
9588 _ACEOF
9589
9590
9591 else
9592   cat >>confdefs.h <<_ACEOF
9593 #define HAVE_DECL_PER_RISCOS 0
9594 _ACEOF
9595
9596
9597 fi
9598 echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
9599 echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6
9600 if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
9601   echo $ECHO_N "(cached) $ECHO_C" >&6
9602 else
9603   cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h.  */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h.  */
9609
9610 #include <linux/personality.h>
9611
9612
9613 int
9614 main ()
9615 {
9616 #ifndef PER_SOLARIS
9617   char *p = (char *) PER_SOLARIS;
9618 #endif
9619
9620   ;
9621   return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9626   (eval $ac_compile) 2>conftest.er1
9627   ac_status=$?
9628   grep -v '^ *+' conftest.er1 >conftest.err
9629   rm -f conftest.er1
9630   cat conftest.err >&5
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } &&
9633          { ac_try='test -z "$ac_c_werror_flag"
9634                          || test ! -s conftest.err'
9635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636   (eval $ac_try) 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); }; } &&
9640          { ac_try='test -s conftest.$ac_objext'
9641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642   (eval $ac_try) 2>&5
9643   ac_status=$?
9644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645   (exit $ac_status); }; }; then
9646   ac_cv_have_decl_PER_SOLARIS=yes
9647 else
9648   echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9650
9651 ac_cv_have_decl_PER_SOLARIS=no
9652 fi
9653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9654 fi
9655 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
9656 echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6
9657 if test $ac_cv_have_decl_PER_SOLARIS = yes; then
9658
9659 cat >>confdefs.h <<_ACEOF
9660 #define HAVE_DECL_PER_SOLARIS 1
9661 _ACEOF
9662
9663
9664 else
9665   cat >>confdefs.h <<_ACEOF
9666 #define HAVE_DECL_PER_SOLARIS 0
9667 _ACEOF
9668
9669
9670 fi
9671 echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
9672 echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6
9673 if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
9674   echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676   cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h.  */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h.  */
9682
9683 #include <linux/personality.h>
9684
9685
9686 int
9687 main ()
9688 {
9689 #ifndef PER_UW7
9690   char *p = (char *) PER_UW7;
9691 #endif
9692
9693   ;
9694   return 0;
9695 }
9696 _ACEOF
9697 rm -f conftest.$ac_objext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9699   (eval $ac_compile) 2>conftest.er1
9700   ac_status=$?
9701   grep -v '^ *+' conftest.er1 >conftest.err
9702   rm -f conftest.er1
9703   cat conftest.err >&5
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } &&
9706          { ac_try='test -z "$ac_c_werror_flag"
9707                          || test ! -s conftest.err'
9708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709   (eval $ac_try) 2>&5
9710   ac_status=$?
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); }; } &&
9713          { ac_try='test -s conftest.$ac_objext'
9714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715   (eval $ac_try) 2>&5
9716   ac_status=$?
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); }; }; then
9719   ac_cv_have_decl_PER_UW7=yes
9720 else
9721   echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9723
9724 ac_cv_have_decl_PER_UW7=no
9725 fi
9726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9727 fi
9728 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
9729 echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6
9730 if test $ac_cv_have_decl_PER_UW7 = yes; then
9731
9732 cat >>confdefs.h <<_ACEOF
9733 #define HAVE_DECL_PER_UW7 1
9734 _ACEOF
9735
9736
9737 else
9738   cat >>confdefs.h <<_ACEOF
9739 #define HAVE_DECL_PER_UW7 0
9740 _ACEOF
9741
9742
9743 fi
9744 echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
9745 echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6
9746 if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
9747   echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749   cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h.  */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h.  */
9755
9756 #include <linux/personality.h>
9757
9758
9759 int
9760 main ()
9761 {
9762 #ifndef PER_HPUX
9763   char *p = (char *) PER_HPUX;
9764 #endif
9765
9766   ;
9767   return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772   (eval $ac_compile) 2>conftest.er1
9773   ac_status=$?
9774   grep -v '^ *+' conftest.er1 >conftest.err
9775   rm -f conftest.er1
9776   cat conftest.err >&5
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); } &&
9779          { ac_try='test -z "$ac_c_werror_flag"
9780                          || test ! -s conftest.err'
9781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782   (eval $ac_try) 2>&5
9783   ac_status=$?
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); }; } &&
9786          { ac_try='test -s conftest.$ac_objext'
9787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788   (eval $ac_try) 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; }; then
9792   ac_cv_have_decl_PER_HPUX=yes
9793 else
9794   echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9796
9797 ac_cv_have_decl_PER_HPUX=no
9798 fi
9799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9800 fi
9801 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
9802 echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6
9803 if test $ac_cv_have_decl_PER_HPUX = yes; then
9804
9805 cat >>confdefs.h <<_ACEOF
9806 #define HAVE_DECL_PER_HPUX 1
9807 _ACEOF
9808
9809
9810 else
9811   cat >>confdefs.h <<_ACEOF
9812 #define HAVE_DECL_PER_HPUX 0
9813 _ACEOF
9814
9815
9816 fi
9817 echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
9818 echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6
9819 if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828
9829 #include <linux/personality.h>
9830
9831
9832 int
9833 main ()
9834 {
9835 #ifndef PER_OSF4
9836   char *p = (char *) PER_OSF4;
9837 #endif
9838
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845   (eval $ac_compile) 2>conftest.er1
9846   ac_status=$?
9847   grep -v '^ *+' conftest.er1 >conftest.err
9848   rm -f conftest.er1
9849   cat conftest.err >&5
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); } &&
9852          { ac_try='test -z "$ac_c_werror_flag"
9853                          || test ! -s conftest.err'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; } &&
9859          { ac_try='test -s conftest.$ac_objext'
9860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861   (eval $ac_try) 2>&5
9862   ac_status=$?
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); }; }; then
9865   ac_cv_have_decl_PER_OSF4=yes
9866 else
9867   echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870 ac_cv_have_decl_PER_OSF4=no
9871 fi
9872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9873 fi
9874 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
9875 echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6
9876 if test $ac_cv_have_decl_PER_OSF4 = yes; then
9877
9878 cat >>confdefs.h <<_ACEOF
9879 #define HAVE_DECL_PER_OSF4 1
9880 _ACEOF
9881
9882
9883 else
9884   cat >>confdefs.h <<_ACEOF
9885 #define HAVE_DECL_PER_OSF4 0
9886 _ACEOF
9887
9888
9889 fi
9890
9891
9892         ac_ext=c
9893 ac_cpp='$CPP $CPPFLAGS'
9894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9897
9898
9899
9900
9901
9902
9903         echo "$as_me:$LINENO: checking for initrddir" >&5
9904 echo $ECHO_N "checking for initrddir... $ECHO_C" >&6
9905
9906 # Check whether --with-initrddir or --without-initrddir was given.
9907 if test "${with_initrddir+set}" = set; then
9908   withval="$with_initrddir"
9909   case "$withval" in
9910                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
9911 echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
9912    { (exit 1); exit 1; }; };;
9913                         *)      ensc_initrddir=$withval;;
9914                      esac
9915 else
9916   ensc_initrddir='$(sysconfdir)/init.d'
9917 fi;
9918
9919         if test "initrddir"; then
9920                 initrddir=$ensc_initrddir
9921
9922         fi
9923
9924         echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
9925 echo "${ECHO_T}$ensc_initrddir" >&6
9926
9927
9928         echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
9929 echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6
9930         # Check whether --enable-release or --disable-release was given.
9931 if test "${enable_release+set}" = set; then
9932   enableval="$enable_release"
9933   case "$enableval" in
9934                           yes)  ensc_release_mode=yes;;
9935                           no)   ensc_release_mode=no;;
9936                           *)    { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
9937 echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
9938    { (exit 1); exit 1; }; };;
9939                        esac
9940 else
9941    ensc_release_mode=no
9942 fi;
9943
9944         if test x"$ensc_release_mode" = xno; then
9945                 RELEASE_CPPFLAGS=
9946         else
9947                 RELEASE_CPPFLAGS='-DNDEBUG'
9948         fi
9949
9950
9951         echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
9952 echo "${ECHO_T}$ensc_release_mode" >&6
9953
9954
9955
9956 case $host_cpu in
9957         (i*86|athlon)   min_diet_ver=0.25;;
9958         (ia64|hppa*)    min_diet_ver=0.29;;
9959         (sparc*)        min_diet_ver=0.30;;
9960         (*)             min_diet_ver=0.28;;
9961 esac
9962
9963
9964         echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
9965 echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6
9966
9967
9968
9969
9970         : ${DIET:=diet}
9971         : ${DIETFLAGS=-Os}
9972
9973         # Check whether --enable-dietlibc or --disable-dietlibc was given.
9974 if test "${enable_dietlibc+set}" = set; then
9975   enableval="$enable_dietlibc"
9976   case "$enableval" in
9977                           (yes) use_dietlibc=forced;;
9978                           (no)  use_dietlibc=forced_no;;
9979                           (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
9980 echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
9981    { (exit 1); exit 1; }; };;
9982                        esac
9983 else
9984   which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
9985 fi;
9986
9987         if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
9988             _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
9989             _dietlibc_ver=${_dietlibc_ver##*diet version }
9990             _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
9991             _dietlibc_ver_maj=${_dietlibc_ver%%.*}
9992             _dietlibc_ver_min=${_dietlibc_ver##*.}
9993             _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
9994             _dietlibc_cmp="$min_diet_ver"
9995             _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
9996             _dietlibc_cmp_min=${_dietlibc_cmp##*.}
9997
9998             ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
9999
10000             let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
10001             let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
10002
10003             test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
10004         else
10005             ENSC_VERSION_DIETLIBC=
10006             _dietlibc_ver=-1
10007         fi
10008
10009         ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
10010         ensc_have_dietlibc=no
10011
10012         case x"$use_dietlibc" in
10013             xdetected)
10014
10015
10016 if true; then
10017   USE_DIETLIBC_TRUE=
10018   USE_DIETLIBC_FALSE='#'
10019 else
10020   USE_DIETLIBC_TRUE='#'
10021   USE_DIETLIBC_FALSE=
10022 fi
10023
10024                 echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
10025 echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6
10026                 ensc_have_dietlibc=yes
10027                 ;;
10028             xforced)
10029
10030
10031 if true; then
10032   USE_DIETLIBC_TRUE=
10033   USE_DIETLIBC_FALSE='#'
10034 else
10035   USE_DIETLIBC_TRUE='#'
10036   USE_DIETLIBC_FALSE=
10037 fi
10038
10039                 echo "$as_me:$LINENO: result: yes (forced)" >&5
10040 echo "${ECHO_T}yes (forced)" >&6
10041                 ensc_have_dietlibc=yes
10042                 ;;
10043             xdetected_no)
10044
10045
10046 if false; then
10047   USE_DIETLIBC_TRUE=
10048   USE_DIETLIBC_FALSE='#'
10049 else
10050   USE_DIETLIBC_TRUE='#'
10051   USE_DIETLIBC_FALSE=
10052 fi
10053
10054                 echo "$as_me:$LINENO: result: no (detected)" >&5
10055 echo "${ECHO_T}no (detected)" >&6
10056                 ;;
10057             xdetected_old)
10058
10059
10060 if false; then
10061   USE_DIETLIBC_TRUE=
10062   USE_DIETLIBC_FALSE='#'
10063 else
10064   USE_DIETLIBC_TRUE='#'
10065   USE_DIETLIBC_FALSE=
10066 fi
10067
10068                 echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
10069 echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6
10070                 ;;
10071             xforced_no)
10072
10073
10074 if false; then
10075   USE_DIETLIBC_TRUE=
10076   USE_DIETLIBC_FALSE='#'
10077 else
10078   USE_DIETLIBC_TRUE='#'
10079   USE_DIETLIBC_FALSE=
10080 fi
10081
10082                 echo "$as_me:$LINENO: result: no (forced)" >&5
10083 echo "${ECHO_T}no (forced)" >&6
10084                 ;;
10085             *)
10086                 { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
10087 echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
10088    { (exit 1); exit 1; }; }
10089                 ;;
10090         esac
10091
10092         if test x"$ensc_have_dietlibc" != xno; then
10093
10094
10095
10096
10097         echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
10098 echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6
10099 if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
10100   echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102
10103                 _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
10104                 _ensc_dietlibc_c99_old_CC=$CC
10105
10106                 CFLAGS="-std=c99"
10107                 CC="${DIET:-diet} $CC"
10108
10109                 ac_ext=c
10110 ac_cpp='$CPP $CPPFLAGS'
10111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10114
10115                 cat >conftest.$ac_ext <<_ACEOF
10116 /* */
10117 _ACEOF
10118 rm -f conftest.$ac_objext
10119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10120   (eval $ac_compile) 2>conftest.er1
10121   ac_status=$?
10122   grep -v '^ *+' conftest.er1 >conftest.err
10123   rm -f conftest.er1
10124   cat conftest.err >&5
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); } &&
10127          { ac_try='test -z "$ac_c_werror_flag"
10128                          || test ! -s conftest.err'
10129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130   (eval $ac_try) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; } &&
10134          { ac_try='test -s conftest.$ac_objext'
10135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136   (eval $ac_try) 2>&5
10137   ac_status=$?
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); }; }; then
10140
10141                         cat >conftest.$ac_ext <<_ACEOF
10142
10143                                 #include <stdint.h>
10144                                 #include <sys/cdefs.h>
10145                                 #if defined(inline)
10146                                 #  error 'inline' badly defined
10147                                 #endif
10148                                 volatile uint64_t       a;
10149
10150 _ACEOF
10151 rm -f conftest.$ac_objext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10153   (eval $ac_compile) 2>conftest.er1
10154   ac_status=$?
10155   grep -v '^ *+' conftest.er1 >conftest.err
10156   rm -f conftest.er1
10157   cat conftest.err >&5
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); } &&
10160          { ac_try='test -z "$ac_c_werror_flag"
10161                          || test ! -s conftest.err'
10162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163   (eval $ac_try) 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); }; } &&
10167          { ac_try='test -s conftest.$ac_objext'
10168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169   (eval $ac_try) 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); }; }; then
10173   ensc_cv_c_dietlibc_c99=yes
10174 else
10175   echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178 ensc_cv_c_dietlibc_c99=no
10179 fi
10180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185 ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
10186 fi
10187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10188                 ac_ext=c
10189 ac_cpp='$CPP $CPPFLAGS'
10190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10193
10194
10195                 CC=$_ensc_dietlibc_c99_old_CC
10196                 CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
10197
10198 fi
10199 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
10200 echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6
10201
10202         if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
10203                 cat >>confdefs.h <<\_ACEOF
10204 #define ENSC_DIETLIBC_C99 1
10205 _ACEOF
10206
10207         fi
10208
10209         fi
10210
10211
10212 if test x"$ensc_have_dietlibc" = xno; then
10213         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
10214 echo "$as_me: WARNING: ***                                                         ***" >&2;}
10215         { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
10216 echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
10217         { echo "$as_me:$LINENO: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&5
10218 echo "$as_me: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&2;}
10219         { echo "$as_me:$LINENO: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&5
10220 echo "$as_me: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&2;}
10221         { echo "$as_me:$LINENO: WARNING: *** there.                                                  ***" >&5
10222 echo "$as_me: WARNING: *** there.                                                  ***" >&2;}
10223         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
10224 echo "$as_me: WARNING: ***                                                         ***" >&2;}
10225
10226
10227 if false; then
10228   USE_DIETLIBC_COMPAT_TRUE=
10229   USE_DIETLIBC_COMPAT_FALSE='#'
10230 else
10231   USE_DIETLIBC_COMPAT_TRUE='#'
10232   USE_DIETLIBC_COMPAT_FALSE=
10233 fi
10234
10235 else
10236         # HACK: libtool does not have cmdline options to build only
10237         # dynamic libraries; this can be done with the
10238         # '--disable-static' ./configure option only.  As our static
10239         # libraries will be build with dietlibc, we have to do set
10240         # this option which is evaluated by 'AC_PROG_LIBTOOL'
10241         # below.  Therefore, this macro must not be called earlier.
10242         enable_static=no
10243
10244
10245
10246
10247
10248         if test "$host_cpu" = x86_64 -a $ENSC_VERSION_DIETLIBC_NUM -le 0027; then
10249                 { echo "$as_me:$LINENO: WARNING: ***                                                             ***" >&5
10250 echo "$as_me: WARNING: ***                                                             ***" >&2;}
10251                 { echo "$as_me:$LINENO: WARNING: *** dietlibc<=0.27 is known to be broken for x86_64 systems     ***" >&5
10252 echo "$as_me: WARNING: *** dietlibc<=0.27 is known to be broken for x86_64 systems     ***" >&2;}
10253                 { echo "$as_me:$LINENO: WARNING: *** please make sure that at least the environ.S fix is applied ***" >&5
10254 echo "$as_me: WARNING: *** please make sure that at least the environ.S fix is applied ***" >&2;}
10255                 { echo "$as_me:$LINENO: WARNING: *** and lib/__nice.c added                                      ***" >&5
10256 echo "$as_me: WARNING: *** and lib/__nice.c added                                      ***" >&2;}
10257                 { echo "$as_me:$LINENO: WARNING: ***                                                             ***" >&5
10258 echo "$as_me: WARNING: ***                                                             ***" >&2;}
10259         fi
10260
10261
10262         echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
10263 echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6
10264         # Check whether --enable-alternative-syscalls or --disable-alternative-syscalls was given.
10265 if test "${enable_alternative_syscalls+set}" = set; then
10266   enableval="$enable_alternative_syscalls"
10267   case $enableval in
10268                            (yes|no)   ensc_use_alternative_syscall_macros=$enableval;;
10269                            (*)        { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
10270 echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
10271    { (exit 1); exit 1; }; };;
10272                        esac
10273 else
10274   ensc_use_alternative_syscall_macros=yes
10275 fi;
10276
10277         case $ensc_use_alternative_syscall_macros in
10278                 (yes)
10279 cat >>confdefs.h <<\_ACEOF
10280 #define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
10281 _ACEOF
10282 ;;
10283         esac
10284
10285         echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
10286 echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6
10287
10288
10289
10290
10291         echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
10292 echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6
10293 if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
10294   echo $ECHO_N "(cached) $ECHO_C" >&6
10295 else
10296
10297                 ac_ext=c
10298 ac_cpp='$CPP $CPPFLAGS'
10299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10302
10303                 ensc_dietlibc_need_compat_old_CC=$CC
10304                 CC="${DIET:-diet} $CC"
10305                 cat >conftest.$ac_ext <<_ACEOF
10306
10307                         /* confdefs.h.  */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h.  */
10312
10313 #include "$srcdir/lib/syscall-wrap.h"
10314 #include <errno.h>
10315
10316 #define __NR_foo0               42
10317 #define __NR_foo1               42
10318 #define __NR_foo2               42
10319 #define __NR_foo3               42
10320 #define __NR_foo4               42
10321 #define __NR_foo5               42
10322 inline static _syscall0(int, foo0)
10323 inline static _syscall1(int, foo1, int, a)
10324 inline static _syscall2(int, foo2, int, a, int, b)
10325 inline static _syscall3(int, foo3, int, a, int, b, int, c)
10326 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
10327 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
10328
10329 int
10330 main ()
10331 {
10332 foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
10333   ;
10334   return 0;
10335 }
10336 _ACEOF
10337 rm -f conftest.$ac_objext conftest$ac_exeext
10338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10339   (eval $ac_link) 2>conftest.er1
10340   ac_status=$?
10341   grep -v '^ *+' conftest.er1 >conftest.err
10342   rm -f conftest.er1
10343   cat conftest.err >&5
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } &&
10346          { ac_try='test -z "$ac_c_werror_flag"
10347                          || test ! -s conftest.err'
10348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349   (eval $ac_try) 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); }; } &&
10353          { ac_try='test -s conftest$ac_exeext'
10354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355   (eval $ac_try) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); }; }; then
10359   ensc_cv_c_dietlibc_compat=no
10360 else
10361   echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10363
10364 ensc_cv_c_dietlibc_compat=yes
10365 fi
10366 rm -f conftest.err conftest.$ac_objext \
10367       conftest$ac_exeext conftest.$ac_ext
10368                 CC=$ensc_dietlibc_need_compat_old_CC
10369                 ac_ext=c
10370 ac_cpp='$CPP $CPPFLAGS'
10371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10374
10375
10376 fi
10377 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
10378 echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6
10379
10380         if test x"USE_DIETLIBC_COMPAT" != x; then
10381
10382
10383 if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
10384   USE_DIETLIBC_COMPAT_TRUE=
10385   USE_DIETLIBC_COMPAT_FALSE='#'
10386 else
10387   USE_DIETLIBC_COMPAT_TRUE='#'
10388   USE_DIETLIBC_COMPAT_FALSE=
10389 fi
10390
10391         fi
10392
10393 fi
10394
10395
10396
10397 if test x"$ensc_have_dietlibc" = xyes; then
10398   ENSC_USE_DIETLIBC_TRUE=
10399   ENSC_USE_DIETLIBC_FALSE='#'
10400 else
10401   ENSC_USE_DIETLIBC_TRUE='#'
10402   ENSC_USE_DIETLIBC_FALSE=
10403 fi
10404
10405
10406
10407 if true; then
10408   ENSC_USE_GLIBC_TRUE=
10409   ENSC_USE_GLIBC_FALSE='#'
10410 else
10411   ENSC_USE_GLIBC_TRUE='#'
10412   ENSC_USE_GLIBC_FALSE=
10413 fi
10414
10415
10416 # HACK: see comments at 'enable_static' above
10417 # Check whether --enable-shared or --disable-shared was given.
10418 if test "${enable_shared+set}" = set; then
10419   enableval="$enable_shared"
10420   p=${PACKAGE-default}
10421     case $enableval in
10422     yes) enable_shared=yes ;;
10423     no) enable_shared=no ;;
10424     *)
10425       enable_shared=no
10426       # Look at the argument we got.  We use all the common list separators.
10427       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10428       for pkg in $enableval; do
10429         IFS="$lt_save_ifs"
10430         if test "X$pkg" = "X$p"; then
10431           enable_shared=yes
10432         fi
10433       done
10434       IFS="$lt_save_ifs"
10435       ;;
10436     esac
10437 else
10438   enable_shared=yes
10439 fi;
10440
10441 # Check whether --enable-static or --disable-static was given.
10442 if test "${enable_static+set}" = set; then
10443   enableval="$enable_static"
10444   p=${PACKAGE-default}
10445     case $enableval in
10446     yes) enable_static=yes ;;
10447     no) enable_static=no ;;
10448     *)
10449      enable_static=no
10450       # Look at the argument we got.  We use all the common list separators.
10451       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10452       for pkg in $enableval; do
10453         IFS="$lt_save_ifs"
10454         if test "X$pkg" = "X$p"; then
10455           enable_static=yes
10456         fi
10457       done
10458       IFS="$lt_save_ifs"
10459       ;;
10460     esac
10461 else
10462   enable_static=yes
10463 fi;
10464
10465 # Check whether --enable-fast-install or --disable-fast-install was given.
10466 if test "${enable_fast_install+set}" = set; then
10467   enableval="$enable_fast_install"
10468   p=${PACKAGE-default}
10469     case $enableval in
10470     yes) enable_fast_install=yes ;;
10471     no) enable_fast_install=no ;;
10472     *)
10473       enable_fast_install=no
10474       # Look at the argument we got.  We use all the common list separators.
10475       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10476       for pkg in $enableval; do
10477         IFS="$lt_save_ifs"
10478         if test "X$pkg" = "X$p"; then
10479           enable_fast_install=yes
10480         fi
10481       done
10482       IFS="$lt_save_ifs"
10483       ;;
10484     esac
10485 else
10486   enable_fast_install=yes
10487 fi;
10488
10489 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10490 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10491 if test "${lt_cv_path_SED+set}" = set; then
10492   echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494   # Loop through the user's path and test for sed and gsed.
10495 # Then use that list of sed's as ones to test for truncation.
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10498 do
10499   IFS=$as_save_IFS
10500   test -z "$as_dir" && as_dir=.
10501   for lt_ac_prog in sed gsed; do
10502     for ac_exec_ext in '' $ac_executable_extensions; do
10503       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10504         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10505       fi
10506     done
10507   done
10508 done
10509 lt_ac_max=0
10510 lt_ac_count=0
10511 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10512 # along with /bin/sed that truncates output.
10513 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10514   test ! -f $lt_ac_sed && continue
10515   cat /dev/null > conftest.in
10516   lt_ac_count=0
10517   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10518   # Check for GNU sed and select it if it is found.
10519   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10520     lt_cv_path_SED=$lt_ac_sed
10521     break
10522   fi
10523   while true; do
10524     cat conftest.in conftest.in >conftest.tmp
10525     mv conftest.tmp conftest.in
10526     cp conftest.in conftest.nl
10527     echo >>conftest.nl
10528     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10529     cmp -s conftest.out conftest.nl || break
10530     # 10000 chars as input seems more than enough
10531     test $lt_ac_count -gt 10 && break
10532     lt_ac_count=`expr $lt_ac_count + 1`
10533     if test $lt_ac_count -gt $lt_ac_max; then
10534       lt_ac_max=$lt_ac_count
10535       lt_cv_path_SED=$lt_ac_sed
10536     fi
10537   done
10538 done
10539
10540 fi
10541
10542 SED=$lt_cv_path_SED
10543 echo "$as_me:$LINENO: result: $SED" >&5
10544 echo "${ECHO_T}$SED" >&6
10545
10546 echo "$as_me:$LINENO: checking for egrep" >&5
10547 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10548 if test "${ac_cv_prog_egrep+set}" = set; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10552     then ac_cv_prog_egrep='grep -E'
10553     else ac_cv_prog_egrep='egrep'
10554     fi
10555 fi
10556 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10557 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10558  EGREP=$ac_cv_prog_egrep
10559
10560
10561
10562 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10563 if test "${with_gnu_ld+set}" = set; then
10564   withval="$with_gnu_ld"
10565   test "$withval" = no || with_gnu_ld=yes
10566 else
10567   with_gnu_ld=no
10568 fi;
10569 ac_prog=ld
10570 if test "$GCC" = yes; then
10571   # Check if gcc -print-prog-name=ld gives a path.
10572   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10573 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10574   case $host in
10575   *-*-mingw*)
10576     # gcc leaves a trailing carriage return which upsets mingw
10577     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10578   *)
10579     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10580   esac
10581   case $ac_prog in
10582     # Accept absolute paths.
10583     [\\/]* | ?:[\\/]*)
10584       re_direlt='/[^/][^/]*/\.\./'
10585       # Canonicalize the pathname of ld
10586       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10587       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10588         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10589       done
10590       test -z "$LD" && LD="$ac_prog"
10591       ;;
10592   "")
10593     # If it fails, then pretend we aren't using GCC.
10594     ac_prog=ld
10595     ;;
10596   *)
10597     # If it is relative, then search for the first ld in PATH.
10598     with_gnu_ld=unknown
10599     ;;
10600   esac
10601 elif test "$with_gnu_ld" = yes; then
10602   echo "$as_me:$LINENO: checking for GNU ld" >&5
10603 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10604 else
10605   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10606 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10607 fi
10608 if test "${lt_cv_path_LD+set}" = set; then
10609   echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611   if test -z "$LD"; then
10612   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10613   for ac_dir in $PATH; do
10614     IFS="$lt_save_ifs"
10615     test -z "$ac_dir" && ac_dir=.
10616     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10617       lt_cv_path_LD="$ac_dir/$ac_prog"
10618       # Check to see if the program is GNU ld.  I'd rather use --version,
10619       # but apparently some variants of GNU ld only accept -v.
10620       # Break only if it was the GNU/non-GNU ld that we prefer.
10621       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10622       *GNU* | *'with BFD'*)
10623         test "$with_gnu_ld" != no && break
10624         ;;
10625       *)
10626         test "$with_gnu_ld" != yes && break
10627         ;;
10628       esac
10629     fi
10630   done
10631   IFS="$lt_save_ifs"
10632 else
10633   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10634 fi
10635 fi
10636
10637 LD="$lt_cv_path_LD"
10638 if test -n "$LD"; then
10639   echo "$as_me:$LINENO: result: $LD" >&5
10640 echo "${ECHO_T}$LD" >&6
10641 else
10642   echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6
10644 fi
10645 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10646 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10647    { (exit 1); exit 1; }; }
10648 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10649 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10650 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10651   echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10654 case `$LD -v 2>&1 </dev/null` in
10655 *GNU* | *'with BFD'*)
10656   lt_cv_prog_gnu_ld=yes
10657   ;;
10658 *)
10659   lt_cv_prog_gnu_ld=no
10660   ;;
10661 esac
10662 fi
10663 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10664 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10665 with_gnu_ld=$lt_cv_prog_gnu_ld
10666
10667
10668 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10669 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10670 if test "${lt_cv_ld_reload_flag+set}" = set; then
10671   echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673   lt_cv_ld_reload_flag='-r'
10674 fi
10675 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10676 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10677 reload_flag=$lt_cv_ld_reload_flag
10678 case $reload_flag in
10679 "" | " "*) ;;
10680 *) reload_flag=" $reload_flag" ;;
10681 esac
10682 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10683 case $host_os in
10684   darwin*)
10685     if test "$GCC" = yes; then
10686       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10687     else
10688       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10689     fi
10690     ;;
10691 esac
10692
10693 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10694 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10695 if test "${lt_cv_path_NM+set}" = set; then
10696   echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698   if test -n "$NM"; then
10699   # Let the user override the test.
10700   lt_cv_path_NM="$NM"
10701 else
10702   lt_nm_to_check="${ac_tool_prefix}nm"
10703   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10704     lt_nm_to_check="$lt_nm_to_check nm"
10705   fi
10706   for lt_tmp_nm in $lt_nm_to_check; do
10707     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10708     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10709       IFS="$lt_save_ifs"
10710       test -z "$ac_dir" && ac_dir=.
10711       tmp_nm="$ac_dir/$lt_tmp_nm"
10712       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10713         # Check to see if the nm accepts a BSD-compat flag.
10714         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10715         #   nm: unknown option "B" ignored
10716         # Tru64's nm complains that /dev/null is an invalid object file
10717         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10718         */dev/null* | *'Invalid file or object type'*)
10719           lt_cv_path_NM="$tmp_nm -B"
10720           break
10721           ;;
10722         *)
10723           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10724           */dev/null*)
10725             lt_cv_path_NM="$tmp_nm -p"
10726             break
10727             ;;
10728           *)
10729             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10730             continue # so that we can try to find one that supports BSD flags
10731             ;;
10732           esac
10733           ;;
10734         esac
10735       fi
10736     done
10737     IFS="$lt_save_ifs"
10738   done
10739   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10740 fi
10741 fi
10742 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10743 echo "${ECHO_T}$lt_cv_path_NM" >&6
10744 NM="$lt_cv_path_NM"
10745
10746 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10747 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10748 if test "${lt_cv_deplibs_check_method+set}" = set; then
10749   echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751   lt_cv_file_magic_cmd='$MAGIC_CMD'
10752 lt_cv_file_magic_test_file=
10753 lt_cv_deplibs_check_method='unknown'
10754 # Need to set the preceding variable on all platforms that support
10755 # interlibrary dependencies.
10756 # 'none' -- dependencies not supported.
10757 # `unknown' -- same as none, but documents that we really don't know.
10758 # 'pass_all' -- all dependencies passed with no checks.
10759 # 'test_compile' -- check by making test program.
10760 # 'file_magic [[regex]]' -- check by looking for files in library path
10761 # which responds to the $file_magic_cmd with a given extended regex.
10762 # If you have `file' or equivalent on your system and you're not sure
10763 # whether `pass_all' will *always* work, you probably want this one.
10764
10765 case $host_os in
10766 aix4* | aix5*)
10767   lt_cv_deplibs_check_method=pass_all
10768   ;;
10769
10770 beos*)
10771   lt_cv_deplibs_check_method=pass_all
10772   ;;
10773
10774 bsdi[45]*)
10775   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10776   lt_cv_file_magic_cmd='/usr/bin/file -L'
10777   lt_cv_file_magic_test_file=/shlib/libc.so
10778   ;;
10779
10780 cygwin*)
10781   # func_win32_libid is a shell function defined in ltmain.sh
10782   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10783   lt_cv_file_magic_cmd='func_win32_libid'
10784   ;;
10785
10786 mingw* | pw32*)
10787   # Base MSYS/MinGW do not provide the 'file' command needed by
10788   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10789   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10790   lt_cv_file_magic_cmd='$OBJDUMP -f'
10791   ;;
10792
10793 darwin* | rhapsody*)
10794   lt_cv_deplibs_check_method=pass_all
10795   ;;
10796
10797 freebsd* | kfreebsd*-gnu | dragonfly*)
10798   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10799     case $host_cpu in
10800     i*86 )
10801       # Not sure whether the presence of OpenBSD here was a mistake.
10802       # Let's accept both of them until this is cleared up.
10803       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10804       lt_cv_file_magic_cmd=/usr/bin/file
10805       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10806       ;;
10807     esac
10808   else
10809     lt_cv_deplibs_check_method=pass_all
10810   fi
10811   ;;
10812
10813 gnu*)
10814   lt_cv_deplibs_check_method=pass_all
10815   ;;
10816
10817 hpux10.20* | hpux11*)
10818   lt_cv_file_magic_cmd=/usr/bin/file
10819   case $host_cpu in
10820   ia64*)
10821     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10822     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10823     ;;
10824   hppa*64*)
10825     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]'
10826     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10827     ;;
10828   *)
10829     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10830     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10831     ;;
10832   esac
10833   ;;
10834
10835 interix3*)
10836   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10837   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10838   ;;
10839
10840 irix5* | irix6* | nonstopux*)
10841   case $LD in
10842   *-32|*"-32 ") libmagic=32-bit;;
10843   *-n32|*"-n32 ") libmagic=N32;;
10844   *-64|*"-64 ") libmagic=64-bit;;
10845   *) libmagic=never-match;;
10846   esac
10847   lt_cv_deplibs_check_method=pass_all
10848   ;;
10849
10850 # This must be Linux ELF.
10851 linux*)
10852   lt_cv_deplibs_check_method=pass_all
10853   ;;
10854
10855 netbsd*)
10856   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10857     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10858   else
10859     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10860   fi
10861   ;;
10862
10863 newos6*)
10864   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10865   lt_cv_file_magic_cmd=/usr/bin/file
10866   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10867   ;;
10868
10869 nto-qnx*)
10870   lt_cv_deplibs_check_method=unknown
10871   ;;
10872
10873 openbsd*)
10874   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10875     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10876   else
10877     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10878   fi
10879   ;;
10880
10881 osf3* | osf4* | osf5*)
10882   lt_cv_deplibs_check_method=pass_all
10883   ;;
10884
10885 solaris*)
10886   lt_cv_deplibs_check_method=pass_all
10887   ;;
10888
10889 sysv4 | sysv4.3*)
10890   case $host_vendor in
10891   motorola)
10892     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]'
10893     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10894     ;;
10895   ncr)
10896     lt_cv_deplibs_check_method=pass_all
10897     ;;
10898   sequent)
10899     lt_cv_file_magic_cmd='/bin/file'
10900     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10901     ;;
10902   sni)
10903     lt_cv_file_magic_cmd='/bin/file'
10904     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10905     lt_cv_file_magic_test_file=/lib/libc.so
10906     ;;
10907   siemens)
10908     lt_cv_deplibs_check_method=pass_all
10909     ;;
10910   pc)
10911     lt_cv_deplibs_check_method=pass_all
10912     ;;
10913   esac
10914   ;;
10915
10916 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10917   lt_cv_deplibs_check_method=pass_all
10918   ;;
10919 esac
10920
10921 fi
10922 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10923 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10924 file_magic_cmd=$lt_cv_file_magic_cmd
10925 deplibs_check_method=$lt_cv_deplibs_check_method
10926 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10927
10928
10929
10930
10931 # If no C compiler was specified, use CC.
10932 LTCC=${LTCC-"$CC"}
10933
10934 # If no C compiler flags were specified, use CFLAGS.
10935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10936
10937 # Allow CC to be a program name with arguments.
10938 compiler=$CC
10939
10940 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10941 if test "${enable_libtool_lock+set}" = set; then
10942   enableval="$enable_libtool_lock"
10943
10944 fi;
10945 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10946
10947 # Some flags need to be propagated to the compiler or linker for good
10948 # libtool support.
10949 case $host in
10950 ia64-*-hpux*)
10951   # Find out which ABI we are using.
10952   echo 'int i;' > conftest.$ac_ext
10953   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10954   (eval $ac_compile) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; then
10958     case `/usr/bin/file conftest.$ac_objext` in
10959     *ELF-32*)
10960       HPUX_IA64_MODE="32"
10961       ;;
10962     *ELF-64*)
10963       HPUX_IA64_MODE="64"
10964       ;;
10965     esac
10966   fi
10967   rm -rf conftest*
10968   ;;
10969 *-*-irix6*)
10970   # Find out which ABI we are using.
10971   echo '#line 10971 "configure"' > conftest.$ac_ext
10972   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10973   (eval $ac_compile) 2>&5
10974   ac_status=$?
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); }; then
10977    if test "$lt_cv_prog_gnu_ld" = yes; then
10978     case `/usr/bin/file conftest.$ac_objext` in
10979     *32-bit*)
10980       LD="${LD-ld} -melf32bsmip"
10981       ;;
10982     *N32*)
10983       LD="${LD-ld} -melf32bmipn32"
10984       ;;
10985     *64-bit*)
10986       LD="${LD-ld} -melf64bmip"
10987       ;;
10988     esac
10989    else
10990     case `/usr/bin/file conftest.$ac_objext` in
10991     *32-bit*)
10992       LD="${LD-ld} -32"
10993       ;;
10994     *N32*)
10995       LD="${LD-ld} -n32"
10996       ;;
10997     *64-bit*)
10998       LD="${LD-ld} -64"
10999       ;;
11000     esac
11001    fi
11002   fi
11003   rm -rf conftest*
11004   ;;
11005
11006 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11007   # Find out which ABI we are using.
11008   echo 'int i;' > conftest.$ac_ext
11009   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11010   (eval $ac_compile) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); }; then
11014     case `/usr/bin/file conftest.o` in
11015     *32-bit*)
11016       case $host in
11017         x86_64-*linux*)
11018           LD="${LD-ld} -m elf_i386"
11019           ;;
11020         ppc64-*linux*|powerpc64-*linux*)
11021           LD="${LD-ld} -m elf32ppclinux"
11022           ;;
11023         s390x-*linux*)
11024           LD="${LD-ld} -m elf_s390"
11025           ;;
11026         sparc64-*linux*)
11027           LD="${LD-ld} -m elf32_sparc"
11028           ;;
11029       esac
11030       ;;
11031     *64-bit*)
11032       case $host in
11033         x86_64-*linux*)
11034           LD="${LD-ld} -m elf_x86_64"
11035           ;;
11036         ppc*-*linux*|powerpc*-*linux*)
11037           LD="${LD-ld} -m elf64ppc"
11038           ;;
11039         s390*-*linux*)
11040           LD="${LD-ld} -m elf64_s390"
11041           ;;
11042         sparc*-*linux*)
11043           LD="${LD-ld} -m elf64_sparc"
11044           ;;
11045       esac
11046       ;;
11047     esac
11048   fi
11049   rm -rf conftest*
11050   ;;
11051
11052 *-*-sco3.2v5*)
11053   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11054   SAVE_CFLAGS="$CFLAGS"
11055   CFLAGS="$CFLAGS -belf"
11056   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11057 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
11058 if test "${lt_cv_cc_needs_belf+set}" = set; then
11059   echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061   ac_ext=c
11062 ac_cpp='$CPP $CPPFLAGS'
11063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11066
11067      cat >conftest.$ac_ext <<_ACEOF
11068 /* confdefs.h.  */
11069 _ACEOF
11070 cat confdefs.h >>conftest.$ac_ext
11071 cat >>conftest.$ac_ext <<_ACEOF
11072 /* end confdefs.h.  */
11073
11074 int
11075 main ()
11076 {
11077
11078   ;
11079   return 0;
11080 }
11081 _ACEOF
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084   (eval $ac_link) 2>conftest.er1
11085   ac_status=$?
11086   grep -v '^ *+' conftest.er1 >conftest.err
11087   rm -f conftest.er1
11088   cat conftest.err >&5
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); } &&
11091          { ac_try='test -z "$ac_c_werror_flag"
11092                          || test ! -s conftest.err'
11093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094   (eval $ac_try) 2>&5
11095   ac_status=$?
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); }; } &&
11098          { ac_try='test -s conftest$ac_exeext'
11099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100   (eval $ac_try) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; }; then
11104   lt_cv_cc_needs_belf=yes
11105 else
11106   echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11108
11109 lt_cv_cc_needs_belf=no
11110 fi
11111 rm -f conftest.err conftest.$ac_objext \
11112       conftest$ac_exeext conftest.$ac_ext
11113      ac_ext=c
11114 ac_cpp='$CPP $CPPFLAGS'
11115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11118
11119 fi
11120 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11121 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
11122   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11123     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11124     CFLAGS="$SAVE_CFLAGS"
11125   fi
11126   ;;
11127 sparc*-*solaris*)
11128   # Find out which ABI we are using.
11129   echo 'int i;' > conftest.$ac_ext
11130   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11131   (eval $ac_compile) 2>&5
11132   ac_status=$?
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); }; then
11135     case `/usr/bin/file conftest.o` in
11136     *64-bit*)
11137       case $lt_cv_prog_gnu_ld in
11138       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11139       *)    LD="${LD-ld} -64" ;;
11140       esac
11141       ;;
11142     esac
11143   fi
11144   rm -rf conftest*
11145   ;;
11146
11147
11148 esac
11149
11150 need_locks="$enable_libtool_lock"
11151
11152
11153 ac_ext=c
11154 ac_cpp='$CPP $CPPFLAGS'
11155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11158 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11159 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11160 # On Suns, sometimes $CPP names a directory.
11161 if test -n "$CPP" && test -d "$CPP"; then
11162   CPP=
11163 fi
11164 if test -z "$CPP"; then
11165   if test "${ac_cv_prog_CPP+set}" = set; then
11166   echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168       # Double quotes because CPP needs to be expanded
11169     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11170     do
11171       ac_preproc_ok=false
11172 for ac_c_preproc_warn_flag in '' yes
11173 do
11174   # Use a header file that comes with gcc, so configuring glibc
11175   # with a fresh cross-compiler works.
11176   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11177   # <limits.h> exists even on freestanding compilers.
11178   # On the NeXT, cc -E runs the code through the compiler's parser,
11179   # not just through cpp. "Syntax error" is here to catch this case.
11180   cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h.  */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h.  */
11186 #ifdef __STDC__
11187 # include <limits.h>
11188 #else
11189 # include <assert.h>
11190 #endif
11191                      Syntax error
11192 _ACEOF
11193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11195   ac_status=$?
11196   grep -v '^ *+' conftest.er1 >conftest.err
11197   rm -f conftest.er1
11198   cat conftest.err >&5
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); } >/dev/null; then
11201   if test -s conftest.err; then
11202     ac_cpp_err=$ac_c_preproc_warn_flag
11203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11204   else
11205     ac_cpp_err=
11206   fi
11207 else
11208   ac_cpp_err=yes
11209 fi
11210 if test -z "$ac_cpp_err"; then
11211   :
11212 else
11213   echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11215
11216   # Broken: fails on valid input.
11217 continue
11218 fi
11219 rm -f conftest.err conftest.$ac_ext
11220
11221   # OK, works on sane cases.  Now check whether non-existent headers
11222   # can be detected and how.
11223   cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h.  */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h.  */
11229 #include <ac_nonexistent.h>
11230 _ACEOF
11231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11233   ac_status=$?
11234   grep -v '^ *+' conftest.er1 >conftest.err
11235   rm -f conftest.er1
11236   cat conftest.err >&5
11237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238   (exit $ac_status); } >/dev/null; then
11239   if test -s conftest.err; then
11240     ac_cpp_err=$ac_c_preproc_warn_flag
11241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11242   else
11243     ac_cpp_err=
11244   fi
11245 else
11246   ac_cpp_err=yes
11247 fi
11248 if test -z "$ac_cpp_err"; then
11249   # Broken: success on invalid input.
11250 continue
11251 else
11252   echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11254
11255   # Passes both tests.
11256 ac_preproc_ok=:
11257 break
11258 fi
11259 rm -f conftest.err conftest.$ac_ext
11260
11261 done
11262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11263 rm -f conftest.err conftest.$ac_ext
11264 if $ac_preproc_ok; then
11265   break
11266 fi
11267
11268     done
11269     ac_cv_prog_CPP=$CPP
11270
11271 fi
11272   CPP=$ac_cv_prog_CPP
11273 else
11274   ac_cv_prog_CPP=$CPP
11275 fi
11276 echo "$as_me:$LINENO: result: $CPP" >&5
11277 echo "${ECHO_T}$CPP" >&6
11278 ac_preproc_ok=false
11279 for ac_c_preproc_warn_flag in '' yes
11280 do
11281   # Use a header file that comes with gcc, so configuring glibc
11282   # with a fresh cross-compiler works.
11283   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11284   # <limits.h> exists even on freestanding compilers.
11285   # On the NeXT, cc -E runs the code through the compiler's parser,
11286   # not just through cpp. "Syntax error" is here to catch this case.
11287   cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h.  */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h.  */
11293 #ifdef __STDC__
11294 # include <limits.h>
11295 #else
11296 # include <assert.h>
11297 #endif
11298                      Syntax error
11299 _ACEOF
11300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11302   ac_status=$?
11303   grep -v '^ *+' conftest.er1 >conftest.err
11304   rm -f conftest.er1
11305   cat conftest.err >&5
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); } >/dev/null; then
11308   if test -s conftest.err; then
11309     ac_cpp_err=$ac_c_preproc_warn_flag
11310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11311   else
11312     ac_cpp_err=
11313   fi
11314 else
11315   ac_cpp_err=yes
11316 fi
11317 if test -z "$ac_cpp_err"; then
11318   :
11319 else
11320   echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11322
11323   # Broken: fails on valid input.
11324 continue
11325 fi
11326 rm -f conftest.err conftest.$ac_ext
11327
11328   # OK, works on sane cases.  Now check whether non-existent headers
11329   # can be detected and how.
11330   cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h.  */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h.  */
11336 #include <ac_nonexistent.h>
11337 _ACEOF
11338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11340   ac_status=$?
11341   grep -v '^ *+' conftest.er1 >conftest.err
11342   rm -f conftest.er1
11343   cat conftest.err >&5
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); } >/dev/null; then
11346   if test -s conftest.err; then
11347     ac_cpp_err=$ac_c_preproc_warn_flag
11348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11349   else
11350     ac_cpp_err=
11351   fi
11352 else
11353   ac_cpp_err=yes
11354 fi
11355 if test -z "$ac_cpp_err"; then
11356   # Broken: success on invalid input.
11357 continue
11358 else
11359   echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362   # Passes both tests.
11363 ac_preproc_ok=:
11364 break
11365 fi
11366 rm -f conftest.err conftest.$ac_ext
11367
11368 done
11369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11370 rm -f conftest.err conftest.$ac_ext
11371 if $ac_preproc_ok; then
11372   :
11373 else
11374   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11375 See \`config.log' for more details." >&5
11376 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11377 See \`config.log' for more details." >&2;}
11378    { (exit 1); exit 1; }; }
11379 fi
11380
11381 ac_ext=c
11382 ac_cpp='$CPP $CPPFLAGS'
11383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11386
11387
11388 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11389 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11390 if test "${ac_cv_header_stdc+set}" = set; then
11391   echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393   cat >conftest.$ac_ext <<_ACEOF
11394 /* confdefs.h.  */
11395 _ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h.  */
11399 #include <stdlib.h>
11400 #include <stdarg.h>
11401 #include <string.h>
11402 #include <float.h>
11403
11404 int
11405 main ()
11406 {
11407
11408   ;
11409   return 0;
11410 }
11411 _ACEOF
11412 rm -f conftest.$ac_objext
11413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11414   (eval $ac_compile) 2>conftest.er1
11415   ac_status=$?
11416   grep -v '^ *+' conftest.er1 >conftest.err
11417   rm -f conftest.er1
11418   cat conftest.err >&5
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); } &&
11421          { ac_try='test -z "$ac_c_werror_flag"
11422                          || test ! -s conftest.err'
11423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424   (eval $ac_try) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); }; } &&
11428          { ac_try='test -s conftest.$ac_objext'
11429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430   (eval $ac_try) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); }; }; then
11434   ac_cv_header_stdc=yes
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 ac_cv_header_stdc=no
11440 fi
11441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11442
11443 if test $ac_cv_header_stdc = yes; then
11444   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11445   cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h.  */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h.  */
11451 #include <string.h>
11452
11453 _ACEOF
11454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11455   $EGREP "memchr" >/dev/null 2>&1; then
11456   :
11457 else
11458   ac_cv_header_stdc=no
11459 fi
11460 rm -f conftest*
11461
11462 fi
11463
11464 if test $ac_cv_header_stdc = yes; then
11465   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11466   cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h.  */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h.  */
11472 #include <stdlib.h>
11473
11474 _ACEOF
11475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11476   $EGREP "free" >/dev/null 2>&1; then
11477   :
11478 else
11479   ac_cv_header_stdc=no
11480 fi
11481 rm -f conftest*
11482
11483 fi
11484
11485 if test $ac_cv_header_stdc = yes; then
11486   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11487   if test "$cross_compiling" = yes; then
11488   :
11489 else
11490   cat >conftest.$ac_ext <<_ACEOF
11491 /* confdefs.h.  */
11492 _ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h.  */
11496 #include <ctype.h>
11497 #if ((' ' & 0x0FF) == 0x020)
11498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11500 #else
11501 # define ISLOWER(c) \
11502                    (('a' <= (c) && (c) <= 'i') \
11503                      || ('j' <= (c) && (c) <= 'r') \
11504                      || ('s' <= (c) && (c) <= 'z'))
11505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11506 #endif
11507
11508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11509 int
11510 main ()
11511 {
11512   int i;
11513   for (i = 0; i < 256; i++)
11514     if (XOR (islower (i), ISLOWER (i))
11515         || toupper (i) != TOUPPER (i))
11516       exit(2);
11517   exit (0);
11518 }
11519 _ACEOF
11520 rm -f conftest$ac_exeext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11522   (eval $ac_link) 2>&5
11523   ac_status=$?
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527   (eval $ac_try) 2>&5
11528   ac_status=$?
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); }; }; then
11531   :
11532 else
11533   echo "$as_me: program exited with status $ac_status" >&5
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11536
11537 ( exit $ac_status )
11538 ac_cv_header_stdc=no
11539 fi
11540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11541 fi
11542 fi
11543 fi
11544 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11545 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11546 if test $ac_cv_header_stdc = yes; then
11547
11548 cat >>confdefs.h <<\_ACEOF
11549 #define STDC_HEADERS 1
11550 _ACEOF
11551
11552 fi
11553
11554 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11565                   inttypes.h stdint.h unistd.h
11566 do
11567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11568 echo "$as_me:$LINENO: checking for $ac_header" >&5
11569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573   cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h.  */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h.  */
11579 $ac_includes_default
11580
11581 #include <$ac_header>
11582 _ACEOF
11583 rm -f conftest.$ac_objext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11585   (eval $ac_compile) 2>conftest.er1
11586   ac_status=$?
11587   grep -v '^ *+' conftest.er1 >conftest.err
11588   rm -f conftest.er1
11589   cat conftest.err >&5
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); } &&
11592          { ac_try='test -z "$ac_c_werror_flag"
11593                          || test ! -s conftest.err'
11594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595   (eval $ac_try) 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); }; } &&
11599          { ac_try='test -s conftest.$ac_objext'
11600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601   (eval $ac_try) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); }; }; then
11605   eval "$as_ac_Header=yes"
11606 else
11607   echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11609
11610 eval "$as_ac_Header=no"
11611 fi
11612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11613 fi
11614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11617   cat >>confdefs.h <<_ACEOF
11618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11619 _ACEOF
11620
11621 fi
11622
11623 done
11624
11625
11626
11627 for ac_header in dlfcn.h
11628 do
11629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11631   echo "$as_me:$LINENO: checking for $ac_header" >&5
11632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 fi
11636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11638 else
11639   # Is the header compilable?
11640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648 $ac_includes_default
11649 #include <$ac_header>
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653   (eval $ac_compile) 2>conftest.er1
11654   ac_status=$?
11655   grep -v '^ *+' conftest.er1 >conftest.err
11656   rm -f conftest.er1
11657   cat conftest.err >&5
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); } &&
11660          { ac_try='test -z "$ac_c_werror_flag"
11661                          || test ! -s conftest.err'
11662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663   (eval $ac_try) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; } &&
11667          { ac_try='test -s conftest.$ac_objext'
11668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669   (eval $ac_try) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); }; }; then
11673   ac_header_compiler=yes
11674 else
11675   echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 ac_header_compiler=no
11679 fi
11680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11682 echo "${ECHO_T}$ac_header_compiler" >&6
11683
11684 # Is the header present?
11685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11687 cat >conftest.$ac_ext <<_ACEOF
11688 /* confdefs.h.  */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h.  */
11693 #include <$ac_header>
11694 _ACEOF
11695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11697   ac_status=$?
11698   grep -v '^ *+' conftest.er1 >conftest.err
11699   rm -f conftest.er1
11700   cat conftest.err >&5
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); } >/dev/null; then
11703   if test -s conftest.err; then
11704     ac_cpp_err=$ac_c_preproc_warn_flag
11705     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11706   else
11707     ac_cpp_err=
11708   fi
11709 else
11710   ac_cpp_err=yes
11711 fi
11712 if test -z "$ac_cpp_err"; then
11713   ac_header_preproc=yes
11714 else
11715   echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11717
11718   ac_header_preproc=no
11719 fi
11720 rm -f conftest.err conftest.$ac_ext
11721 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11722 echo "${ECHO_T}$ac_header_preproc" >&6
11723
11724 # So?  What about this header?
11725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11726   yes:no: )
11727     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11731     ac_header_preproc=yes
11732     ;;
11733   no:yes:* )
11734     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11736     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11737 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11738     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11740     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11741 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11744     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11746     (
11747       cat <<\_ASBOX
11748 ## --------------------------------------------- ##
11749 ## Report this to vserver@list.linux-vserver.org ##
11750 ## --------------------------------------------- ##
11751 _ASBOX
11752     ) |
11753       sed "s/^/$as_me: WARNING:     /" >&2
11754     ;;
11755 esac
11756 echo "$as_me:$LINENO: checking for $ac_header" >&5
11757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11759   echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11761   eval "$as_ac_Header=\$ac_header_preproc"
11762 fi
11763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11765
11766 fi
11767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11768   cat >>confdefs.h <<_ACEOF
11769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11770 _ACEOF
11771
11772 fi
11773
11774 done
11775
11776
11777
11778 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11779     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11780     (test "X$CXX" != "Xg++"))) ; then
11781   ac_ext=cc
11782 ac_cpp='$CXXCPP $CPPFLAGS'
11783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11786 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11787 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11788 if test -z "$CXXCPP"; then
11789   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11790   echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792       # Double quotes because CXXCPP needs to be expanded
11793     for CXXCPP in "$CXX -E" "/lib/cpp"
11794     do
11795       ac_preproc_ok=false
11796 for ac_cxx_preproc_warn_flag in '' yes
11797 do
11798   # Use a header file that comes with gcc, so configuring glibc
11799   # with a fresh cross-compiler works.
11800   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11801   # <limits.h> exists even on freestanding compilers.
11802   # On the NeXT, cc -E runs the code through the compiler's parser,
11803   # not just through cpp. "Syntax error" is here to catch this case.
11804   cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 #ifdef __STDC__
11811 # include <limits.h>
11812 #else
11813 # include <assert.h>
11814 #endif
11815                      Syntax error
11816 _ACEOF
11817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11818   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11819   ac_status=$?
11820   grep -v '^ *+' conftest.er1 >conftest.err
11821   rm -f conftest.er1
11822   cat conftest.err >&5
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); } >/dev/null; then
11825   if test -s conftest.err; then
11826     ac_cpp_err=$ac_cxx_preproc_warn_flag
11827     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11828   else
11829     ac_cpp_err=
11830   fi
11831 else
11832   ac_cpp_err=yes
11833 fi
11834 if test -z "$ac_cpp_err"; then
11835   :
11836 else
11837   echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840   # Broken: fails on valid input.
11841 continue
11842 fi
11843 rm -f conftest.err conftest.$ac_ext
11844
11845   # OK, works on sane cases.  Now check whether non-existent headers
11846   # can be detected and how.
11847   cat >conftest.$ac_ext <<_ACEOF
11848 /* confdefs.h.  */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h.  */
11853 #include <ac_nonexistent.h>
11854 _ACEOF
11855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11856   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11857   ac_status=$?
11858   grep -v '^ *+' conftest.er1 >conftest.err
11859   rm -f conftest.er1
11860   cat conftest.err >&5
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); } >/dev/null; then
11863   if test -s conftest.err; then
11864     ac_cpp_err=$ac_cxx_preproc_warn_flag
11865     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11866   else
11867     ac_cpp_err=
11868   fi
11869 else
11870   ac_cpp_err=yes
11871 fi
11872 if test -z "$ac_cpp_err"; then
11873   # Broken: success on invalid input.
11874 continue
11875 else
11876   echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879   # Passes both tests.
11880 ac_preproc_ok=:
11881 break
11882 fi
11883 rm -f conftest.err conftest.$ac_ext
11884
11885 done
11886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11887 rm -f conftest.err conftest.$ac_ext
11888 if $ac_preproc_ok; then
11889   break
11890 fi
11891
11892     done
11893     ac_cv_prog_CXXCPP=$CXXCPP
11894
11895 fi
11896   CXXCPP=$ac_cv_prog_CXXCPP
11897 else
11898   ac_cv_prog_CXXCPP=$CXXCPP
11899 fi
11900 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11901 echo "${ECHO_T}$CXXCPP" >&6
11902 ac_preproc_ok=false
11903 for ac_cxx_preproc_warn_flag in '' yes
11904 do
11905   # Use a header file that comes with gcc, so configuring glibc
11906   # with a fresh cross-compiler works.
11907   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11908   # <limits.h> exists even on freestanding compilers.
11909   # On the NeXT, cc -E runs the code through the compiler's parser,
11910   # not just through cpp. "Syntax error" is here to catch this case.
11911   cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h.  */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h.  */
11917 #ifdef __STDC__
11918 # include <limits.h>
11919 #else
11920 # include <assert.h>
11921 #endif
11922                      Syntax error
11923 _ACEOF
11924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11925   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11926   ac_status=$?
11927   grep -v '^ *+' conftest.er1 >conftest.err
11928   rm -f conftest.er1
11929   cat conftest.err >&5
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } >/dev/null; then
11932   if test -s conftest.err; then
11933     ac_cpp_err=$ac_cxx_preproc_warn_flag
11934     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11935   else
11936     ac_cpp_err=
11937   fi
11938 else
11939   ac_cpp_err=yes
11940 fi
11941 if test -z "$ac_cpp_err"; then
11942   :
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947   # Broken: fails on valid input.
11948 continue
11949 fi
11950 rm -f conftest.err conftest.$ac_ext
11951
11952   # OK, works on sane cases.  Now check whether non-existent headers
11953   # can be detected and how.
11954   cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960 #include <ac_nonexistent.h>
11961 _ACEOF
11962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11964   ac_status=$?
11965   grep -v '^ *+' conftest.er1 >conftest.err
11966   rm -f conftest.er1
11967   cat conftest.err >&5
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); } >/dev/null; then
11970   if test -s conftest.err; then
11971     ac_cpp_err=$ac_cxx_preproc_warn_flag
11972     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11973   else
11974     ac_cpp_err=
11975   fi
11976 else
11977   ac_cpp_err=yes
11978 fi
11979 if test -z "$ac_cpp_err"; then
11980   # Broken: success on invalid input.
11981 continue
11982 else
11983   echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11985
11986   # Passes both tests.
11987 ac_preproc_ok=:
11988 break
11989 fi
11990 rm -f conftest.err conftest.$ac_ext
11991
11992 done
11993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11994 rm -f conftest.err conftest.$ac_ext
11995 if $ac_preproc_ok; then
11996   :
11997 else
11998   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11999 See \`config.log' for more details." >&5
12000 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12001 See \`config.log' for more details." >&2;}
12002    { (exit 1); exit 1; }; }
12003 fi
12004
12005 ac_ext=cc
12006 ac_cpp='$CXXCPP $CPPFLAGS'
12007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12010
12011 fi
12012
12013 ac_ext=f
12014 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12015 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12017 if test -n "$ac_tool_prefix"; then
12018   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
12019   do
12020     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12022 echo "$as_me:$LINENO: checking for $ac_word" >&5
12023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12024 if test "${ac_cv_prog_F77+set}" = set; then
12025   echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027   if test -n "$F77"; then
12028   ac_cv_prog_F77="$F77" # Let the user override the test.
12029 else
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12032 do
12033   IFS=$as_save_IFS
12034   test -z "$as_dir" && as_dir=.
12035   for ac_exec_ext in '' $ac_executable_extensions; do
12036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12039     break 2
12040   fi
12041 done
12042 done
12043
12044 fi
12045 fi
12046 F77=$ac_cv_prog_F77
12047 if test -n "$F77"; then
12048   echo "$as_me:$LINENO: result: $F77" >&5
12049 echo "${ECHO_T}$F77" >&6
12050 else
12051   echo "$as_me:$LINENO: result: no" >&5
12052 echo "${ECHO_T}no" >&6
12053 fi
12054
12055     test -n "$F77" && break
12056   done
12057 fi
12058 if test -z "$F77"; then
12059   ac_ct_F77=$F77
12060   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
12061 do
12062   # Extract the first word of "$ac_prog", so it can be a program name with args.
12063 set dummy $ac_prog; ac_word=$2
12064 echo "$as_me:$LINENO: checking for $ac_word" >&5
12065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12066 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12067   echo $ECHO_N "(cached) $ECHO_C" >&6
12068 else
12069   if test -n "$ac_ct_F77"; then
12070   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12071 else
12072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073 for as_dir in $PATH
12074 do
12075   IFS=$as_save_IFS
12076   test -z "$as_dir" && as_dir=.
12077   for ac_exec_ext in '' $ac_executable_extensions; do
12078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12079     ac_cv_prog_ac_ct_F77="$ac_prog"
12080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12081     break 2
12082   fi
12083 done
12084 done
12085
12086 fi
12087 fi
12088 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12089 if test -n "$ac_ct_F77"; then
12090   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12091 echo "${ECHO_T}$ac_ct_F77" >&6
12092 else
12093   echo "$as_me:$LINENO: result: no" >&5
12094 echo "${ECHO_T}no" >&6
12095 fi
12096
12097   test -n "$ac_ct_F77" && break
12098 done
12099
12100   F77=$ac_ct_F77
12101 fi
12102
12103
12104 # Provide some information about the compiler.
12105 echo "$as_me:12105:" \
12106      "checking for Fortran 77 compiler version" >&5
12107 ac_compiler=`set X $ac_compile; echo $2`
12108 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12109   (eval $ac_compiler --version </dev/null >&5) 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); }
12113 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12114   (eval $ac_compiler -v </dev/null >&5) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }
12118 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12119   (eval $ac_compiler -V </dev/null >&5) 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); }
12123 rm -f a.out
12124
12125 # If we don't use `.F' as extension, the preprocessor is not run on the
12126 # input file.  (Note that this only needs to work for GNU compilers.)
12127 ac_save_ext=$ac_ext
12128 ac_ext=F
12129 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12130 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
12131 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12132   echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134   cat >conftest.$ac_ext <<_ACEOF
12135       program main
12136 #ifndef __GNUC__
12137        choke me
12138 #endif
12139
12140       end
12141 _ACEOF
12142 rm -f conftest.$ac_objext
12143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12144   (eval $ac_compile) 2>conftest.er1
12145   ac_status=$?
12146   grep -v '^ *+' conftest.er1 >conftest.err
12147   rm -f conftest.er1
12148   cat conftest.err >&5
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); } &&
12151          { ac_try='test -z "$ac_f77_werror_flag"
12152                          || test ! -s conftest.err'
12153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154   (eval $ac_try) 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); }; } &&
12158          { ac_try='test -s conftest.$ac_objext'
12159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160   (eval $ac_try) 2>&5
12161   ac_status=$?
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); }; }; then
12164   ac_compiler_gnu=yes
12165 else
12166   echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12168
12169 ac_compiler_gnu=no
12170 fi
12171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12172 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12173
12174 fi
12175 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12176 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
12177 ac_ext=$ac_save_ext
12178 ac_test_FFLAGS=${FFLAGS+set}
12179 ac_save_FFLAGS=$FFLAGS
12180 FFLAGS=
12181 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12182 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
12183 if test "${ac_cv_prog_f77_g+set}" = set; then
12184   echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186   FFLAGS=-g
12187 cat >conftest.$ac_ext <<_ACEOF
12188       program main
12189
12190       end
12191 _ACEOF
12192 rm -f conftest.$ac_objext
12193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12194   (eval $ac_compile) 2>conftest.er1
12195   ac_status=$?
12196   grep -v '^ *+' conftest.er1 >conftest.err
12197   rm -f conftest.er1
12198   cat conftest.err >&5
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); } &&
12201          { ac_try='test -z "$ac_f77_werror_flag"
12202                          || test ! -s conftest.err'
12203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204   (eval $ac_try) 2>&5
12205   ac_status=$?
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); }; } &&
12208          { ac_try='test -s conftest.$ac_objext'
12209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210   (eval $ac_try) 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; }; then
12214   ac_cv_prog_f77_g=yes
12215 else
12216   echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219 ac_cv_prog_f77_g=no
12220 fi
12221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12222
12223 fi
12224 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12225 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
12226 if test "$ac_test_FFLAGS" = set; then
12227   FFLAGS=$ac_save_FFLAGS
12228 elif test $ac_cv_prog_f77_g = yes; then
12229   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12230     FFLAGS="-g -O2"
12231   else
12232     FFLAGS="-g"
12233   fi
12234 else
12235   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12236     FFLAGS="-O2"
12237   else
12238     FFLAGS=
12239   fi
12240 fi
12241
12242 G77=`test $ac_compiler_gnu = yes && echo yes`
12243 ac_ext=c
12244 ac_cpp='$CPP $CPPFLAGS'
12245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12248
12249
12250
12251 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12252
12253 # find the maximum length of command line arguments
12254 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12255 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
12256 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12257   echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259     i=0
12260   teststring="ABCD"
12261
12262   case $build_os in
12263   msdosdjgpp*)
12264     # On DJGPP, this test can blow up pretty badly due to problems in libc
12265     # (any single argument exceeding 2000 bytes causes a buffer overrun
12266     # during glob expansion).  Even if it were fixed, the result of this
12267     # check would be larger than it should be.
12268     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12269     ;;
12270
12271   gnu*)
12272     # Under GNU Hurd, this test is not required because there is
12273     # no limit to the length of command line arguments.
12274     # Libtool will interpret -1 as no limit whatsoever
12275     lt_cv_sys_max_cmd_len=-1;
12276     ;;
12277
12278   cygwin* | mingw*)
12279     # On Win9x/ME, this test blows up -- it succeeds, but takes
12280     # about 5 minutes as the teststring grows exponentially.
12281     # Worse, since 9x/ME are not pre-emptively multitasking,
12282     # you end up with a "frozen" computer, even though with patience
12283     # the test eventually succeeds (with a max line length of 256k).
12284     # Instead, let's just punt: use the minimum linelength reported by
12285     # all of the supported platforms: 8192 (on NT/2K/XP).
12286     lt_cv_sys_max_cmd_len=8192;
12287     ;;
12288
12289   amigaos*)
12290     # On AmigaOS with pdksh, this test takes hours, literally.
12291     # So we just punt and use a minimum line length of 8192.
12292     lt_cv_sys_max_cmd_len=8192;
12293     ;;
12294
12295   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12296     # This has been around since 386BSD, at least.  Likely further.
12297     if test -x /sbin/sysctl; then
12298       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12299     elif test -x /usr/sbin/sysctl; then
12300       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12301     else
12302       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12303     fi
12304     # And add a safety zone
12305     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12306     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12307     ;;
12308
12309   interix*)
12310     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12311     lt_cv_sys_max_cmd_len=196608
12312     ;;
12313
12314   osf*)
12315     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12316     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12317     # nice to cause kernel panics so lets avoid the loop below.
12318     # First set a reasonable default.
12319     lt_cv_sys_max_cmd_len=16384
12320     #
12321     if test -x /sbin/sysconfig; then
12322       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12323         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12324       esac
12325     fi
12326     ;;
12327   sco3.2v5*)
12328     lt_cv_sys_max_cmd_len=102400
12329     ;;
12330   sysv5* | sco5v6* | sysv4.2uw2*)
12331     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12332     if test -n "$kargmax"; then
12333       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
12334     else
12335       lt_cv_sys_max_cmd_len=32768
12336     fi
12337     ;;
12338   *)
12339     # If test is not a shell built-in, we'll probably end up computing a
12340     # maximum length that is only half of the actual maximum length, but
12341     # we can't tell.
12342     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12343     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12344                = "XX$teststring") >/dev/null 2>&1 &&
12345             new_result=`expr "X$teststring" : ".*" 2>&1` &&
12346             lt_cv_sys_max_cmd_len=$new_result &&
12347             test $i != 17 # 1/2 MB should be enough
12348     do
12349       i=`expr $i + 1`
12350       teststring=$teststring$teststring
12351     done
12352     teststring=
12353     # Add a significant safety factor because C++ compilers can tack on massive
12354     # amounts of additional arguments before passing them to the linker.
12355     # It appears as though 1/2 is a usable value.
12356     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12357     ;;
12358   esac
12359
12360 fi
12361
12362 if test -n $lt_cv_sys_max_cmd_len ; then
12363   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12364 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
12365 else
12366   echo "$as_me:$LINENO: result: none" >&5
12367 echo "${ECHO_T}none" >&6
12368 fi
12369
12370
12371
12372
12373 # Check for command to grab the raw symbol name followed by C symbol from nm.
12374 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12375 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
12376 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12377   echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379
12380 # These are sane defaults that work on at least a few old systems.
12381 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12382
12383 # Character class describing NM global symbol codes.
12384 symcode='[BCDEGRST]'
12385
12386 # Regexp to match symbols that can be accessed directly from C.
12387 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12388
12389 # Transform an extracted symbol line into a proper C declaration
12390 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12391
12392 # Transform an extracted symbol line into symbol name and symbol address
12393 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'"
12394
12395 # Define system-specific variables.
12396 case $host_os in
12397 aix*)
12398   symcode='[BCDT]'
12399   ;;
12400 cygwin* | mingw* | pw32*)
12401   symcode='[ABCDGISTW]'
12402   ;;
12403 hpux*) # Its linker distinguishes data from code symbols
12404   if test "$host_cpu" = ia64; then
12405     symcode='[ABCDEGRST]'
12406   fi
12407   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12408   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'"
12409   ;;
12410 linux*)
12411   if test "$host_cpu" = ia64; then
12412     symcode='[ABCDGIRSTW]'
12413     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12414     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'"
12415   fi
12416   ;;
12417 irix* | nonstopux*)
12418   symcode='[BCDEGRST]'
12419   ;;
12420 osf*)
12421   symcode='[BCDEGQRST]'
12422   ;;
12423 solaris*)
12424   symcode='[BDRT]'
12425   ;;
12426 sco3.2v5*)
12427   symcode='[DT]'
12428   ;;
12429 sysv4.2uw2*)
12430   symcode='[DT]'
12431   ;;
12432 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12433   symcode='[ABDT]'
12434   ;;
12435 sysv4)
12436   symcode='[DFNSTU]'
12437   ;;
12438 esac
12439
12440 # Handle CRLF in mingw tool chain
12441 opt_cr=
12442 case $build_os in
12443 mingw*)
12444   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12445   ;;
12446 esac
12447
12448 # If we're using GNU nm, then use its standard symbol codes.
12449 case `$NM -V 2>&1` in
12450 *GNU* | *'with BFD'*)
12451   symcode='[ABCDGIRSTW]' ;;
12452 esac
12453
12454 # Try without a prefix undercore, then with it.
12455 for ac_symprfx in "" "_"; do
12456
12457   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12458   symxfrm="\\1 $ac_symprfx\\2 \\2"
12459
12460   # Write the raw and C identifiers.
12461   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12462
12463   # Check to see that the pipe works correctly.
12464   pipe_works=no
12465
12466   rm -f conftest*
12467   cat > conftest.$ac_ext <<EOF
12468 #ifdef __cplusplus
12469 extern "C" {
12470 #endif
12471 char nm_test_var;
12472 void nm_test_func(){}
12473 #ifdef __cplusplus
12474 }
12475 #endif
12476 int main(){nm_test_var='a';nm_test_func();return(0);}
12477 EOF
12478
12479   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480   (eval $ac_compile) 2>&5
12481   ac_status=$?
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); }; then
12484     # Now try to grab the symbols.
12485     nlist=conftest.nm
12486     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12487   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); } && test -s "$nlist"; then
12491       # Try sorting and uniquifying the output.
12492       if sort "$nlist" | uniq > "$nlist"T; then
12493         mv -f "$nlist"T "$nlist"
12494       else
12495         rm -f "$nlist"T
12496       fi
12497
12498       # Make sure that we snagged all the symbols we need.
12499       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12500         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12501           cat <<EOF > conftest.$ac_ext
12502 #ifdef __cplusplus
12503 extern "C" {
12504 #endif
12505
12506 EOF
12507           # Now generate the symbol file.
12508           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12509
12510           cat <<EOF >> conftest.$ac_ext
12511 #if defined (__STDC__) && __STDC__
12512 # define lt_ptr_t void *
12513 #else
12514 # define lt_ptr_t char *
12515 # define const
12516 #endif
12517
12518 /* The mapping between symbol names and symbols. */
12519 const struct {
12520   const char *name;
12521   lt_ptr_t address;
12522 }
12523 lt_preloaded_symbols[] =
12524 {
12525 EOF
12526           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12527           cat <<\EOF >> conftest.$ac_ext
12528   {0, (lt_ptr_t) 0}
12529 };
12530
12531 #ifdef __cplusplus
12532 }
12533 #endif
12534 EOF
12535           # Now try linking the two files.
12536           mv conftest.$ac_objext conftstm.$ac_objext
12537           lt_save_LIBS="$LIBS"
12538           lt_save_CFLAGS="$CFLAGS"
12539           LIBS="conftstm.$ac_objext"
12540           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12541           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542   (eval $ac_link) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } && test -s conftest${ac_exeext}; then
12546             pipe_works=yes
12547           fi
12548           LIBS="$lt_save_LIBS"
12549           CFLAGS="$lt_save_CFLAGS"
12550         else
12551           echo "cannot find nm_test_func in $nlist" >&5
12552         fi
12553       else
12554         echo "cannot find nm_test_var in $nlist" >&5
12555       fi
12556     else
12557       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12558     fi
12559   else
12560     echo "$progname: failed program was:" >&5
12561     cat conftest.$ac_ext >&5
12562   fi
12563   rm -f conftest* conftst*
12564
12565   # Do not use the global_symbol_pipe unless it works.
12566   if test "$pipe_works" = yes; then
12567     break
12568   else
12569     lt_cv_sys_global_symbol_pipe=
12570   fi
12571 done
12572
12573 fi
12574
12575 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12576   lt_cv_sys_global_symbol_to_cdecl=
12577 fi
12578 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12579   echo "$as_me:$LINENO: result: failed" >&5
12580 echo "${ECHO_T}failed" >&6
12581 else
12582   echo "$as_me:$LINENO: result: ok" >&5
12583 echo "${ECHO_T}ok" >&6
12584 fi
12585
12586 echo "$as_me:$LINENO: checking for objdir" >&5
12587 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
12588 if test "${lt_cv_objdir+set}" = set; then
12589   echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591   rm -f .libs 2>/dev/null
12592 mkdir .libs 2>/dev/null
12593 if test -d .libs; then
12594   lt_cv_objdir=.libs
12595 else
12596   # MS-DOS does not allow filenames that begin with a dot.
12597   lt_cv_objdir=_libs
12598 fi
12599 rmdir .libs 2>/dev/null
12600 fi
12601 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12602 echo "${ECHO_T}$lt_cv_objdir" >&6
12603 objdir=$lt_cv_objdir
12604
12605
12606
12607
12608
12609 case $host_os in
12610 aix3*)
12611   # AIX sometimes has problems with the GCC collect2 program.  For some
12612   # reason, if we set the COLLECT_NAMES environment variable, the problems
12613   # vanish in a puff of smoke.
12614   if test "X${COLLECT_NAMES+set}" != Xset; then
12615     COLLECT_NAMES=
12616     export COLLECT_NAMES
12617   fi
12618   ;;
12619 esac
12620
12621 # Sed substitution that helps us do robust quoting.  It backslashifies
12622 # metacharacters that are still active within double-quoted strings.
12623 Xsed='sed -e 1s/^X//'
12624 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12625
12626 # Same as above, but do not quote variable references.
12627 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12628
12629 # Sed substitution to delay expansion of an escaped shell variable in a
12630 # double_quote_subst'ed string.
12631 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12632
12633 # Sed substitution to avoid accidental globbing in evaled expressions
12634 no_glob_subst='s/\*/\\\*/g'
12635
12636 # Constants:
12637 rm="rm -f"
12638
12639 # Global variables:
12640 default_ofile=libtool
12641 can_build_shared=yes
12642
12643 # All known linkers require a `.a' archive for static linking (except MSVC,
12644 # which needs '.lib').
12645 libext=a
12646 ltmain="$ac_aux_dir/ltmain.sh"
12647 ofile="$default_ofile"
12648 with_gnu_ld="$lt_cv_prog_gnu_ld"
12649
12650 if test -n "$ac_tool_prefix"; then
12651   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12652 set dummy ${ac_tool_prefix}ar; ac_word=$2
12653 echo "$as_me:$LINENO: checking for $ac_word" >&5
12654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12655 if test "${ac_cv_prog_AR+set}" = set; then
12656   echo $ECHO_N "(cached) $ECHO_C" >&6
12657 else
12658   if test -n "$AR"; then
12659   ac_cv_prog_AR="$AR" # Let the user override the test.
12660 else
12661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12662 for as_dir in $PATH
12663 do
12664   IFS=$as_save_IFS
12665   test -z "$as_dir" && as_dir=.
12666   for ac_exec_ext in '' $ac_executable_extensions; do
12667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12668     ac_cv_prog_AR="${ac_tool_prefix}ar"
12669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12670     break 2
12671   fi
12672 done
12673 done
12674
12675 fi
12676 fi
12677 AR=$ac_cv_prog_AR
12678 if test -n "$AR"; then
12679   echo "$as_me:$LINENO: result: $AR" >&5
12680 echo "${ECHO_T}$AR" >&6
12681 else
12682   echo "$as_me:$LINENO: result: no" >&5
12683 echo "${ECHO_T}no" >&6
12684 fi
12685
12686 fi
12687 if test -z "$ac_cv_prog_AR"; then
12688   ac_ct_AR=$AR
12689   # Extract the first word of "ar", so it can be a program name with args.
12690 set dummy ar; ac_word=$2
12691 echo "$as_me:$LINENO: checking for $ac_word" >&5
12692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12693 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12694   echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696   if test -n "$ac_ct_AR"; then
12697   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12698 else
12699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12700 for as_dir in $PATH
12701 do
12702   IFS=$as_save_IFS
12703   test -z "$as_dir" && as_dir=.
12704   for ac_exec_ext in '' $ac_executable_extensions; do
12705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12706     ac_cv_prog_ac_ct_AR="ar"
12707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12708     break 2
12709   fi
12710 done
12711 done
12712
12713   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
12714 fi
12715 fi
12716 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12717 if test -n "$ac_ct_AR"; then
12718   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12719 echo "${ECHO_T}$ac_ct_AR" >&6
12720 else
12721   echo "$as_me:$LINENO: result: no" >&5
12722 echo "${ECHO_T}no" >&6
12723 fi
12724
12725   AR=$ac_ct_AR
12726 else
12727   AR="$ac_cv_prog_AR"
12728 fi
12729
12730 if test -n "$ac_tool_prefix"; then
12731   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12733 echo "$as_me:$LINENO: checking for $ac_word" >&5
12734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12735 if test "${ac_cv_prog_RANLIB+set}" = set; then
12736   echo $ECHO_N "(cached) $ECHO_C" >&6
12737 else
12738   if test -n "$RANLIB"; then
12739   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12740 else
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12743 do
12744   IFS=$as_save_IFS
12745   test -z "$as_dir" && as_dir=.
12746   for ac_exec_ext in '' $ac_executable_extensions; do
12747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12748     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12750     break 2
12751   fi
12752 done
12753 done
12754
12755 fi
12756 fi
12757 RANLIB=$ac_cv_prog_RANLIB
12758 if test -n "$RANLIB"; then
12759   echo "$as_me:$LINENO: result: $RANLIB" >&5
12760 echo "${ECHO_T}$RANLIB" >&6
12761 else
12762   echo "$as_me:$LINENO: result: no" >&5
12763 echo "${ECHO_T}no" >&6
12764 fi
12765
12766 fi
12767 if test -z "$ac_cv_prog_RANLIB"; then
12768   ac_ct_RANLIB=$RANLIB
12769   # Extract the first word of "ranlib", so it can be a program name with args.
12770 set dummy ranlib; ac_word=$2
12771 echo "$as_me:$LINENO: checking for $ac_word" >&5
12772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12773 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12774   echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776   if test -n "$ac_ct_RANLIB"; then
12777   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12778 else
12779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780 for as_dir in $PATH
12781 do
12782   IFS=$as_save_IFS
12783   test -z "$as_dir" && as_dir=.
12784   for ac_exec_ext in '' $ac_executable_extensions; do
12785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12786     ac_cv_prog_ac_ct_RANLIB="ranlib"
12787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12788     break 2
12789   fi
12790 done
12791 done
12792
12793   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12794 fi
12795 fi
12796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12797 if test -n "$ac_ct_RANLIB"; then
12798   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12799 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12800 else
12801   echo "$as_me:$LINENO: result: no" >&5
12802 echo "${ECHO_T}no" >&6
12803 fi
12804
12805   RANLIB=$ac_ct_RANLIB
12806 else
12807   RANLIB="$ac_cv_prog_RANLIB"
12808 fi
12809
12810 if test -n "$ac_tool_prefix"; then
12811   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12812 set dummy ${ac_tool_prefix}strip; ac_word=$2
12813 echo "$as_me:$LINENO: checking for $ac_word" >&5
12814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12815 if test "${ac_cv_prog_STRIP+set}" = set; then
12816   echo $ECHO_N "(cached) $ECHO_C" >&6
12817 else
12818   if test -n "$STRIP"; then
12819   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12820 else
12821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $PATH
12823 do
12824   IFS=$as_save_IFS
12825   test -z "$as_dir" && as_dir=.
12826   for ac_exec_ext in '' $ac_executable_extensions; do
12827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12828     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12830     break 2
12831   fi
12832 done
12833 done
12834
12835 fi
12836 fi
12837 STRIP=$ac_cv_prog_STRIP
12838 if test -n "$STRIP"; then
12839   echo "$as_me:$LINENO: result: $STRIP" >&5
12840 echo "${ECHO_T}$STRIP" >&6
12841 else
12842   echo "$as_me:$LINENO: result: no" >&5
12843 echo "${ECHO_T}no" >&6
12844 fi
12845
12846 fi
12847 if test -z "$ac_cv_prog_STRIP"; then
12848   ac_ct_STRIP=$STRIP
12849   # Extract the first word of "strip", so it can be a program name with args.
12850 set dummy strip; ac_word=$2
12851 echo "$as_me:$LINENO: checking for $ac_word" >&5
12852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12853 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12854   echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856   if test -n "$ac_ct_STRIP"; then
12857   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12858 else
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12861 do
12862   IFS=$as_save_IFS
12863   test -z "$as_dir" && as_dir=.
12864   for ac_exec_ext in '' $ac_executable_extensions; do
12865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12866     ac_cv_prog_ac_ct_STRIP="strip"
12867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12868     break 2
12869   fi
12870 done
12871 done
12872
12873   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12874 fi
12875 fi
12876 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12877 if test -n "$ac_ct_STRIP"; then
12878   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12879 echo "${ECHO_T}$ac_ct_STRIP" >&6
12880 else
12881   echo "$as_me:$LINENO: result: no" >&5
12882 echo "${ECHO_T}no" >&6
12883 fi
12884
12885   STRIP=$ac_ct_STRIP
12886 else
12887   STRIP="$ac_cv_prog_STRIP"
12888 fi
12889
12890
12891 old_CC="$CC"
12892 old_CFLAGS="$CFLAGS"
12893
12894 # Set sane defaults for various variables
12895 test -z "$AR" && AR=ar
12896 test -z "$AR_FLAGS" && AR_FLAGS=cru
12897 test -z "$AS" && AS=as
12898 test -z "$CC" && CC=cc
12899 test -z "$LTCC" && LTCC=$CC
12900 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12901 test -z "$DLLTOOL" && DLLTOOL=dlltool
12902 test -z "$LD" && LD=ld
12903 test -z "$LN_S" && LN_S="ln -s"
12904 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12905 test -z "$NM" && NM=nm
12906 test -z "$SED" && SED=sed
12907 test -z "$OBJDUMP" && OBJDUMP=objdump
12908 test -z "$RANLIB" && RANLIB=:
12909 test -z "$STRIP" && STRIP=:
12910 test -z "$ac_objext" && ac_objext=o
12911
12912 # Determine commands to create old-style static archives.
12913 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12914 old_postinstall_cmds='chmod 644 $oldlib'
12915 old_postuninstall_cmds=
12916
12917 if test -n "$RANLIB"; then
12918   case $host_os in
12919   openbsd*)
12920     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12921     ;;
12922   *)
12923     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12924     ;;
12925   esac
12926   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12927 fi
12928
12929 for cc_temp in $compiler""; do
12930   case $cc_temp in
12931     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12932     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12933     \-*) ;;
12934     *) break;;
12935   esac
12936 done
12937 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12938
12939
12940 # Only perform the check for file, if the check method requires it
12941 case $deplibs_check_method in
12942 file_magic*)
12943   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12944     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12945 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12946 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12947   echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949   case $MAGIC_CMD in
12950 [\\/*] |  ?:[\\/]*)
12951   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12952   ;;
12953 *)
12954   lt_save_MAGIC_CMD="$MAGIC_CMD"
12955   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12956   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12957   for ac_dir in $ac_dummy; do
12958     IFS="$lt_save_ifs"
12959     test -z "$ac_dir" && ac_dir=.
12960     if test -f $ac_dir/${ac_tool_prefix}file; then
12961       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12962       if test -n "$file_magic_test_file"; then
12963         case $deplibs_check_method in
12964         "file_magic "*)
12965           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12966           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12967           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12968             $EGREP "$file_magic_regex" > /dev/null; then
12969             :
12970           else
12971             cat <<EOF 1>&2
12972
12973 *** Warning: the command libtool uses to detect shared libraries,
12974 *** $file_magic_cmd, produces output that libtool cannot recognize.
12975 *** The result is that libtool may fail to recognize shared libraries
12976 *** as such.  This will affect the creation of libtool libraries that
12977 *** depend on shared libraries, but programs linked with such libtool
12978 *** libraries will work regardless of this problem.  Nevertheless, you
12979 *** may want to report the problem to your system manager and/or to
12980 *** bug-libtool@gnu.org
12981
12982 EOF
12983           fi ;;
12984         esac
12985       fi
12986       break
12987     fi
12988   done
12989   IFS="$lt_save_ifs"
12990   MAGIC_CMD="$lt_save_MAGIC_CMD"
12991   ;;
12992 esac
12993 fi
12994
12995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12996 if test -n "$MAGIC_CMD"; then
12997   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12998 echo "${ECHO_T}$MAGIC_CMD" >&6
12999 else
13000   echo "$as_me:$LINENO: result: no" >&5
13001 echo "${ECHO_T}no" >&6
13002 fi
13003
13004 if test -z "$lt_cv_path_MAGIC_CMD"; then
13005   if test -n "$ac_tool_prefix"; then
13006     echo "$as_me:$LINENO: checking for file" >&5
13007 echo $ECHO_N "checking for file... $ECHO_C" >&6
13008 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13009   echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011   case $MAGIC_CMD in
13012 [\\/*] |  ?:[\\/]*)
13013   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13014   ;;
13015 *)
13016   lt_save_MAGIC_CMD="$MAGIC_CMD"
13017   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13018   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13019   for ac_dir in $ac_dummy; do
13020     IFS="$lt_save_ifs"
13021     test -z "$ac_dir" && ac_dir=.
13022     if test -f $ac_dir/file; then
13023       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13024       if test -n "$file_magic_test_file"; then
13025         case $deplibs_check_method in
13026         "file_magic "*)
13027           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13028           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13029           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13030             $EGREP "$file_magic_regex" > /dev/null; then
13031             :
13032           else
13033             cat <<EOF 1>&2
13034
13035 *** Warning: the command libtool uses to detect shared libraries,
13036 *** $file_magic_cmd, produces output that libtool cannot recognize.
13037 *** The result is that libtool may fail to recognize shared libraries
13038 *** as such.  This will affect the creation of libtool libraries that
13039 *** depend on shared libraries, but programs linked with such libtool
13040 *** libraries will work regardless of this problem.  Nevertheless, you
13041 *** may want to report the problem to your system manager and/or to
13042 *** bug-libtool@gnu.org
13043
13044 EOF
13045           fi ;;
13046         esac
13047       fi
13048       break
13049     fi
13050   done
13051   IFS="$lt_save_ifs"
13052   MAGIC_CMD="$lt_save_MAGIC_CMD"
13053   ;;
13054 esac
13055 fi
13056
13057 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13058 if test -n "$MAGIC_CMD"; then
13059   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13060 echo "${ECHO_T}$MAGIC_CMD" >&6
13061 else
13062   echo "$as_me:$LINENO: result: no" >&5
13063 echo "${ECHO_T}no" >&6
13064 fi
13065
13066   else
13067     MAGIC_CMD=:
13068   fi
13069 fi
13070
13071   fi
13072   ;;
13073 esac
13074
13075 enable_dlopen=no
13076 enable_win32_dll=no
13077
13078 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
13079 if test "${enable_libtool_lock+set}" = set; then
13080   enableval="$enable_libtool_lock"
13081
13082 fi;
13083 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13084
13085
13086 # Check whether --with-pic or --without-pic was given.
13087 if test "${with_pic+set}" = set; then
13088   withval="$with_pic"
13089   pic_mode="$withval"
13090 else
13091   pic_mode=default
13092 fi;
13093 test -z "$pic_mode" && pic_mode=default
13094
13095 # Use C for the default configuration in the libtool script
13096 tagname=
13097 lt_save_CC="$CC"
13098 ac_ext=c
13099 ac_cpp='$CPP $CPPFLAGS'
13100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13103
13104
13105 # Source file extension for C test sources.
13106 ac_ext=c
13107
13108 # Object file extension for compiled C test sources.
13109 objext=o
13110 objext=$objext
13111
13112 # Code to be used in simple compile tests
13113 lt_simple_compile_test_code="int some_variable = 0;\n"
13114
13115 # Code to be used in simple link tests
13116 lt_simple_link_test_code='int main(){return(0);}\n'
13117
13118
13119 # If no C compiler was specified, use CC.
13120 LTCC=${LTCC-"$CC"}
13121
13122 # If no C compiler flags were specified, use CFLAGS.
13123 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13124
13125 # Allow CC to be a program name with arguments.
13126 compiler=$CC
13127
13128
13129 # save warnings/boilerplate of simple test code
13130 ac_outfile=conftest.$ac_objext
13131 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13132 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13133 _lt_compiler_boilerplate=`cat conftest.err`
13134 $rm conftest*
13135
13136 ac_outfile=conftest.$ac_objext
13137 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13138 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13139 _lt_linker_boilerplate=`cat conftest.err`
13140 $rm conftest*
13141
13142
13143
13144 lt_prog_compiler_no_builtin_flag=
13145
13146 if test "$GCC" = yes; then
13147   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13148
13149
13150 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13151 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
13152 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13153   echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155   lt_cv_prog_compiler_rtti_exceptions=no
13156   ac_outfile=conftest.$ac_objext
13157    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13158    lt_compiler_flag="-fno-rtti -fno-exceptions"
13159    # Insert the option either (1) after the last *FLAGS variable, or
13160    # (2) before a word containing "conftest.", or (3) at the end.
13161    # Note that $ac_compile itself does not contain backslashes and begins
13162    # with a dollar sign (not a hyphen), so the echo should work correctly.
13163    # The option is referenced via a variable to avoid confusing sed.
13164    lt_compile=`echo "$ac_compile" | $SED \
13165    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13166    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13167    -e 's:$: $lt_compiler_flag:'`
13168    (eval echo "\"\$as_me:13168: $lt_compile\"" >&5)
13169    (eval "$lt_compile" 2>conftest.err)
13170    ac_status=$?
13171    cat conftest.err >&5
13172    echo "$as_me:13172: \$? = $ac_status" >&5
13173    if (exit $ac_status) && test -s "$ac_outfile"; then
13174      # The compiler can only warn and ignore the option if not recognized
13175      # So say no if there are warnings other than the usual output.
13176      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13177      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13178      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13179        lt_cv_prog_compiler_rtti_exceptions=yes
13180      fi
13181    fi
13182    $rm conftest*
13183
13184 fi
13185 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13186 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
13187
13188 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13189     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13190 else
13191     :
13192 fi
13193
13194 fi
13195
13196 lt_prog_compiler_wl=
13197 lt_prog_compiler_pic=
13198 lt_prog_compiler_static=
13199
13200 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13201 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13202
13203   if test "$GCC" = yes; then
13204     lt_prog_compiler_wl='-Wl,'
13205     lt_prog_compiler_static='-static'
13206
13207     case $host_os in
13208       aix*)
13209       # All AIX code is PIC.
13210       if test "$host_cpu" = ia64; then
13211         # AIX 5 now supports IA64 processor
13212         lt_prog_compiler_static='-Bstatic'
13213       fi
13214       ;;
13215
13216     amigaos*)
13217       # FIXME: we need at least 68020 code to build shared libraries, but
13218       # adding the `-m68020' flag to GCC prevents building anything better,
13219       # like `-m68040'.
13220       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13221       ;;
13222
13223     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13224       # PIC is the default for these OSes.
13225       ;;
13226
13227     mingw* | pw32* | os2*)
13228       # This hack is so that the source file can tell whether it is being
13229       # built for inclusion in a dll (and should export symbols for example).
13230       lt_prog_compiler_pic='-DDLL_EXPORT'
13231       ;;
13232
13233     darwin* | rhapsody*)
13234       # PIC is the default on this platform
13235       # Common symbols not allowed in MH_DYLIB files
13236       lt_prog_compiler_pic='-fno-common'
13237       ;;
13238
13239     interix3*)
13240       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13241       # Instead, we relocate shared libraries at runtime.
13242       ;;
13243
13244     msdosdjgpp*)
13245       # Just because we use GCC doesn't mean we suddenly get shared libraries
13246       # on systems that don't support them.
13247       lt_prog_compiler_can_build_shared=no
13248       enable_shared=no
13249       ;;
13250
13251     sysv4*MP*)
13252       if test -d /usr/nec; then
13253         lt_prog_compiler_pic=-Kconform_pic
13254       fi
13255       ;;
13256
13257     hpux*)
13258       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13259       # not for PA HP-UX.
13260       case $host_cpu in
13261       hppa*64*|ia64*)
13262         # +Z the default
13263         ;;
13264       *)
13265         lt_prog_compiler_pic='-fPIC'
13266         ;;
13267       esac
13268       ;;
13269
13270     *)
13271       lt_prog_compiler_pic='-fPIC'
13272       ;;
13273     esac
13274   else
13275     # PORTME Check for flag to pass linker flags through the system compiler.
13276     case $host_os in
13277     aix*)
13278       lt_prog_compiler_wl='-Wl,'
13279       if test "$host_cpu" = ia64; then
13280         # AIX 5 now supports IA64 processor
13281         lt_prog_compiler_static='-Bstatic'
13282       else
13283         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13284       fi
13285       ;;
13286       darwin*)
13287         # PIC is the default on this platform
13288         # Common symbols not allowed in MH_DYLIB files
13289        case $cc_basename in
13290          xlc*)
13291          lt_prog_compiler_pic='-qnocommon'
13292          lt_prog_compiler_wl='-Wl,'
13293          ;;
13294        esac
13295        ;;
13296
13297     mingw* | pw32* | os2*)
13298       # This hack is so that the source file can tell whether it is being
13299       # built for inclusion in a dll (and should export symbols for example).
13300       lt_prog_compiler_pic='-DDLL_EXPORT'
13301       ;;
13302
13303     hpux9* | hpux10* | hpux11*)
13304       lt_prog_compiler_wl='-Wl,'
13305       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13306       # not for PA HP-UX.
13307       case $host_cpu in
13308       hppa*64*|ia64*)
13309         # +Z the default
13310         ;;
13311       *)
13312         lt_prog_compiler_pic='+Z'
13313         ;;
13314       esac
13315       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13316       lt_prog_compiler_static='${wl}-a ${wl}archive'
13317       ;;
13318
13319     irix5* | irix6* | nonstopux*)
13320       lt_prog_compiler_wl='-Wl,'
13321       # PIC (with -KPIC) is the default.
13322       lt_prog_compiler_static='-non_shared'
13323       ;;
13324
13325     newsos6)
13326       lt_prog_compiler_pic='-KPIC'
13327       lt_prog_compiler_static='-Bstatic'
13328       ;;
13329
13330     linux*)
13331       case $cc_basename in
13332       icc* | ecc*)
13333         lt_prog_compiler_wl='-Wl,'
13334         lt_prog_compiler_pic='-KPIC'
13335         lt_prog_compiler_static='-static'
13336         ;;
13337       pgcc* | pgf77* | pgf90* | pgf95*)
13338         # Portland Group compilers (*not* the Pentium gcc compiler,
13339         # which looks to be a dead project)
13340         lt_prog_compiler_wl='-Wl,'
13341         lt_prog_compiler_pic='-fpic'
13342         lt_prog_compiler_static='-Bstatic'
13343         ;;
13344       ccc*)
13345         lt_prog_compiler_wl='-Wl,'
13346         # All Alpha code is PIC.
13347         lt_prog_compiler_static='-non_shared'
13348         ;;
13349       esac
13350       ;;
13351
13352     osf3* | osf4* | osf5*)
13353       lt_prog_compiler_wl='-Wl,'
13354       # All OSF/1 code is PIC.
13355       lt_prog_compiler_static='-non_shared'
13356       ;;
13357
13358     solaris*)
13359       lt_prog_compiler_pic='-KPIC'
13360       lt_prog_compiler_static='-Bstatic'
13361       case $cc_basename in
13362       f77* | f90* | f95*)
13363         lt_prog_compiler_wl='-Qoption ld ';;
13364       *)
13365         lt_prog_compiler_wl='-Wl,';;
13366       esac
13367       ;;
13368
13369     sunos4*)
13370       lt_prog_compiler_wl='-Qoption ld '
13371       lt_prog_compiler_pic='-PIC'
13372       lt_prog_compiler_static='-Bstatic'
13373       ;;
13374
13375     sysv4 | sysv4.2uw2* | sysv4.3*)
13376       lt_prog_compiler_wl='-Wl,'
13377       lt_prog_compiler_pic='-KPIC'
13378       lt_prog_compiler_static='-Bstatic'
13379       ;;
13380
13381     sysv4*MP*)
13382       if test -d /usr/nec ;then
13383         lt_prog_compiler_pic='-Kconform_pic'
13384         lt_prog_compiler_static='-Bstatic'
13385       fi
13386       ;;
13387
13388     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13389       lt_prog_compiler_wl='-Wl,'
13390       lt_prog_compiler_pic='-KPIC'
13391       lt_prog_compiler_static='-Bstatic'
13392       ;;
13393
13394     unicos*)
13395       lt_prog_compiler_wl='-Wl,'
13396       lt_prog_compiler_can_build_shared=no
13397       ;;
13398
13399     uts4*)
13400       lt_prog_compiler_pic='-pic'
13401       lt_prog_compiler_static='-Bstatic'
13402       ;;
13403
13404     *)
13405       lt_prog_compiler_can_build_shared=no
13406       ;;
13407     esac
13408   fi
13409
13410 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13411 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
13412
13413 #
13414 # Check to make sure the PIC flag actually works.
13415 #
13416 if test -n "$lt_prog_compiler_pic"; then
13417
13418 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13419 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
13420 if test "${lt_prog_compiler_pic_works+set}" = set; then
13421   echo $ECHO_N "(cached) $ECHO_C" >&6
13422 else
13423   lt_prog_compiler_pic_works=no
13424   ac_outfile=conftest.$ac_objext
13425    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13426    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13427    # Insert the option either (1) after the last *FLAGS variable, or
13428    # (2) before a word containing "conftest.", or (3) at the end.
13429    # Note that $ac_compile itself does not contain backslashes and begins
13430    # with a dollar sign (not a hyphen), so the echo should work correctly.
13431    # The option is referenced via a variable to avoid confusing sed.
13432    lt_compile=`echo "$ac_compile" | $SED \
13433    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13434    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13435    -e 's:$: $lt_compiler_flag:'`
13436    (eval echo "\"\$as_me:13436: $lt_compile\"" >&5)
13437    (eval "$lt_compile" 2>conftest.err)
13438    ac_status=$?
13439    cat conftest.err >&5
13440    echo "$as_me:13440: \$? = $ac_status" >&5
13441    if (exit $ac_status) && test -s "$ac_outfile"; then
13442      # The compiler can only warn and ignore the option if not recognized
13443      # So say no if there are warnings other than the usual output.
13444      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13445      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13446      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13447        lt_prog_compiler_pic_works=yes
13448      fi
13449    fi
13450    $rm conftest*
13451
13452 fi
13453 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13454 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
13455
13456 if test x"$lt_prog_compiler_pic_works" = xyes; then
13457     case $lt_prog_compiler_pic in
13458      "" | " "*) ;;
13459      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13460      esac
13461 else
13462     lt_prog_compiler_pic=
13463      lt_prog_compiler_can_build_shared=no
13464 fi
13465
13466 fi
13467 case $host_os in
13468   # For platforms which do not support PIC, -DPIC is meaningless:
13469   *djgpp*)
13470     lt_prog_compiler_pic=
13471     ;;
13472   *)
13473     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13474     ;;
13475 esac
13476
13477 #
13478 # Check to make sure the static flag actually works.
13479 #
13480 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13481 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13482 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13483 if test "${lt_prog_compiler_static_works+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486   lt_prog_compiler_static_works=no
13487    save_LDFLAGS="$LDFLAGS"
13488    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13489    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13490    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13491      # The linker can only warn and ignore the option if not recognized
13492      # So say no if there are warnings
13493      if test -s conftest.err; then
13494        # Append any errors to the config.log.
13495        cat conftest.err 1>&5
13496        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13497        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13498        if diff conftest.exp conftest.er2 >/dev/null; then
13499          lt_prog_compiler_static_works=yes
13500        fi
13501      else
13502        lt_prog_compiler_static_works=yes
13503      fi
13504    fi
13505    $rm conftest*
13506    LDFLAGS="$save_LDFLAGS"
13507
13508 fi
13509 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13510 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
13511
13512 if test x"$lt_prog_compiler_static_works" = xyes; then
13513     :
13514 else
13515     lt_prog_compiler_static=
13516 fi
13517
13518
13519 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13521 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13522   echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524   lt_cv_prog_compiler_c_o=no
13525    $rm -r conftest 2>/dev/null
13526    mkdir conftest
13527    cd conftest
13528    mkdir out
13529    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13530
13531    lt_compiler_flag="-o out/conftest2.$ac_objext"
13532    # Insert the option either (1) after the last *FLAGS variable, or
13533    # (2) before a word containing "conftest.", or (3) at the end.
13534    # Note that $ac_compile itself does not contain backslashes and begins
13535    # with a dollar sign (not a hyphen), so the echo should work correctly.
13536    lt_compile=`echo "$ac_compile" | $SED \
13537    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13538    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13539    -e 's:$: $lt_compiler_flag:'`
13540    (eval echo "\"\$as_me:13540: $lt_compile\"" >&5)
13541    (eval "$lt_compile" 2>out/conftest.err)
13542    ac_status=$?
13543    cat out/conftest.err >&5
13544    echo "$as_me:13544: \$? = $ac_status" >&5
13545    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13546    then
13547      # The compiler can only warn and ignore the option if not recognized
13548      # So say no if there are warnings
13549      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13550      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13551      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13552        lt_cv_prog_compiler_c_o=yes
13553      fi
13554    fi
13555    chmod u+w . 2>&5
13556    $rm conftest*
13557    # SGI C++ compiler will create directory out/ii_files/ for
13558    # template instantiation
13559    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13560    $rm out/* && rmdir out
13561    cd ..
13562    rmdir conftest
13563    $rm conftest*
13564
13565 fi
13566 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
13568
13569
13570 hard_links="nottested"
13571 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13572   # do not overwrite the value of need_locks provided by the user
13573   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13574 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13575   hard_links=yes
13576   $rm conftest*
13577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13578   touch conftest.a
13579   ln conftest.a conftest.b 2>&5 || hard_links=no
13580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13581   echo "$as_me:$LINENO: result: $hard_links" >&5
13582 echo "${ECHO_T}$hard_links" >&6
13583   if test "$hard_links" = no; then
13584     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13585 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13586     need_locks=warn
13587   fi
13588 else
13589   need_locks=no
13590 fi
13591
13592 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13594
13595   runpath_var=
13596   allow_undefined_flag=
13597   enable_shared_with_static_runtimes=no
13598   archive_cmds=
13599   archive_expsym_cmds=
13600   old_archive_From_new_cmds=
13601   old_archive_from_expsyms_cmds=
13602   export_dynamic_flag_spec=
13603   whole_archive_flag_spec=
13604   thread_safe_flag_spec=
13605   hardcode_libdir_flag_spec=
13606   hardcode_libdir_flag_spec_ld=
13607   hardcode_libdir_separator=
13608   hardcode_direct=no
13609   hardcode_minus_L=no
13610   hardcode_shlibpath_var=unsupported
13611   link_all_deplibs=unknown
13612   hardcode_automatic=no
13613   module_cmds=
13614   module_expsym_cmds=
13615   always_export_symbols=no
13616   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13617   # include_expsyms should be a list of space-separated symbols to be *always*
13618   # included in the symbol list
13619   include_expsyms=
13620   # exclude_expsyms can be an extended regexp of symbols to exclude
13621   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13622   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13623   # as well as any symbol that contains `d'.
13624   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13625   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13626   # platforms (ab)use it in PIC code, but their linkers get confused if
13627   # the symbol is explicitly referenced.  Since portable code cannot
13628   # rely on this symbol name, it's probably fine to never include it in
13629   # preloaded symbol tables.
13630   extract_expsyms_cmds=
13631   # Just being paranoid about ensuring that cc_basename is set.
13632   for cc_temp in $compiler""; do
13633   case $cc_temp in
13634     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13635     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13636     \-*) ;;
13637     *) break;;
13638   esac
13639 done
13640 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13641
13642   case $host_os in
13643   cygwin* | mingw* | pw32*)
13644     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13645     # When not using gcc, we currently assume that we are using
13646     # Microsoft Visual C++.
13647     if test "$GCC" != yes; then
13648       with_gnu_ld=no
13649     fi
13650     ;;
13651   interix*)
13652     # we just hope/assume this is gcc and not c89 (= MSVC++)
13653     with_gnu_ld=yes
13654     ;;
13655   openbsd*)
13656     with_gnu_ld=no
13657     ;;
13658   esac
13659
13660   ld_shlibs=yes
13661   if test "$with_gnu_ld" = yes; then
13662     # If archive_cmds runs LD, not CC, wlarc should be empty
13663     wlarc='${wl}'
13664
13665     # Set some defaults for GNU ld with shared library support. These
13666     # are reset later if shared libraries are not supported. Putting them
13667     # here allows them to be overridden if necessary.
13668     runpath_var=LD_RUN_PATH
13669     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13670     export_dynamic_flag_spec='${wl}--export-dynamic'
13671     # ancient GNU ld didn't support --whole-archive et. al.
13672     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13673         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13674       else
13675         whole_archive_flag_spec=
13676     fi
13677     supports_anon_versioning=no
13678     case `$LD -v 2>/dev/null` in
13679       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13680       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13681       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13682       *\ 2.11.*) ;; # other 2.11 versions
13683       *) supports_anon_versioning=yes ;;
13684     esac
13685
13686     # See if GNU ld supports shared libraries.
13687     case $host_os in
13688     aix3* | aix4* | aix5*)
13689       # On AIX/PPC, the GNU linker is very broken
13690       if test "$host_cpu" != ia64; then
13691         ld_shlibs=no
13692         cat <<EOF 1>&2
13693
13694 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13695 *** to be unable to reliably create shared libraries on AIX.
13696 *** Therefore, libtool is disabling shared libraries support.  If you
13697 *** really care for shared libraries, you may want to modify your PATH
13698 *** so that a non-GNU linker is found, and then restart.
13699
13700 EOF
13701       fi
13702       ;;
13703
13704     amigaos*)
13705       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)'
13706       hardcode_libdir_flag_spec='-L$libdir'
13707       hardcode_minus_L=yes
13708
13709       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13710       # that the semantics of dynamic libraries on AmigaOS, at least up
13711       # to version 4, is to share data among multiple programs linked
13712       # with the same dynamic library.  Since this doesn't match the
13713       # behavior of shared libraries on other platforms, we can't use
13714       # them.
13715       ld_shlibs=no
13716       ;;
13717
13718     beos*)
13719       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13720         allow_undefined_flag=unsupported
13721         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13722         # support --undefined.  This deserves some investigation.  FIXME
13723         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13724       else
13725         ld_shlibs=no
13726       fi
13727       ;;
13728
13729     cygwin* | mingw* | pw32*)
13730       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13731       # as there is no search path for DLLs.
13732       hardcode_libdir_flag_spec='-L$libdir'
13733       allow_undefined_flag=unsupported
13734       always_export_symbols=no
13735       enable_shared_with_static_runtimes=yes
13736       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13737
13738       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13739         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13740         # If the export-symbols file already is a .def file (1st line
13741         # is EXPORTS), use it as is; otherwise, prepend...
13742         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13743           cp $export_symbols $output_objdir/$soname.def;
13744         else
13745           echo EXPORTS > $output_objdir/$soname.def;
13746           cat $export_symbols >> $output_objdir/$soname.def;
13747         fi~
13748         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13749       else
13750         ld_shlibs=no
13751       fi
13752       ;;
13753
13754     interix3*)
13755       hardcode_direct=no
13756       hardcode_shlibpath_var=no
13757       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13758       export_dynamic_flag_spec='${wl}-E'
13759       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13760       # Instead, shared libraries are loaded at an image base (0x10000000 by
13761       # default) and relocated if they conflict, which is a slow very memory
13762       # consuming and fragmenting process.  To avoid this, we pick a random,
13763       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13764       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13765       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13766       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'
13767       ;;
13768
13769     linux*)
13770       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13771         tmp_addflag=
13772         case $cc_basename,$host_cpu in
13773         pgcc*)                          # Portland Group C compiler
13774           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'
13775           tmp_addflag=' $pic_flag'
13776           ;;
13777         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13778           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'
13779           tmp_addflag=' $pic_flag -Mnomain' ;;
13780         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13781           tmp_addflag=' -i_dynamic' ;;
13782         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13783           tmp_addflag=' -i_dynamic -nofor_main' ;;
13784         ifc* | ifort*)                  # Intel Fortran compiler
13785           tmp_addflag=' -nofor_main' ;;
13786         esac
13787         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13788
13789         if test $supports_anon_versioning = yes; then
13790           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13791   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13792   $echo "local: *; };" >> $output_objdir/$libname.ver~
13793           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13794         fi
13795       else
13796         ld_shlibs=no
13797       fi
13798       ;;
13799
13800     netbsd*)
13801       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13802         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13803         wlarc=
13804       else
13805         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13806         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13807       fi
13808       ;;
13809
13810     solaris*)
13811       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13812         ld_shlibs=no
13813         cat <<EOF 1>&2
13814
13815 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13816 *** create shared libraries on Solaris systems.  Therefore, libtool
13817 *** is disabling shared libraries support.  We urge you to upgrade GNU
13818 *** binutils to release 2.9.1 or newer.  Another option is to modify
13819 *** your PATH or compiler configuration so that the native linker is
13820 *** used, and then restart.
13821
13822 EOF
13823       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13824         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13825         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13826       else
13827         ld_shlibs=no
13828       fi
13829       ;;
13830
13831     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13832       case `$LD -v 2>&1` in
13833         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13834         ld_shlibs=no
13835         cat <<_LT_EOF 1>&2
13836
13837 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13838 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13839 *** is disabling shared libraries support.  We urge you to upgrade GNU
13840 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13841 *** your PATH or compiler configuration so that the native linker is
13842 *** used, and then restart.
13843
13844 _LT_EOF
13845         ;;
13846         *)
13847           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13848             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13849             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13850             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13851           else
13852             ld_shlibs=no
13853           fi
13854         ;;
13855       esac
13856       ;;
13857
13858     sunos4*)
13859       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13860       wlarc=
13861       hardcode_direct=yes
13862       hardcode_shlibpath_var=no
13863       ;;
13864
13865     *)
13866       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13867         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13868         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13869       else
13870         ld_shlibs=no
13871       fi
13872       ;;
13873     esac
13874
13875     if test "$ld_shlibs" = no; then
13876       runpath_var=
13877       hardcode_libdir_flag_spec=
13878       export_dynamic_flag_spec=
13879       whole_archive_flag_spec=
13880     fi
13881   else
13882     # PORTME fill in a description of your system's linker (not GNU ld)
13883     case $host_os in
13884     aix3*)
13885       allow_undefined_flag=unsupported
13886       always_export_symbols=yes
13887       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'
13888       # Note: this linker hardcodes the directories in LIBPATH if there
13889       # are no directories specified by -L.
13890       hardcode_minus_L=yes
13891       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13892         # Neither direct hardcoding nor static linking is supported with a
13893         # broken collect2.
13894         hardcode_direct=unsupported
13895       fi
13896       ;;
13897
13898     aix4* | aix5*)
13899       if test "$host_cpu" = ia64; then
13900         # On IA64, the linker does run time linking by default, so we don't
13901         # have to do anything special.
13902         aix_use_runtimelinking=no
13903         exp_sym_flag='-Bexport'
13904         no_entry_flag=""
13905       else
13906         # If we're using GNU nm, then we don't want the "-C" option.
13907         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13908         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13909           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'
13910         else
13911           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'
13912         fi
13913         aix_use_runtimelinking=no
13914
13915         # Test if we are trying to use run time linking or normal
13916         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13917         # need to do runtime linking.
13918         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13919           for ld_flag in $LDFLAGS; do
13920           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13921             aix_use_runtimelinking=yes
13922             break
13923           fi
13924           done
13925           ;;
13926         esac
13927
13928         exp_sym_flag='-bexport'
13929         no_entry_flag='-bnoentry'
13930       fi
13931
13932       # When large executables or shared objects are built, AIX ld can
13933       # have problems creating the table of contents.  If linking a library
13934       # or program results in "error TOC overflow" add -mminimal-toc to
13935       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13936       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13937
13938       archive_cmds=''
13939       hardcode_direct=yes
13940       hardcode_libdir_separator=':'
13941       link_all_deplibs=yes
13942
13943       if test "$GCC" = yes; then
13944         case $host_os in aix4.[012]|aix4.[012].*)
13945         # We only want to do this on AIX 4.2 and lower, the check
13946         # below for broken collect2 doesn't work under 4.3+
13947           collect2name=`${CC} -print-prog-name=collect2`
13948           if test -f "$collect2name" && \
13949            strings "$collect2name" | grep resolve_lib_name >/dev/null
13950           then
13951           # We have reworked collect2
13952           hardcode_direct=yes
13953           else
13954           # We have old collect2
13955           hardcode_direct=unsupported
13956           # It fails to find uninstalled libraries when the uninstalled
13957           # path is not listed in the libpath.  Setting hardcode_minus_L
13958           # to unsupported forces relinking
13959           hardcode_minus_L=yes
13960           hardcode_libdir_flag_spec='-L$libdir'
13961           hardcode_libdir_separator=
13962           fi
13963           ;;
13964         esac
13965         shared_flag='-shared'
13966         if test "$aix_use_runtimelinking" = yes; then
13967           shared_flag="$shared_flag "'${wl}-G'
13968         fi
13969       else
13970         # not using gcc
13971         if test "$host_cpu" = ia64; then
13972         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13973         # chokes on -Wl,-G. The following line is correct:
13974           shared_flag='-G'
13975         else
13976           if test "$aix_use_runtimelinking" = yes; then
13977             shared_flag='${wl}-G'
13978           else
13979             shared_flag='${wl}-bM:SRE'
13980           fi
13981         fi
13982       fi
13983
13984       # It seems that -bexpall does not export symbols beginning with
13985       # underscore (_), so it is better to generate a list of symbols to export.
13986       always_export_symbols=yes
13987       if test "$aix_use_runtimelinking" = yes; then
13988         # Warning - without using the other runtime loading flags (-brtl),
13989         # -berok will link without error, but may produce a broken library.
13990         allow_undefined_flag='-berok'
13991        # Determine the default libpath from the value encoded in an empty executable.
13992        cat >conftest.$ac_ext <<_ACEOF
13993 /* confdefs.h.  */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h.  */
13998
13999 int
14000 main ()
14001 {
14002
14003   ;
14004   return 0;
14005 }
14006 _ACEOF
14007 rm -f conftest.$ac_objext conftest$ac_exeext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14009   (eval $ac_link) 2>conftest.er1
14010   ac_status=$?
14011   grep -v '^ *+' conftest.er1 >conftest.err
14012   rm -f conftest.er1
14013   cat conftest.err >&5
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); } &&
14016          { ac_try='test -z "$ac_c_werror_flag"
14017                          || test ! -s conftest.err'
14018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019   (eval $ac_try) 2>&5
14020   ac_status=$?
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); }; } &&
14023          { ac_try='test -s conftest$ac_exeext'
14024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025   (eval $ac_try) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); }; }; then
14029
14030 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14031 }'`
14032 # Check for a 64-bit object if we didn't find anything.
14033 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; }
14034 }'`; fi
14035 else
14036   echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14038
14039 fi
14040 rm -f conftest.err conftest.$ac_objext \
14041       conftest$ac_exeext conftest.$ac_ext
14042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14043
14044        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14045         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"
14046        else
14047         if test "$host_cpu" = ia64; then
14048           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14049           allow_undefined_flag="-z nodefs"
14050           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"
14051         else
14052          # Determine the default libpath from the value encoded in an empty executable.
14053          cat >conftest.$ac_ext <<_ACEOF
14054 /* confdefs.h.  */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h.  */
14059
14060 int
14061 main ()
14062 {
14063
14064   ;
14065   return 0;
14066 }
14067 _ACEOF
14068 rm -f conftest.$ac_objext conftest$ac_exeext
14069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14070   (eval $ac_link) 2>conftest.er1
14071   ac_status=$?
14072   grep -v '^ *+' conftest.er1 >conftest.err
14073   rm -f conftest.er1
14074   cat conftest.err >&5
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); } &&
14077          { ac_try='test -z "$ac_c_werror_flag"
14078                          || test ! -s conftest.err'
14079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080   (eval $ac_try) 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); }; } &&
14084          { ac_try='test -s conftest$ac_exeext'
14085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086   (eval $ac_try) 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); }; }; then
14090
14091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14092 }'`
14093 # Check for a 64-bit object if we didn't find anything.
14094 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; }
14095 }'`; fi
14096 else
14097   echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100 fi
14101 rm -f conftest.err conftest.$ac_objext \
14102       conftest$ac_exeext conftest.$ac_ext
14103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14104
14105          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14106           # Warning - without using the other run time loading flags,
14107           # -berok will link without error, but may produce a broken library.
14108           no_undefined_flag=' ${wl}-bernotok'
14109           allow_undefined_flag=' ${wl}-berok'
14110           # Exported symbols can be pulled into shared objects from archives
14111           whole_archive_flag_spec='$convenience'
14112           archive_cmds_need_lc=yes
14113           # This is similar to how AIX traditionally builds its shared libraries.
14114           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'
14115         fi
14116       fi
14117       ;;
14118
14119     amigaos*)
14120       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)'
14121       hardcode_libdir_flag_spec='-L$libdir'
14122       hardcode_minus_L=yes
14123       # see comment about different semantics on the GNU ld section
14124       ld_shlibs=no
14125       ;;
14126
14127     bsdi[45]*)
14128       export_dynamic_flag_spec=-rdynamic
14129       ;;
14130
14131     cygwin* | mingw* | pw32*)
14132       # When not using gcc, we currently assume that we are using
14133       # Microsoft Visual C++.
14134       # hardcode_libdir_flag_spec is actually meaningless, as there is
14135       # no search path for DLLs.
14136       hardcode_libdir_flag_spec=' '
14137       allow_undefined_flag=unsupported
14138       # Tell ltmain to make .lib files, not .a files.
14139       libext=lib
14140       # Tell ltmain to make .dll files, not .so files.
14141       shrext_cmds=".dll"
14142       # FIXME: Setting linknames here is a bad hack.
14143       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14144       # The linker will automatically build a .lib file if we build a DLL.
14145       old_archive_From_new_cmds='true'
14146       # FIXME: Should let the user specify the lib program.
14147       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14148       fix_srcfile_path='`cygpath -w "$srcfile"`'
14149       enable_shared_with_static_runtimes=yes
14150       ;;
14151
14152     darwin* | rhapsody*)
14153       case $host_os in
14154         rhapsody* | darwin1.[012])
14155          allow_undefined_flag='${wl}-undefined ${wl}suppress'
14156          ;;
14157        *) # Darwin 1.3 on
14158          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14159            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14160          else
14161            case ${MACOSX_DEPLOYMENT_TARGET} in
14162              10.[012])
14163                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14164                ;;
14165              10.*)
14166                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14167                ;;
14168            esac
14169          fi
14170          ;;
14171       esac
14172       archive_cmds_need_lc=no
14173       hardcode_direct=no
14174       hardcode_automatic=yes
14175       hardcode_shlibpath_var=unsupported
14176       whole_archive_flag_spec=''
14177       link_all_deplibs=yes
14178     if test "$GCC" = yes ; then
14179         output_verbose_link_cmd='echo'
14180         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14181       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14182       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14183       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}'
14184       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}'
14185     else
14186       case $cc_basename in
14187         xlc*)
14188          output_verbose_link_cmd='echo'
14189          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14190          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14191           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14192          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}'
14193           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}'
14194           ;;
14195        *)
14196          ld_shlibs=no
14197           ;;
14198       esac
14199     fi
14200       ;;
14201
14202     dgux*)
14203       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14204       hardcode_libdir_flag_spec='-L$libdir'
14205       hardcode_shlibpath_var=no
14206       ;;
14207
14208     freebsd1*)
14209       ld_shlibs=no
14210       ;;
14211
14212     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14213     # support.  Future versions do this automatically, but an explicit c++rt0.o
14214     # does not break anything, and helps significantly (at the cost of a little
14215     # extra space).
14216     freebsd2.2*)
14217       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14218       hardcode_libdir_flag_spec='-R$libdir'
14219       hardcode_direct=yes
14220       hardcode_shlibpath_var=no
14221       ;;
14222
14223     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14224     freebsd2*)
14225       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14226       hardcode_direct=yes
14227       hardcode_minus_L=yes
14228       hardcode_shlibpath_var=no
14229       ;;
14230
14231     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14232     freebsd* | kfreebsd*-gnu | dragonfly*)
14233       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14234       hardcode_libdir_flag_spec='-R$libdir'
14235       hardcode_direct=yes
14236       hardcode_shlibpath_var=no
14237       ;;
14238
14239     hpux9*)
14240       if test "$GCC" = yes; then
14241         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'
14242       else
14243         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'
14244       fi
14245       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14246       hardcode_libdir_separator=:
14247       hardcode_direct=yes
14248
14249       # hardcode_minus_L: Not really in the search PATH,
14250       # but as the default location of the library.
14251       hardcode_minus_L=yes
14252       export_dynamic_flag_spec='${wl}-E'
14253       ;;
14254
14255     hpux10*)
14256       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14257         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14258       else
14259         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14260       fi
14261       if test "$with_gnu_ld" = no; then
14262         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14263         hardcode_libdir_separator=:
14264
14265         hardcode_direct=yes
14266         export_dynamic_flag_spec='${wl}-E'
14267
14268         # hardcode_minus_L: Not really in the search PATH,
14269         # but as the default location of the library.
14270         hardcode_minus_L=yes
14271       fi
14272       ;;
14273
14274     hpux11*)
14275       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14276         case $host_cpu in
14277         hppa*64*)
14278           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14279           ;;
14280         ia64*)
14281           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14282           ;;
14283         *)
14284           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14285           ;;
14286         esac
14287       else
14288         case $host_cpu in
14289         hppa*64*)
14290           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14291           ;;
14292         ia64*)
14293           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14294           ;;
14295         *)
14296           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14297           ;;
14298         esac
14299       fi
14300       if test "$with_gnu_ld" = no; then
14301         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14302         hardcode_libdir_separator=:
14303
14304         case $host_cpu in
14305         hppa*64*|ia64*)
14306           hardcode_libdir_flag_spec_ld='+b $libdir'
14307           hardcode_direct=no
14308           hardcode_shlibpath_var=no
14309           ;;
14310         *)
14311           hardcode_direct=yes
14312           export_dynamic_flag_spec='${wl}-E'
14313
14314           # hardcode_minus_L: Not really in the search PATH,
14315           # but as the default location of the library.
14316           hardcode_minus_L=yes
14317           ;;
14318         esac
14319       fi
14320       ;;
14321
14322     irix5* | irix6* | nonstopux*)
14323       if test "$GCC" = yes; then
14324         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'
14325       else
14326         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'
14327         hardcode_libdir_flag_spec_ld='-rpath $libdir'
14328       fi
14329       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14330       hardcode_libdir_separator=:
14331       link_all_deplibs=yes
14332       ;;
14333
14334     netbsd*)
14335       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14336         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14337       else
14338         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14339       fi
14340       hardcode_libdir_flag_spec='-R$libdir'
14341       hardcode_direct=yes
14342       hardcode_shlibpath_var=no
14343       ;;
14344
14345     newsos6)
14346       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14347       hardcode_direct=yes
14348       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14349       hardcode_libdir_separator=:
14350       hardcode_shlibpath_var=no
14351       ;;
14352
14353     openbsd*)
14354       hardcode_direct=yes
14355       hardcode_shlibpath_var=no
14356       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14357         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14358         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14359         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14360         export_dynamic_flag_spec='${wl}-E'
14361       else
14362        case $host_os in
14363          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14364            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14365            hardcode_libdir_flag_spec='-R$libdir'
14366            ;;
14367          *)
14368            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14369            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14370            ;;
14371        esac
14372       fi
14373       ;;
14374
14375     os2*)
14376       hardcode_libdir_flag_spec='-L$libdir'
14377       hardcode_minus_L=yes
14378       allow_undefined_flag=unsupported
14379       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'
14380       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14381       ;;
14382
14383     osf3*)
14384       if test "$GCC" = yes; then
14385         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14386         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'
14387       else
14388         allow_undefined_flag=' -expect_unresolved \*'
14389         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'
14390       fi
14391       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14392       hardcode_libdir_separator=:
14393       ;;
14394
14395     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14396       if test "$GCC" = yes; then
14397         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14398         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'
14399         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14400       else
14401         allow_undefined_flag=' -expect_unresolved \*'
14402         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'
14403         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14404         $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'
14405
14406         # Both c and cxx compiler support -rpath directly
14407         hardcode_libdir_flag_spec='-rpath $libdir'
14408       fi
14409       hardcode_libdir_separator=:
14410       ;;
14411
14412     solaris*)
14413       no_undefined_flag=' -z text'
14414       if test "$GCC" = yes; then
14415         wlarc='${wl}'
14416         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14417         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14418           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14419       else
14420         wlarc=''
14421         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14422         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14423         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14424       fi
14425       hardcode_libdir_flag_spec='-R$libdir'
14426       hardcode_shlibpath_var=no
14427       case $host_os in
14428       solaris2.[0-5] | solaris2.[0-5].*) ;;
14429       *)
14430         # The compiler driver will combine linker options so we
14431         # cannot just pass the convience library names through
14432         # without $wl, iff we do not link with $LD.
14433         # Luckily, gcc supports the same syntax we need for Sun Studio.
14434         # Supported since Solaris 2.6 (maybe 2.5.1?)
14435         case $wlarc in
14436         '')
14437           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14438         *)
14439           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' ;;
14440         esac ;;
14441       esac
14442       link_all_deplibs=yes
14443       ;;
14444
14445     sunos4*)
14446       if test "x$host_vendor" = xsequent; then
14447         # Use $CC to link under sequent, because it throws in some extra .o
14448         # files that make .init and .fini sections work.
14449         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14450       else
14451         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14452       fi
14453       hardcode_libdir_flag_spec='-L$libdir'
14454       hardcode_direct=yes
14455       hardcode_minus_L=yes
14456       hardcode_shlibpath_var=no
14457       ;;
14458
14459     sysv4)
14460       case $host_vendor in
14461         sni)
14462           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14463           hardcode_direct=yes # is this really true???
14464         ;;
14465         siemens)
14466           ## LD is ld it makes a PLAMLIB
14467           ## CC just makes a GrossModule.
14468           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14469           reload_cmds='$CC -r -o $output$reload_objs'
14470           hardcode_direct=no
14471         ;;
14472         motorola)
14473           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14474           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14475         ;;
14476       esac
14477       runpath_var='LD_RUN_PATH'
14478       hardcode_shlibpath_var=no
14479       ;;
14480
14481     sysv4.3*)
14482       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14483       hardcode_shlibpath_var=no
14484       export_dynamic_flag_spec='-Bexport'
14485       ;;
14486
14487     sysv4*MP*)
14488       if test -d /usr/nec; then
14489         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14490         hardcode_shlibpath_var=no
14491         runpath_var=LD_RUN_PATH
14492         hardcode_runpath_var=yes
14493         ld_shlibs=yes
14494       fi
14495       ;;
14496
14497     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14498       no_undefined_flag='${wl}-z,text'
14499       archive_cmds_need_lc=no
14500       hardcode_shlibpath_var=no
14501       runpath_var='LD_RUN_PATH'
14502
14503       if test "$GCC" = yes; then
14504         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14505         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14506       else
14507         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14508         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14509       fi
14510       ;;
14511
14512     sysv5* | sco3.2v5* | sco5v6*)
14513       # Note: We can NOT use -z defs as we might desire, because we do not
14514       # link with -lc, and that would cause any symbols used from libc to
14515       # always be unresolved, which means just about no library would
14516       # ever link correctly.  If we're not using GNU ld we use -z text
14517       # though, which does catch some bad symbols but isn't as heavy-handed
14518       # as -z defs.
14519       no_undefined_flag='${wl}-z,text'
14520       allow_undefined_flag='${wl}-z,nodefs'
14521       archive_cmds_need_lc=no
14522       hardcode_shlibpath_var=no
14523       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14524       hardcode_libdir_separator=':'
14525       link_all_deplibs=yes
14526       export_dynamic_flag_spec='${wl}-Bexport'
14527       runpath_var='LD_RUN_PATH'
14528
14529       if test "$GCC" = yes; then
14530         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14531         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14532       else
14533         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14534         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14535       fi
14536       ;;
14537
14538     uts4*)
14539       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14540       hardcode_libdir_flag_spec='-L$libdir'
14541       hardcode_shlibpath_var=no
14542       ;;
14543
14544     *)
14545       ld_shlibs=no
14546       ;;
14547     esac
14548   fi
14549
14550 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14551 echo "${ECHO_T}$ld_shlibs" >&6
14552 test "$ld_shlibs" = no && can_build_shared=no
14553
14554 #
14555 # Do we need to explicitly link libc?
14556 #
14557 case "x$archive_cmds_need_lc" in
14558 x|xyes)
14559   # Assume -lc should be added
14560   archive_cmds_need_lc=yes
14561
14562   if test "$enable_shared" = yes && test "$GCC" = yes; then
14563     case $archive_cmds in
14564     *'~'*)
14565       # FIXME: we may have to deal with multi-command sequences.
14566       ;;
14567     '$CC '*)
14568       # Test whether the compiler implicitly links with -lc since on some
14569       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14570       # to ld, don't add -lc before -lgcc.
14571       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14572 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14573       $rm conftest*
14574       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14575
14576       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14577   (eval $ac_compile) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } 2>conftest.err; then
14581         soname=conftest
14582         lib=conftest
14583         libobjs=conftest.$ac_objext
14584         deplibs=
14585         wl=$lt_prog_compiler_wl
14586         pic_flag=$lt_prog_compiler_pic
14587         compiler_flags=-v
14588         linker_flags=-v
14589         verstring=
14590         output_objdir=.
14591         libname=conftest
14592         lt_save_allow_undefined_flag=$allow_undefined_flag
14593         allow_undefined_flag=
14594         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14595   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14596   ac_status=$?
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); }
14599         then
14600           archive_cmds_need_lc=no
14601         else
14602           archive_cmds_need_lc=yes
14603         fi
14604         allow_undefined_flag=$lt_save_allow_undefined_flag
14605       else
14606         cat conftest.err 1>&5
14607       fi
14608       $rm conftest*
14609       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14610 echo "${ECHO_T}$archive_cmds_need_lc" >&6
14611       ;;
14612     esac
14613   fi
14614   ;;
14615 esac
14616
14617 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14618 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14619 library_names_spec=
14620 libname_spec='lib$name'
14621 soname_spec=
14622 shrext_cmds=".so"
14623 postinstall_cmds=
14624 postuninstall_cmds=
14625 finish_cmds=
14626 finish_eval=
14627 shlibpath_var=
14628 shlibpath_overrides_runpath=unknown
14629 version_type=none
14630 dynamic_linker="$host_os ld.so"
14631 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14632 if test "$GCC" = yes; then
14633   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14634   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14635     # if the path contains ";" then we assume it to be the separator
14636     # otherwise default to the standard path separator (i.e. ":") - it is
14637     # assumed that no part of a normal pathname contains ";" but that should
14638     # okay in the real world where ";" in dirpaths is itself problematic.
14639     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14640   else
14641     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14642   fi
14643 else
14644   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14645 fi
14646 need_lib_prefix=unknown
14647 hardcode_into_libs=no
14648
14649 # when you set need_version to no, make sure it does not cause -set_version
14650 # flags to be left without arguments
14651 need_version=unknown
14652
14653 case $host_os in
14654 aix3*)
14655   version_type=linux
14656   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14657   shlibpath_var=LIBPATH
14658
14659   # AIX 3 has no versioning support, so we append a major version to the name.
14660   soname_spec='${libname}${release}${shared_ext}$major'
14661   ;;
14662
14663 aix4* | aix5*)
14664   version_type=linux
14665   need_lib_prefix=no
14666   need_version=no
14667   hardcode_into_libs=yes
14668   if test "$host_cpu" = ia64; then
14669     # AIX 5 supports IA64
14670     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14671     shlibpath_var=LD_LIBRARY_PATH
14672   else
14673     # With GCC up to 2.95.x, collect2 would create an import file
14674     # for dependence libraries.  The import file would start with
14675     # the line `#! .'.  This would cause the generated library to
14676     # depend on `.', always an invalid library.  This was fixed in
14677     # development snapshots of GCC prior to 3.0.
14678     case $host_os in
14679       aix4 | aix4.[01] | aix4.[01].*)
14680       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14681            echo ' yes '
14682            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14683         :
14684       else
14685         can_build_shared=no
14686       fi
14687       ;;
14688     esac
14689     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14690     # soname into executable. Probably we can add versioning support to
14691     # collect2, so additional links can be useful in future.
14692     if test "$aix_use_runtimelinking" = yes; then
14693       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14694       # instead of lib<name>.a to let people know that these are not
14695       # typical AIX shared libraries.
14696       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697     else
14698       # We preserve .a as extension for shared libraries through AIX4.2
14699       # and later when we are not doing run time linking.
14700       library_names_spec='${libname}${release}.a $libname.a'
14701       soname_spec='${libname}${release}${shared_ext}$major'
14702     fi
14703     shlibpath_var=LIBPATH
14704   fi
14705   ;;
14706
14707 amigaos*)
14708   library_names_spec='$libname.ixlibrary $libname.a'
14709   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14710   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'
14711   ;;
14712
14713 beos*)
14714   library_names_spec='${libname}${shared_ext}'
14715   dynamic_linker="$host_os ld.so"
14716   shlibpath_var=LIBRARY_PATH
14717   ;;
14718
14719 bsdi[45]*)
14720   version_type=linux
14721   need_version=no
14722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723   soname_spec='${libname}${release}${shared_ext}$major'
14724   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14725   shlibpath_var=LD_LIBRARY_PATH
14726   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14727   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14728   # the default ld.so.conf also contains /usr/contrib/lib and
14729   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14730   # libtool to hard-code these into programs
14731   ;;
14732
14733 cygwin* | mingw* | pw32*)
14734   version_type=windows
14735   shrext_cmds=".dll"
14736   need_version=no
14737   need_lib_prefix=no
14738
14739   case $GCC,$host_os in
14740   yes,cygwin* | yes,mingw* | yes,pw32*)
14741     library_names_spec='$libname.dll.a'
14742     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14743     postinstall_cmds='base_file=`basename \${file}`~
14744       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14745       dldir=$destdir/`dirname \$dlpath`~
14746       test -d \$dldir || mkdir -p \$dldir~
14747       $install_prog $dir/$dlname \$dldir/$dlname~
14748       chmod a+x \$dldir/$dlname'
14749     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14750       dlpath=$dir/\$dldll~
14751        $rm \$dlpath'
14752     shlibpath_overrides_runpath=yes
14753
14754     case $host_os in
14755     cygwin*)
14756       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14757       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14758       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14759       ;;
14760     mingw*)
14761       # MinGW DLLs use traditional 'lib' prefix
14762       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14763       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14764       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14765         # It is most probably a Windows format PATH printed by
14766         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14767         # path with ; separators, and with drive letters. We can handle the
14768         # drive letters (cygwin fileutils understands them), so leave them,
14769         # especially as we might pass files found there to a mingw objdump,
14770         # which wouldn't understand a cygwinified path. Ahh.
14771         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14772       else
14773         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14774       fi
14775       ;;
14776     pw32*)
14777       # pw32 DLLs use 'pw' prefix rather than 'lib'
14778       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14779       ;;
14780     esac
14781     ;;
14782
14783   *)
14784     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14785     ;;
14786   esac
14787   dynamic_linker='Win32 ld.exe'
14788   # FIXME: first we should search . and the directory the executable is in
14789   shlibpath_var=PATH
14790   ;;
14791
14792 darwin* | rhapsody*)
14793   dynamic_linker="$host_os dyld"
14794   version_type=darwin
14795   need_lib_prefix=no
14796   need_version=no
14797   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14798   soname_spec='${libname}${release}${major}$shared_ext'
14799   shlibpath_overrides_runpath=yes
14800   shlibpath_var=DYLD_LIBRARY_PATH
14801   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14802   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14803   if test "$GCC" = yes; then
14804     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"`
14805   else
14806     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14807   fi
14808   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14809   ;;
14810
14811 dgux*)
14812   version_type=linux
14813   need_lib_prefix=no
14814   need_version=no
14815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14816   soname_spec='${libname}${release}${shared_ext}$major'
14817   shlibpath_var=LD_LIBRARY_PATH
14818   ;;
14819
14820 freebsd1*)
14821   dynamic_linker=no
14822   ;;
14823
14824 kfreebsd*-gnu)
14825   version_type=linux
14826   need_lib_prefix=no
14827   need_version=no
14828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14829   soname_spec='${libname}${release}${shared_ext}$major'
14830   shlibpath_var=LD_LIBRARY_PATH
14831   shlibpath_overrides_runpath=no
14832   hardcode_into_libs=yes
14833   dynamic_linker='GNU ld.so'
14834   ;;
14835
14836 freebsd* | dragonfly*)
14837   # DragonFly does not have aout.  When/if they implement a new
14838   # versioning mechanism, adjust this.
14839   if test -x /usr/bin/objformat; then
14840     objformat=`/usr/bin/objformat`
14841   else
14842     case $host_os in
14843     freebsd[123]*) objformat=aout ;;
14844     *) objformat=elf ;;
14845     esac
14846   fi
14847   version_type=freebsd-$objformat
14848   case $version_type in
14849     freebsd-elf*)
14850       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14851       need_version=no
14852       need_lib_prefix=no
14853       ;;
14854     freebsd-*)
14855       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14856       need_version=yes
14857       ;;
14858   esac
14859   shlibpath_var=LD_LIBRARY_PATH
14860   case $host_os in
14861   freebsd2*)
14862     shlibpath_overrides_runpath=yes
14863     ;;
14864   freebsd3.[01]* | freebsdelf3.[01]*)
14865     shlibpath_overrides_runpath=yes
14866     hardcode_into_libs=yes
14867     ;;
14868   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14869   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14870     shlibpath_overrides_runpath=no
14871     hardcode_into_libs=yes
14872     ;;
14873   freebsd*) # from 4.6 on
14874     shlibpath_overrides_runpath=yes
14875     hardcode_into_libs=yes
14876     ;;
14877   esac
14878   ;;
14879
14880 gnu*)
14881   version_type=linux
14882   need_lib_prefix=no
14883   need_version=no
14884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14885   soname_spec='${libname}${release}${shared_ext}$major'
14886   shlibpath_var=LD_LIBRARY_PATH
14887   hardcode_into_libs=yes
14888   ;;
14889
14890 hpux9* | hpux10* | hpux11*)
14891   # Give a soname corresponding to the major version so that dld.sl refuses to
14892   # link against other versions.
14893   version_type=sunos
14894   need_lib_prefix=no
14895   need_version=no
14896   case $host_cpu in
14897   ia64*)
14898     shrext_cmds='.so'
14899     hardcode_into_libs=yes
14900     dynamic_linker="$host_os dld.so"
14901     shlibpath_var=LD_LIBRARY_PATH
14902     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904     soname_spec='${libname}${release}${shared_ext}$major'
14905     if test "X$HPUX_IA64_MODE" = X32; then
14906       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14907     else
14908       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14909     fi
14910     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14911     ;;
14912    hppa*64*)
14913      shrext_cmds='.sl'
14914      hardcode_into_libs=yes
14915      dynamic_linker="$host_os dld.sl"
14916      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14917      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14918      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919      soname_spec='${libname}${release}${shared_ext}$major'
14920      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14921      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14922      ;;
14923    *)
14924     shrext_cmds='.sl'
14925     dynamic_linker="$host_os dld.sl"
14926     shlibpath_var=SHLIB_PATH
14927     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929     soname_spec='${libname}${release}${shared_ext}$major'
14930     ;;
14931   esac
14932   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14933   postinstall_cmds='chmod 555 $lib'
14934   ;;
14935
14936 interix3*)
14937   version_type=linux
14938   need_lib_prefix=no
14939   need_version=no
14940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14941   soname_spec='${libname}${release}${shared_ext}$major'
14942   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14943   shlibpath_var=LD_LIBRARY_PATH
14944   shlibpath_overrides_runpath=no
14945   hardcode_into_libs=yes
14946   ;;
14947
14948 irix5* | irix6* | nonstopux*)
14949   case $host_os in
14950     nonstopux*) version_type=nonstopux ;;
14951     *)
14952         if test "$lt_cv_prog_gnu_ld" = yes; then
14953                 version_type=linux
14954         else
14955                 version_type=irix
14956         fi ;;
14957   esac
14958   need_lib_prefix=no
14959   need_version=no
14960   soname_spec='${libname}${release}${shared_ext}$major'
14961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14962   case $host_os in
14963   irix5* | nonstopux*)
14964     libsuff= shlibsuff=
14965     ;;
14966   *)
14967     case $LD in # libtool.m4 will add one of these switches to LD
14968     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14969       libsuff= shlibsuff= libmagic=32-bit;;
14970     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14971       libsuff=32 shlibsuff=N32 libmagic=N32;;
14972     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14973       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14974     *) libsuff= shlibsuff= libmagic=never-match;;
14975     esac
14976     ;;
14977   esac
14978   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14979   shlibpath_overrides_runpath=no
14980   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14981   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14982   hardcode_into_libs=yes
14983   ;;
14984
14985 # No shared lib support for Linux oldld, aout, or coff.
14986 linux*oldld* | linux*aout* | linux*coff*)
14987   dynamic_linker=no
14988   ;;
14989
14990 # This must be Linux ELF.
14991 linux*)
14992   version_type=linux
14993   need_lib_prefix=no
14994   need_version=no
14995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996   soname_spec='${libname}${release}${shared_ext}$major'
14997   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14998   shlibpath_var=LD_LIBRARY_PATH
14999   shlibpath_overrides_runpath=no
15000   # This implies no fast_install, which is unacceptable.
15001   # Some rework will be needed to allow for fast_install
15002   # before this can be enabled.
15003   hardcode_into_libs=yes
15004
15005   # find out which ABI we are using
15006   libsuff=
15007   case "$host_cpu" in
15008   x86_64*|s390x*|powerpc64*)
15009     echo '#line 15009 "configure"' > conftest.$ac_ext
15010     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15011   (eval $ac_compile) 2>&5
15012   ac_status=$?
15013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014   (exit $ac_status); }; then
15015       case `/usr/bin/file conftest.$ac_objext` in
15016       *64-bit*)
15017         libsuff=64
15018         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15019         ;;
15020       esac
15021     fi
15022     rm -rf conftest*
15023     ;;
15024   esac
15025
15026   # Append ld.so.conf contents to the search path
15027   if test -f /etc/ld.so.conf; then
15028     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' ' '`
15029     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15030   fi
15031
15032   # We used to test for /lib/ld.so.1 and disable shared libraries on
15033   # powerpc, because MkLinux only supported shared libraries with the
15034   # GNU dynamic linker.  Since this was broken with cross compilers,
15035   # most powerpc-linux boxes support dynamic linking these days and
15036   # people can always --disable-shared, the test was removed, and we
15037   # assume the GNU/Linux dynamic linker is in use.
15038   dynamic_linker='GNU/Linux ld.so'
15039   ;;
15040
15041 knetbsd*-gnu)
15042   version_type=linux
15043   need_lib_prefix=no
15044   need_version=no
15045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15046   soname_spec='${libname}${release}${shared_ext}$major'
15047   shlibpath_var=LD_LIBRARY_PATH
15048   shlibpath_overrides_runpath=no
15049   hardcode_into_libs=yes
15050   dynamic_linker='GNU ld.so'
15051   ;;
15052
15053 netbsd*)
15054   version_type=sunos
15055   need_lib_prefix=no
15056   need_version=no
15057   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15058     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15059     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15060     dynamic_linker='NetBSD (a.out) ld.so'
15061   else
15062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15063     soname_spec='${libname}${release}${shared_ext}$major'
15064     dynamic_linker='NetBSD ld.elf_so'
15065   fi
15066   shlibpath_var=LD_LIBRARY_PATH
15067   shlibpath_overrides_runpath=yes
15068   hardcode_into_libs=yes
15069   ;;
15070
15071 newsos6)
15072   version_type=linux
15073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15074   shlibpath_var=LD_LIBRARY_PATH
15075   shlibpath_overrides_runpath=yes
15076   ;;
15077
15078 nto-qnx*)
15079   version_type=linux
15080   need_lib_prefix=no
15081   need_version=no
15082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083   soname_spec='${libname}${release}${shared_ext}$major'
15084   shlibpath_var=LD_LIBRARY_PATH
15085   shlibpath_overrides_runpath=yes
15086   ;;
15087
15088 openbsd*)
15089   version_type=sunos
15090   sys_lib_dlsearch_path_spec="/usr/lib"
15091   need_lib_prefix=no
15092   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15093   case $host_os in
15094     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15095     *)                         need_version=no  ;;
15096   esac
15097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15098   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15099   shlibpath_var=LD_LIBRARY_PATH
15100   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15101     case $host_os in
15102       openbsd2.[89] | openbsd2.[89].*)
15103         shlibpath_overrides_runpath=no
15104         ;;
15105       *)
15106         shlibpath_overrides_runpath=yes
15107         ;;
15108       esac
15109   else
15110     shlibpath_overrides_runpath=yes
15111   fi
15112   ;;
15113
15114 os2*)
15115   libname_spec='$name'
15116   shrext_cmds=".dll"
15117   need_lib_prefix=no
15118   library_names_spec='$libname${shared_ext} $libname.a'
15119   dynamic_linker='OS/2 ld.exe'
15120   shlibpath_var=LIBPATH
15121   ;;
15122
15123 osf3* | osf4* | osf5*)
15124   version_type=osf
15125   need_lib_prefix=no
15126   need_version=no
15127   soname_spec='${libname}${release}${shared_ext}$major'
15128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15129   shlibpath_var=LD_LIBRARY_PATH
15130   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15131   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15132   ;;
15133
15134 solaris*)
15135   version_type=linux
15136   need_lib_prefix=no
15137   need_version=no
15138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139   soname_spec='${libname}${release}${shared_ext}$major'
15140   shlibpath_var=LD_LIBRARY_PATH
15141   shlibpath_overrides_runpath=yes
15142   hardcode_into_libs=yes
15143   # ldd complains unless libraries are executable
15144   postinstall_cmds='chmod +x $lib'
15145   ;;
15146
15147 sunos4*)
15148   version_type=sunos
15149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15150   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15151   shlibpath_var=LD_LIBRARY_PATH
15152   shlibpath_overrides_runpath=yes
15153   if test "$with_gnu_ld" = yes; then
15154     need_lib_prefix=no
15155   fi
15156   need_version=yes
15157   ;;
15158
15159 sysv4 | sysv4.3*)
15160   version_type=linux
15161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15162   soname_spec='${libname}${release}${shared_ext}$major'
15163   shlibpath_var=LD_LIBRARY_PATH
15164   case $host_vendor in
15165     sni)
15166       shlibpath_overrides_runpath=no
15167       need_lib_prefix=no
15168       export_dynamic_flag_spec='${wl}-Blargedynsym'
15169       runpath_var=LD_RUN_PATH
15170       ;;
15171     siemens)
15172       need_lib_prefix=no
15173       ;;
15174     motorola)
15175       need_lib_prefix=no
15176       need_version=no
15177       shlibpath_overrides_runpath=no
15178       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15179       ;;
15180   esac
15181   ;;
15182
15183 sysv4*MP*)
15184   if test -d /usr/nec ;then
15185     version_type=linux
15186     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15187     soname_spec='$libname${shared_ext}.$major'
15188     shlibpath_var=LD_LIBRARY_PATH
15189   fi
15190   ;;
15191
15192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15193   version_type=freebsd-elf
15194   need_lib_prefix=no
15195   need_version=no
15196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15197   soname_spec='${libname}${release}${shared_ext}$major'
15198   shlibpath_var=LD_LIBRARY_PATH
15199   hardcode_into_libs=yes
15200   if test "$with_gnu_ld" = yes; then
15201     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15202     shlibpath_overrides_runpath=no
15203   else
15204     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15205     shlibpath_overrides_runpath=yes
15206     case $host_os in
15207       sco3.2v5*)
15208         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15209         ;;
15210     esac
15211   fi
15212   sys_lib_dlsearch_path_spec='/usr/lib'
15213   ;;
15214
15215 uts4*)
15216   version_type=linux
15217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15218   soname_spec='${libname}${release}${shared_ext}$major'
15219   shlibpath_var=LD_LIBRARY_PATH
15220   ;;
15221
15222 *)
15223   dynamic_linker=no
15224   ;;
15225 esac
15226 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15227 echo "${ECHO_T}$dynamic_linker" >&6
15228 test "$dynamic_linker" = no && can_build_shared=no
15229
15230 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15231 if test "$GCC" = yes; then
15232   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15233 fi
15234
15235 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15236 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15237 hardcode_action=
15238 if test -n "$hardcode_libdir_flag_spec" || \
15239    test -n "$runpath_var" || \
15240    test "X$hardcode_automatic" = "Xyes" ; then
15241
15242   # We can hardcode non-existant directories.
15243   if test "$hardcode_direct" != no &&
15244      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15245      # have to relink, otherwise we might link with an installed library
15246      # when we should be linking with a yet-to-be-installed one
15247      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15248      test "$hardcode_minus_L" != no; then
15249     # Linking always hardcodes the temporary library directory.
15250     hardcode_action=relink
15251   else
15252     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15253     hardcode_action=immediate
15254   fi
15255 else
15256   # We cannot hardcode anything, or else we can only hardcode existing
15257   # directories.
15258   hardcode_action=unsupported
15259 fi
15260 echo "$as_me:$LINENO: result: $hardcode_action" >&5
15261 echo "${ECHO_T}$hardcode_action" >&6
15262
15263 if test "$hardcode_action" = relink; then
15264   # Fast installation is not supported
15265   enable_fast_install=no
15266 elif test "$shlibpath_overrides_runpath" = yes ||
15267      test "$enable_shared" = no; then
15268   # Fast installation is not necessary
15269   enable_fast_install=needless
15270 fi
15271
15272 striplib=
15273 old_striplib=
15274 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15275 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15276 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15277   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15278   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15279   echo "$as_me:$LINENO: result: yes" >&5
15280 echo "${ECHO_T}yes" >&6
15281 else
15282 # FIXME - insert some real tests, host_os isn't really good enough
15283   case $host_os in
15284    darwin*)
15285        if test -n "$STRIP" ; then
15286          striplib="$STRIP -x"
15287          echo "$as_me:$LINENO: result: yes" >&5
15288 echo "${ECHO_T}yes" >&6
15289        else
15290   echo "$as_me:$LINENO: result: no" >&5
15291 echo "${ECHO_T}no" >&6
15292 fi
15293        ;;
15294    *)
15295   echo "$as_me:$LINENO: result: no" >&5
15296 echo "${ECHO_T}no" >&6
15297     ;;
15298   esac
15299 fi
15300
15301 if test "x$enable_dlopen" != xyes; then
15302   enable_dlopen=unknown
15303   enable_dlopen_self=unknown
15304   enable_dlopen_self_static=unknown
15305 else
15306   lt_cv_dlopen=no
15307   lt_cv_dlopen_libs=
15308
15309   case $host_os in
15310   beos*)
15311     lt_cv_dlopen="load_add_on"
15312     lt_cv_dlopen_libs=
15313     lt_cv_dlopen_self=yes
15314     ;;
15315
15316   mingw* | pw32*)
15317     lt_cv_dlopen="LoadLibrary"
15318     lt_cv_dlopen_libs=
15319    ;;
15320
15321   cygwin*)
15322     lt_cv_dlopen="dlopen"
15323     lt_cv_dlopen_libs=
15324    ;;
15325
15326   darwin*)
15327   # if libdl is installed we need to link against it
15328     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15329 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15330 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15331   echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333   ac_check_lib_save_LIBS=$LIBS
15334 LIBS="-ldl  $LIBS"
15335 cat >conftest.$ac_ext <<_ACEOF
15336 /* confdefs.h.  */
15337 _ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h.  */
15341
15342 /* Override any gcc2 internal prototype to avoid an error.  */
15343 #ifdef __cplusplus
15344 extern "C"
15345 #endif
15346 /* We use char because int might match the return type of a gcc2
15347    builtin and then its argument prototype would still apply.  */
15348 char dlopen ();
15349 int
15350 main ()
15351 {
15352 dlopen ();
15353   ;
15354   return 0;
15355 }
15356 _ACEOF
15357 rm -f conftest.$ac_objext conftest$ac_exeext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15359   (eval $ac_link) 2>conftest.er1
15360   ac_status=$?
15361   grep -v '^ *+' conftest.er1 >conftest.err
15362   rm -f conftest.er1
15363   cat conftest.err >&5
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); } &&
15366          { ac_try='test -z "$ac_c_werror_flag"
15367                          || test ! -s conftest.err'
15368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369   (eval $ac_try) 2>&5
15370   ac_status=$?
15371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372   (exit $ac_status); }; } &&
15373          { ac_try='test -s conftest$ac_exeext'
15374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375   (eval $ac_try) 2>&5
15376   ac_status=$?
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); }; }; then
15379   ac_cv_lib_dl_dlopen=yes
15380 else
15381   echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15383
15384 ac_cv_lib_dl_dlopen=no
15385 fi
15386 rm -f conftest.err conftest.$ac_objext \
15387       conftest$ac_exeext conftest.$ac_ext
15388 LIBS=$ac_check_lib_save_LIBS
15389 fi
15390 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15391 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15392 if test $ac_cv_lib_dl_dlopen = yes; then
15393   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15394 else
15395
15396     lt_cv_dlopen="dyld"
15397     lt_cv_dlopen_libs=
15398     lt_cv_dlopen_self=yes
15399
15400 fi
15401
15402    ;;
15403
15404   *)
15405     echo "$as_me:$LINENO: checking for shl_load" >&5
15406 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15407 if test "${ac_cv_func_shl_load+set}" = set; then
15408   echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410   cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h.  */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h.  */
15416 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15418 #define shl_load innocuous_shl_load
15419
15420 /* System header to define __stub macros and hopefully few prototypes,
15421     which can conflict with char shl_load (); below.
15422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15423     <limits.h> exists even on freestanding compilers.  */
15424
15425 #ifdef __STDC__
15426 # include <limits.h>
15427 #else
15428 # include <assert.h>
15429 #endif
15430
15431 #undef shl_load
15432
15433 /* Override any gcc2 internal prototype to avoid an error.  */
15434 #ifdef __cplusplus
15435 extern "C"
15436 {
15437 #endif
15438 /* We use char because int might match the return type of a gcc2
15439    builtin and then its argument prototype would still apply.  */
15440 char shl_load ();
15441 /* The GNU C library defines this for functions which it implements
15442     to always fail with ENOSYS.  Some functions are actually named
15443     something starting with __ and the normal name is an alias.  */
15444 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15445 choke me
15446 #else
15447 char (*f) () = shl_load;
15448 #endif
15449 #ifdef __cplusplus
15450 }
15451 #endif
15452
15453 int
15454 main ()
15455 {
15456 return f != shl_load;
15457   ;
15458   return 0;
15459 }
15460 _ACEOF
15461 rm -f conftest.$ac_objext conftest$ac_exeext
15462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15463   (eval $ac_link) 2>conftest.er1
15464   ac_status=$?
15465   grep -v '^ *+' conftest.er1 >conftest.err
15466   rm -f conftest.er1
15467   cat conftest.err >&5
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); } &&
15470          { ac_try='test -z "$ac_c_werror_flag"
15471                          || test ! -s conftest.err'
15472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473   (eval $ac_try) 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); }; } &&
15477          { ac_try='test -s conftest$ac_exeext'
15478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479   (eval $ac_try) 2>&5
15480   ac_status=$?
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); }; }; then
15483   ac_cv_func_shl_load=yes
15484 else
15485   echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15487
15488 ac_cv_func_shl_load=no
15489 fi
15490 rm -f conftest.err conftest.$ac_objext \
15491       conftest$ac_exeext conftest.$ac_ext
15492 fi
15493 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15494 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15495 if test $ac_cv_func_shl_load = yes; then
15496   lt_cv_dlopen="shl_load"
15497 else
15498   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15499 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15500 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15501   echo $ECHO_N "(cached) $ECHO_C" >&6
15502 else
15503   ac_check_lib_save_LIBS=$LIBS
15504 LIBS="-ldld  $LIBS"
15505 cat >conftest.$ac_ext <<_ACEOF
15506 /* confdefs.h.  */
15507 _ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h.  */
15511
15512 /* Override any gcc2 internal prototype to avoid an error.  */
15513 #ifdef __cplusplus
15514 extern "C"
15515 #endif
15516 /* We use char because int might match the return type of a gcc2
15517    builtin and then its argument prototype would still apply.  */
15518 char shl_load ();
15519 int
15520 main ()
15521 {
15522 shl_load ();
15523   ;
15524   return 0;
15525 }
15526 _ACEOF
15527 rm -f conftest.$ac_objext conftest$ac_exeext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15529   (eval $ac_link) 2>conftest.er1
15530   ac_status=$?
15531   grep -v '^ *+' conftest.er1 >conftest.err
15532   rm -f conftest.er1
15533   cat conftest.err >&5
15534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535   (exit $ac_status); } &&
15536          { ac_try='test -z "$ac_c_werror_flag"
15537                          || test ! -s conftest.err'
15538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539   (eval $ac_try) 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); }; } &&
15543          { ac_try='test -s conftest$ac_exeext'
15544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545   (eval $ac_try) 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); }; }; then
15549   ac_cv_lib_dld_shl_load=yes
15550 else
15551   echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554 ac_cv_lib_dld_shl_load=no
15555 fi
15556 rm -f conftest.err conftest.$ac_objext \
15557       conftest$ac_exeext conftest.$ac_ext
15558 LIBS=$ac_check_lib_save_LIBS
15559 fi
15560 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15561 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15562 if test $ac_cv_lib_dld_shl_load = yes; then
15563   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15564 else
15565   echo "$as_me:$LINENO: checking for dlopen" >&5
15566 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15567 if test "${ac_cv_func_dlopen+set}" = set; then
15568   echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570   cat >conftest.$ac_ext <<_ACEOF
15571 /* confdefs.h.  */
15572 _ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h.  */
15576 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15578 #define dlopen innocuous_dlopen
15579
15580 /* System header to define __stub macros and hopefully few prototypes,
15581     which can conflict with char dlopen (); below.
15582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15583     <limits.h> exists even on freestanding compilers.  */
15584
15585 #ifdef __STDC__
15586 # include <limits.h>
15587 #else
15588 # include <assert.h>
15589 #endif
15590
15591 #undef dlopen
15592
15593 /* Override any gcc2 internal prototype to avoid an error.  */
15594 #ifdef __cplusplus
15595 extern "C"
15596 {
15597 #endif
15598 /* We use char because int might match the return type of a gcc2
15599    builtin and then its argument prototype would still apply.  */
15600 char dlopen ();
15601 /* The GNU C library defines this for functions which it implements
15602     to always fail with ENOSYS.  Some functions are actually named
15603     something starting with __ and the normal name is an alias.  */
15604 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15605 choke me
15606 #else
15607 char (*f) () = dlopen;
15608 #endif
15609 #ifdef __cplusplus
15610 }
15611 #endif
15612
15613 int
15614 main ()
15615 {
15616 return f != dlopen;
15617   ;
15618   return 0;
15619 }
15620 _ACEOF
15621 rm -f conftest.$ac_objext conftest$ac_exeext
15622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15623   (eval $ac_link) 2>conftest.er1
15624   ac_status=$?
15625   grep -v '^ *+' conftest.er1 >conftest.err
15626   rm -f conftest.er1
15627   cat conftest.err >&5
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); } &&
15630          { ac_try='test -z "$ac_c_werror_flag"
15631                          || test ! -s conftest.err'
15632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633   (eval $ac_try) 2>&5
15634   ac_status=$?
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); }; } &&
15637          { ac_try='test -s conftest$ac_exeext'
15638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639   (eval $ac_try) 2>&5
15640   ac_status=$?
15641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642   (exit $ac_status); }; }; then
15643   ac_cv_func_dlopen=yes
15644 else
15645   echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15647
15648 ac_cv_func_dlopen=no
15649 fi
15650 rm -f conftest.err conftest.$ac_objext \
15651       conftest$ac_exeext conftest.$ac_ext
15652 fi
15653 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15654 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15655 if test $ac_cv_func_dlopen = yes; then
15656   lt_cv_dlopen="dlopen"
15657 else
15658   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15659 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15661   echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663   ac_check_lib_save_LIBS=$LIBS
15664 LIBS="-ldl  $LIBS"
15665 cat >conftest.$ac_ext <<_ACEOF
15666 /* confdefs.h.  */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h.  */
15671
15672 /* Override any gcc2 internal prototype to avoid an error.  */
15673 #ifdef __cplusplus
15674 extern "C"
15675 #endif
15676 /* We use char because int might match the return type of a gcc2
15677    builtin and then its argument prototype would still apply.  */
15678 char dlopen ();
15679 int
15680 main ()
15681 {
15682 dlopen ();
15683   ;
15684   return 0;
15685 }
15686 _ACEOF
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15689   (eval $ac_link) 2>conftest.er1
15690   ac_status=$?
15691   grep -v '^ *+' conftest.er1 >conftest.err
15692   rm -f conftest.er1
15693   cat conftest.err >&5
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); } &&
15696          { ac_try='test -z "$ac_c_werror_flag"
15697                          || test ! -s conftest.err'
15698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699   (eval $ac_try) 2>&5
15700   ac_status=$?
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); }; } &&
15703          { ac_try='test -s conftest$ac_exeext'
15704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705   (eval $ac_try) 2>&5
15706   ac_status=$?
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); }; }; then
15709   ac_cv_lib_dl_dlopen=yes
15710 else
15711   echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15713
15714 ac_cv_lib_dl_dlopen=no
15715 fi
15716 rm -f conftest.err conftest.$ac_objext \
15717       conftest$ac_exeext conftest.$ac_ext
15718 LIBS=$ac_check_lib_save_LIBS
15719 fi
15720 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15721 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15722 if test $ac_cv_lib_dl_dlopen = yes; then
15723   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15724 else
15725   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15726 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15727 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15728   echo $ECHO_N "(cached) $ECHO_C" >&6
15729 else
15730   ac_check_lib_save_LIBS=$LIBS
15731 LIBS="-lsvld  $LIBS"
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h.  */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h.  */
15738
15739 /* Override any gcc2 internal prototype to avoid an error.  */
15740 #ifdef __cplusplus
15741 extern "C"
15742 #endif
15743 /* We use char because int might match the return type of a gcc2
15744    builtin and then its argument prototype would still apply.  */
15745 char dlopen ();
15746 int
15747 main ()
15748 {
15749 dlopen ();
15750   ;
15751   return 0;
15752 }
15753 _ACEOF
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15756   (eval $ac_link) 2>conftest.er1
15757   ac_status=$?
15758   grep -v '^ *+' conftest.er1 >conftest.err
15759   rm -f conftest.er1
15760   cat conftest.err >&5
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); } &&
15763          { ac_try='test -z "$ac_c_werror_flag"
15764                          || test ! -s conftest.err'
15765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766   (eval $ac_try) 2>&5
15767   ac_status=$?
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); }; } &&
15770          { ac_try='test -s conftest$ac_exeext'
15771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772   (eval $ac_try) 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); }; }; then
15776   ac_cv_lib_svld_dlopen=yes
15777 else
15778   echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15780
15781 ac_cv_lib_svld_dlopen=no
15782 fi
15783 rm -f conftest.err conftest.$ac_objext \
15784       conftest$ac_exeext conftest.$ac_ext
15785 LIBS=$ac_check_lib_save_LIBS
15786 fi
15787 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15788 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15789 if test $ac_cv_lib_svld_dlopen = yes; then
15790   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15791 else
15792   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15793 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15794 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15795   echo $ECHO_N "(cached) $ECHO_C" >&6
15796 else
15797   ac_check_lib_save_LIBS=$LIBS
15798 LIBS="-ldld  $LIBS"
15799 cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h.  */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h.  */
15805
15806 /* Override any gcc2 internal prototype to avoid an error.  */
15807 #ifdef __cplusplus
15808 extern "C"
15809 #endif
15810 /* We use char because int might match the return type of a gcc2
15811    builtin and then its argument prototype would still apply.  */
15812 char dld_link ();
15813 int
15814 main ()
15815 {
15816 dld_link ();
15817   ;
15818   return 0;
15819 }
15820 _ACEOF
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823   (eval $ac_link) 2>conftest.er1
15824   ac_status=$?
15825   grep -v '^ *+' conftest.er1 >conftest.err
15826   rm -f conftest.er1
15827   cat conftest.err >&5
15828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829   (exit $ac_status); } &&
15830          { ac_try='test -z "$ac_c_werror_flag"
15831                          || test ! -s conftest.err'
15832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833   (eval $ac_try) 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; } &&
15837          { ac_try='test -s conftest$ac_exeext'
15838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839   (eval $ac_try) 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); }; }; then
15843   ac_cv_lib_dld_dld_link=yes
15844 else
15845   echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15847
15848 ac_cv_lib_dld_dld_link=no
15849 fi
15850 rm -f conftest.err conftest.$ac_objext \
15851       conftest$ac_exeext conftest.$ac_ext
15852 LIBS=$ac_check_lib_save_LIBS
15853 fi
15854 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15855 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15856 if test $ac_cv_lib_dld_dld_link = yes; then
15857   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15858 fi
15859
15860
15861 fi
15862
15863
15864 fi
15865
15866
15867 fi
15868
15869
15870 fi
15871
15872
15873 fi
15874
15875     ;;
15876   esac
15877
15878   if test "x$lt_cv_dlopen" != xno; then
15879     enable_dlopen=yes
15880   else
15881     enable_dlopen=no
15882   fi
15883
15884   case $lt_cv_dlopen in
15885   dlopen)
15886     save_CPPFLAGS="$CPPFLAGS"
15887     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15888
15889     save_LDFLAGS="$LDFLAGS"
15890     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15891
15892     save_LIBS="$LIBS"
15893     LIBS="$lt_cv_dlopen_libs $LIBS"
15894
15895     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15896 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15897 if test "${lt_cv_dlopen_self+set}" = set; then
15898   echo $ECHO_N "(cached) $ECHO_C" >&6
15899 else
15900           if test "$cross_compiling" = yes; then :
15901   lt_cv_dlopen_self=cross
15902 else
15903   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15904   lt_status=$lt_dlunknown
15905   cat > conftest.$ac_ext <<EOF
15906 #line 15906 "configure"
15907 #include "confdefs.h"
15908
15909 #if HAVE_DLFCN_H
15910 #include <dlfcn.h>
15911 #endif
15912
15913 #include <stdio.h>
15914
15915 #ifdef RTLD_GLOBAL
15916 #  define LT_DLGLOBAL           RTLD_GLOBAL
15917 #else
15918 #  ifdef DL_GLOBAL
15919 #    define LT_DLGLOBAL         DL_GLOBAL
15920 #  else
15921 #    define LT_DLGLOBAL         0
15922 #  endif
15923 #endif
15924
15925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15926    find out it does not work in some platform. */
15927 #ifndef LT_DLLAZY_OR_NOW
15928 #  ifdef RTLD_LAZY
15929 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15930 #  else
15931 #    ifdef DL_LAZY
15932 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15933 #    else
15934 #      ifdef RTLD_NOW
15935 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15936 #      else
15937 #        ifdef DL_NOW
15938 #          define LT_DLLAZY_OR_NOW      DL_NOW
15939 #        else
15940 #          define LT_DLLAZY_OR_NOW      0
15941 #        endif
15942 #      endif
15943 #    endif
15944 #  endif
15945 #endif
15946
15947 #ifdef __cplusplus
15948 extern "C" void exit (int);
15949 #endif
15950
15951 void fnord() { int i=42;}
15952 int main ()
15953 {
15954   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15955   int status = $lt_dlunknown;
15956
15957   if (self)
15958     {
15959       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15960       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15961       /* dlclose (self); */
15962     }
15963   else
15964     puts (dlerror ());
15965
15966     exit (status);
15967 }
15968 EOF
15969   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15970   (eval $ac_link) 2>&5
15971   ac_status=$?
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15974     (./conftest; exit; ) >&5 2>/dev/null
15975     lt_status=$?
15976     case x$lt_status in
15977       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15978       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15979       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15980     esac
15981   else :
15982     # compilation failed
15983     lt_cv_dlopen_self=no
15984   fi
15985 fi
15986 rm -fr conftest*
15987
15988
15989 fi
15990 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15991 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15992
15993     if test "x$lt_cv_dlopen_self" = xyes; then
15994       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15995       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15996 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15997 if test "${lt_cv_dlopen_self_static+set}" = set; then
15998   echo $ECHO_N "(cached) $ECHO_C" >&6
15999 else
16000           if test "$cross_compiling" = yes; then :
16001   lt_cv_dlopen_self_static=cross
16002 else
16003   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16004   lt_status=$lt_dlunknown
16005   cat > conftest.$ac_ext <<EOF
16006 #line 16006 "configure"
16007 #include "confdefs.h"
16008
16009 #if HAVE_DLFCN_H
16010 #include <dlfcn.h>
16011 #endif
16012
16013 #include <stdio.h>
16014
16015 #ifdef RTLD_GLOBAL
16016 #  define LT_DLGLOBAL           RTLD_GLOBAL
16017 #else
16018 #  ifdef DL_GLOBAL
16019 #    define LT_DLGLOBAL         DL_GLOBAL
16020 #  else
16021 #    define LT_DLGLOBAL         0
16022 #  endif
16023 #endif
16024
16025 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16026    find out it does not work in some platform. */
16027 #ifndef LT_DLLAZY_OR_NOW
16028 #  ifdef RTLD_LAZY
16029 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16030 #  else
16031 #    ifdef DL_LAZY
16032 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16033 #    else
16034 #      ifdef RTLD_NOW
16035 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16036 #      else
16037 #        ifdef DL_NOW
16038 #          define LT_DLLAZY_OR_NOW      DL_NOW
16039 #        else
16040 #          define LT_DLLAZY_OR_NOW      0
16041 #        endif
16042 #      endif
16043 #    endif
16044 #  endif
16045 #endif
16046
16047 #ifdef __cplusplus
16048 extern "C" void exit (int);
16049 #endif
16050
16051 void fnord() { int i=42;}
16052 int main ()
16053 {
16054   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16055   int status = $lt_dlunknown;
16056
16057   if (self)
16058     {
16059       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16060       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16061       /* dlclose (self); */
16062     }
16063   else
16064     puts (dlerror ());
16065
16066     exit (status);
16067 }
16068 EOF
16069   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16070   (eval $ac_link) 2>&5
16071   ac_status=$?
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16074     (./conftest; exit; ) >&5 2>/dev/null
16075     lt_status=$?
16076     case x$lt_status in
16077       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16078       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16079       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16080     esac
16081   else :
16082     # compilation failed
16083     lt_cv_dlopen_self_static=no
16084   fi
16085 fi
16086 rm -fr conftest*
16087
16088
16089 fi
16090 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16091 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16092     fi
16093
16094     CPPFLAGS="$save_CPPFLAGS"
16095     LDFLAGS="$save_LDFLAGS"
16096     LIBS="$save_LIBS"
16097     ;;
16098   esac
16099
16100   case $lt_cv_dlopen_self in
16101   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16102   *) enable_dlopen_self=unknown ;;
16103   esac
16104
16105   case $lt_cv_dlopen_self_static in
16106   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16107   *) enable_dlopen_self_static=unknown ;;
16108   esac
16109 fi
16110
16111
16112 # Report which library types will actually be built
16113 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16114 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16115 echo "$as_me:$LINENO: result: $can_build_shared" >&5
16116 echo "${ECHO_T}$can_build_shared" >&6
16117
16118 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16119 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16120 test "$can_build_shared" = "no" && enable_shared=no
16121
16122 # On AIX, shared libraries and static libraries use the same namespace, and
16123 # are all built from PIC.
16124 case $host_os in
16125 aix3*)
16126   test "$enable_shared" = yes && enable_static=no
16127   if test -n "$RANLIB"; then
16128     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16129     postinstall_cmds='$RANLIB $lib'
16130   fi
16131   ;;
16132
16133 aix4* | aix5*)
16134   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16135     test "$enable_shared" = yes && enable_static=no
16136   fi
16137     ;;
16138 esac
16139 echo "$as_me:$LINENO: result: $enable_shared" >&5
16140 echo "${ECHO_T}$enable_shared" >&6
16141
16142 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16143 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16144 # Make sure either enable_shared or enable_static is yes.
16145 test "$enable_shared" = yes || enable_static=yes
16146 echo "$as_me:$LINENO: result: $enable_static" >&5
16147 echo "${ECHO_T}$enable_static" >&6
16148
16149 # The else clause should only fire when bootstrapping the
16150 # libtool distribution, otherwise you forgot to ship ltmain.sh
16151 # with your package, and you will get complaints that there are
16152 # no rules to generate ltmain.sh.
16153 if test -f "$ltmain"; then
16154   # See if we are running on zsh, and set the options which allow our commands through
16155   # without removal of \ escapes.
16156   if test -n "${ZSH_VERSION+set}" ; then
16157     setopt NO_GLOB_SUBST
16158   fi
16159   # Now quote all the things that may contain metacharacters while being
16160   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16161   # variables and quote the copies for generation of the libtool script.
16162   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16163     SED SHELL STRIP \
16164     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16165     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16166     deplibs_check_method reload_flag reload_cmds need_locks \
16167     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16168     lt_cv_sys_global_symbol_to_c_name_address \
16169     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16170     old_postinstall_cmds old_postuninstall_cmds \
16171     compiler \
16172     CC \
16173     LD \
16174     lt_prog_compiler_wl \
16175     lt_prog_compiler_pic \
16176     lt_prog_compiler_static \
16177     lt_prog_compiler_no_builtin_flag \
16178     export_dynamic_flag_spec \
16179     thread_safe_flag_spec \
16180     whole_archive_flag_spec \
16181     enable_shared_with_static_runtimes \
16182     old_archive_cmds \
16183     old_archive_from_new_cmds \
16184     predep_objects \
16185     postdep_objects \
16186     predeps \
16187     postdeps \
16188     compiler_lib_search_path \
16189     archive_cmds \
16190     archive_expsym_cmds \
16191     postinstall_cmds \
16192     postuninstall_cmds \
16193     old_archive_from_expsyms_cmds \
16194     allow_undefined_flag \
16195     no_undefined_flag \
16196     export_symbols_cmds \
16197     hardcode_libdir_flag_spec \
16198     hardcode_libdir_flag_spec_ld \
16199     hardcode_libdir_separator \
16200     hardcode_automatic \
16201     module_cmds \
16202     module_expsym_cmds \
16203     lt_cv_prog_compiler_c_o \
16204     exclude_expsyms \
16205     include_expsyms; do
16206
16207     case $var in
16208     old_archive_cmds | \
16209     old_archive_from_new_cmds | \
16210     archive_cmds | \
16211     archive_expsym_cmds | \
16212     module_cmds | \
16213     module_expsym_cmds | \
16214     old_archive_from_expsyms_cmds | \
16215     export_symbols_cmds | \
16216     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16217     postinstall_cmds | postuninstall_cmds | \
16218     old_postinstall_cmds | old_postuninstall_cmds | \
16219     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16220       # Double-quote double-evaled strings.
16221       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16222       ;;
16223     *)
16224       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16225       ;;
16226     esac
16227   done
16228
16229   case $lt_echo in
16230   *'\$0 --fallback-echo"')
16231     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16232     ;;
16233   esac
16234
16235 cfgfile="${ofile}T"
16236   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16237   $rm -f "$cfgfile"
16238   { echo "$as_me:$LINENO: creating $ofile" >&5
16239 echo "$as_me: creating $ofile" >&6;}
16240
16241   cat <<__EOF__ >> "$cfgfile"
16242 #! $SHELL
16243
16244 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16245 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16246 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16247 #
16248 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16249 # Free Software Foundation, Inc.
16250 #
16251 # This file is part of GNU Libtool:
16252 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16253 #
16254 # This program is free software; you can redistribute it and/or modify
16255 # it under the terms of the GNU General Public License as published by
16256 # the Free Software Foundation; either version 2 of the License, or
16257 # (at your option) any later version.
16258 #
16259 # This program is distributed in the hope that it will be useful, but
16260 # WITHOUT ANY WARRANTY; without even the implied warranty of
16261 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16262 # General Public License for more details.
16263 #
16264 # You should have received a copy of the GNU General Public License
16265 # along with this program; if not, write to the Free Software
16266 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16267 #
16268 # As a special exception to the GNU General Public License, if you
16269 # distribute this file as part of a program that contains a
16270 # configuration script generated by Autoconf, you may include it under
16271 # the same distribution terms that you use for the rest of that program.
16272
16273 # A sed program that does not truncate output.
16274 SED=$lt_SED
16275
16276 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16277 Xsed="$SED -e 1s/^X//"
16278
16279 # The HP-UX ksh and POSIX shell print the target directory to stdout
16280 # if CDPATH is set.
16281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16282
16283 # The names of the tagged configurations supported by this script.
16284 available_tags=
16285
16286 # ### BEGIN LIBTOOL CONFIG
16287
16288 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16289
16290 # Shell to use when invoking shell scripts.
16291 SHELL=$lt_SHELL
16292
16293 # Whether or not to build shared libraries.
16294 build_libtool_libs=$enable_shared
16295
16296 # Whether or not to build static libraries.
16297 build_old_libs=$enable_static
16298
16299 # Whether or not to add -lc for building shared libraries.
16300 build_libtool_need_lc=$archive_cmds_need_lc
16301
16302 # Whether or not to disallow shared libs when runtime libs are static
16303 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16304
16305 # Whether or not to optimize for fast installation.
16306 fast_install=$enable_fast_install
16307
16308 # The host system.
16309 host_alias=$host_alias
16310 host=$host
16311 host_os=$host_os
16312
16313 # The build system.
16314 build_alias=$build_alias
16315 build=$build
16316 build_os=$build_os
16317
16318 # An echo program that does not interpret backslashes.
16319 echo=$lt_echo
16320
16321 # The archiver.
16322 AR=$lt_AR
16323 AR_FLAGS=$lt_AR_FLAGS
16324
16325 # A C compiler.
16326 LTCC=$lt_LTCC
16327
16328 # LTCC compiler flags.
16329 LTCFLAGS=$lt_LTCFLAGS
16330
16331 # A language-specific compiler.
16332 CC=$lt_compiler
16333
16334 # Is the compiler the GNU C compiler?
16335 with_gcc=$GCC
16336
16337 # An ERE matcher.
16338 EGREP=$lt_EGREP
16339
16340 # The linker used to build libraries.
16341 LD=$lt_LD
16342
16343 # Whether we need hard or soft links.
16344 LN_S=$lt_LN_S
16345
16346 # A BSD-compatible nm program.
16347 NM=$lt_NM
16348
16349 # A symbol stripping program
16350 STRIP=$lt_STRIP
16351
16352 # Used to examine libraries when file_magic_cmd begins "file"
16353 MAGIC_CMD=$MAGIC_CMD
16354
16355 # Used on cygwin: DLL creation program.
16356 DLLTOOL="$DLLTOOL"
16357
16358 # Used on cygwin: object dumper.
16359 OBJDUMP="$OBJDUMP"
16360
16361 # Used on cygwin: assembler.
16362 AS="$AS"
16363
16364 # The name of the directory that contains temporary libtool files.
16365 objdir=$objdir
16366
16367 # How to create reloadable object files.
16368 reload_flag=$lt_reload_flag
16369 reload_cmds=$lt_reload_cmds
16370
16371 # How to pass a linker flag through the compiler.
16372 wl=$lt_lt_prog_compiler_wl
16373
16374 # Object file suffix (normally "o").
16375 objext="$ac_objext"
16376
16377 # Old archive suffix (normally "a").
16378 libext="$libext"
16379
16380 # Shared library suffix (normally ".so").
16381 shrext_cmds='$shrext_cmds'
16382
16383 # Executable file suffix (normally "").
16384 exeext="$exeext"
16385
16386 # Additional compiler flags for building library objects.
16387 pic_flag=$lt_lt_prog_compiler_pic
16388 pic_mode=$pic_mode
16389
16390 # What is the maximum length of a command?
16391 max_cmd_len=$lt_cv_sys_max_cmd_len
16392
16393 # Does compiler simultaneously support -c and -o options?
16394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16395
16396 # Must we lock files when doing compilation?
16397 need_locks=$lt_need_locks
16398
16399 # Do we need the lib prefix for modules?
16400 need_lib_prefix=$need_lib_prefix
16401
16402 # Do we need a version for libraries?
16403 need_version=$need_version
16404
16405 # Whether dlopen is supported.
16406 dlopen_support=$enable_dlopen
16407
16408 # Whether dlopen of programs is supported.
16409 dlopen_self=$enable_dlopen_self
16410
16411 # Whether dlopen of statically linked programs is supported.
16412 dlopen_self_static=$enable_dlopen_self_static
16413
16414 # Compiler flag to prevent dynamic linking.
16415 link_static_flag=$lt_lt_prog_compiler_static
16416
16417 # Compiler flag to turn off builtin functions.
16418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16419
16420 # Compiler flag to allow reflexive dlopens.
16421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16422
16423 # Compiler flag to generate shared objects directly from archives.
16424 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16425
16426 # Compiler flag to generate thread-safe objects.
16427 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16428
16429 # Library versioning type.
16430 version_type=$version_type
16431
16432 # Format of library name prefix.
16433 libname_spec=$lt_libname_spec
16434
16435 # List of archive names.  First name is the real one, the rest are links.
16436 # The last name is the one that the linker finds with -lNAME.
16437 library_names_spec=$lt_library_names_spec
16438
16439 # The coded name of the library, if different from the real name.
16440 soname_spec=$lt_soname_spec
16441
16442 # Commands used to build and install an old-style archive.
16443 RANLIB=$lt_RANLIB
16444 old_archive_cmds=$lt_old_archive_cmds
16445 old_postinstall_cmds=$lt_old_postinstall_cmds
16446 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16447
16448 # Create an old-style archive from a shared archive.
16449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16450
16451 # Create a temporary old-style archive to link instead of a shared archive.
16452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16453
16454 # Commands used to build and install a shared archive.
16455 archive_cmds=$lt_archive_cmds
16456 archive_expsym_cmds=$lt_archive_expsym_cmds
16457 postinstall_cmds=$lt_postinstall_cmds
16458 postuninstall_cmds=$lt_postuninstall_cmds
16459
16460 # Commands used to build a loadable module (assumed same as above if empty)
16461 module_cmds=$lt_module_cmds
16462 module_expsym_cmds=$lt_module_expsym_cmds
16463
16464 # Commands to strip libraries.
16465 old_striplib=$lt_old_striplib
16466 striplib=$lt_striplib
16467
16468 # Dependencies to place before the objects being linked to create a
16469 # shared library.
16470 predep_objects=$lt_predep_objects
16471
16472 # Dependencies to place after the objects being linked to create a
16473 # shared library.
16474 postdep_objects=$lt_postdep_objects
16475
16476 # Dependencies to place before the objects being linked to create a
16477 # shared library.
16478 predeps=$lt_predeps
16479
16480 # Dependencies to place after the objects being linked to create a
16481 # shared library.
16482 postdeps=$lt_postdeps
16483
16484 # The library search path used internally by the compiler when linking
16485 # a shared library.
16486 compiler_lib_search_path=$lt_compiler_lib_search_path
16487
16488 # Method to check whether dependent libraries are shared objects.
16489 deplibs_check_method=$lt_deplibs_check_method
16490
16491 # Command to use when deplibs_check_method == file_magic.
16492 file_magic_cmd=$lt_file_magic_cmd
16493
16494 # Flag that allows shared libraries with undefined symbols to be built.
16495 allow_undefined_flag=$lt_allow_undefined_flag
16496
16497 # Flag that forces no undefined symbols.
16498 no_undefined_flag=$lt_no_undefined_flag
16499
16500 # Commands used to finish a libtool library installation in a directory.
16501 finish_cmds=$lt_finish_cmds
16502
16503 # Same as above, but a single script fragment to be evaled but not shown.
16504 finish_eval=$lt_finish_eval
16505
16506 # Take the output of nm and produce a listing of raw symbols and C names.
16507 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16508
16509 # Transform the output of nm in a proper C declaration
16510 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16511
16512 # Transform the output of nm in a C name address pair
16513 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16514
16515 # This is the shared library runtime path variable.
16516 runpath_var=$runpath_var
16517
16518 # This is the shared library path variable.
16519 shlibpath_var=$shlibpath_var
16520
16521 # Is shlibpath searched before the hard-coded library search path?
16522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16523
16524 # How to hardcode a shared library path into an executable.
16525 hardcode_action=$hardcode_action
16526
16527 # Whether we should hardcode library paths into libraries.
16528 hardcode_into_libs=$hardcode_into_libs
16529
16530 # Flag to hardcode \$libdir into a binary during linking.
16531 # This must work even if \$libdir does not exist.
16532 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16533
16534 # If ld is used when linking, flag to hardcode \$libdir into
16535 # a binary during linking. This must work even if \$libdir does
16536 # not exist.
16537 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16538
16539 # Whether we need a single -rpath flag with a separated argument.
16540 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16541
16542 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16543 # resulting binary.
16544 hardcode_direct=$hardcode_direct
16545
16546 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16547 # resulting binary.
16548 hardcode_minus_L=$hardcode_minus_L
16549
16550 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16551 # the resulting binary.
16552 hardcode_shlibpath_var=$hardcode_shlibpath_var
16553
16554 # Set to yes if building a shared library automatically hardcodes DIR into the library
16555 # and all subsequent libraries and executables linked against it.
16556 hardcode_automatic=$hardcode_automatic
16557
16558 # Variables whose values should be saved in libtool wrapper scripts and
16559 # restored at relink time.
16560 variables_saved_for_relink="$variables_saved_for_relink"
16561
16562 # Whether libtool must link a program against all its dependency libraries.
16563 link_all_deplibs=$link_all_deplibs
16564
16565 # Compile-time system search path for libraries
16566 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16567
16568 # Run-time system search path for libraries
16569 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16570
16571 # Fix the shell variable \$srcfile for the compiler.
16572 fix_srcfile_path="$fix_srcfile_path"
16573
16574 # Set to yes if exported symbols are required.
16575 always_export_symbols=$always_export_symbols
16576
16577 # The commands to list exported symbols.
16578 export_symbols_cmds=$lt_export_symbols_cmds
16579
16580 # The commands to extract the exported symbol list from a shared archive.
16581 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16582
16583 # Symbols that should not be listed in the preloaded symbols.
16584 exclude_expsyms=$lt_exclude_expsyms
16585
16586 # Symbols that must always be exported.
16587 include_expsyms=$lt_include_expsyms
16588
16589 # ### END LIBTOOL CONFIG
16590
16591 __EOF__
16592
16593
16594   case $host_os in
16595   aix3*)
16596     cat <<\EOF >> "$cfgfile"
16597
16598 # AIX sometimes has problems with the GCC collect2 program.  For some
16599 # reason, if we set the COLLECT_NAMES environment variable, the problems
16600 # vanish in a puff of smoke.
16601 if test "X${COLLECT_NAMES+set}" != Xset; then
16602   COLLECT_NAMES=
16603   export COLLECT_NAMES
16604 fi
16605 EOF
16606     ;;
16607   esac
16608
16609   # We use sed instead of cat because bash on DJGPP gets confused if
16610   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16611   # text mode, it properly converts lines to CR/LF.  This bash problem
16612   # is reportedly fixed, but why not run on old versions too?
16613   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16614
16615   mv -f "$cfgfile" "$ofile" || \
16616     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16617   chmod +x "$ofile"
16618
16619 else
16620   # If there is no Makefile yet, we rely on a make rule to execute
16621   # `config.status --recheck' to rerun these tests and create the
16622   # libtool script then.
16623   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16624   if test -f "$ltmain_in"; then
16625     test -f Makefile && make "$ltmain"
16626   fi
16627 fi
16628
16629
16630 ac_ext=c
16631 ac_cpp='$CPP $CPPFLAGS'
16632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16635
16636 CC="$lt_save_CC"
16637
16638
16639 # Check whether --with-tags or --without-tags was given.
16640 if test "${with_tags+set}" = set; then
16641   withval="$with_tags"
16642   tagnames="$withval"
16643 fi;
16644
16645 if test -f "$ltmain" && test -n "$tagnames"; then
16646   if test ! -f "${ofile}"; then
16647     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16648 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16649   fi
16650
16651   if test -z "$LTCC"; then
16652     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16653     if test -z "$LTCC"; then
16654       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16655 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16656     else
16657       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16658 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16659     fi
16660   fi
16661   if test -z "$LTCFLAGS"; then
16662     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16663   fi
16664
16665   # Extract list of available tagged configurations in $ofile.
16666   # Note that this assumes the entire list is on one line.
16667   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16668
16669   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16670   for tagname in $tagnames; do
16671     IFS="$lt_save_ifs"
16672     # Check whether tagname contains only valid characters
16673     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16674     "") ;;
16675     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16676 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16677    { (exit 1); exit 1; }; }
16678         ;;
16679     esac
16680
16681     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16682     then
16683       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16684 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16685    { (exit 1); exit 1; }; }
16686     fi
16687
16688     # Update the list of available tags.
16689     if test -n "$tagname"; then
16690       echo appending configuration tag \"$tagname\" to $ofile
16691
16692       case $tagname in
16693       CXX)
16694         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16695             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16696             (test "X$CXX" != "Xg++"))) ; then
16697           ac_ext=cc
16698 ac_cpp='$CXXCPP $CPPFLAGS'
16699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16702
16703
16704
16705
16706 archive_cmds_need_lc_CXX=no
16707 allow_undefined_flag_CXX=
16708 always_export_symbols_CXX=no
16709 archive_expsym_cmds_CXX=
16710 export_dynamic_flag_spec_CXX=
16711 hardcode_direct_CXX=no
16712 hardcode_libdir_flag_spec_CXX=
16713 hardcode_libdir_flag_spec_ld_CXX=
16714 hardcode_libdir_separator_CXX=
16715 hardcode_minus_L_CXX=no
16716 hardcode_shlibpath_var_CXX=unsupported
16717 hardcode_automatic_CXX=no
16718 module_cmds_CXX=
16719 module_expsym_cmds_CXX=
16720 link_all_deplibs_CXX=unknown
16721 old_archive_cmds_CXX=$old_archive_cmds
16722 no_undefined_flag_CXX=
16723 whole_archive_flag_spec_CXX=
16724 enable_shared_with_static_runtimes_CXX=no
16725
16726 # Dependencies to place before and after the object being linked:
16727 predep_objects_CXX=
16728 postdep_objects_CXX=
16729 predeps_CXX=
16730 postdeps_CXX=
16731 compiler_lib_search_path_CXX=
16732
16733 # Source file extension for C++ test sources.
16734 ac_ext=cpp
16735
16736 # Object file extension for compiled C++ test sources.
16737 objext=o
16738 objext_CXX=$objext
16739
16740 # Code to be used in simple compile tests
16741 lt_simple_compile_test_code="int some_variable = 0;\n"
16742
16743 # Code to be used in simple link tests
16744 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
16745
16746 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16747
16748 # If no C compiler was specified, use CC.
16749 LTCC=${LTCC-"$CC"}
16750
16751 # If no C compiler flags were specified, use CFLAGS.
16752 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16753
16754 # Allow CC to be a program name with arguments.
16755 compiler=$CC
16756
16757
16758 # save warnings/boilerplate of simple test code
16759 ac_outfile=conftest.$ac_objext
16760 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16761 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16762 _lt_compiler_boilerplate=`cat conftest.err`
16763 $rm conftest*
16764
16765 ac_outfile=conftest.$ac_objext
16766 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16767 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16768 _lt_linker_boilerplate=`cat conftest.err`
16769 $rm conftest*
16770
16771
16772 # Allow CC to be a program name with arguments.
16773 lt_save_CC=$CC
16774 lt_save_LD=$LD
16775 lt_save_GCC=$GCC
16776 GCC=$GXX
16777 lt_save_with_gnu_ld=$with_gnu_ld
16778 lt_save_path_LD=$lt_cv_path_LD
16779 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16780   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16781 else
16782   $as_unset lt_cv_prog_gnu_ld
16783 fi
16784 if test -n "${lt_cv_path_LDCXX+set}"; then
16785   lt_cv_path_LD=$lt_cv_path_LDCXX
16786 else
16787   $as_unset lt_cv_path_LD
16788 fi
16789 test -z "${LDCXX+set}" || LD=$LDCXX
16790 CC=${CXX-"c++"}
16791 compiler=$CC
16792 compiler_CXX=$CC
16793 for cc_temp in $compiler""; do
16794   case $cc_temp in
16795     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16796     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16797     \-*) ;;
16798     *) break;;
16799   esac
16800 done
16801 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16802
16803
16804 # We don't want -fno-exception wen compiling C++ code, so set the
16805 # no_builtin_flag separately
16806 if test "$GXX" = yes; then
16807   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16808 else
16809   lt_prog_compiler_no_builtin_flag_CXX=
16810 fi
16811
16812 if test "$GXX" = yes; then
16813   # Set up default GNU C++ configuration
16814
16815
16816 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16817 if test "${with_gnu_ld+set}" = set; then
16818   withval="$with_gnu_ld"
16819   test "$withval" = no || with_gnu_ld=yes
16820 else
16821   with_gnu_ld=no
16822 fi;
16823 ac_prog=ld
16824 if test "$GCC" = yes; then
16825   # Check if gcc -print-prog-name=ld gives a path.
16826   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16827 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16828   case $host in
16829   *-*-mingw*)
16830     # gcc leaves a trailing carriage return which upsets mingw
16831     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16832   *)
16833     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16834   esac
16835   case $ac_prog in
16836     # Accept absolute paths.
16837     [\\/]* | ?:[\\/]*)
16838       re_direlt='/[^/][^/]*/\.\./'
16839       # Canonicalize the pathname of ld
16840       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16841       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16842         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16843       done
16844       test -z "$LD" && LD="$ac_prog"
16845       ;;
16846   "")
16847     # If it fails, then pretend we aren't using GCC.
16848     ac_prog=ld
16849     ;;
16850   *)
16851     # If it is relative, then search for the first ld in PATH.
16852     with_gnu_ld=unknown
16853     ;;
16854   esac
16855 elif test "$with_gnu_ld" = yes; then
16856   echo "$as_me:$LINENO: checking for GNU ld" >&5
16857 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16858 else
16859   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16860 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16861 fi
16862 if test "${lt_cv_path_LD+set}" = set; then
16863   echo $ECHO_N "(cached) $ECHO_C" >&6
16864 else
16865   if test -z "$LD"; then
16866   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16867   for ac_dir in $PATH; do
16868     IFS="$lt_save_ifs"
16869     test -z "$ac_dir" && ac_dir=.
16870     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16871       lt_cv_path_LD="$ac_dir/$ac_prog"
16872       # Check to see if the program is GNU ld.  I'd rather use --version,
16873       # but apparently some variants of GNU ld only accept -v.
16874       # Break only if it was the GNU/non-GNU ld that we prefer.
16875       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16876       *GNU* | *'with BFD'*)
16877         test "$with_gnu_ld" != no && break
16878         ;;
16879       *)
16880         test "$with_gnu_ld" != yes && break
16881         ;;
16882       esac
16883     fi
16884   done
16885   IFS="$lt_save_ifs"
16886 else
16887   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16888 fi
16889 fi
16890
16891 LD="$lt_cv_path_LD"
16892 if test -n "$LD"; then
16893   echo "$as_me:$LINENO: result: $LD" >&5
16894 echo "${ECHO_T}$LD" >&6
16895 else
16896   echo "$as_me:$LINENO: result: no" >&5
16897 echo "${ECHO_T}no" >&6
16898 fi
16899 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16900 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16901    { (exit 1); exit 1; }; }
16902 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16903 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16904 if test "${lt_cv_prog_gnu_ld+set}" = set; then
16905   echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16907   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16908 case `$LD -v 2>&1 </dev/null` in
16909 *GNU* | *'with BFD'*)
16910   lt_cv_prog_gnu_ld=yes
16911   ;;
16912 *)
16913   lt_cv_prog_gnu_ld=no
16914   ;;
16915 esac
16916 fi
16917 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16918 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
16919 with_gnu_ld=$lt_cv_prog_gnu_ld
16920
16921
16922
16923   # Check if GNU C++ uses GNU ld as the underlying linker, since the
16924   # archiving commands below assume that GNU ld is being used.
16925   if test "$with_gnu_ld" = yes; then
16926     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16927     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'
16928
16929     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16930     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16931
16932     # If archive_cmds runs LD, not CC, wlarc should be empty
16933     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16934     #     investigate it a little bit more. (MM)
16935     wlarc='${wl}'
16936
16937     # ancient GNU ld didn't support --whole-archive et. al.
16938     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
16939         grep 'no-whole-archive' > /dev/null; then
16940       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16941     else
16942       whole_archive_flag_spec_CXX=
16943     fi
16944   else
16945     with_gnu_ld=no
16946     wlarc=
16947
16948     # A generic and very simple default shared library creation
16949     # command for GNU C++ for the case where it uses the native
16950     # linker, instead of GNU ld.  If possible, this setting should
16951     # overridden to take advantage of the native linker features on
16952     # the platform it is being used on.
16953     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16954   fi
16955
16956   # Commands to make compiler produce verbose output that lists
16957   # what "hidden" libraries, object files and flags are used when
16958   # linking a shared library.
16959   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16960
16961 else
16962   GXX=no
16963   with_gnu_ld=no
16964   wlarc=
16965 fi
16966
16967 # PORTME: fill in a description of your system's C++ link characteristics
16968 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16969 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16970 ld_shlibs_CXX=yes
16971 case $host_os in
16972   aix3*)
16973     # FIXME: insert proper C++ library support
16974     ld_shlibs_CXX=no
16975     ;;
16976   aix4* | aix5*)
16977     if test "$host_cpu" = ia64; then
16978       # On IA64, the linker does run time linking by default, so we don't
16979       # have to do anything special.
16980       aix_use_runtimelinking=no
16981       exp_sym_flag='-Bexport'
16982       no_entry_flag=""
16983     else
16984       aix_use_runtimelinking=no
16985
16986       # Test if we are trying to use run time linking or normal
16987       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16988       # need to do runtime linking.
16989       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16990         for ld_flag in $LDFLAGS; do
16991           case $ld_flag in
16992           *-brtl*)
16993             aix_use_runtimelinking=yes
16994             break
16995             ;;
16996           esac
16997         done
16998         ;;
16999       esac
17000
17001       exp_sym_flag='-bexport'
17002       no_entry_flag='-bnoentry'
17003     fi
17004
17005     # When large executables or shared objects are built, AIX ld can
17006     # have problems creating the table of contents.  If linking a library
17007     # or program results in "error TOC overflow" add -mminimal-toc to
17008     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17009     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17010
17011     archive_cmds_CXX=''
17012     hardcode_direct_CXX=yes
17013     hardcode_libdir_separator_CXX=':'
17014     link_all_deplibs_CXX=yes
17015
17016     if test "$GXX" = yes; then
17017       case $host_os in aix4.[012]|aix4.[012].*)
17018       # We only want to do this on AIX 4.2 and lower, the check
17019       # below for broken collect2 doesn't work under 4.3+
17020         collect2name=`${CC} -print-prog-name=collect2`
17021         if test -f "$collect2name" && \
17022            strings "$collect2name" | grep resolve_lib_name >/dev/null
17023         then
17024           # We have reworked collect2
17025           hardcode_direct_CXX=yes
17026         else
17027           # We have old collect2
17028           hardcode_direct_CXX=unsupported
17029           # It fails to find uninstalled libraries when the uninstalled
17030           # path is not listed in the libpath.  Setting hardcode_minus_L
17031           # to unsupported forces relinking
17032           hardcode_minus_L_CXX=yes
17033           hardcode_libdir_flag_spec_CXX='-L$libdir'
17034           hardcode_libdir_separator_CXX=
17035         fi
17036         ;;
17037       esac
17038       shared_flag='-shared'
17039       if test "$aix_use_runtimelinking" = yes; then
17040         shared_flag="$shared_flag "'${wl}-G'
17041       fi
17042     else
17043       # not using gcc
17044       if test "$host_cpu" = ia64; then
17045         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17046         # chokes on -Wl,-G. The following line is correct:
17047         shared_flag='-G'
17048       else
17049         if test "$aix_use_runtimelinking" = yes; then
17050           shared_flag='${wl}-G'
17051         else
17052           shared_flag='${wl}-bM:SRE'
17053         fi
17054       fi
17055     fi
17056
17057     # It seems that -bexpall does not export symbols beginning with
17058     # underscore (_), so it is better to generate a list of symbols to export.
17059     always_export_symbols_CXX=yes
17060     if test "$aix_use_runtimelinking" = yes; then
17061       # Warning - without using the other runtime loading flags (-brtl),
17062       # -berok will link without error, but may produce a broken library.
17063       allow_undefined_flag_CXX='-berok'
17064       # Determine the default libpath from the value encoded in an empty executable.
17065       cat >conftest.$ac_ext <<_ACEOF
17066 /* confdefs.h.  */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h.  */
17071
17072 int
17073 main ()
17074 {
17075
17076   ;
17077   return 0;
17078 }
17079 _ACEOF
17080 rm -f conftest.$ac_objext conftest$ac_exeext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17082   (eval $ac_link) 2>conftest.er1
17083   ac_status=$?
17084   grep -v '^ *+' conftest.er1 >conftest.err
17085   rm -f conftest.er1
17086   cat conftest.err >&5
17087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088   (exit $ac_status); } &&
17089          { ac_try='test -z "$ac_cxx_werror_flag"
17090                          || test ! -s conftest.err'
17091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092   (eval $ac_try) 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; } &&
17096          { ac_try='test -s conftest$ac_exeext'
17097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098   (eval $ac_try) 2>&5
17099   ac_status=$?
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); }; }; then
17102
17103 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17104 }'`
17105 # Check for a 64-bit object if we didn't find anything.
17106 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; }
17107 }'`; fi
17108 else
17109   echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112 fi
17113 rm -f conftest.err conftest.$ac_objext \
17114       conftest$ac_exeext conftest.$ac_ext
17115 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17116
17117       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17118
17119       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"
17120      else
17121       if test "$host_cpu" = ia64; then
17122         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17123         allow_undefined_flag_CXX="-z nodefs"
17124         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"
17125       else
17126         # Determine the default libpath from the value encoded in an empty executable.
17127         cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h.  */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h.  */
17133
17134 int
17135 main ()
17136 {
17137
17138   ;
17139   return 0;
17140 }
17141 _ACEOF
17142 rm -f conftest.$ac_objext conftest$ac_exeext
17143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17144   (eval $ac_link) 2>conftest.er1
17145   ac_status=$?
17146   grep -v '^ *+' conftest.er1 >conftest.err
17147   rm -f conftest.er1
17148   cat conftest.err >&5
17149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); } &&
17151          { ac_try='test -z "$ac_cxx_werror_flag"
17152                          || test ! -s conftest.err'
17153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154   (eval $ac_try) 2>&5
17155   ac_status=$?
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); }; } &&
17158          { ac_try='test -s conftest$ac_exeext'
17159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160   (eval $ac_try) 2>&5
17161   ac_status=$?
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); }; }; then
17164
17165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17166 }'`
17167 # Check for a 64-bit object if we didn't find anything.
17168 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; }
17169 }'`; fi
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174 fi
17175 rm -f conftest.err conftest.$ac_objext \
17176       conftest$ac_exeext conftest.$ac_ext
17177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17178
17179         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17180         # Warning - without using the other run time loading flags,
17181         # -berok will link without error, but may produce a broken library.
17182         no_undefined_flag_CXX=' ${wl}-bernotok'
17183         allow_undefined_flag_CXX=' ${wl}-berok'
17184         # Exported symbols can be pulled into shared objects from archives
17185         whole_archive_flag_spec_CXX='$convenience'
17186         archive_cmds_need_lc_CXX=yes
17187         # This is similar to how AIX traditionally builds its shared libraries.
17188         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'
17189       fi
17190     fi
17191     ;;
17192
17193   beos*)
17194     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17195       allow_undefined_flag_CXX=unsupported
17196       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17197       # support --undefined.  This deserves some investigation.  FIXME
17198       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17199     else
17200       ld_shlibs_CXX=no
17201     fi
17202     ;;
17203
17204   chorus*)
17205     case $cc_basename in
17206       *)
17207         # FIXME: insert proper C++ library support
17208         ld_shlibs_CXX=no
17209         ;;
17210     esac
17211     ;;
17212
17213   cygwin* | mingw* | pw32*)
17214     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17215     # as there is no search path for DLLs.
17216     hardcode_libdir_flag_spec_CXX='-L$libdir'
17217     allow_undefined_flag_CXX=unsupported
17218     always_export_symbols_CXX=no
17219     enable_shared_with_static_runtimes_CXX=yes
17220
17221     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17222       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'
17223       # If the export-symbols file already is a .def file (1st line
17224       # is EXPORTS), use it as is; otherwise, prepend...
17225       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17226         cp $export_symbols $output_objdir/$soname.def;
17227       else
17228         echo EXPORTS > $output_objdir/$soname.def;
17229         cat $export_symbols >> $output_objdir/$soname.def;
17230       fi~
17231       $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'
17232     else
17233       ld_shlibs_CXX=no
17234     fi
17235   ;;
17236       darwin* | rhapsody*)
17237         case $host_os in
17238         rhapsody* | darwin1.[012])
17239          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17240          ;;
17241        *) # Darwin 1.3 on
17242          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17243            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17244          else
17245            case ${MACOSX_DEPLOYMENT_TARGET} in
17246              10.[012])
17247                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17248                ;;
17249              10.*)
17250                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17251                ;;
17252            esac
17253          fi
17254          ;;
17255         esac
17256       archive_cmds_need_lc_CXX=no
17257       hardcode_direct_CXX=no
17258       hardcode_automatic_CXX=yes
17259       hardcode_shlibpath_var_CXX=unsupported
17260       whole_archive_flag_spec_CXX=''
17261       link_all_deplibs_CXX=yes
17262
17263     if test "$GXX" = yes ; then
17264       lt_int_apple_cc_single_mod=no
17265       output_verbose_link_cmd='echo'
17266       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17267        lt_int_apple_cc_single_mod=yes
17268       fi
17269       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17270        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17271       else
17272           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'
17273         fi
17274         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17275         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17276           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17277             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}'
17278           else
17279             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}'
17280           fi
17281             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}'
17282       else
17283       case $cc_basename in
17284         xlc*)
17285          output_verbose_link_cmd='echo'
17286           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'
17287           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17288           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17289           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}'
17290           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}'
17291           ;;
17292        *)
17293          ld_shlibs_CXX=no
17294           ;;
17295       esac
17296       fi
17297         ;;
17298
17299   dgux*)
17300     case $cc_basename in
17301       ec++*)
17302         # FIXME: insert proper C++ library support
17303         ld_shlibs_CXX=no
17304         ;;
17305       ghcx*)
17306         # Green Hills C++ Compiler
17307         # FIXME: insert proper C++ library support
17308         ld_shlibs_CXX=no
17309         ;;
17310       *)
17311         # FIXME: insert proper C++ library support
17312         ld_shlibs_CXX=no
17313         ;;
17314     esac
17315     ;;
17316   freebsd[12]*)
17317     # C++ shared libraries reported to be fairly broken before switch to ELF
17318     ld_shlibs_CXX=no
17319     ;;
17320   freebsd-elf*)
17321     archive_cmds_need_lc_CXX=no
17322     ;;
17323   freebsd* | kfreebsd*-gnu | dragonfly*)
17324     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17325     # conventions
17326     ld_shlibs_CXX=yes
17327     ;;
17328   gnu*)
17329     ;;
17330   hpux9*)
17331     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17332     hardcode_libdir_separator_CXX=:
17333     export_dynamic_flag_spec_CXX='${wl}-E'
17334     hardcode_direct_CXX=yes
17335     hardcode_minus_L_CXX=yes # Not in the search PATH,
17336                                 # but as the default
17337                                 # location of the library.
17338
17339     case $cc_basename in
17340     CC*)
17341       # FIXME: insert proper C++ library support
17342       ld_shlibs_CXX=no
17343       ;;
17344     aCC*)
17345       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'
17346       # Commands to make compiler produce verbose output that lists
17347       # what "hidden" libraries, object files and flags are used when
17348       # linking a shared library.
17349       #
17350       # There doesn't appear to be a way to prevent this compiler from
17351       # explicitly linking system object files so we need to strip them
17352       # from the output so that they don't get included in the library
17353       # dependencies.
17354       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'
17355       ;;
17356     *)
17357       if test "$GXX" = yes; then
17358         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'
17359       else
17360         # FIXME: insert proper C++ library support
17361         ld_shlibs_CXX=no
17362       fi
17363       ;;
17364     esac
17365     ;;
17366   hpux10*|hpux11*)
17367     if test $with_gnu_ld = no; then
17368       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17369       hardcode_libdir_separator_CXX=:
17370
17371       case $host_cpu in
17372       hppa*64*|ia64*)
17373         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17374         ;;
17375       *)
17376         export_dynamic_flag_spec_CXX='${wl}-E'
17377         ;;
17378       esac
17379     fi
17380     case $host_cpu in
17381     hppa*64*|ia64*)
17382       hardcode_direct_CXX=no
17383       hardcode_shlibpath_var_CXX=no
17384       ;;
17385     *)
17386       hardcode_direct_CXX=yes
17387       hardcode_minus_L_CXX=yes # Not in the search PATH,
17388                                               # but as the default
17389                                               # location of the library.
17390       ;;
17391     esac
17392
17393     case $cc_basename in
17394       CC*)
17395         # FIXME: insert proper C++ library support
17396         ld_shlibs_CXX=no
17397         ;;
17398       aCC*)
17399         case $host_cpu in
17400         hppa*64*)
17401           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17402           ;;
17403         ia64*)
17404           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17405           ;;
17406         *)
17407           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17408           ;;
17409         esac
17410         # Commands to make compiler produce verbose output that lists
17411         # what "hidden" libraries, object files and flags are used when
17412         # linking a shared library.
17413         #
17414         # There doesn't appear to be a way to prevent this compiler from
17415         # explicitly linking system object files so we need to strip them
17416         # from the output so that they don't get included in the library
17417         # dependencies.
17418         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'
17419         ;;
17420       *)
17421         if test "$GXX" = yes; then
17422           if test $with_gnu_ld = no; then
17423             case $host_cpu in
17424             hppa*64*)
17425               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17426               ;;
17427             ia64*)
17428               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17429               ;;
17430             *)
17431               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'
17432               ;;
17433             esac
17434           fi
17435         else
17436           # FIXME: insert proper C++ library support
17437           ld_shlibs_CXX=no
17438         fi
17439         ;;
17440     esac
17441     ;;
17442   interix3*)
17443     hardcode_direct_CXX=no
17444     hardcode_shlibpath_var_CXX=no
17445     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17446     export_dynamic_flag_spec_CXX='${wl}-E'
17447     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17448     # Instead, shared libraries are loaded at an image base (0x10000000 by
17449     # default) and relocated if they conflict, which is a slow very memory
17450     # consuming and fragmenting process.  To avoid this, we pick a random,
17451     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17452     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17453     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'
17454     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'
17455     ;;
17456   irix5* | irix6*)
17457     case $cc_basename in
17458       CC*)
17459         # SGI C++
17460         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'
17461
17462         # Archives containing C++ object files must be created using
17463         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17464         # necessary to make sure instantiated templates are included
17465         # in the archive.
17466         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17467         ;;
17468       *)
17469         if test "$GXX" = yes; then
17470           if test "$with_gnu_ld" = no; then
17471             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'
17472           else
17473             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'
17474           fi
17475         fi
17476         link_all_deplibs_CXX=yes
17477         ;;
17478     esac
17479     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17480     hardcode_libdir_separator_CXX=:
17481     ;;
17482   linux*)
17483     case $cc_basename in
17484       KCC*)
17485         # Kuck and Associates, Inc. (KAI) C++ Compiler
17486
17487         # KCC will only create a shared library if the output file
17488         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17489         # to its proper name (with version) after linking.
17490         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'
17491         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'
17492         # Commands to make compiler produce verbose output that lists
17493         # what "hidden" libraries, object files and flags are used when
17494         # linking a shared library.
17495         #
17496         # There doesn't appear to be a way to prevent this compiler from
17497         # explicitly linking system object files so we need to strip them
17498         # from the output so that they don't get included in the library
17499         # dependencies.
17500         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'
17501
17502         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17503         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17504
17505         # Archives containing C++ object files must be created using
17506         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17507         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17508         ;;
17509       icpc*)
17510         # Intel C++
17511         with_gnu_ld=yes
17512         # version 8.0 and above of icpc choke on multiply defined symbols
17513         # if we add $predep_objects and $postdep_objects, however 7.1 and
17514         # earlier do not add the objects themselves.
17515         case `$CC -V 2>&1` in
17516         *"Version 7."*)
17517           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17518           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'
17519           ;;
17520         *)  # Version 8.0 or newer
17521           tmp_idyn=
17522           case $host_cpu in
17523             ia64*) tmp_idyn=' -i_dynamic';;
17524           esac
17525           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17526           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'
17527           ;;
17528         esac
17529         archive_cmds_need_lc_CXX=no
17530         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17531         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17532         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17533         ;;
17534       pgCC*)
17535         # Portland Group C++ compiler
17536         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17537         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'
17538
17539         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17540         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17541         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'
17542         ;;
17543       cxx*)
17544         # Compaq C++
17545         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17546         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'
17547
17548         runpath_var=LD_RUN_PATH
17549         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17550         hardcode_libdir_separator_CXX=:
17551
17552         # Commands to make compiler produce verbose output that lists
17553         # what "hidden" libraries, object files and flags are used when
17554         # linking a shared library.
17555         #
17556         # There doesn't appear to be a way to prevent this compiler from
17557         # explicitly linking system object files so we need to strip them
17558         # from the output so that they don't get included in the library
17559         # dependencies.
17560         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'
17561         ;;
17562     esac
17563     ;;
17564   lynxos*)
17565     # FIXME: insert proper C++ library support
17566     ld_shlibs_CXX=no
17567     ;;
17568   m88k*)
17569     # FIXME: insert proper C++ library support
17570     ld_shlibs_CXX=no
17571     ;;
17572   mvs*)
17573     case $cc_basename in
17574       cxx*)
17575         # FIXME: insert proper C++ library support
17576         ld_shlibs_CXX=no
17577         ;;
17578       *)
17579         # FIXME: insert proper C++ library support
17580         ld_shlibs_CXX=no
17581         ;;
17582     esac
17583     ;;
17584   netbsd*)
17585     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17586       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17587       wlarc=
17588       hardcode_libdir_flag_spec_CXX='-R$libdir'
17589       hardcode_direct_CXX=yes
17590       hardcode_shlibpath_var_CXX=no
17591     fi
17592     # Workaround some broken pre-1.5 toolchains
17593     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17594     ;;
17595   openbsd2*)
17596     # C++ shared libraries are fairly broken
17597     ld_shlibs_CXX=no
17598     ;;
17599   openbsd*)
17600     hardcode_direct_CXX=yes
17601     hardcode_shlibpath_var_CXX=no
17602     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17603     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17604     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17605       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17606       export_dynamic_flag_spec_CXX='${wl}-E'
17607       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17608     fi
17609     output_verbose_link_cmd='echo'
17610     ;;
17611   osf3*)
17612     case $cc_basename in
17613       KCC*)
17614         # Kuck and Associates, Inc. (KAI) C++ Compiler
17615
17616         # KCC will only create a shared library if the output file
17617         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17618         # to its proper name (with version) after linking.
17619         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'
17620
17621         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17622         hardcode_libdir_separator_CXX=:
17623
17624         # Archives containing C++ object files must be created using
17625         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17626         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17627
17628         ;;
17629       RCC*)
17630         # Rational C++ 2.4.1
17631         # FIXME: insert proper C++ library support
17632         ld_shlibs_CXX=no
17633         ;;
17634       cxx*)
17635         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17636         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'
17637
17638         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17639         hardcode_libdir_separator_CXX=:
17640
17641         # Commands to make compiler produce verbose output that lists
17642         # what "hidden" libraries, object files and flags are used when
17643         # linking a shared library.
17644         #
17645         # There doesn't appear to be a way to prevent this compiler from
17646         # explicitly linking system object files so we need to strip them
17647         # from the output so that they don't get included in the library
17648         # dependencies.
17649         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'
17650         ;;
17651       *)
17652         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17653           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17654           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'
17655
17656           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17657           hardcode_libdir_separator_CXX=:
17658
17659           # Commands to make compiler produce verbose output that lists
17660           # what "hidden" libraries, object files and flags are used when
17661           # linking a shared library.
17662           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17663
17664         else
17665           # FIXME: insert proper C++ library support
17666           ld_shlibs_CXX=no
17667         fi
17668         ;;
17669     esac
17670     ;;
17671   osf4* | osf5*)
17672     case $cc_basename in
17673       KCC*)
17674         # Kuck and Associates, Inc. (KAI) C++ Compiler
17675
17676         # KCC will only create a shared library if the output file
17677         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17678         # to its proper name (with version) after linking.
17679         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'
17680
17681         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17682         hardcode_libdir_separator_CXX=:
17683
17684         # Archives containing C++ object files must be created using
17685         # the KAI C++ compiler.
17686         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17687         ;;
17688       RCC*)
17689         # Rational C++ 2.4.1
17690         # FIXME: insert proper C++ library support
17691         ld_shlibs_CXX=no
17692         ;;
17693       cxx*)
17694         allow_undefined_flag_CXX=' -expect_unresolved \*'
17695         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'
17696         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17697           echo "-hidden">> $lib.exp~
17698           $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~
17699           $rm $lib.exp'
17700
17701         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17702         hardcode_libdir_separator_CXX=:
17703
17704         # Commands to make compiler produce verbose output that lists
17705         # what "hidden" libraries, object files and flags are used when
17706         # linking a shared library.
17707         #
17708         # There doesn't appear to be a way to prevent this compiler from
17709         # explicitly linking system object files so we need to strip them
17710         # from the output so that they don't get included in the library
17711         # dependencies.
17712         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'
17713         ;;
17714       *)
17715         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17716           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17717          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'
17718
17719           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17720           hardcode_libdir_separator_CXX=:
17721
17722           # Commands to make compiler produce verbose output that lists
17723           # what "hidden" libraries, object files and flags are used when
17724           # linking a shared library.
17725           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17726
17727         else
17728           # FIXME: insert proper C++ library support
17729           ld_shlibs_CXX=no
17730         fi
17731         ;;
17732     esac
17733     ;;
17734   psos*)
17735     # FIXME: insert proper C++ library support
17736     ld_shlibs_CXX=no
17737     ;;
17738   sunos4*)
17739     case $cc_basename in
17740       CC*)
17741         # Sun C++ 4.x
17742         # FIXME: insert proper C++ library support
17743         ld_shlibs_CXX=no
17744         ;;
17745       lcc*)
17746         # Lucid
17747         # FIXME: insert proper C++ library support
17748         ld_shlibs_CXX=no
17749         ;;
17750       *)
17751         # FIXME: insert proper C++ library support
17752         ld_shlibs_CXX=no
17753         ;;
17754     esac
17755     ;;
17756   solaris*)
17757     case $cc_basename in
17758       CC*)
17759         # Sun C++ 4.2, 5.x and Centerline C++
17760         archive_cmds_need_lc_CXX=yes
17761         no_undefined_flag_CXX=' -zdefs'
17762         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17763         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17764         $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'
17765
17766         hardcode_libdir_flag_spec_CXX='-R$libdir'
17767         hardcode_shlibpath_var_CXX=no
17768         case $host_os in
17769           solaris2.[0-5] | solaris2.[0-5].*) ;;
17770           *)
17771             # The C++ compiler is used as linker so we must use $wl
17772             # flag to pass the commands to the underlying system
17773             # linker. We must also pass each convience library through
17774             # to the system linker between allextract/defaultextract.
17775             # The C++ compiler will combine linker options so we
17776             # cannot just pass the convience library names through
17777             # without $wl.
17778             # Supported since Solaris 2.6 (maybe 2.5.1?)
17779             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'
17780             ;;
17781         esac
17782         link_all_deplibs_CXX=yes
17783
17784         output_verbose_link_cmd='echo'
17785
17786         # Archives containing C++ object files must be created using
17787         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17788         # necessary to make sure instantiated templates are included
17789         # in the archive.
17790         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17791         ;;
17792       gcx*)
17793         # Green Hills C++ Compiler
17794         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17795
17796         # The C++ compiler must be used to create the archive.
17797         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17798         ;;
17799       *)
17800         # GNU C++ compiler with Solaris linker
17801         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17802           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17803           if $CC --version | grep -v '^2\.7' > /dev/null; then
17804             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17805             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17806                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17807
17808             # Commands to make compiler produce verbose output that lists
17809             # what "hidden" libraries, object files and flags are used when
17810             # linking a shared library.
17811             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17812           else
17813             # g++ 2.7 appears to require `-G' NOT `-shared' on this
17814             # platform.
17815             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17816             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17817                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17818
17819             # Commands to make compiler produce verbose output that lists
17820             # what "hidden" libraries, object files and flags are used when
17821             # linking a shared library.
17822             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17823           fi
17824
17825           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17826         fi
17827         ;;
17828     esac
17829     ;;
17830   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17831     no_undefined_flag_CXX='${wl}-z,text'
17832     archive_cmds_need_lc_CXX=no
17833     hardcode_shlibpath_var_CXX=no
17834     runpath_var='LD_RUN_PATH'
17835
17836     case $cc_basename in
17837       CC*)
17838         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17839         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17840         ;;
17841       *)
17842         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17843         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17844         ;;
17845     esac
17846     ;;
17847   sysv5* | sco3.2v5* | sco5v6*)
17848     # Note: We can NOT use -z defs as we might desire, because we do not
17849     # link with -lc, and that would cause any symbols used from libc to
17850     # always be unresolved, which means just about no library would
17851     # ever link correctly.  If we're not using GNU ld we use -z text
17852     # though, which does catch some bad symbols but isn't as heavy-handed
17853     # as -z defs.
17854     # For security reasons, it is highly recommended that you always
17855     # use absolute paths for naming shared libraries, and exclude the
17856     # DT_RUNPATH tag from executables and libraries.  But doing so
17857     # requires that you compile everything twice, which is a pain.
17858     # So that behaviour is only enabled if SCOABSPATH is set to a
17859     # non-empty value in the environment.  Most likely only useful for
17860     # creating official distributions of packages.
17861     # This is a hack until libtool officially supports absolute path
17862     # names for shared libraries.
17863     no_undefined_flag_CXX='${wl}-z,text'
17864     allow_undefined_flag_CXX='${wl}-z,nodefs'
17865     archive_cmds_need_lc_CXX=no
17866     hardcode_shlibpath_var_CXX=no
17867     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17868     hardcode_libdir_separator_CXX=':'
17869     link_all_deplibs_CXX=yes
17870     export_dynamic_flag_spec_CXX='${wl}-Bexport'
17871     runpath_var='LD_RUN_PATH'
17872
17873     case $cc_basename in
17874       CC*)
17875         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17876         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17877         ;;
17878       *)
17879         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17880         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17881         ;;
17882     esac
17883     ;;
17884   tandem*)
17885     case $cc_basename in
17886       NCC*)
17887         # NonStop-UX NCC 3.20
17888         # FIXME: insert proper C++ library support
17889         ld_shlibs_CXX=no
17890         ;;
17891       *)
17892         # FIXME: insert proper C++ library support
17893         ld_shlibs_CXX=no
17894         ;;
17895     esac
17896     ;;
17897   vxworks*)
17898     # FIXME: insert proper C++ library support
17899     ld_shlibs_CXX=no
17900     ;;
17901   *)
17902     # FIXME: insert proper C++ library support
17903     ld_shlibs_CXX=no
17904     ;;
17905 esac
17906 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17907 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17908 test "$ld_shlibs_CXX" = no && can_build_shared=no
17909
17910 GCC_CXX="$GXX"
17911 LD_CXX="$LD"
17912
17913
17914 cat > conftest.$ac_ext <<EOF
17915 class Foo
17916 {
17917 public:
17918   Foo (void) { a = 0; }
17919 private:
17920   int a;
17921 };
17922 EOF
17923
17924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17925   (eval $ac_compile) 2>&5
17926   ac_status=$?
17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928   (exit $ac_status); }; then
17929   # Parse the compiler output and extract the necessary
17930   # objects, libraries and library flags.
17931
17932   # Sentinel used to keep track of whether or not we are before
17933   # the conftest object file.
17934   pre_test_object_deps_done=no
17935
17936   # The `*' in the case matches for architectures that use `case' in
17937   # $output_verbose_cmd can trigger glob expansion during the loop
17938   # eval without this substitution.
17939   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
17940
17941   for p in `eval $output_verbose_link_cmd`; do
17942     case $p in
17943
17944     -L* | -R* | -l*)
17945        # Some compilers place space between "-{L,R}" and the path.
17946        # Remove the space.
17947        if test $p = "-L" \
17948           || test $p = "-R"; then
17949          prev=$p
17950          continue
17951        else
17952          prev=
17953        fi
17954
17955        if test "$pre_test_object_deps_done" = no; then
17956          case $p in
17957          -L* | -R*)
17958            # Internal compiler library paths should come after those
17959            # provided the user.  The postdeps already come after the
17960            # user supplied libs so there is no need to process them.
17961            if test -z "$compiler_lib_search_path_CXX"; then
17962              compiler_lib_search_path_CXX="${prev}${p}"
17963            else
17964              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17965            fi
17966            ;;
17967          # The "-l" case would never come before the object being
17968          # linked, so don't bother handling this case.
17969          esac
17970        else
17971          if test -z "$postdeps_CXX"; then
17972            postdeps_CXX="${prev}${p}"
17973          else
17974            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17975          fi
17976        fi
17977        ;;
17978
17979     *.$objext)
17980        # This assumes that the test object file only shows up
17981        # once in the compiler output.
17982        if test "$p" = "conftest.$objext"; then
17983          pre_test_object_deps_done=yes
17984          continue
17985        fi
17986
17987        if test "$pre_test_object_deps_done" = no; then
17988          if test -z "$predep_objects_CXX"; then
17989            predep_objects_CXX="$p"
17990          else
17991            predep_objects_CXX="$predep_objects_CXX $p"
17992          fi
17993        else
17994          if test -z "$postdep_objects_CXX"; then
17995            postdep_objects_CXX="$p"
17996          else
17997            postdep_objects_CXX="$postdep_objects_CXX $p"
17998          fi
17999        fi
18000        ;;
18001
18002     *) ;; # Ignore the rest.
18003
18004     esac
18005   done
18006
18007   # Clean up.
18008   rm -f a.out a.exe
18009 else
18010   echo "libtool.m4: error: problem compiling CXX test program"
18011 fi
18012
18013 $rm -f confest.$objext
18014
18015 # PORTME: override above test on systems where it is broken
18016 case $host_os in
18017 interix3*)
18018   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18019   # hack all around it, let's just trust "g++" to DTRT.
18020   predep_objects_CXX=
18021   postdep_objects_CXX=
18022   postdeps_CXX=
18023   ;;
18024
18025 solaris*)
18026   case $cc_basename in
18027   CC*)
18028     # Adding this requires a known-good setup of shared libraries for
18029     # Sun compiler versions before 5.6, else PIC objects from an old
18030     # archive will be linked into the output, leading to subtle bugs.
18031     postdeps_CXX='-lCstd -lCrun'
18032     ;;
18033   esac
18034   ;;
18035 esac
18036
18037
18038 case " $postdeps_CXX " in
18039 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18040 esac
18041
18042 lt_prog_compiler_wl_CXX=
18043 lt_prog_compiler_pic_CXX=
18044 lt_prog_compiler_static_CXX=
18045
18046 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18047 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18048
18049   # C++ specific cases for pic, static, wl, etc.
18050   if test "$GXX" = yes; then
18051     lt_prog_compiler_wl_CXX='-Wl,'
18052     lt_prog_compiler_static_CXX='-static'
18053
18054     case $host_os in
18055     aix*)
18056       # All AIX code is PIC.
18057       if test "$host_cpu" = ia64; then
18058         # AIX 5 now supports IA64 processor
18059         lt_prog_compiler_static_CXX='-Bstatic'
18060       fi
18061       ;;
18062     amigaos*)
18063       # FIXME: we need at least 68020 code to build shared libraries, but
18064       # adding the `-m68020' flag to GCC prevents building anything better,
18065       # like `-m68040'.
18066       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18067       ;;
18068     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18069       # PIC is the default for these OSes.
18070       ;;
18071     mingw* | os2* | pw32*)
18072       # This hack is so that the source file can tell whether it is being
18073       # built for inclusion in a dll (and should export symbols for example).
18074       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18075       ;;
18076     darwin* | rhapsody*)
18077       # PIC is the default on this platform
18078       # Common symbols not allowed in MH_DYLIB files
18079       lt_prog_compiler_pic_CXX='-fno-common'
18080       ;;
18081     *djgpp*)
18082       # DJGPP does not support shared libraries at all
18083       lt_prog_compiler_pic_CXX=
18084       ;;
18085     interix3*)
18086       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18087       # Instead, we relocate shared libraries at runtime.
18088       ;;
18089     sysv4*MP*)
18090       if test -d /usr/nec; then
18091         lt_prog_compiler_pic_CXX=-Kconform_pic
18092       fi
18093       ;;
18094     hpux*)
18095       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18096       # not for PA HP-UX.
18097       case $host_cpu in
18098       hppa*64*|ia64*)
18099         ;;
18100       *)
18101         lt_prog_compiler_pic_CXX='-fPIC'
18102         ;;
18103       esac
18104       ;;
18105     *)
18106       lt_prog_compiler_pic_CXX='-fPIC'
18107       ;;
18108     esac
18109   else
18110     case $host_os in
18111       aix4* | aix5*)
18112         # All AIX code is PIC.
18113         if test "$host_cpu" = ia64; then
18114           # AIX 5 now supports IA64 processor
18115           lt_prog_compiler_static_CXX='-Bstatic'
18116         else
18117           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18118         fi
18119         ;;
18120       chorus*)
18121         case $cc_basename in
18122         cxch68*)
18123           # Green Hills C++ Compiler
18124           # _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"
18125           ;;
18126         esac
18127         ;;
18128        darwin*)
18129          # PIC is the default on this platform
18130          # Common symbols not allowed in MH_DYLIB files
18131          case $cc_basename in
18132            xlc*)
18133            lt_prog_compiler_pic_CXX='-qnocommon'
18134            lt_prog_compiler_wl_CXX='-Wl,'
18135            ;;
18136          esac
18137        ;;
18138       dgux*)
18139         case $cc_basename in
18140           ec++*)
18141             lt_prog_compiler_pic_CXX='-KPIC'
18142             ;;
18143           ghcx*)
18144             # Green Hills C++ Compiler
18145             lt_prog_compiler_pic_CXX='-pic'
18146             ;;
18147           *)
18148             ;;
18149         esac
18150         ;;
18151       freebsd* | kfreebsd*-gnu | dragonfly*)
18152         # FreeBSD uses GNU C++
18153         ;;
18154       hpux9* | hpux10* | hpux11*)
18155         case $cc_basename in
18156           CC*)
18157             lt_prog_compiler_wl_CXX='-Wl,'
18158             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18159             if test "$host_cpu" != ia64; then
18160               lt_prog_compiler_pic_CXX='+Z'
18161             fi
18162             ;;
18163           aCC*)
18164             lt_prog_compiler_wl_CXX='-Wl,'
18165             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18166             case $host_cpu in
18167             hppa*64*|ia64*)
18168               # +Z the default
18169               ;;
18170             *)
18171               lt_prog_compiler_pic_CXX='+Z'
18172               ;;
18173             esac
18174             ;;
18175           *)
18176             ;;
18177         esac
18178         ;;
18179       interix*)
18180         # This is c89, which is MS Visual C++ (no shared libs)
18181         # Anyone wants to do a port?
18182         ;;
18183       irix5* | irix6* | nonstopux*)
18184         case $cc_basename in
18185           CC*)
18186             lt_prog_compiler_wl_CXX='-Wl,'
18187             lt_prog_compiler_static_CXX='-non_shared'
18188             # CC pic flag -KPIC is the default.
18189             ;;
18190           *)
18191             ;;
18192         esac
18193         ;;
18194       linux*)
18195         case $cc_basename in
18196           KCC*)
18197             # KAI C++ Compiler
18198             lt_prog_compiler_wl_CXX='--backend -Wl,'
18199             lt_prog_compiler_pic_CXX='-fPIC'
18200             ;;
18201           icpc* | ecpc*)
18202             # Intel C++
18203             lt_prog_compiler_wl_CXX='-Wl,'
18204             lt_prog_compiler_pic_CXX='-KPIC'
18205             lt_prog_compiler_static_CXX='-static'
18206             ;;
18207           pgCC*)
18208             # Portland Group C++ compiler.
18209             lt_prog_compiler_wl_CXX='-Wl,'
18210             lt_prog_compiler_pic_CXX='-fpic'
18211             lt_prog_compiler_static_CXX='-Bstatic'
18212             ;;
18213           cxx*)
18214             # Compaq C++
18215             # Make sure the PIC flag is empty.  It appears that all Alpha
18216             # Linux and Compaq Tru64 Unix objects are PIC.
18217             lt_prog_compiler_pic_CXX=
18218             lt_prog_compiler_static_CXX='-non_shared'
18219             ;;
18220           *)
18221             ;;
18222         esac
18223         ;;
18224       lynxos*)
18225         ;;
18226       m88k*)
18227         ;;
18228       mvs*)
18229         case $cc_basename in
18230           cxx*)
18231             lt_prog_compiler_pic_CXX='-W c,exportall'
18232             ;;
18233           *)
18234             ;;
18235         esac
18236         ;;
18237       netbsd*)
18238         ;;
18239       osf3* | osf4* | osf5*)
18240         case $cc_basename in
18241           KCC*)
18242             lt_prog_compiler_wl_CXX='--backend -Wl,'
18243             ;;
18244           RCC*)
18245             # Rational C++ 2.4.1
18246             lt_prog_compiler_pic_CXX='-pic'
18247             ;;
18248           cxx*)
18249             # Digital/Compaq C++
18250             lt_prog_compiler_wl_CXX='-Wl,'
18251             # Make sure the PIC flag is empty.  It appears that all Alpha
18252             # Linux and Compaq Tru64 Unix objects are PIC.
18253             lt_prog_compiler_pic_CXX=
18254             lt_prog_compiler_static_CXX='-non_shared'
18255             ;;
18256           *)
18257             ;;
18258         esac
18259         ;;
18260       psos*)
18261         ;;
18262       solaris*)
18263         case $cc_basename in
18264           CC*)
18265             # Sun C++ 4.2, 5.x and Centerline C++
18266             lt_prog_compiler_pic_CXX='-KPIC'
18267             lt_prog_compiler_static_CXX='-Bstatic'
18268             lt_prog_compiler_wl_CXX='-Qoption ld '
18269             ;;
18270           gcx*)
18271             # Green Hills C++ Compiler
18272             lt_prog_compiler_pic_CXX='-PIC'
18273             ;;
18274           *)
18275             ;;
18276         esac
18277         ;;
18278       sunos4*)
18279         case $cc_basename in
18280           CC*)
18281             # Sun C++ 4.x
18282             lt_prog_compiler_pic_CXX='-pic'
18283             lt_prog_compiler_static_CXX='-Bstatic'
18284             ;;
18285           lcc*)
18286             # Lucid
18287             lt_prog_compiler_pic_CXX='-pic'
18288             ;;
18289           *)
18290             ;;
18291         esac
18292         ;;
18293       tandem*)
18294         case $cc_basename in
18295           NCC*)
18296             # NonStop-UX NCC 3.20
18297             lt_prog_compiler_pic_CXX='-KPIC'
18298             ;;
18299           *)
18300             ;;
18301         esac
18302         ;;
18303       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18304         case $cc_basename in
18305           CC*)
18306             lt_prog_compiler_wl_CXX='-Wl,'
18307             lt_prog_compiler_pic_CXX='-KPIC'
18308             lt_prog_compiler_static_CXX='-Bstatic'
18309             ;;
18310         esac
18311         ;;
18312       vxworks*)
18313         ;;
18314       *)
18315         lt_prog_compiler_can_build_shared_CXX=no
18316         ;;
18317     esac
18318   fi
18319
18320 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18321 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
18322
18323 #
18324 # Check to make sure the PIC flag actually works.
18325 #
18326 if test -n "$lt_prog_compiler_pic_CXX"; then
18327
18328 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18329 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
18330 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18331   echo $ECHO_N "(cached) $ECHO_C" >&6
18332 else
18333   lt_prog_compiler_pic_works_CXX=no
18334   ac_outfile=conftest.$ac_objext
18335    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18336    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18337    # Insert the option either (1) after the last *FLAGS variable, or
18338    # (2) before a word containing "conftest.", or (3) at the end.
18339    # Note that $ac_compile itself does not contain backslashes and begins
18340    # with a dollar sign (not a hyphen), so the echo should work correctly.
18341    # The option is referenced via a variable to avoid confusing sed.
18342    lt_compile=`echo "$ac_compile" | $SED \
18343    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18345    -e 's:$: $lt_compiler_flag:'`
18346    (eval echo "\"\$as_me:18346: $lt_compile\"" >&5)
18347    (eval "$lt_compile" 2>conftest.err)
18348    ac_status=$?
18349    cat conftest.err >&5
18350    echo "$as_me:18350: \$? = $ac_status" >&5
18351    if (exit $ac_status) && test -s "$ac_outfile"; then
18352      # The compiler can only warn and ignore the option if not recognized
18353      # So say no if there are warnings other than the usual output.
18354      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18355      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18356      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18357        lt_prog_compiler_pic_works_CXX=yes
18358      fi
18359    fi
18360    $rm conftest*
18361
18362 fi
18363 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18364 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
18365
18366 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18367     case $lt_prog_compiler_pic_CXX in
18368      "" | " "*) ;;
18369      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18370      esac
18371 else
18372     lt_prog_compiler_pic_CXX=
18373      lt_prog_compiler_can_build_shared_CXX=no
18374 fi
18375
18376 fi
18377 case $host_os in
18378   # For platforms which do not support PIC, -DPIC is meaningless:
18379   *djgpp*)
18380     lt_prog_compiler_pic_CXX=
18381     ;;
18382   *)
18383     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18384     ;;
18385 esac
18386
18387 #
18388 # Check to make sure the static flag actually works.
18389 #
18390 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18391 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18392 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18393 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18394   echo $ECHO_N "(cached) $ECHO_C" >&6
18395 else
18396   lt_prog_compiler_static_works_CXX=no
18397    save_LDFLAGS="$LDFLAGS"
18398    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18399    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18400    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18401      # The linker can only warn and ignore the option if not recognized
18402      # So say no if there are warnings
18403      if test -s conftest.err; then
18404        # Append any errors to the config.log.
18405        cat conftest.err 1>&5
18406        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18407        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18408        if diff conftest.exp conftest.er2 >/dev/null; then
18409          lt_prog_compiler_static_works_CXX=yes
18410        fi
18411      else
18412        lt_prog_compiler_static_works_CXX=yes
18413      fi
18414    fi
18415    $rm conftest*
18416    LDFLAGS="$save_LDFLAGS"
18417
18418 fi
18419 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18420 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
18421
18422 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18423     :
18424 else
18425     lt_prog_compiler_static_CXX=
18426 fi
18427
18428
18429 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18430 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18431 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18432   echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434   lt_cv_prog_compiler_c_o_CXX=no
18435    $rm -r conftest 2>/dev/null
18436    mkdir conftest
18437    cd conftest
18438    mkdir out
18439    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18440
18441    lt_compiler_flag="-o out/conftest2.$ac_objext"
18442    # Insert the option either (1) after the last *FLAGS variable, or
18443    # (2) before a word containing "conftest.", or (3) at the end.
18444    # Note that $ac_compile itself does not contain backslashes and begins
18445    # with a dollar sign (not a hyphen), so the echo should work correctly.
18446    lt_compile=`echo "$ac_compile" | $SED \
18447    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18448    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18449    -e 's:$: $lt_compiler_flag:'`
18450    (eval echo "\"\$as_me:18450: $lt_compile\"" >&5)
18451    (eval "$lt_compile" 2>out/conftest.err)
18452    ac_status=$?
18453    cat out/conftest.err >&5
18454    echo "$as_me:18454: \$? = $ac_status" >&5
18455    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18456    then
18457      # The compiler can only warn and ignore the option if not recognized
18458      # So say no if there are warnings
18459      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18460      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18461      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18462        lt_cv_prog_compiler_c_o_CXX=yes
18463      fi
18464    fi
18465    chmod u+w . 2>&5
18466    $rm conftest*
18467    # SGI C++ compiler will create directory out/ii_files/ for
18468    # template instantiation
18469    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18470    $rm out/* && rmdir out
18471    cd ..
18472    rmdir conftest
18473    $rm conftest*
18474
18475 fi
18476 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18477 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
18478
18479
18480 hard_links="nottested"
18481 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18482   # do not overwrite the value of need_locks provided by the user
18483   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18484 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18485   hard_links=yes
18486   $rm conftest*
18487   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18488   touch conftest.a
18489   ln conftest.a conftest.b 2>&5 || hard_links=no
18490   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18491   echo "$as_me:$LINENO: result: $hard_links" >&5
18492 echo "${ECHO_T}$hard_links" >&6
18493   if test "$hard_links" = no; then
18494     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18495 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18496     need_locks=warn
18497   fi
18498 else
18499   need_locks=no
18500 fi
18501
18502 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18503 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18504
18505   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18506   case $host_os in
18507   aix4* | aix5*)
18508     # If we're using GNU nm, then we don't want the "-C" option.
18509     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18510     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18511       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'
18512     else
18513       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'
18514     fi
18515     ;;
18516   pw32*)
18517     export_symbols_cmds_CXX="$ltdll_cmds"
18518   ;;
18519   cygwin* | mingw*)
18520     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'
18521   ;;
18522   *)
18523     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18524   ;;
18525   esac
18526
18527 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18528 echo "${ECHO_T}$ld_shlibs_CXX" >&6
18529 test "$ld_shlibs_CXX" = no && can_build_shared=no
18530
18531 #
18532 # Do we need to explicitly link libc?
18533 #
18534 case "x$archive_cmds_need_lc_CXX" in
18535 x|xyes)
18536   # Assume -lc should be added
18537   archive_cmds_need_lc_CXX=yes
18538
18539   if test "$enable_shared" = yes && test "$GCC" = yes; then
18540     case $archive_cmds_CXX in
18541     *'~'*)
18542       # FIXME: we may have to deal with multi-command sequences.
18543       ;;
18544     '$CC '*)
18545       # Test whether the compiler implicitly links with -lc since on some
18546       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18547       # to ld, don't add -lc before -lgcc.
18548       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18549 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18550       $rm conftest*
18551       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18552
18553       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18554   (eval $ac_compile) 2>&5
18555   ac_status=$?
18556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557   (exit $ac_status); } 2>conftest.err; then
18558         soname=conftest
18559         lib=conftest
18560         libobjs=conftest.$ac_objext
18561         deplibs=
18562         wl=$lt_prog_compiler_wl_CXX
18563         pic_flag=$lt_prog_compiler_pic_CXX
18564         compiler_flags=-v
18565         linker_flags=-v
18566         verstring=
18567         output_objdir=.
18568         libname=conftest
18569         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18570         allow_undefined_flag_CXX=
18571         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18572   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18573   ac_status=$?
18574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); }
18576         then
18577           archive_cmds_need_lc_CXX=no
18578         else
18579           archive_cmds_need_lc_CXX=yes
18580         fi
18581         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18582       else
18583         cat conftest.err 1>&5
18584       fi
18585       $rm conftest*
18586       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18587 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
18588       ;;
18589     esac
18590   fi
18591   ;;
18592 esac
18593
18594 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18595 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18596 library_names_spec=
18597 libname_spec='lib$name'
18598 soname_spec=
18599 shrext_cmds=".so"
18600 postinstall_cmds=
18601 postuninstall_cmds=
18602 finish_cmds=
18603 finish_eval=
18604 shlibpath_var=
18605 shlibpath_overrides_runpath=unknown
18606 version_type=none
18607 dynamic_linker="$host_os ld.so"
18608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18609 if test "$GCC" = yes; then
18610   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18611   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18612     # if the path contains ";" then we assume it to be the separator
18613     # otherwise default to the standard path separator (i.e. ":") - it is
18614     # assumed that no part of a normal pathname contains ";" but that should
18615     # okay in the real world where ";" in dirpaths is itself problematic.
18616     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18617   else
18618     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18619   fi
18620 else
18621   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18622 fi
18623 need_lib_prefix=unknown
18624 hardcode_into_libs=no
18625
18626 # when you set need_version to no, make sure it does not cause -set_version
18627 # flags to be left without arguments
18628 need_version=unknown
18629
18630 case $host_os in
18631 aix3*)
18632   version_type=linux
18633   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18634   shlibpath_var=LIBPATH
18635
18636   # AIX 3 has no versioning support, so we append a major version to the name.
18637   soname_spec='${libname}${release}${shared_ext}$major'
18638   ;;
18639
18640 aix4* | aix5*)
18641   version_type=linux
18642   need_lib_prefix=no
18643   need_version=no
18644   hardcode_into_libs=yes
18645   if test "$host_cpu" = ia64; then
18646     # AIX 5 supports IA64
18647     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18648     shlibpath_var=LD_LIBRARY_PATH
18649   else
18650     # With GCC up to 2.95.x, collect2 would create an import file
18651     # for dependence libraries.  The import file would start with
18652     # the line `#! .'.  This would cause the generated library to
18653     # depend on `.', always an invalid library.  This was fixed in
18654     # development snapshots of GCC prior to 3.0.
18655     case $host_os in
18656       aix4 | aix4.[01] | aix4.[01].*)
18657       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18658            echo ' yes '
18659            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18660         :
18661       else
18662         can_build_shared=no
18663       fi
18664       ;;
18665     esac
18666     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18667     # soname into executable. Probably we can add versioning support to
18668     # collect2, so additional links can be useful in future.
18669     if test "$aix_use_runtimelinking" = yes; then
18670       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18671       # instead of lib<name>.a to let people know that these are not
18672       # typical AIX shared libraries.
18673       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674     else
18675       # We preserve .a as extension for shared libraries through AIX4.2
18676       # and later when we are not doing run time linking.
18677       library_names_spec='${libname}${release}.a $libname.a'
18678       soname_spec='${libname}${release}${shared_ext}$major'
18679     fi
18680     shlibpath_var=LIBPATH
18681   fi
18682   ;;
18683
18684 amigaos*)
18685   library_names_spec='$libname.ixlibrary $libname.a'
18686   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18687   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'
18688   ;;
18689
18690 beos*)
18691   library_names_spec='${libname}${shared_ext}'
18692   dynamic_linker="$host_os ld.so"
18693   shlibpath_var=LIBRARY_PATH
18694   ;;
18695
18696 bsdi[45]*)
18697   version_type=linux
18698   need_version=no
18699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700   soname_spec='${libname}${release}${shared_ext}$major'
18701   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18702   shlibpath_var=LD_LIBRARY_PATH
18703   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18704   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18705   # the default ld.so.conf also contains /usr/contrib/lib and
18706   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18707   # libtool to hard-code these into programs
18708   ;;
18709
18710 cygwin* | mingw* | pw32*)
18711   version_type=windows
18712   shrext_cmds=".dll"
18713   need_version=no
18714   need_lib_prefix=no
18715
18716   case $GCC,$host_os in
18717   yes,cygwin* | yes,mingw* | yes,pw32*)
18718     library_names_spec='$libname.dll.a'
18719     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18720     postinstall_cmds='base_file=`basename \${file}`~
18721       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18722       dldir=$destdir/`dirname \$dlpath`~
18723       test -d \$dldir || mkdir -p \$dldir~
18724       $install_prog $dir/$dlname \$dldir/$dlname~
18725       chmod a+x \$dldir/$dlname'
18726     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18727       dlpath=$dir/\$dldll~
18728        $rm \$dlpath'
18729     shlibpath_overrides_runpath=yes
18730
18731     case $host_os in
18732     cygwin*)
18733       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18734       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18735       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18736       ;;
18737     mingw*)
18738       # MinGW DLLs use traditional 'lib' prefix
18739       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18740       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18741       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18742         # It is most probably a Windows format PATH printed by
18743         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18744         # path with ; separators, and with drive letters. We can handle the
18745         # drive letters (cygwin fileutils understands them), so leave them,
18746         # especially as we might pass files found there to a mingw objdump,
18747         # which wouldn't understand a cygwinified path. Ahh.
18748         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18749       else
18750         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18751       fi
18752       ;;
18753     pw32*)
18754       # pw32 DLLs use 'pw' prefix rather than 'lib'
18755       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18756       ;;
18757     esac
18758     ;;
18759
18760   *)
18761     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18762     ;;
18763   esac
18764   dynamic_linker='Win32 ld.exe'
18765   # FIXME: first we should search . and the directory the executable is in
18766   shlibpath_var=PATH
18767   ;;
18768
18769 darwin* | rhapsody*)
18770   dynamic_linker="$host_os dyld"
18771   version_type=darwin
18772   need_lib_prefix=no
18773   need_version=no
18774   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18775   soname_spec='${libname}${release}${major}$shared_ext'
18776   shlibpath_overrides_runpath=yes
18777   shlibpath_var=DYLD_LIBRARY_PATH
18778   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18779   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18780   if test "$GCC" = yes; then
18781     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"`
18782   else
18783     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18784   fi
18785   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18786   ;;
18787
18788 dgux*)
18789   version_type=linux
18790   need_lib_prefix=no
18791   need_version=no
18792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18793   soname_spec='${libname}${release}${shared_ext}$major'
18794   shlibpath_var=LD_LIBRARY_PATH
18795   ;;
18796
18797 freebsd1*)
18798   dynamic_linker=no
18799   ;;
18800
18801 kfreebsd*-gnu)
18802   version_type=linux
18803   need_lib_prefix=no
18804   need_version=no
18805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18806   soname_spec='${libname}${release}${shared_ext}$major'
18807   shlibpath_var=LD_LIBRARY_PATH
18808   shlibpath_overrides_runpath=no
18809   hardcode_into_libs=yes
18810   dynamic_linker='GNU ld.so'
18811   ;;
18812
18813 freebsd* | dragonfly*)
18814   # DragonFly does not have aout.  When/if they implement a new
18815   # versioning mechanism, adjust this.
18816   if test -x /usr/bin/objformat; then
18817     objformat=`/usr/bin/objformat`
18818   else
18819     case $host_os in
18820     freebsd[123]*) objformat=aout ;;
18821     *) objformat=elf ;;
18822     esac
18823   fi
18824   version_type=freebsd-$objformat
18825   case $version_type in
18826     freebsd-elf*)
18827       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18828       need_version=no
18829       need_lib_prefix=no
18830       ;;
18831     freebsd-*)
18832       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18833       need_version=yes
18834       ;;
18835   esac
18836   shlibpath_var=LD_LIBRARY_PATH
18837   case $host_os in
18838   freebsd2*)
18839     shlibpath_overrides_runpath=yes
18840     ;;
18841   freebsd3.[01]* | freebsdelf3.[01]*)
18842     shlibpath_overrides_runpath=yes
18843     hardcode_into_libs=yes
18844     ;;
18845   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18846   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18847     shlibpath_overrides_runpath=no
18848     hardcode_into_libs=yes
18849     ;;
18850   freebsd*) # from 4.6 on
18851     shlibpath_overrides_runpath=yes
18852     hardcode_into_libs=yes
18853     ;;
18854   esac
18855   ;;
18856
18857 gnu*)
18858   version_type=linux
18859   need_lib_prefix=no
18860   need_version=no
18861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18862   soname_spec='${libname}${release}${shared_ext}$major'
18863   shlibpath_var=LD_LIBRARY_PATH
18864   hardcode_into_libs=yes
18865   ;;
18866
18867 hpux9* | hpux10* | hpux11*)
18868   # Give a soname corresponding to the major version so that dld.sl refuses to
18869   # link against other versions.
18870   version_type=sunos
18871   need_lib_prefix=no
18872   need_version=no
18873   case $host_cpu in
18874   ia64*)
18875     shrext_cmds='.so'
18876     hardcode_into_libs=yes
18877     dynamic_linker="$host_os dld.so"
18878     shlibpath_var=LD_LIBRARY_PATH
18879     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18881     soname_spec='${libname}${release}${shared_ext}$major'
18882     if test "X$HPUX_IA64_MODE" = X32; then
18883       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18884     else
18885       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18886     fi
18887     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18888     ;;
18889    hppa*64*)
18890      shrext_cmds='.sl'
18891      hardcode_into_libs=yes
18892      dynamic_linker="$host_os dld.sl"
18893      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18894      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18895      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18896      soname_spec='${libname}${release}${shared_ext}$major'
18897      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18898      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18899      ;;
18900    *)
18901     shrext_cmds='.sl'
18902     dynamic_linker="$host_os dld.sl"
18903     shlibpath_var=SHLIB_PATH
18904     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18906     soname_spec='${libname}${release}${shared_ext}$major'
18907     ;;
18908   esac
18909   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18910   postinstall_cmds='chmod 555 $lib'
18911   ;;
18912
18913 interix3*)
18914   version_type=linux
18915   need_lib_prefix=no
18916   need_version=no
18917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18918   soname_spec='${libname}${release}${shared_ext}$major'
18919   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18920   shlibpath_var=LD_LIBRARY_PATH
18921   shlibpath_overrides_runpath=no
18922   hardcode_into_libs=yes
18923   ;;
18924
18925 irix5* | irix6* | nonstopux*)
18926   case $host_os in
18927     nonstopux*) version_type=nonstopux ;;
18928     *)
18929         if test "$lt_cv_prog_gnu_ld" = yes; then
18930                 version_type=linux
18931         else
18932                 version_type=irix
18933         fi ;;
18934   esac
18935   need_lib_prefix=no
18936   need_version=no
18937   soname_spec='${libname}${release}${shared_ext}$major'
18938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18939   case $host_os in
18940   irix5* | nonstopux*)
18941     libsuff= shlibsuff=
18942     ;;
18943   *)
18944     case $LD in # libtool.m4 will add one of these switches to LD
18945     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18946       libsuff= shlibsuff= libmagic=32-bit;;
18947     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18948       libsuff=32 shlibsuff=N32 libmagic=N32;;
18949     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18950       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18951     *) libsuff= shlibsuff= libmagic=never-match;;
18952     esac
18953     ;;
18954   esac
18955   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18956   shlibpath_overrides_runpath=no
18957   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18958   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18959   hardcode_into_libs=yes
18960   ;;
18961
18962 # No shared lib support for Linux oldld, aout, or coff.
18963 linux*oldld* | linux*aout* | linux*coff*)
18964   dynamic_linker=no
18965   ;;
18966
18967 # This must be Linux ELF.
18968 linux*)
18969   version_type=linux
18970   need_lib_prefix=no
18971   need_version=no
18972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18973   soname_spec='${libname}${release}${shared_ext}$major'
18974   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18975   shlibpath_var=LD_LIBRARY_PATH
18976   shlibpath_overrides_runpath=no
18977   # This implies no fast_install, which is unacceptable.
18978   # Some rework will be needed to allow for fast_install
18979   # before this can be enabled.
18980   hardcode_into_libs=yes
18981
18982   # find out which ABI we are using
18983   libsuff=
18984   case "$host_cpu" in
18985   x86_64*|s390x*|powerpc64*)
18986     echo '#line 18986 "configure"' > conftest.$ac_ext
18987     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18988   (eval $ac_compile) 2>&5
18989   ac_status=$?
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); }; then
18992       case `/usr/bin/file conftest.$ac_objext` in
18993       *64-bit*)
18994         libsuff=64
18995         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18996         ;;
18997       esac
18998     fi
18999     rm -rf conftest*
19000     ;;
19001   esac
19002
19003   # Append ld.so.conf contents to the search path
19004   if test -f /etc/ld.so.conf; then
19005     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' ' '`
19006     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19007   fi
19008
19009   # We used to test for /lib/ld.so.1 and disable shared libraries on
19010   # powerpc, because MkLinux only supported shared libraries with the
19011   # GNU dynamic linker.  Since this was broken with cross compilers,
19012   # most powerpc-linux boxes support dynamic linking these days and
19013   # people can always --disable-shared, the test was removed, and we
19014   # assume the GNU/Linux dynamic linker is in use.
19015   dynamic_linker='GNU/Linux ld.so'
19016   ;;
19017
19018 knetbsd*-gnu)
19019   version_type=linux
19020   need_lib_prefix=no
19021   need_version=no
19022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19023   soname_spec='${libname}${release}${shared_ext}$major'
19024   shlibpath_var=LD_LIBRARY_PATH
19025   shlibpath_overrides_runpath=no
19026   hardcode_into_libs=yes
19027   dynamic_linker='GNU ld.so'
19028   ;;
19029
19030 netbsd*)
19031   version_type=sunos
19032   need_lib_prefix=no
19033   need_version=no
19034   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19035     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19036     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19037     dynamic_linker='NetBSD (a.out) ld.so'
19038   else
19039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19040     soname_spec='${libname}${release}${shared_ext}$major'
19041     dynamic_linker='NetBSD ld.elf_so'
19042   fi
19043   shlibpath_var=LD_LIBRARY_PATH
19044   shlibpath_overrides_runpath=yes
19045   hardcode_into_libs=yes
19046   ;;
19047
19048 newsos6)
19049   version_type=linux
19050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19051   shlibpath_var=LD_LIBRARY_PATH
19052   shlibpath_overrides_runpath=yes
19053   ;;
19054
19055 nto-qnx*)
19056   version_type=linux
19057   need_lib_prefix=no
19058   need_version=no
19059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19060   soname_spec='${libname}${release}${shared_ext}$major'
19061   shlibpath_var=LD_LIBRARY_PATH
19062   shlibpath_overrides_runpath=yes
19063   ;;
19064
19065 openbsd*)
19066   version_type=sunos
19067   sys_lib_dlsearch_path_spec="/usr/lib"
19068   need_lib_prefix=no
19069   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19070   case $host_os in
19071     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19072     *)                         need_version=no  ;;
19073   esac
19074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19075   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19076   shlibpath_var=LD_LIBRARY_PATH
19077   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19078     case $host_os in
19079       openbsd2.[89] | openbsd2.[89].*)
19080         shlibpath_overrides_runpath=no
19081         ;;
19082       *)
19083         shlibpath_overrides_runpath=yes
19084         ;;
19085       esac
19086   else
19087     shlibpath_overrides_runpath=yes
19088   fi
19089   ;;
19090
19091 os2*)
19092   libname_spec='$name'
19093   shrext_cmds=".dll"
19094   need_lib_prefix=no
19095   library_names_spec='$libname${shared_ext} $libname.a'
19096   dynamic_linker='OS/2 ld.exe'
19097   shlibpath_var=LIBPATH
19098   ;;
19099
19100 osf3* | osf4* | osf5*)
19101   version_type=osf
19102   need_lib_prefix=no
19103   need_version=no
19104   soname_spec='${libname}${release}${shared_ext}$major'
19105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19106   shlibpath_var=LD_LIBRARY_PATH
19107   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19108   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19109   ;;
19110
19111 solaris*)
19112   version_type=linux
19113   need_lib_prefix=no
19114   need_version=no
19115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19116   soname_spec='${libname}${release}${shared_ext}$major'
19117   shlibpath_var=LD_LIBRARY_PATH
19118   shlibpath_overrides_runpath=yes
19119   hardcode_into_libs=yes
19120   # ldd complains unless libraries are executable
19121   postinstall_cmds='chmod +x $lib'
19122   ;;
19123
19124 sunos4*)
19125   version_type=sunos
19126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19127   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19128   shlibpath_var=LD_LIBRARY_PATH
19129   shlibpath_overrides_runpath=yes
19130   if test "$with_gnu_ld" = yes; then
19131     need_lib_prefix=no
19132   fi
19133   need_version=yes
19134   ;;
19135
19136 sysv4 | sysv4.3*)
19137   version_type=linux
19138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19139   soname_spec='${libname}${release}${shared_ext}$major'
19140   shlibpath_var=LD_LIBRARY_PATH
19141   case $host_vendor in
19142     sni)
19143       shlibpath_overrides_runpath=no
19144       need_lib_prefix=no
19145       export_dynamic_flag_spec='${wl}-Blargedynsym'
19146       runpath_var=LD_RUN_PATH
19147       ;;
19148     siemens)
19149       need_lib_prefix=no
19150       ;;
19151     motorola)
19152       need_lib_prefix=no
19153       need_version=no
19154       shlibpath_overrides_runpath=no
19155       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19156       ;;
19157   esac
19158   ;;
19159
19160 sysv4*MP*)
19161   if test -d /usr/nec ;then
19162     version_type=linux
19163     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19164     soname_spec='$libname${shared_ext}.$major'
19165     shlibpath_var=LD_LIBRARY_PATH
19166   fi
19167   ;;
19168
19169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19170   version_type=freebsd-elf
19171   need_lib_prefix=no
19172   need_version=no
19173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19174   soname_spec='${libname}${release}${shared_ext}$major'
19175   shlibpath_var=LD_LIBRARY_PATH
19176   hardcode_into_libs=yes
19177   if test "$with_gnu_ld" = yes; then
19178     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19179     shlibpath_overrides_runpath=no
19180   else
19181     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19182     shlibpath_overrides_runpath=yes
19183     case $host_os in
19184       sco3.2v5*)
19185         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19186         ;;
19187     esac
19188   fi
19189   sys_lib_dlsearch_path_spec='/usr/lib'
19190   ;;
19191
19192 uts4*)
19193   version_type=linux
19194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19195   soname_spec='${libname}${release}${shared_ext}$major'
19196   shlibpath_var=LD_LIBRARY_PATH
19197   ;;
19198
19199 *)
19200   dynamic_linker=no
19201   ;;
19202 esac
19203 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19204 echo "${ECHO_T}$dynamic_linker" >&6
19205 test "$dynamic_linker" = no && can_build_shared=no
19206
19207 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19208 if test "$GCC" = yes; then
19209   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19210 fi
19211
19212 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19213 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19214 hardcode_action_CXX=
19215 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19216    test -n "$runpath_var_CXX" || \
19217    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19218
19219   # We can hardcode non-existant directories.
19220   if test "$hardcode_direct_CXX" != no &&
19221      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19222      # have to relink, otherwise we might link with an installed library
19223      # when we should be linking with a yet-to-be-installed one
19224      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19225      test "$hardcode_minus_L_CXX" != no; then
19226     # Linking always hardcodes the temporary library directory.
19227     hardcode_action_CXX=relink
19228   else
19229     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19230     hardcode_action_CXX=immediate
19231   fi
19232 else
19233   # We cannot hardcode anything, or else we can only hardcode existing
19234   # directories.
19235   hardcode_action_CXX=unsupported
19236 fi
19237 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19238 echo "${ECHO_T}$hardcode_action_CXX" >&6
19239
19240 if test "$hardcode_action_CXX" = relink; then
19241   # Fast installation is not supported
19242   enable_fast_install=no
19243 elif test "$shlibpath_overrides_runpath" = yes ||
19244      test "$enable_shared" = no; then
19245   # Fast installation is not necessary
19246   enable_fast_install=needless
19247 fi
19248
19249
19250 # The else clause should only fire when bootstrapping the
19251 # libtool distribution, otherwise you forgot to ship ltmain.sh
19252 # with your package, and you will get complaints that there are
19253 # no rules to generate ltmain.sh.
19254 if test -f "$ltmain"; then
19255   # See if we are running on zsh, and set the options which allow our commands through
19256   # without removal of \ escapes.
19257   if test -n "${ZSH_VERSION+set}" ; then
19258     setopt NO_GLOB_SUBST
19259   fi
19260   # Now quote all the things that may contain metacharacters while being
19261   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19262   # variables and quote the copies for generation of the libtool script.
19263   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19264     SED SHELL STRIP \
19265     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19266     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19267     deplibs_check_method reload_flag reload_cmds need_locks \
19268     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19269     lt_cv_sys_global_symbol_to_c_name_address \
19270     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19271     old_postinstall_cmds old_postuninstall_cmds \
19272     compiler_CXX \
19273     CC_CXX \
19274     LD_CXX \
19275     lt_prog_compiler_wl_CXX \
19276     lt_prog_compiler_pic_CXX \
19277     lt_prog_compiler_static_CXX \
19278     lt_prog_compiler_no_builtin_flag_CXX \
19279     export_dynamic_flag_spec_CXX \
19280     thread_safe_flag_spec_CXX \
19281     whole_archive_flag_spec_CXX \
19282     enable_shared_with_static_runtimes_CXX \
19283     old_archive_cmds_CXX \
19284     old_archive_from_new_cmds_CXX \
19285     predep_objects_CXX \
19286     postdep_objects_CXX \
19287     predeps_CXX \
19288     postdeps_CXX \
19289     compiler_lib_search_path_CXX \
19290     archive_cmds_CXX \
19291     archive_expsym_cmds_CXX \
19292     postinstall_cmds_CXX \
19293     postuninstall_cmds_CXX \
19294     old_archive_from_expsyms_cmds_CXX \
19295     allow_undefined_flag_CXX \
19296     no_undefined_flag_CXX \
19297     export_symbols_cmds_CXX \
19298     hardcode_libdir_flag_spec_CXX \
19299     hardcode_libdir_flag_spec_ld_CXX \
19300     hardcode_libdir_separator_CXX \
19301     hardcode_automatic_CXX \
19302     module_cmds_CXX \
19303     module_expsym_cmds_CXX \
19304     lt_cv_prog_compiler_c_o_CXX \
19305     exclude_expsyms_CXX \
19306     include_expsyms_CXX; do
19307
19308     case $var in
19309     old_archive_cmds_CXX | \
19310     old_archive_from_new_cmds_CXX | \
19311     archive_cmds_CXX | \
19312     archive_expsym_cmds_CXX | \
19313     module_cmds_CXX | \
19314     module_expsym_cmds_CXX | \
19315     old_archive_from_expsyms_cmds_CXX | \
19316     export_symbols_cmds_CXX | \
19317     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19318     postinstall_cmds | postuninstall_cmds | \
19319     old_postinstall_cmds | old_postuninstall_cmds | \
19320     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19321       # Double-quote double-evaled strings.
19322       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19323       ;;
19324     *)
19325       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19326       ;;
19327     esac
19328   done
19329
19330   case $lt_echo in
19331   *'\$0 --fallback-echo"')
19332     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19333     ;;
19334   esac
19335
19336 cfgfile="$ofile"
19337
19338   cat <<__EOF__ >> "$cfgfile"
19339 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19340
19341 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19342
19343 # Shell to use when invoking shell scripts.
19344 SHELL=$lt_SHELL
19345
19346 # Whether or not to build shared libraries.
19347 build_libtool_libs=$enable_shared
19348
19349 # Whether or not to build static libraries.
19350 build_old_libs=$enable_static
19351
19352 # Whether or not to add -lc for building shared libraries.
19353 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19354
19355 # Whether or not to disallow shared libs when runtime libs are static
19356 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19357
19358 # Whether or not to optimize for fast installation.
19359 fast_install=$enable_fast_install
19360
19361 # The host system.
19362 host_alias=$host_alias
19363 host=$host
19364 host_os=$host_os
19365
19366 # The build system.
19367 build_alias=$build_alias
19368 build=$build
19369 build_os=$build_os
19370
19371 # An echo program that does not interpret backslashes.
19372 echo=$lt_echo
19373
19374 # The archiver.
19375 AR=$lt_AR
19376 AR_FLAGS=$lt_AR_FLAGS
19377
19378 # A C compiler.
19379 LTCC=$lt_LTCC
19380
19381 # LTCC compiler flags.
19382 LTCFLAGS=$lt_LTCFLAGS
19383
19384 # A language-specific compiler.
19385 CC=$lt_compiler_CXX
19386
19387 # Is the compiler the GNU C compiler?
19388 with_gcc=$GCC_CXX
19389
19390 # An ERE matcher.
19391 EGREP=$lt_EGREP
19392
19393 # The linker used to build libraries.
19394 LD=$lt_LD_CXX
19395
19396 # Whether we need hard or soft links.
19397 LN_S=$lt_LN_S
19398
19399 # A BSD-compatible nm program.
19400 NM=$lt_NM
19401
19402 # A symbol stripping program
19403 STRIP=$lt_STRIP
19404
19405 # Used to examine libraries when file_magic_cmd begins "file"
19406 MAGIC_CMD=$MAGIC_CMD
19407
19408 # Used on cygwin: DLL creation program.
19409 DLLTOOL="$DLLTOOL"
19410
19411 # Used on cygwin: object dumper.
19412 OBJDUMP="$OBJDUMP"
19413
19414 # Used on cygwin: assembler.
19415 AS="$AS"
19416
19417 # The name of the directory that contains temporary libtool files.
19418 objdir=$objdir
19419
19420 # How to create reloadable object files.
19421 reload_flag=$lt_reload_flag
19422 reload_cmds=$lt_reload_cmds
19423
19424 # How to pass a linker flag through the compiler.
19425 wl=$lt_lt_prog_compiler_wl_CXX
19426
19427 # Object file suffix (normally "o").
19428 objext="$ac_objext"
19429
19430 # Old archive suffix (normally "a").
19431 libext="$libext"
19432
19433 # Shared library suffix (normally ".so").
19434 shrext_cmds='$shrext_cmds'
19435
19436 # Executable file suffix (normally "").
19437 exeext="$exeext"
19438
19439 # Additional compiler flags for building library objects.
19440 pic_flag=$lt_lt_prog_compiler_pic_CXX
19441 pic_mode=$pic_mode
19442
19443 # What is the maximum length of a command?
19444 max_cmd_len=$lt_cv_sys_max_cmd_len
19445
19446 # Does compiler simultaneously support -c and -o options?
19447 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19448
19449 # Must we lock files when doing compilation?
19450 need_locks=$lt_need_locks
19451
19452 # Do we need the lib prefix for modules?
19453 need_lib_prefix=$need_lib_prefix
19454
19455 # Do we need a version for libraries?
19456 need_version=$need_version
19457
19458 # Whether dlopen is supported.
19459 dlopen_support=$enable_dlopen
19460
19461 # Whether dlopen of programs is supported.
19462 dlopen_self=$enable_dlopen_self
19463
19464 # Whether dlopen of statically linked programs is supported.
19465 dlopen_self_static=$enable_dlopen_self_static
19466
19467 # Compiler flag to prevent dynamic linking.
19468 link_static_flag=$lt_lt_prog_compiler_static_CXX
19469
19470 # Compiler flag to turn off builtin functions.
19471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19472
19473 # Compiler flag to allow reflexive dlopens.
19474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19475
19476 # Compiler flag to generate shared objects directly from archives.
19477 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19478
19479 # Compiler flag to generate thread-safe objects.
19480 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19481
19482 # Library versioning type.
19483 version_type=$version_type
19484
19485 # Format of library name prefix.
19486 libname_spec=$lt_libname_spec
19487
19488 # List of archive names.  First name is the real one, the rest are links.
19489 # The last name is the one that the linker finds with -lNAME.
19490 library_names_spec=$lt_library_names_spec
19491
19492 # The coded name of the library, if different from the real name.
19493 soname_spec=$lt_soname_spec
19494
19495 # Commands used to build and install an old-style archive.
19496 RANLIB=$lt_RANLIB
19497 old_archive_cmds=$lt_old_archive_cmds_CXX
19498 old_postinstall_cmds=$lt_old_postinstall_cmds
19499 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19500
19501 # Create an old-style archive from a shared archive.
19502 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19503
19504 # Create a temporary old-style archive to link instead of a shared archive.
19505 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19506
19507 # Commands used to build and install a shared archive.
19508 archive_cmds=$lt_archive_cmds_CXX
19509 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19510 postinstall_cmds=$lt_postinstall_cmds
19511 postuninstall_cmds=$lt_postuninstall_cmds
19512
19513 # Commands used to build a loadable module (assumed same as above if empty)
19514 module_cmds=$lt_module_cmds_CXX
19515 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19516
19517 # Commands to strip libraries.
19518 old_striplib=$lt_old_striplib
19519 striplib=$lt_striplib
19520
19521 # Dependencies to place before the objects being linked to create a
19522 # shared library.
19523 predep_objects=$lt_predep_objects_CXX
19524
19525 # Dependencies to place after the objects being linked to create a
19526 # shared library.
19527 postdep_objects=$lt_postdep_objects_CXX
19528
19529 # Dependencies to place before the objects being linked to create a
19530 # shared library.
19531 predeps=$lt_predeps_CXX
19532
19533 # Dependencies to place after the objects being linked to create a
19534 # shared library.
19535 postdeps=$lt_postdeps_CXX
19536
19537 # The library search path used internally by the compiler when linking
19538 # a shared library.
19539 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19540
19541 # Method to check whether dependent libraries are shared objects.
19542 deplibs_check_method=$lt_deplibs_check_method
19543
19544 # Command to use when deplibs_check_method == file_magic.
19545 file_magic_cmd=$lt_file_magic_cmd
19546
19547 # Flag that allows shared libraries with undefined symbols to be built.
19548 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19549
19550 # Flag that forces no undefined symbols.
19551 no_undefined_flag=$lt_no_undefined_flag_CXX
19552
19553 # Commands used to finish a libtool library installation in a directory.
19554 finish_cmds=$lt_finish_cmds
19555
19556 # Same as above, but a single script fragment to be evaled but not shown.
19557 finish_eval=$lt_finish_eval
19558
19559 # Take the output of nm and produce a listing of raw symbols and C names.
19560 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19561
19562 # Transform the output of nm in a proper C declaration
19563 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19564
19565 # Transform the output of nm in a C name address pair
19566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19567
19568 # This is the shared library runtime path variable.
19569 runpath_var=$runpath_var
19570
19571 # This is the shared library path variable.
19572 shlibpath_var=$shlibpath_var
19573
19574 # Is shlibpath searched before the hard-coded library search path?
19575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19576
19577 # How to hardcode a shared library path into an executable.
19578 hardcode_action=$hardcode_action_CXX
19579
19580 # Whether we should hardcode library paths into libraries.
19581 hardcode_into_libs=$hardcode_into_libs
19582
19583 # Flag to hardcode \$libdir into a binary during linking.
19584 # This must work even if \$libdir does not exist.
19585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19586
19587 # If ld is used when linking, flag to hardcode \$libdir into
19588 # a binary during linking. This must work even if \$libdir does
19589 # not exist.
19590 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19591
19592 # Whether we need a single -rpath flag with a separated argument.
19593 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19594
19595 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19596 # resulting binary.
19597 hardcode_direct=$hardcode_direct_CXX
19598
19599 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19600 # resulting binary.
19601 hardcode_minus_L=$hardcode_minus_L_CXX
19602
19603 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19604 # the resulting binary.
19605 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19606
19607 # Set to yes if building a shared library automatically hardcodes DIR into the library
19608 # and all subsequent libraries and executables linked against it.
19609 hardcode_automatic=$hardcode_automatic_CXX
19610
19611 # Variables whose values should be saved in libtool wrapper scripts and
19612 # restored at relink time.
19613 variables_saved_for_relink="$variables_saved_for_relink"
19614
19615 # Whether libtool must link a program against all its dependency libraries.
19616 link_all_deplibs=$link_all_deplibs_CXX
19617
19618 # Compile-time system search path for libraries
19619 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19620
19621 # Run-time system search path for libraries
19622 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19623
19624 # Fix the shell variable \$srcfile for the compiler.
19625 fix_srcfile_path="$fix_srcfile_path_CXX"
19626
19627 # Set to yes if exported symbols are required.
19628 always_export_symbols=$always_export_symbols_CXX
19629
19630 # The commands to list exported symbols.
19631 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19632
19633 # The commands to extract the exported symbol list from a shared archive.
19634 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19635
19636 # Symbols that should not be listed in the preloaded symbols.
19637 exclude_expsyms=$lt_exclude_expsyms_CXX
19638
19639 # Symbols that must always be exported.
19640 include_expsyms=$lt_include_expsyms_CXX
19641
19642 # ### END LIBTOOL TAG CONFIG: $tagname
19643
19644 __EOF__
19645
19646
19647 else
19648   # If there is no Makefile yet, we rely on a make rule to execute
19649   # `config.status --recheck' to rerun these tests and create the
19650   # libtool script then.
19651   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19652   if test -f "$ltmain_in"; then
19653     test -f Makefile && make "$ltmain"
19654   fi
19655 fi
19656
19657
19658 ac_ext=c
19659 ac_cpp='$CPP $CPPFLAGS'
19660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19663
19664 CC=$lt_save_CC
19665 LDCXX=$LD
19666 LD=$lt_save_LD
19667 GCC=$lt_save_GCC
19668 with_gnu_ldcxx=$with_gnu_ld
19669 with_gnu_ld=$lt_save_with_gnu_ld
19670 lt_cv_path_LDCXX=$lt_cv_path_LD
19671 lt_cv_path_LD=$lt_save_path_LD
19672 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19673 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19674
19675         else
19676           tagname=""
19677         fi
19678         ;;
19679
19680       F77)
19681         if test -n "$F77" && test "X$F77" != "Xno"; then
19682
19683 ac_ext=f
19684 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19685 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19687
19688
19689 archive_cmds_need_lc_F77=no
19690 allow_undefined_flag_F77=
19691 always_export_symbols_F77=no
19692 archive_expsym_cmds_F77=
19693 export_dynamic_flag_spec_F77=
19694 hardcode_direct_F77=no
19695 hardcode_libdir_flag_spec_F77=
19696 hardcode_libdir_flag_spec_ld_F77=
19697 hardcode_libdir_separator_F77=
19698 hardcode_minus_L_F77=no
19699 hardcode_automatic_F77=no
19700 module_cmds_F77=
19701 module_expsym_cmds_F77=
19702 link_all_deplibs_F77=unknown
19703 old_archive_cmds_F77=$old_archive_cmds
19704 no_undefined_flag_F77=
19705 whole_archive_flag_spec_F77=
19706 enable_shared_with_static_runtimes_F77=no
19707
19708 # Source file extension for f77 test sources.
19709 ac_ext=f
19710
19711 # Object file extension for compiled f77 test sources.
19712 objext=o
19713 objext_F77=$objext
19714
19715 # Code to be used in simple compile tests
19716 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19717
19718 # Code to be used in simple link tests
19719 lt_simple_link_test_code="      program t\n      end\n"
19720
19721 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19722
19723 # If no C compiler was specified, use CC.
19724 LTCC=${LTCC-"$CC"}
19725
19726 # If no C compiler flags were specified, use CFLAGS.
19727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19728
19729 # Allow CC to be a program name with arguments.
19730 compiler=$CC
19731
19732
19733 # save warnings/boilerplate of simple test code
19734 ac_outfile=conftest.$ac_objext
19735 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19736 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19737 _lt_compiler_boilerplate=`cat conftest.err`
19738 $rm conftest*
19739
19740 ac_outfile=conftest.$ac_objext
19741 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19742 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19743 _lt_linker_boilerplate=`cat conftest.err`
19744 $rm conftest*
19745
19746
19747 # Allow CC to be a program name with arguments.
19748 lt_save_CC="$CC"
19749 CC=${F77-"f77"}
19750 compiler=$CC
19751 compiler_F77=$CC
19752 for cc_temp in $compiler""; do
19753   case $cc_temp in
19754     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19755     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19756     \-*) ;;
19757     *) break;;
19758   esac
19759 done
19760 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19761
19762
19763 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19764 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19765 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19766 echo "${ECHO_T}$can_build_shared" >&6
19767
19768 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19769 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19770 test "$can_build_shared" = "no" && enable_shared=no
19771
19772 # On AIX, shared libraries and static libraries use the same namespace, and
19773 # are all built from PIC.
19774 case $host_os in
19775 aix3*)
19776   test "$enable_shared" = yes && enable_static=no
19777   if test -n "$RANLIB"; then
19778     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19779     postinstall_cmds='$RANLIB $lib'
19780   fi
19781   ;;
19782 aix4* | aix5*)
19783   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19784     test "$enable_shared" = yes && enable_static=no
19785   fi
19786   ;;
19787 esac
19788 echo "$as_me:$LINENO: result: $enable_shared" >&5
19789 echo "${ECHO_T}$enable_shared" >&6
19790
19791 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19792 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19793 # Make sure either enable_shared or enable_static is yes.
19794 test "$enable_shared" = yes || enable_static=yes
19795 echo "$as_me:$LINENO: result: $enable_static" >&5
19796 echo "${ECHO_T}$enable_static" >&6
19797
19798 GCC_F77="$G77"
19799 LD_F77="$LD"
19800
19801 lt_prog_compiler_wl_F77=
19802 lt_prog_compiler_pic_F77=
19803 lt_prog_compiler_static_F77=
19804
19805 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19806 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19807
19808   if test "$GCC" = yes; then
19809     lt_prog_compiler_wl_F77='-Wl,'
19810     lt_prog_compiler_static_F77='-static'
19811
19812     case $host_os in
19813       aix*)
19814       # All AIX code is PIC.
19815       if test "$host_cpu" = ia64; then
19816         # AIX 5 now supports IA64 processor
19817         lt_prog_compiler_static_F77='-Bstatic'
19818       fi
19819       ;;
19820
19821     amigaos*)
19822       # FIXME: we need at least 68020 code to build shared libraries, but
19823       # adding the `-m68020' flag to GCC prevents building anything better,
19824       # like `-m68040'.
19825       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19826       ;;
19827
19828     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19829       # PIC is the default for these OSes.
19830       ;;
19831
19832     mingw* | pw32* | os2*)
19833       # This hack is so that the source file can tell whether it is being
19834       # built for inclusion in a dll (and should export symbols for example).
19835       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19836       ;;
19837
19838     darwin* | rhapsody*)
19839       # PIC is the default on this platform
19840       # Common symbols not allowed in MH_DYLIB files
19841       lt_prog_compiler_pic_F77='-fno-common'
19842       ;;
19843
19844     interix3*)
19845       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19846       # Instead, we relocate shared libraries at runtime.
19847       ;;
19848
19849     msdosdjgpp*)
19850       # Just because we use GCC doesn't mean we suddenly get shared libraries
19851       # on systems that don't support them.
19852       lt_prog_compiler_can_build_shared_F77=no
19853       enable_shared=no
19854       ;;
19855
19856     sysv4*MP*)
19857       if test -d /usr/nec; then
19858         lt_prog_compiler_pic_F77=-Kconform_pic
19859       fi
19860       ;;
19861
19862     hpux*)
19863       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19864       # not for PA HP-UX.
19865       case $host_cpu in
19866       hppa*64*|ia64*)
19867         # +Z the default
19868         ;;
19869       *)
19870         lt_prog_compiler_pic_F77='-fPIC'
19871         ;;
19872       esac
19873       ;;
19874
19875     *)
19876       lt_prog_compiler_pic_F77='-fPIC'
19877       ;;
19878     esac
19879   else
19880     # PORTME Check for flag to pass linker flags through the system compiler.
19881     case $host_os in
19882     aix*)
19883       lt_prog_compiler_wl_F77='-Wl,'
19884       if test "$host_cpu" = ia64; then
19885         # AIX 5 now supports IA64 processor
19886         lt_prog_compiler_static_F77='-Bstatic'
19887       else
19888         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19889       fi
19890       ;;
19891       darwin*)
19892         # PIC is the default on this platform
19893         # Common symbols not allowed in MH_DYLIB files
19894        case $cc_basename in
19895          xlc*)
19896          lt_prog_compiler_pic_F77='-qnocommon'
19897          lt_prog_compiler_wl_F77='-Wl,'
19898          ;;
19899        esac
19900        ;;
19901
19902     mingw* | pw32* | os2*)
19903       # This hack is so that the source file can tell whether it is being
19904       # built for inclusion in a dll (and should export symbols for example).
19905       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19906       ;;
19907
19908     hpux9* | hpux10* | hpux11*)
19909       lt_prog_compiler_wl_F77='-Wl,'
19910       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19911       # not for PA HP-UX.
19912       case $host_cpu in
19913       hppa*64*|ia64*)
19914         # +Z the default
19915         ;;
19916       *)
19917         lt_prog_compiler_pic_F77='+Z'
19918         ;;
19919       esac
19920       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19921       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19922       ;;
19923
19924     irix5* | irix6* | nonstopux*)
19925       lt_prog_compiler_wl_F77='-Wl,'
19926       # PIC (with -KPIC) is the default.
19927       lt_prog_compiler_static_F77='-non_shared'
19928       ;;
19929
19930     newsos6)
19931       lt_prog_compiler_pic_F77='-KPIC'
19932       lt_prog_compiler_static_F77='-Bstatic'
19933       ;;
19934
19935     linux*)
19936       case $cc_basename in
19937       icc* | ecc*)
19938         lt_prog_compiler_wl_F77='-Wl,'
19939         lt_prog_compiler_pic_F77='-KPIC'
19940         lt_prog_compiler_static_F77='-static'
19941         ;;
19942       pgcc* | pgf77* | pgf90* | pgf95*)
19943         # Portland Group compilers (*not* the Pentium gcc compiler,
19944         # which looks to be a dead project)
19945         lt_prog_compiler_wl_F77='-Wl,'
19946         lt_prog_compiler_pic_F77='-fpic'
19947         lt_prog_compiler_static_F77='-Bstatic'
19948         ;;
19949       ccc*)
19950         lt_prog_compiler_wl_F77='-Wl,'
19951         # All Alpha code is PIC.
19952         lt_prog_compiler_static_F77='-non_shared'
19953         ;;
19954       esac
19955       ;;
19956
19957     osf3* | osf4* | osf5*)
19958       lt_prog_compiler_wl_F77='-Wl,'
19959       # All OSF/1 code is PIC.
19960       lt_prog_compiler_static_F77='-non_shared'
19961       ;;
19962
19963     solaris*)
19964       lt_prog_compiler_pic_F77='-KPIC'
19965       lt_prog_compiler_static_F77='-Bstatic'
19966       case $cc_basename in
19967       f77* | f90* | f95*)
19968         lt_prog_compiler_wl_F77='-Qoption ld ';;
19969       *)
19970         lt_prog_compiler_wl_F77='-Wl,';;
19971       esac
19972       ;;
19973
19974     sunos4*)
19975       lt_prog_compiler_wl_F77='-Qoption ld '
19976       lt_prog_compiler_pic_F77='-PIC'
19977       lt_prog_compiler_static_F77='-Bstatic'
19978       ;;
19979
19980     sysv4 | sysv4.2uw2* | sysv4.3*)
19981       lt_prog_compiler_wl_F77='-Wl,'
19982       lt_prog_compiler_pic_F77='-KPIC'
19983       lt_prog_compiler_static_F77='-Bstatic'
19984       ;;
19985
19986     sysv4*MP*)
19987       if test -d /usr/nec ;then
19988         lt_prog_compiler_pic_F77='-Kconform_pic'
19989         lt_prog_compiler_static_F77='-Bstatic'
19990       fi
19991       ;;
19992
19993     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19994       lt_prog_compiler_wl_F77='-Wl,'
19995       lt_prog_compiler_pic_F77='-KPIC'
19996       lt_prog_compiler_static_F77='-Bstatic'
19997       ;;
19998
19999     unicos*)
20000       lt_prog_compiler_wl_F77='-Wl,'
20001       lt_prog_compiler_can_build_shared_F77=no
20002       ;;
20003
20004     uts4*)
20005       lt_prog_compiler_pic_F77='-pic'
20006       lt_prog_compiler_static_F77='-Bstatic'
20007       ;;
20008
20009     *)
20010       lt_prog_compiler_can_build_shared_F77=no
20011       ;;
20012     esac
20013   fi
20014
20015 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20016 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
20017
20018 #
20019 # Check to make sure the PIC flag actually works.
20020 #
20021 if test -n "$lt_prog_compiler_pic_F77"; then
20022
20023 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20024 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
20025 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20026   echo $ECHO_N "(cached) $ECHO_C" >&6
20027 else
20028   lt_prog_compiler_pic_works_F77=no
20029   ac_outfile=conftest.$ac_objext
20030    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20031    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20032    # Insert the option either (1) after the last *FLAGS variable, or
20033    # (2) before a word containing "conftest.", or (3) at the end.
20034    # Note that $ac_compile itself does not contain backslashes and begins
20035    # with a dollar sign (not a hyphen), so the echo should work correctly.
20036    # The option is referenced via a variable to avoid confusing sed.
20037    lt_compile=`echo "$ac_compile" | $SED \
20038    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20039    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20040    -e 's:$: $lt_compiler_flag:'`
20041    (eval echo "\"\$as_me:20041: $lt_compile\"" >&5)
20042    (eval "$lt_compile" 2>conftest.err)
20043    ac_status=$?
20044    cat conftest.err >&5
20045    echo "$as_me:20045: \$? = $ac_status" >&5
20046    if (exit $ac_status) && test -s "$ac_outfile"; then
20047      # The compiler can only warn and ignore the option if not recognized
20048      # So say no if there are warnings other than the usual output.
20049      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20050      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20051      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20052        lt_prog_compiler_pic_works_F77=yes
20053      fi
20054    fi
20055    $rm conftest*
20056
20057 fi
20058 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20059 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
20060
20061 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20062     case $lt_prog_compiler_pic_F77 in
20063      "" | " "*) ;;
20064      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20065      esac
20066 else
20067     lt_prog_compiler_pic_F77=
20068      lt_prog_compiler_can_build_shared_F77=no
20069 fi
20070
20071 fi
20072 case $host_os in
20073   # For platforms which do not support PIC, -DPIC is meaningless:
20074   *djgpp*)
20075     lt_prog_compiler_pic_F77=
20076     ;;
20077   *)
20078     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20079     ;;
20080 esac
20081
20082 #
20083 # Check to make sure the static flag actually works.
20084 #
20085 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20086 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20087 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
20088 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20089   echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091   lt_prog_compiler_static_works_F77=no
20092    save_LDFLAGS="$LDFLAGS"
20093    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20094    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20095    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20096      # The linker can only warn and ignore the option if not recognized
20097      # So say no if there are warnings
20098      if test -s conftest.err; then
20099        # Append any errors to the config.log.
20100        cat conftest.err 1>&5
20101        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20102        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20103        if diff conftest.exp conftest.er2 >/dev/null; then
20104          lt_prog_compiler_static_works_F77=yes
20105        fi
20106      else
20107        lt_prog_compiler_static_works_F77=yes
20108      fi
20109    fi
20110    $rm conftest*
20111    LDFLAGS="$save_LDFLAGS"
20112
20113 fi
20114 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20115 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
20116
20117 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20118     :
20119 else
20120     lt_prog_compiler_static_F77=
20121 fi
20122
20123
20124 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20125 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20126 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20127   echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129   lt_cv_prog_compiler_c_o_F77=no
20130    $rm -r conftest 2>/dev/null
20131    mkdir conftest
20132    cd conftest
20133    mkdir out
20134    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20135
20136    lt_compiler_flag="-o out/conftest2.$ac_objext"
20137    # Insert the option either (1) after the last *FLAGS variable, or
20138    # (2) before a word containing "conftest.", or (3) at the end.
20139    # Note that $ac_compile itself does not contain backslashes and begins
20140    # with a dollar sign (not a hyphen), so the echo should work correctly.
20141    lt_compile=`echo "$ac_compile" | $SED \
20142    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20143    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20144    -e 's:$: $lt_compiler_flag:'`
20145    (eval echo "\"\$as_me:20145: $lt_compile\"" >&5)
20146    (eval "$lt_compile" 2>out/conftest.err)
20147    ac_status=$?
20148    cat out/conftest.err >&5
20149    echo "$as_me:20149: \$? = $ac_status" >&5
20150    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20151    then
20152      # The compiler can only warn and ignore the option if not recognized
20153      # So say no if there are warnings
20154      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20155      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20156      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20157        lt_cv_prog_compiler_c_o_F77=yes
20158      fi
20159    fi
20160    chmod u+w . 2>&5
20161    $rm conftest*
20162    # SGI C++ compiler will create directory out/ii_files/ for
20163    # template instantiation
20164    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20165    $rm out/* && rmdir out
20166    cd ..
20167    rmdir conftest
20168    $rm conftest*
20169
20170 fi
20171 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20172 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
20173
20174
20175 hard_links="nottested"
20176 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20177   # do not overwrite the value of need_locks provided by the user
20178   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20179 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20180   hard_links=yes
20181   $rm conftest*
20182   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20183   touch conftest.a
20184   ln conftest.a conftest.b 2>&5 || hard_links=no
20185   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20186   echo "$as_me:$LINENO: result: $hard_links" >&5
20187 echo "${ECHO_T}$hard_links" >&6
20188   if test "$hard_links" = no; then
20189     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20190 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20191     need_locks=warn
20192   fi
20193 else
20194   need_locks=no
20195 fi
20196
20197 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20198 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20199
20200   runpath_var=
20201   allow_undefined_flag_F77=
20202   enable_shared_with_static_runtimes_F77=no
20203   archive_cmds_F77=
20204   archive_expsym_cmds_F77=
20205   old_archive_From_new_cmds_F77=
20206   old_archive_from_expsyms_cmds_F77=
20207   export_dynamic_flag_spec_F77=
20208   whole_archive_flag_spec_F77=
20209   thread_safe_flag_spec_F77=
20210   hardcode_libdir_flag_spec_F77=
20211   hardcode_libdir_flag_spec_ld_F77=
20212   hardcode_libdir_separator_F77=
20213   hardcode_direct_F77=no
20214   hardcode_minus_L_F77=no
20215   hardcode_shlibpath_var_F77=unsupported
20216   link_all_deplibs_F77=unknown
20217   hardcode_automatic_F77=no
20218   module_cmds_F77=
20219   module_expsym_cmds_F77=
20220   always_export_symbols_F77=no
20221   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20222   # include_expsyms should be a list of space-separated symbols to be *always*
20223   # included in the symbol list
20224   include_expsyms_F77=
20225   # exclude_expsyms can be an extended regexp of symbols to exclude
20226   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20227   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20228   # as well as any symbol that contains `d'.
20229   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20230   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20231   # platforms (ab)use it in PIC code, but their linkers get confused if
20232   # the symbol is explicitly referenced.  Since portable code cannot
20233   # rely on this symbol name, it's probably fine to never include it in
20234   # preloaded symbol tables.
20235   extract_expsyms_cmds=
20236   # Just being paranoid about ensuring that cc_basename is set.
20237   for cc_temp in $compiler""; do
20238   case $cc_temp in
20239     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20240     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20241     \-*) ;;
20242     *) break;;
20243   esac
20244 done
20245 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20246
20247   case $host_os in
20248   cygwin* | mingw* | pw32*)
20249     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20250     # When not using gcc, we currently assume that we are using
20251     # Microsoft Visual C++.
20252     if test "$GCC" != yes; then
20253       with_gnu_ld=no
20254     fi
20255     ;;
20256   interix*)
20257     # we just hope/assume this is gcc and not c89 (= MSVC++)
20258     with_gnu_ld=yes
20259     ;;
20260   openbsd*)
20261     with_gnu_ld=no
20262     ;;
20263   esac
20264
20265   ld_shlibs_F77=yes
20266   if test "$with_gnu_ld" = yes; then
20267     # If archive_cmds runs LD, not CC, wlarc should be empty
20268     wlarc='${wl}'
20269
20270     # Set some defaults for GNU ld with shared library support. These
20271     # are reset later if shared libraries are not supported. Putting them
20272     # here allows them to be overridden if necessary.
20273     runpath_var=LD_RUN_PATH
20274     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20275     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20276     # ancient GNU ld didn't support --whole-archive et. al.
20277     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20278         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20279       else
20280         whole_archive_flag_spec_F77=
20281     fi
20282     supports_anon_versioning=no
20283     case `$LD -v 2>/dev/null` in
20284       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20285       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20286       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20287       *\ 2.11.*) ;; # other 2.11 versions
20288       *) supports_anon_versioning=yes ;;
20289     esac
20290
20291     # See if GNU ld supports shared libraries.
20292     case $host_os in
20293     aix3* | aix4* | aix5*)
20294       # On AIX/PPC, the GNU linker is very broken
20295       if test "$host_cpu" != ia64; then
20296         ld_shlibs_F77=no
20297         cat <<EOF 1>&2
20298
20299 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20300 *** to be unable to reliably create shared libraries on AIX.
20301 *** Therefore, libtool is disabling shared libraries support.  If you
20302 *** really care for shared libraries, you may want to modify your PATH
20303 *** so that a non-GNU linker is found, and then restart.
20304
20305 EOF
20306       fi
20307       ;;
20308
20309     amigaos*)
20310       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)'
20311       hardcode_libdir_flag_spec_F77='-L$libdir'
20312       hardcode_minus_L_F77=yes
20313
20314       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20315       # that the semantics of dynamic libraries on AmigaOS, at least up
20316       # to version 4, is to share data among multiple programs linked
20317       # with the same dynamic library.  Since this doesn't match the
20318       # behavior of shared libraries on other platforms, we can't use
20319       # them.
20320       ld_shlibs_F77=no
20321       ;;
20322
20323     beos*)
20324       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20325         allow_undefined_flag_F77=unsupported
20326         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20327         # support --undefined.  This deserves some investigation.  FIXME
20328         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20329       else
20330         ld_shlibs_F77=no
20331       fi
20332       ;;
20333
20334     cygwin* | mingw* | pw32*)
20335       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20336       # as there is no search path for DLLs.
20337       hardcode_libdir_flag_spec_F77='-L$libdir'
20338       allow_undefined_flag_F77=unsupported
20339       always_export_symbols_F77=no
20340       enable_shared_with_static_runtimes_F77=yes
20341       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20342
20343       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20344         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20345         # If the export-symbols file already is a .def file (1st line
20346         # is EXPORTS), use it as is; otherwise, prepend...
20347         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20348           cp $export_symbols $output_objdir/$soname.def;
20349         else
20350           echo EXPORTS > $output_objdir/$soname.def;
20351           cat $export_symbols >> $output_objdir/$soname.def;
20352         fi~
20353         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20354       else
20355         ld_shlibs_F77=no
20356       fi
20357       ;;
20358
20359     interix3*)
20360       hardcode_direct_F77=no
20361       hardcode_shlibpath_var_F77=no
20362       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20363       export_dynamic_flag_spec_F77='${wl}-E'
20364       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20365       # Instead, shared libraries are loaded at an image base (0x10000000 by
20366       # default) and relocated if they conflict, which is a slow very memory
20367       # consuming and fragmenting process.  To avoid this, we pick a random,
20368       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20369       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20370       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'
20371       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'
20372       ;;
20373
20374     linux*)
20375       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20376         tmp_addflag=
20377         case $cc_basename,$host_cpu in
20378         pgcc*)                          # Portland Group C compiler
20379           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'
20380           tmp_addflag=' $pic_flag'
20381           ;;
20382         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
20383           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'
20384           tmp_addflag=' $pic_flag -Mnomain' ;;
20385         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
20386           tmp_addflag=' -i_dynamic' ;;
20387         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
20388           tmp_addflag=' -i_dynamic -nofor_main' ;;
20389         ifc* | ifort*)                  # Intel Fortran compiler
20390           tmp_addflag=' -nofor_main' ;;
20391         esac
20392         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20393
20394         if test $supports_anon_versioning = yes; then
20395           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20396   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20397   $echo "local: *; };" >> $output_objdir/$libname.ver~
20398           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20399         fi
20400       else
20401         ld_shlibs_F77=no
20402       fi
20403       ;;
20404
20405     netbsd*)
20406       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20407         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20408         wlarc=
20409       else
20410         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20411         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20412       fi
20413       ;;
20414
20415     solaris*)
20416       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20417         ld_shlibs_F77=no
20418         cat <<EOF 1>&2
20419
20420 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20421 *** create shared libraries on Solaris systems.  Therefore, libtool
20422 *** is disabling shared libraries support.  We urge you to upgrade GNU
20423 *** binutils to release 2.9.1 or newer.  Another option is to modify
20424 *** your PATH or compiler configuration so that the native linker is
20425 *** used, and then restart.
20426
20427 EOF
20428       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20429         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20430         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20431       else
20432         ld_shlibs_F77=no
20433       fi
20434       ;;
20435
20436     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20437       case `$LD -v 2>&1` in
20438         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20439         ld_shlibs_F77=no
20440         cat <<_LT_EOF 1>&2
20441
20442 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20443 *** reliably create shared libraries on SCO systems.  Therefore, libtool
20444 *** is disabling shared libraries support.  We urge you to upgrade GNU
20445 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20446 *** your PATH or compiler configuration so that the native linker is
20447 *** used, and then restart.
20448
20449 _LT_EOF
20450         ;;
20451         *)
20452           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20453             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20454             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20455             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20456           else
20457             ld_shlibs_F77=no
20458           fi
20459         ;;
20460       esac
20461       ;;
20462
20463     sunos4*)
20464       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20465       wlarc=
20466       hardcode_direct_F77=yes
20467       hardcode_shlibpath_var_F77=no
20468       ;;
20469
20470     *)
20471       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20472         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20473         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20474       else
20475         ld_shlibs_F77=no
20476       fi
20477       ;;
20478     esac
20479
20480     if test "$ld_shlibs_F77" = no; then
20481       runpath_var=
20482       hardcode_libdir_flag_spec_F77=
20483       export_dynamic_flag_spec_F77=
20484       whole_archive_flag_spec_F77=
20485     fi
20486   else
20487     # PORTME fill in a description of your system's linker (not GNU ld)
20488     case $host_os in
20489     aix3*)
20490       allow_undefined_flag_F77=unsupported
20491       always_export_symbols_F77=yes
20492       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'
20493       # Note: this linker hardcodes the directories in LIBPATH if there
20494       # are no directories specified by -L.
20495       hardcode_minus_L_F77=yes
20496       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20497         # Neither direct hardcoding nor static linking is supported with a
20498         # broken collect2.
20499         hardcode_direct_F77=unsupported
20500       fi
20501       ;;
20502
20503     aix4* | aix5*)
20504       if test "$host_cpu" = ia64; then
20505         # On IA64, the linker does run time linking by default, so we don't
20506         # have to do anything special.
20507         aix_use_runtimelinking=no
20508         exp_sym_flag='-Bexport'
20509         no_entry_flag=""
20510       else
20511         # If we're using GNU nm, then we don't want the "-C" option.
20512         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20513         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20514           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'
20515         else
20516           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'
20517         fi
20518         aix_use_runtimelinking=no
20519
20520         # Test if we are trying to use run time linking or normal
20521         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20522         # need to do runtime linking.
20523         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20524           for ld_flag in $LDFLAGS; do
20525           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20526             aix_use_runtimelinking=yes
20527             break
20528           fi
20529           done
20530           ;;
20531         esac
20532
20533         exp_sym_flag='-bexport'
20534         no_entry_flag='-bnoentry'
20535       fi
20536
20537       # When large executables or shared objects are built, AIX ld can
20538       # have problems creating the table of contents.  If linking a library
20539       # or program results in "error TOC overflow" add -mminimal-toc to
20540       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20541       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20542
20543       archive_cmds_F77=''
20544       hardcode_direct_F77=yes
20545       hardcode_libdir_separator_F77=':'
20546       link_all_deplibs_F77=yes
20547
20548       if test "$GCC" = yes; then
20549         case $host_os in aix4.[012]|aix4.[012].*)
20550         # We only want to do this on AIX 4.2 and lower, the check
20551         # below for broken collect2 doesn't work under 4.3+
20552           collect2name=`${CC} -print-prog-name=collect2`
20553           if test -f "$collect2name" && \
20554            strings "$collect2name" | grep resolve_lib_name >/dev/null
20555           then
20556           # We have reworked collect2
20557           hardcode_direct_F77=yes
20558           else
20559           # We have old collect2
20560           hardcode_direct_F77=unsupported
20561           # It fails to find uninstalled libraries when the uninstalled
20562           # path is not listed in the libpath.  Setting hardcode_minus_L
20563           # to unsupported forces relinking
20564           hardcode_minus_L_F77=yes
20565           hardcode_libdir_flag_spec_F77='-L$libdir'
20566           hardcode_libdir_separator_F77=
20567           fi
20568           ;;
20569         esac
20570         shared_flag='-shared'
20571         if test "$aix_use_runtimelinking" = yes; then
20572           shared_flag="$shared_flag "'${wl}-G'
20573         fi
20574       else
20575         # not using gcc
20576         if test "$host_cpu" = ia64; then
20577         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20578         # chokes on -Wl,-G. The following line is correct:
20579           shared_flag='-G'
20580         else
20581           if test "$aix_use_runtimelinking" = yes; then
20582             shared_flag='${wl}-G'
20583           else
20584             shared_flag='${wl}-bM:SRE'
20585           fi
20586         fi
20587       fi
20588
20589       # It seems that -bexpall does not export symbols beginning with
20590       # underscore (_), so it is better to generate a list of symbols to export.
20591       always_export_symbols_F77=yes
20592       if test "$aix_use_runtimelinking" = yes; then
20593         # Warning - without using the other runtime loading flags (-brtl),
20594         # -berok will link without error, but may produce a broken library.
20595         allow_undefined_flag_F77='-berok'
20596        # Determine the default libpath from the value encoded in an empty executable.
20597        cat >conftest.$ac_ext <<_ACEOF
20598       program main
20599
20600       end
20601 _ACEOF
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20604   (eval $ac_link) 2>conftest.er1
20605   ac_status=$?
20606   grep -v '^ *+' conftest.er1 >conftest.err
20607   rm -f conftest.er1
20608   cat conftest.err >&5
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); } &&
20611          { ac_try='test -z "$ac_f77_werror_flag"
20612                          || test ! -s conftest.err'
20613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614   (eval $ac_try) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; } &&
20618          { ac_try='test -s conftest$ac_exeext'
20619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620   (eval $ac_try) 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; }; then
20624
20625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20626 }'`
20627 # Check for a 64-bit object if we didn't find anything.
20628 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; }
20629 }'`; fi
20630 else
20631   echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20633
20634 fi
20635 rm -f conftest.err conftest.$ac_objext \
20636       conftest$ac_exeext conftest.$ac_ext
20637 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20638
20639        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20640         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"
20641        else
20642         if test "$host_cpu" = ia64; then
20643           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20644           allow_undefined_flag_F77="-z nodefs"
20645           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"
20646         else
20647          # Determine the default libpath from the value encoded in an empty executable.
20648          cat >conftest.$ac_ext <<_ACEOF
20649       program main
20650
20651       end
20652 _ACEOF
20653 rm -f conftest.$ac_objext conftest$ac_exeext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20655   (eval $ac_link) 2>conftest.er1
20656   ac_status=$?
20657   grep -v '^ *+' conftest.er1 >conftest.err
20658   rm -f conftest.er1
20659   cat conftest.err >&5
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); } &&
20662          { ac_try='test -z "$ac_f77_werror_flag"
20663                          || test ! -s conftest.err'
20664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665   (eval $ac_try) 2>&5
20666   ac_status=$?
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); }; } &&
20669          { ac_try='test -s conftest$ac_exeext'
20670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671   (eval $ac_try) 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); }; }; then
20675
20676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20677 }'`
20678 # Check for a 64-bit object if we didn't find anything.
20679 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; }
20680 }'`; fi
20681 else
20682   echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20684
20685 fi
20686 rm -f conftest.err conftest.$ac_objext \
20687       conftest$ac_exeext conftest.$ac_ext
20688 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20689
20690          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20691           # Warning - without using the other run time loading flags,
20692           # -berok will link without error, but may produce a broken library.
20693           no_undefined_flag_F77=' ${wl}-bernotok'
20694           allow_undefined_flag_F77=' ${wl}-berok'
20695           # Exported symbols can be pulled into shared objects from archives
20696           whole_archive_flag_spec_F77='$convenience'
20697           archive_cmds_need_lc_F77=yes
20698           # This is similar to how AIX traditionally builds its shared libraries.
20699           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'
20700         fi
20701       fi
20702       ;;
20703
20704     amigaos*)
20705       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)'
20706       hardcode_libdir_flag_spec_F77='-L$libdir'
20707       hardcode_minus_L_F77=yes
20708       # see comment about different semantics on the GNU ld section
20709       ld_shlibs_F77=no
20710       ;;
20711
20712     bsdi[45]*)
20713       export_dynamic_flag_spec_F77=-rdynamic
20714       ;;
20715
20716     cygwin* | mingw* | pw32*)
20717       # When not using gcc, we currently assume that we are using
20718       # Microsoft Visual C++.
20719       # hardcode_libdir_flag_spec is actually meaningless, as there is
20720       # no search path for DLLs.
20721       hardcode_libdir_flag_spec_F77=' '
20722       allow_undefined_flag_F77=unsupported
20723       # Tell ltmain to make .lib files, not .a files.
20724       libext=lib
20725       # Tell ltmain to make .dll files, not .so files.
20726       shrext_cmds=".dll"
20727       # FIXME: Setting linknames here is a bad hack.
20728       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20729       # The linker will automatically build a .lib file if we build a DLL.
20730       old_archive_From_new_cmds_F77='true'
20731       # FIXME: Should let the user specify the lib program.
20732       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20733       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20734       enable_shared_with_static_runtimes_F77=yes
20735       ;;
20736
20737     darwin* | rhapsody*)
20738       case $host_os in
20739         rhapsody* | darwin1.[012])
20740          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20741          ;;
20742        *) # Darwin 1.3 on
20743          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20744            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20745          else
20746            case ${MACOSX_DEPLOYMENT_TARGET} in
20747              10.[012])
20748                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20749                ;;
20750              10.*)
20751                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20752                ;;
20753            esac
20754          fi
20755          ;;
20756       esac
20757       archive_cmds_need_lc_F77=no
20758       hardcode_direct_F77=no
20759       hardcode_automatic_F77=yes
20760       hardcode_shlibpath_var_F77=unsupported
20761       whole_archive_flag_spec_F77=''
20762       link_all_deplibs_F77=yes
20763     if test "$GCC" = yes ; then
20764         output_verbose_link_cmd='echo'
20765         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20766       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20767       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20768       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}'
20769       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}'
20770     else
20771       case $cc_basename in
20772         xlc*)
20773          output_verbose_link_cmd='echo'
20774          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20775          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20776           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20777          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}'
20778           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}'
20779           ;;
20780        *)
20781          ld_shlibs_F77=no
20782           ;;
20783       esac
20784     fi
20785       ;;
20786
20787     dgux*)
20788       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20789       hardcode_libdir_flag_spec_F77='-L$libdir'
20790       hardcode_shlibpath_var_F77=no
20791       ;;
20792
20793     freebsd1*)
20794       ld_shlibs_F77=no
20795       ;;
20796
20797     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20798     # support.  Future versions do this automatically, but an explicit c++rt0.o
20799     # does not break anything, and helps significantly (at the cost of a little
20800     # extra space).
20801     freebsd2.2*)
20802       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20803       hardcode_libdir_flag_spec_F77='-R$libdir'
20804       hardcode_direct_F77=yes
20805       hardcode_shlibpath_var_F77=no
20806       ;;
20807
20808     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20809     freebsd2*)
20810       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20811       hardcode_direct_F77=yes
20812       hardcode_minus_L_F77=yes
20813       hardcode_shlibpath_var_F77=no
20814       ;;
20815
20816     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20817     freebsd* | kfreebsd*-gnu | dragonfly*)
20818       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20819       hardcode_libdir_flag_spec_F77='-R$libdir'
20820       hardcode_direct_F77=yes
20821       hardcode_shlibpath_var_F77=no
20822       ;;
20823
20824     hpux9*)
20825       if test "$GCC" = yes; then
20826         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'
20827       else
20828         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'
20829       fi
20830       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20831       hardcode_libdir_separator_F77=:
20832       hardcode_direct_F77=yes
20833
20834       # hardcode_minus_L: Not really in the search PATH,
20835       # but as the default location of the library.
20836       hardcode_minus_L_F77=yes
20837       export_dynamic_flag_spec_F77='${wl}-E'
20838       ;;
20839
20840     hpux10*)
20841       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20842         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20843       else
20844         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20845       fi
20846       if test "$with_gnu_ld" = no; then
20847         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20848         hardcode_libdir_separator_F77=:
20849
20850         hardcode_direct_F77=yes
20851         export_dynamic_flag_spec_F77='${wl}-E'
20852
20853         # hardcode_minus_L: Not really in the search PATH,
20854         # but as the default location of the library.
20855         hardcode_minus_L_F77=yes
20856       fi
20857       ;;
20858
20859     hpux11*)
20860       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20861         case $host_cpu in
20862         hppa*64*)
20863           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20864           ;;
20865         ia64*)
20866           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20867           ;;
20868         *)
20869           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20870           ;;
20871         esac
20872       else
20873         case $host_cpu in
20874         hppa*64*)
20875           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20876           ;;
20877         ia64*)
20878           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20879           ;;
20880         *)
20881           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20882           ;;
20883         esac
20884       fi
20885       if test "$with_gnu_ld" = no; then
20886         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20887         hardcode_libdir_separator_F77=:
20888
20889         case $host_cpu in
20890         hppa*64*|ia64*)
20891           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20892           hardcode_direct_F77=no
20893           hardcode_shlibpath_var_F77=no
20894           ;;
20895         *)
20896           hardcode_direct_F77=yes
20897           export_dynamic_flag_spec_F77='${wl}-E'
20898
20899           # hardcode_minus_L: Not really in the search PATH,
20900           # but as the default location of the library.
20901           hardcode_minus_L_F77=yes
20902           ;;
20903         esac
20904       fi
20905       ;;
20906
20907     irix5* | irix6* | nonstopux*)
20908       if test "$GCC" = yes; then
20909         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'
20910       else
20911         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'
20912         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20913       fi
20914       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20915       hardcode_libdir_separator_F77=:
20916       link_all_deplibs_F77=yes
20917       ;;
20918
20919     netbsd*)
20920       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20921         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20922       else
20923         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20924       fi
20925       hardcode_libdir_flag_spec_F77='-R$libdir'
20926       hardcode_direct_F77=yes
20927       hardcode_shlibpath_var_F77=no
20928       ;;
20929
20930     newsos6)
20931       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20932       hardcode_direct_F77=yes
20933       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20934       hardcode_libdir_separator_F77=:
20935       hardcode_shlibpath_var_F77=no
20936       ;;
20937
20938     openbsd*)
20939       hardcode_direct_F77=yes
20940       hardcode_shlibpath_var_F77=no
20941       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20942         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20943         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20944         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20945         export_dynamic_flag_spec_F77='${wl}-E'
20946       else
20947        case $host_os in
20948          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20949            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20950            hardcode_libdir_flag_spec_F77='-R$libdir'
20951            ;;
20952          *)
20953            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20954            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20955            ;;
20956        esac
20957       fi
20958       ;;
20959
20960     os2*)
20961       hardcode_libdir_flag_spec_F77='-L$libdir'
20962       hardcode_minus_L_F77=yes
20963       allow_undefined_flag_F77=unsupported
20964       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'
20965       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20966       ;;
20967
20968     osf3*)
20969       if test "$GCC" = yes; then
20970         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20971         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'
20972       else
20973         allow_undefined_flag_F77=' -expect_unresolved \*'
20974         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'
20975       fi
20976       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20977       hardcode_libdir_separator_F77=:
20978       ;;
20979
20980     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20981       if test "$GCC" = yes; then
20982         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20983         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'
20984         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20985       else
20986         allow_undefined_flag_F77=' -expect_unresolved \*'
20987         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'
20988         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~
20989         $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'
20990
20991         # Both c and cxx compiler support -rpath directly
20992         hardcode_libdir_flag_spec_F77='-rpath $libdir'
20993       fi
20994       hardcode_libdir_separator_F77=:
20995       ;;
20996
20997     solaris*)
20998       no_undefined_flag_F77=' -z text'
20999       if test "$GCC" = yes; then
21000         wlarc='${wl}'
21001         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21002         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21003           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21004       else
21005         wlarc=''
21006         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21007         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21008         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21009       fi
21010       hardcode_libdir_flag_spec_F77='-R$libdir'
21011       hardcode_shlibpath_var_F77=no
21012       case $host_os in
21013       solaris2.[0-5] | solaris2.[0-5].*) ;;
21014       *)
21015         # The compiler driver will combine linker options so we
21016         # cannot just pass the convience library names through
21017         # without $wl, iff we do not link with $LD.
21018         # Luckily, gcc supports the same syntax we need for Sun Studio.
21019         # Supported since Solaris 2.6 (maybe 2.5.1?)
21020         case $wlarc in
21021         '')
21022           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21023         *)
21024           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' ;;
21025         esac ;;
21026       esac
21027       link_all_deplibs_F77=yes
21028       ;;
21029
21030     sunos4*)
21031       if test "x$host_vendor" = xsequent; then
21032         # Use $CC to link under sequent, because it throws in some extra .o
21033         # files that make .init and .fini sections work.
21034         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21035       else
21036         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21037       fi
21038       hardcode_libdir_flag_spec_F77='-L$libdir'
21039       hardcode_direct_F77=yes
21040       hardcode_minus_L_F77=yes
21041       hardcode_shlibpath_var_F77=no
21042       ;;
21043
21044     sysv4)
21045       case $host_vendor in
21046         sni)
21047           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21048           hardcode_direct_F77=yes # is this really true???
21049         ;;
21050         siemens)
21051           ## LD is ld it makes a PLAMLIB
21052           ## CC just makes a GrossModule.
21053           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21054           reload_cmds_F77='$CC -r -o $output$reload_objs'
21055           hardcode_direct_F77=no
21056         ;;
21057         motorola)
21058           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21059           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21060         ;;
21061       esac
21062       runpath_var='LD_RUN_PATH'
21063       hardcode_shlibpath_var_F77=no
21064       ;;
21065
21066     sysv4.3*)
21067       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21068       hardcode_shlibpath_var_F77=no
21069       export_dynamic_flag_spec_F77='-Bexport'
21070       ;;
21071
21072     sysv4*MP*)
21073       if test -d /usr/nec; then
21074         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21075         hardcode_shlibpath_var_F77=no
21076         runpath_var=LD_RUN_PATH
21077         hardcode_runpath_var=yes
21078         ld_shlibs_F77=yes
21079       fi
21080       ;;
21081
21082     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21083       no_undefined_flag_F77='${wl}-z,text'
21084       archive_cmds_need_lc_F77=no
21085       hardcode_shlibpath_var_F77=no
21086       runpath_var='LD_RUN_PATH'
21087
21088       if test "$GCC" = yes; then
21089         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21090         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21091       else
21092         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21093         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21094       fi
21095       ;;
21096
21097     sysv5* | sco3.2v5* | sco5v6*)
21098       # Note: We can NOT use -z defs as we might desire, because we do not
21099       # link with -lc, and that would cause any symbols used from libc to
21100       # always be unresolved, which means just about no library would
21101       # ever link correctly.  If we're not using GNU ld we use -z text
21102       # though, which does catch some bad symbols but isn't as heavy-handed
21103       # as -z defs.
21104       no_undefined_flag_F77='${wl}-z,text'
21105       allow_undefined_flag_F77='${wl}-z,nodefs'
21106       archive_cmds_need_lc_F77=no
21107       hardcode_shlibpath_var_F77=no
21108       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21109       hardcode_libdir_separator_F77=':'
21110       link_all_deplibs_F77=yes
21111       export_dynamic_flag_spec_F77='${wl}-Bexport'
21112       runpath_var='LD_RUN_PATH'
21113
21114       if test "$GCC" = yes; then
21115         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21116         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21117       else
21118         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21119         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21120       fi
21121       ;;
21122
21123     uts4*)
21124       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21125       hardcode_libdir_flag_spec_F77='-L$libdir'
21126       hardcode_shlibpath_var_F77=no
21127       ;;
21128
21129     *)
21130       ld_shlibs_F77=no
21131       ;;
21132     esac
21133   fi
21134
21135 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21136 echo "${ECHO_T}$ld_shlibs_F77" >&6
21137 test "$ld_shlibs_F77" = no && can_build_shared=no
21138
21139 #
21140 # Do we need to explicitly link libc?
21141 #
21142 case "x$archive_cmds_need_lc_F77" in
21143 x|xyes)
21144   # Assume -lc should be added
21145   archive_cmds_need_lc_F77=yes
21146
21147   if test "$enable_shared" = yes && test "$GCC" = yes; then
21148     case $archive_cmds_F77 in
21149     *'~'*)
21150       # FIXME: we may have to deal with multi-command sequences.
21151       ;;
21152     '$CC '*)
21153       # Test whether the compiler implicitly links with -lc since on some
21154       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21155       # to ld, don't add -lc before -lgcc.
21156       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21157 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21158       $rm conftest*
21159       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21160
21161       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21162   (eval $ac_compile) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); } 2>conftest.err; then
21166         soname=conftest
21167         lib=conftest
21168         libobjs=conftest.$ac_objext
21169         deplibs=
21170         wl=$lt_prog_compiler_wl_F77
21171         pic_flag=$lt_prog_compiler_pic_F77
21172         compiler_flags=-v
21173         linker_flags=-v
21174         verstring=
21175         output_objdir=.
21176         libname=conftest
21177         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21178         allow_undefined_flag_F77=
21179         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21180   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21181   ac_status=$?
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); }
21184         then
21185           archive_cmds_need_lc_F77=no
21186         else
21187           archive_cmds_need_lc_F77=yes
21188         fi
21189         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21190       else
21191         cat conftest.err 1>&5
21192       fi
21193       $rm conftest*
21194       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21195 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
21196       ;;
21197     esac
21198   fi
21199   ;;
21200 esac
21201
21202 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21203 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21204 library_names_spec=
21205 libname_spec='lib$name'
21206 soname_spec=
21207 shrext_cmds=".so"
21208 postinstall_cmds=
21209 postuninstall_cmds=
21210 finish_cmds=
21211 finish_eval=
21212 shlibpath_var=
21213 shlibpath_overrides_runpath=unknown
21214 version_type=none
21215 dynamic_linker="$host_os ld.so"
21216 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21217 if test "$GCC" = yes; then
21218   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21219   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21220     # if the path contains ";" then we assume it to be the separator
21221     # otherwise default to the standard path separator (i.e. ":") - it is
21222     # assumed that no part of a normal pathname contains ";" but that should
21223     # okay in the real world where ";" in dirpaths is itself problematic.
21224     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21225   else
21226     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21227   fi
21228 else
21229   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21230 fi
21231 need_lib_prefix=unknown
21232 hardcode_into_libs=no
21233
21234 # when you set need_version to no, make sure it does not cause -set_version
21235 # flags to be left without arguments
21236 need_version=unknown
21237
21238 case $host_os in
21239 aix3*)
21240   version_type=linux
21241   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21242   shlibpath_var=LIBPATH
21243
21244   # AIX 3 has no versioning support, so we append a major version to the name.
21245   soname_spec='${libname}${release}${shared_ext}$major'
21246   ;;
21247
21248 aix4* | aix5*)
21249   version_type=linux
21250   need_lib_prefix=no
21251   need_version=no
21252   hardcode_into_libs=yes
21253   if test "$host_cpu" = ia64; then
21254     # AIX 5 supports IA64
21255     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21256     shlibpath_var=LD_LIBRARY_PATH
21257   else
21258     # With GCC up to 2.95.x, collect2 would create an import file
21259     # for dependence libraries.  The import file would start with
21260     # the line `#! .'.  This would cause the generated library to
21261     # depend on `.', always an invalid library.  This was fixed in
21262     # development snapshots of GCC prior to 3.0.
21263     case $host_os in
21264       aix4 | aix4.[01] | aix4.[01].*)
21265       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21266            echo ' yes '
21267            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21268         :
21269       else
21270         can_build_shared=no
21271       fi
21272       ;;
21273     esac
21274     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21275     # soname into executable. Probably we can add versioning support to
21276     # collect2, so additional links can be useful in future.
21277     if test "$aix_use_runtimelinking" = yes; then
21278       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21279       # instead of lib<name>.a to let people know that these are not
21280       # typical AIX shared libraries.
21281       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21282     else
21283       # We preserve .a as extension for shared libraries through AIX4.2
21284       # and later when we are not doing run time linking.
21285       library_names_spec='${libname}${release}.a $libname.a'
21286       soname_spec='${libname}${release}${shared_ext}$major'
21287     fi
21288     shlibpath_var=LIBPATH
21289   fi
21290   ;;
21291
21292 amigaos*)
21293   library_names_spec='$libname.ixlibrary $libname.a'
21294   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21295   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'
21296   ;;
21297
21298 beos*)
21299   library_names_spec='${libname}${shared_ext}'
21300   dynamic_linker="$host_os ld.so"
21301   shlibpath_var=LIBRARY_PATH
21302   ;;
21303
21304 bsdi[45]*)
21305   version_type=linux
21306   need_version=no
21307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21308   soname_spec='${libname}${release}${shared_ext}$major'
21309   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21310   shlibpath_var=LD_LIBRARY_PATH
21311   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21312   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21313   # the default ld.so.conf also contains /usr/contrib/lib and
21314   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21315   # libtool to hard-code these into programs
21316   ;;
21317
21318 cygwin* | mingw* | pw32*)
21319   version_type=windows
21320   shrext_cmds=".dll"
21321   need_version=no
21322   need_lib_prefix=no
21323
21324   case $GCC,$host_os in
21325   yes,cygwin* | yes,mingw* | yes,pw32*)
21326     library_names_spec='$libname.dll.a'
21327     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21328     postinstall_cmds='base_file=`basename \${file}`~
21329       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21330       dldir=$destdir/`dirname \$dlpath`~
21331       test -d \$dldir || mkdir -p \$dldir~
21332       $install_prog $dir/$dlname \$dldir/$dlname~
21333       chmod a+x \$dldir/$dlname'
21334     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21335       dlpath=$dir/\$dldll~
21336        $rm \$dlpath'
21337     shlibpath_overrides_runpath=yes
21338
21339     case $host_os in
21340     cygwin*)
21341       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21342       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21343       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21344       ;;
21345     mingw*)
21346       # MinGW DLLs use traditional 'lib' prefix
21347       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21348       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21349       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21350         # It is most probably a Windows format PATH printed by
21351         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21352         # path with ; separators, and with drive letters. We can handle the
21353         # drive letters (cygwin fileutils understands them), so leave them,
21354         # especially as we might pass files found there to a mingw objdump,
21355         # which wouldn't understand a cygwinified path. Ahh.
21356         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21357       else
21358         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21359       fi
21360       ;;
21361     pw32*)
21362       # pw32 DLLs use 'pw' prefix rather than 'lib'
21363       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21364       ;;
21365     esac
21366     ;;
21367
21368   *)
21369     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21370     ;;
21371   esac
21372   dynamic_linker='Win32 ld.exe'
21373   # FIXME: first we should search . and the directory the executable is in
21374   shlibpath_var=PATH
21375   ;;
21376
21377 darwin* | rhapsody*)
21378   dynamic_linker="$host_os dyld"
21379   version_type=darwin
21380   need_lib_prefix=no
21381   need_version=no
21382   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21383   soname_spec='${libname}${release}${major}$shared_ext'
21384   shlibpath_overrides_runpath=yes
21385   shlibpath_var=DYLD_LIBRARY_PATH
21386   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21387   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21388   if test "$GCC" = yes; then
21389     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"`
21390   else
21391     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21392   fi
21393   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21394   ;;
21395
21396 dgux*)
21397   version_type=linux
21398   need_lib_prefix=no
21399   need_version=no
21400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21401   soname_spec='${libname}${release}${shared_ext}$major'
21402   shlibpath_var=LD_LIBRARY_PATH
21403   ;;
21404
21405 freebsd1*)
21406   dynamic_linker=no
21407   ;;
21408
21409 kfreebsd*-gnu)
21410   version_type=linux
21411   need_lib_prefix=no
21412   need_version=no
21413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21414   soname_spec='${libname}${release}${shared_ext}$major'
21415   shlibpath_var=LD_LIBRARY_PATH
21416   shlibpath_overrides_runpath=no
21417   hardcode_into_libs=yes
21418   dynamic_linker='GNU ld.so'
21419   ;;
21420
21421 freebsd* | dragonfly*)
21422   # DragonFly does not have aout.  When/if they implement a new
21423   # versioning mechanism, adjust this.
21424   if test -x /usr/bin/objformat; then
21425     objformat=`/usr/bin/objformat`
21426   else
21427     case $host_os in
21428     freebsd[123]*) objformat=aout ;;
21429     *) objformat=elf ;;
21430     esac
21431   fi
21432   version_type=freebsd-$objformat
21433   case $version_type in
21434     freebsd-elf*)
21435       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21436       need_version=no
21437       need_lib_prefix=no
21438       ;;
21439     freebsd-*)
21440       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21441       need_version=yes
21442       ;;
21443   esac
21444   shlibpath_var=LD_LIBRARY_PATH
21445   case $host_os in
21446   freebsd2*)
21447     shlibpath_overrides_runpath=yes
21448     ;;
21449   freebsd3.[01]* | freebsdelf3.[01]*)
21450     shlibpath_overrides_runpath=yes
21451     hardcode_into_libs=yes
21452     ;;
21453   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21454   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21455     shlibpath_overrides_runpath=no
21456     hardcode_into_libs=yes
21457     ;;
21458   freebsd*) # from 4.6 on
21459     shlibpath_overrides_runpath=yes
21460     hardcode_into_libs=yes
21461     ;;
21462   esac
21463   ;;
21464
21465 gnu*)
21466   version_type=linux
21467   need_lib_prefix=no
21468   need_version=no
21469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21470   soname_spec='${libname}${release}${shared_ext}$major'
21471   shlibpath_var=LD_LIBRARY_PATH
21472   hardcode_into_libs=yes
21473   ;;
21474
21475 hpux9* | hpux10* | hpux11*)
21476   # Give a soname corresponding to the major version so that dld.sl refuses to
21477   # link against other versions.
21478   version_type=sunos
21479   need_lib_prefix=no
21480   need_version=no
21481   case $host_cpu in
21482   ia64*)
21483     shrext_cmds='.so'
21484     hardcode_into_libs=yes
21485     dynamic_linker="$host_os dld.so"
21486     shlibpath_var=LD_LIBRARY_PATH
21487     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21489     soname_spec='${libname}${release}${shared_ext}$major'
21490     if test "X$HPUX_IA64_MODE" = X32; then
21491       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21492     else
21493       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21494     fi
21495     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21496     ;;
21497    hppa*64*)
21498      shrext_cmds='.sl'
21499      hardcode_into_libs=yes
21500      dynamic_linker="$host_os dld.sl"
21501      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21502      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21503      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21504      soname_spec='${libname}${release}${shared_ext}$major'
21505      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21506      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21507      ;;
21508    *)
21509     shrext_cmds='.sl'
21510     dynamic_linker="$host_os dld.sl"
21511     shlibpath_var=SHLIB_PATH
21512     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21514     soname_spec='${libname}${release}${shared_ext}$major'
21515     ;;
21516   esac
21517   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21518   postinstall_cmds='chmod 555 $lib'
21519   ;;
21520
21521 interix3*)
21522   version_type=linux
21523   need_lib_prefix=no
21524   need_version=no
21525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21526   soname_spec='${libname}${release}${shared_ext}$major'
21527   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21528   shlibpath_var=LD_LIBRARY_PATH
21529   shlibpath_overrides_runpath=no
21530   hardcode_into_libs=yes
21531   ;;
21532
21533 irix5* | irix6* | nonstopux*)
21534   case $host_os in
21535     nonstopux*) version_type=nonstopux ;;
21536     *)
21537         if test "$lt_cv_prog_gnu_ld" = yes; then
21538                 version_type=linux
21539         else
21540                 version_type=irix
21541         fi ;;
21542   esac
21543   need_lib_prefix=no
21544   need_version=no
21545   soname_spec='${libname}${release}${shared_ext}$major'
21546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21547   case $host_os in
21548   irix5* | nonstopux*)
21549     libsuff= shlibsuff=
21550     ;;
21551   *)
21552     case $LD in # libtool.m4 will add one of these switches to LD
21553     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21554       libsuff= shlibsuff= libmagic=32-bit;;
21555     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21556       libsuff=32 shlibsuff=N32 libmagic=N32;;
21557     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21558       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21559     *) libsuff= shlibsuff= libmagic=never-match;;
21560     esac
21561     ;;
21562   esac
21563   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21564   shlibpath_overrides_runpath=no
21565   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21566   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21567   hardcode_into_libs=yes
21568   ;;
21569
21570 # No shared lib support for Linux oldld, aout, or coff.
21571 linux*oldld* | linux*aout* | linux*coff*)
21572   dynamic_linker=no
21573   ;;
21574
21575 # This must be Linux ELF.
21576 linux*)
21577   version_type=linux
21578   need_lib_prefix=no
21579   need_version=no
21580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21581   soname_spec='${libname}${release}${shared_ext}$major'
21582   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21583   shlibpath_var=LD_LIBRARY_PATH
21584   shlibpath_overrides_runpath=no
21585   # This implies no fast_install, which is unacceptable.
21586   # Some rework will be needed to allow for fast_install
21587   # before this can be enabled.
21588   hardcode_into_libs=yes
21589
21590   # find out which ABI we are using
21591   libsuff=
21592   case "$host_cpu" in
21593   x86_64*|s390x*|powerpc64*)
21594     echo '#line 21594 "configure"' > conftest.$ac_ext
21595     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21596   (eval $ac_compile) 2>&5
21597   ac_status=$?
21598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599   (exit $ac_status); }; then
21600       case `/usr/bin/file conftest.$ac_objext` in
21601       *64-bit*)
21602         libsuff=64
21603         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
21604         ;;
21605       esac
21606     fi
21607     rm -rf conftest*
21608     ;;
21609   esac
21610
21611   # Append ld.so.conf contents to the search path
21612   if test -f /etc/ld.so.conf; then
21613     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' ' '`
21614     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
21615   fi
21616
21617   # We used to test for /lib/ld.so.1 and disable shared libraries on
21618   # powerpc, because MkLinux only supported shared libraries with the
21619   # GNU dynamic linker.  Since this was broken with cross compilers,
21620   # most powerpc-linux boxes support dynamic linking these days and
21621   # people can always --disable-shared, the test was removed, and we
21622   # assume the GNU/Linux dynamic linker is in use.
21623   dynamic_linker='GNU/Linux ld.so'
21624   ;;
21625
21626 knetbsd*-gnu)
21627   version_type=linux
21628   need_lib_prefix=no
21629   need_version=no
21630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21631   soname_spec='${libname}${release}${shared_ext}$major'
21632   shlibpath_var=LD_LIBRARY_PATH
21633   shlibpath_overrides_runpath=no
21634   hardcode_into_libs=yes
21635   dynamic_linker='GNU ld.so'
21636   ;;
21637
21638 netbsd*)
21639   version_type=sunos
21640   need_lib_prefix=no
21641   need_version=no
21642   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21643     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21644     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21645     dynamic_linker='NetBSD (a.out) ld.so'
21646   else
21647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21648     soname_spec='${libname}${release}${shared_ext}$major'
21649     dynamic_linker='NetBSD ld.elf_so'
21650   fi
21651   shlibpath_var=LD_LIBRARY_PATH
21652   shlibpath_overrides_runpath=yes
21653   hardcode_into_libs=yes
21654   ;;
21655
21656 newsos6)
21657   version_type=linux
21658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21659   shlibpath_var=LD_LIBRARY_PATH
21660   shlibpath_overrides_runpath=yes
21661   ;;
21662
21663 nto-qnx*)
21664   version_type=linux
21665   need_lib_prefix=no
21666   need_version=no
21667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21668   soname_spec='${libname}${release}${shared_ext}$major'
21669   shlibpath_var=LD_LIBRARY_PATH
21670   shlibpath_overrides_runpath=yes
21671   ;;
21672
21673 openbsd*)
21674   version_type=sunos
21675   sys_lib_dlsearch_path_spec="/usr/lib"
21676   need_lib_prefix=no
21677   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21678   case $host_os in
21679     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21680     *)                         need_version=no  ;;
21681   esac
21682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21683   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21684   shlibpath_var=LD_LIBRARY_PATH
21685   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21686     case $host_os in
21687       openbsd2.[89] | openbsd2.[89].*)
21688         shlibpath_overrides_runpath=no
21689         ;;
21690       *)
21691         shlibpath_overrides_runpath=yes
21692         ;;
21693       esac
21694   else
21695     shlibpath_overrides_runpath=yes
21696   fi
21697   ;;
21698
21699 os2*)
21700   libname_spec='$name'
21701   shrext_cmds=".dll"
21702   need_lib_prefix=no
21703   library_names_spec='$libname${shared_ext} $libname.a'
21704   dynamic_linker='OS/2 ld.exe'
21705   shlibpath_var=LIBPATH
21706   ;;
21707
21708 osf3* | osf4* | osf5*)
21709   version_type=osf
21710   need_lib_prefix=no
21711   need_version=no
21712   soname_spec='${libname}${release}${shared_ext}$major'
21713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21714   shlibpath_var=LD_LIBRARY_PATH
21715   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21716   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21717   ;;
21718
21719 solaris*)
21720   version_type=linux
21721   need_lib_prefix=no
21722   need_version=no
21723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21724   soname_spec='${libname}${release}${shared_ext}$major'
21725   shlibpath_var=LD_LIBRARY_PATH
21726   shlibpath_overrides_runpath=yes
21727   hardcode_into_libs=yes
21728   # ldd complains unless libraries are executable
21729   postinstall_cmds='chmod +x $lib'
21730   ;;
21731
21732 sunos4*)
21733   version_type=sunos
21734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21735   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21736   shlibpath_var=LD_LIBRARY_PATH
21737   shlibpath_overrides_runpath=yes
21738   if test "$with_gnu_ld" = yes; then
21739     need_lib_prefix=no
21740   fi
21741   need_version=yes
21742   ;;
21743
21744 sysv4 | sysv4.3*)
21745   version_type=linux
21746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21747   soname_spec='${libname}${release}${shared_ext}$major'
21748   shlibpath_var=LD_LIBRARY_PATH
21749   case $host_vendor in
21750     sni)
21751       shlibpath_overrides_runpath=no
21752       need_lib_prefix=no
21753       export_dynamic_flag_spec='${wl}-Blargedynsym'
21754       runpath_var=LD_RUN_PATH
21755       ;;
21756     siemens)
21757       need_lib_prefix=no
21758       ;;
21759     motorola)
21760       need_lib_prefix=no
21761       need_version=no
21762       shlibpath_overrides_runpath=no
21763       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21764       ;;
21765   esac
21766   ;;
21767
21768 sysv4*MP*)
21769   if test -d /usr/nec ;then
21770     version_type=linux
21771     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21772     soname_spec='$libname${shared_ext}.$major'
21773     shlibpath_var=LD_LIBRARY_PATH
21774   fi
21775   ;;
21776
21777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21778   version_type=freebsd-elf
21779   need_lib_prefix=no
21780   need_version=no
21781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21782   soname_spec='${libname}${release}${shared_ext}$major'
21783   shlibpath_var=LD_LIBRARY_PATH
21784   hardcode_into_libs=yes
21785   if test "$with_gnu_ld" = yes; then
21786     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21787     shlibpath_overrides_runpath=no
21788   else
21789     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21790     shlibpath_overrides_runpath=yes
21791     case $host_os in
21792       sco3.2v5*)
21793         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21794         ;;
21795     esac
21796   fi
21797   sys_lib_dlsearch_path_spec='/usr/lib'
21798   ;;
21799
21800 uts4*)
21801   version_type=linux
21802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21803   soname_spec='${libname}${release}${shared_ext}$major'
21804   shlibpath_var=LD_LIBRARY_PATH
21805   ;;
21806
21807 *)
21808   dynamic_linker=no
21809   ;;
21810 esac
21811 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21812 echo "${ECHO_T}$dynamic_linker" >&6
21813 test "$dynamic_linker" = no && can_build_shared=no
21814
21815 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21816 if test "$GCC" = yes; then
21817   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21818 fi
21819
21820 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21821 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21822 hardcode_action_F77=
21823 if test -n "$hardcode_libdir_flag_spec_F77" || \
21824    test -n "$runpath_var_F77" || \
21825    test "X$hardcode_automatic_F77" = "Xyes" ; then
21826
21827   # We can hardcode non-existant directories.
21828   if test "$hardcode_direct_F77" != no &&
21829      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21830      # have to relink, otherwise we might link with an installed library
21831      # when we should be linking with a yet-to-be-installed one
21832      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21833      test "$hardcode_minus_L_F77" != no; then
21834     # Linking always hardcodes the temporary library directory.
21835     hardcode_action_F77=relink
21836   else
21837     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21838     hardcode_action_F77=immediate
21839   fi
21840 else
21841   # We cannot hardcode anything, or else we can only hardcode existing
21842   # directories.
21843   hardcode_action_F77=unsupported
21844 fi
21845 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21846 echo "${ECHO_T}$hardcode_action_F77" >&6
21847
21848 if test "$hardcode_action_F77" = relink; then
21849   # Fast installation is not supported
21850   enable_fast_install=no
21851 elif test "$shlibpath_overrides_runpath" = yes ||
21852      test "$enable_shared" = no; then
21853   # Fast installation is not necessary
21854   enable_fast_install=needless
21855 fi
21856
21857
21858 # The else clause should only fire when bootstrapping the
21859 # libtool distribution, otherwise you forgot to ship ltmain.sh
21860 # with your package, and you will get complaints that there are
21861 # no rules to generate ltmain.sh.
21862 if test -f "$ltmain"; then
21863   # See if we are running on zsh, and set the options which allow our commands through
21864   # without removal of \ escapes.
21865   if test -n "${ZSH_VERSION+set}" ; then
21866     setopt NO_GLOB_SUBST
21867   fi
21868   # Now quote all the things that may contain metacharacters while being
21869   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21870   # variables and quote the copies for generation of the libtool script.
21871   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21872     SED SHELL STRIP \
21873     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21874     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21875     deplibs_check_method reload_flag reload_cmds need_locks \
21876     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21877     lt_cv_sys_global_symbol_to_c_name_address \
21878     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21879     old_postinstall_cmds old_postuninstall_cmds \
21880     compiler_F77 \
21881     CC_F77 \
21882     LD_F77 \
21883     lt_prog_compiler_wl_F77 \
21884     lt_prog_compiler_pic_F77 \
21885     lt_prog_compiler_static_F77 \
21886     lt_prog_compiler_no_builtin_flag_F77 \
21887     export_dynamic_flag_spec_F77 \
21888     thread_safe_flag_spec_F77 \
21889     whole_archive_flag_spec_F77 \
21890     enable_shared_with_static_runtimes_F77 \
21891     old_archive_cmds_F77 \
21892     old_archive_from_new_cmds_F77 \
21893     predep_objects_F77 \
21894     postdep_objects_F77 \
21895     predeps_F77 \
21896     postdeps_F77 \
21897     compiler_lib_search_path_F77 \
21898     archive_cmds_F77 \
21899     archive_expsym_cmds_F77 \
21900     postinstall_cmds_F77 \
21901     postuninstall_cmds_F77 \
21902     old_archive_from_expsyms_cmds_F77 \
21903     allow_undefined_flag_F77 \
21904     no_undefined_flag_F77 \
21905     export_symbols_cmds_F77 \
21906     hardcode_libdir_flag_spec_F77 \
21907     hardcode_libdir_flag_spec_ld_F77 \
21908     hardcode_libdir_separator_F77 \
21909     hardcode_automatic_F77 \
21910     module_cmds_F77 \
21911     module_expsym_cmds_F77 \
21912     lt_cv_prog_compiler_c_o_F77 \
21913     exclude_expsyms_F77 \
21914     include_expsyms_F77; do
21915
21916     case $var in
21917     old_archive_cmds_F77 | \
21918     old_archive_from_new_cmds_F77 | \
21919     archive_cmds_F77 | \
21920     archive_expsym_cmds_F77 | \
21921     module_cmds_F77 | \
21922     module_expsym_cmds_F77 | \
21923     old_archive_from_expsyms_cmds_F77 | \
21924     export_symbols_cmds_F77 | \
21925     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21926     postinstall_cmds | postuninstall_cmds | \
21927     old_postinstall_cmds | old_postuninstall_cmds | \
21928     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21929       # Double-quote double-evaled strings.
21930       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21931       ;;
21932     *)
21933       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21934       ;;
21935     esac
21936   done
21937
21938   case $lt_echo in
21939   *'\$0 --fallback-echo"')
21940     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21941     ;;
21942   esac
21943
21944 cfgfile="$ofile"
21945
21946   cat <<__EOF__ >> "$cfgfile"
21947 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21948
21949 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21950
21951 # Shell to use when invoking shell scripts.
21952 SHELL=$lt_SHELL
21953
21954 # Whether or not to build shared libraries.
21955 build_libtool_libs=$enable_shared
21956
21957 # Whether or not to build static libraries.
21958 build_old_libs=$enable_static
21959
21960 # Whether or not to add -lc for building shared libraries.
21961 build_libtool_need_lc=$archive_cmds_need_lc_F77
21962
21963 # Whether or not to disallow shared libs when runtime libs are static
21964 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21965
21966 # Whether or not to optimize for fast installation.
21967 fast_install=$enable_fast_install
21968
21969 # The host system.
21970 host_alias=$host_alias
21971 host=$host
21972 host_os=$host_os
21973
21974 # The build system.
21975 build_alias=$build_alias
21976 build=$build
21977 build_os=$build_os
21978
21979 # An echo program that does not interpret backslashes.
21980 echo=$lt_echo
21981
21982 # The archiver.
21983 AR=$lt_AR
21984 AR_FLAGS=$lt_AR_FLAGS
21985
21986 # A C compiler.
21987 LTCC=$lt_LTCC
21988
21989 # LTCC compiler flags.
21990 LTCFLAGS=$lt_LTCFLAGS
21991
21992 # A language-specific compiler.
21993 CC=$lt_compiler_F77
21994
21995 # Is the compiler the GNU C compiler?
21996 with_gcc=$GCC_F77
21997
21998 # An ERE matcher.
21999 EGREP=$lt_EGREP
22000
22001 # The linker used to build libraries.
22002 LD=$lt_LD_F77
22003
22004 # Whether we need hard or soft links.
22005 LN_S=$lt_LN_S
22006
22007 # A BSD-compatible nm program.
22008 NM=$lt_NM
22009
22010 # A symbol stripping program
22011 STRIP=$lt_STRIP
22012
22013 # Used to examine libraries when file_magic_cmd begins "file"
22014 MAGIC_CMD=$MAGIC_CMD
22015
22016 # Used on cygwin: DLL creation program.
22017 DLLTOOL="$DLLTOOL"
22018
22019 # Used on cygwin: object dumper.
22020 OBJDUMP="$OBJDUMP"
22021
22022 # Used on cygwin: assembler.
22023 AS="$AS"
22024
22025 # The name of the directory that contains temporary libtool files.
22026 objdir=$objdir
22027
22028 # How to create reloadable object files.
22029 reload_flag=$lt_reload_flag
22030 reload_cmds=$lt_reload_cmds
22031
22032 # How to pass a linker flag through the compiler.
22033 wl=$lt_lt_prog_compiler_wl_F77
22034
22035 # Object file suffix (normally "o").
22036 objext="$ac_objext"
22037
22038 # Old archive suffix (normally "a").
22039 libext="$libext"
22040
22041 # Shared library suffix (normally ".so").
22042 shrext_cmds='$shrext_cmds'
22043
22044 # Executable file suffix (normally "").
22045 exeext="$exeext"
22046
22047 # Additional compiler flags for building library objects.
22048 pic_flag=$lt_lt_prog_compiler_pic_F77
22049 pic_mode=$pic_mode
22050
22051 # What is the maximum length of a command?
22052 max_cmd_len=$lt_cv_sys_max_cmd_len
22053
22054 # Does compiler simultaneously support -c and -o options?
22055 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22056
22057 # Must we lock files when doing compilation?
22058 need_locks=$lt_need_locks
22059
22060 # Do we need the lib prefix for modules?
22061 need_lib_prefix=$need_lib_prefix
22062
22063 # Do we need a version for libraries?
22064 need_version=$need_version
22065
22066 # Whether dlopen is supported.
22067 dlopen_support=$enable_dlopen
22068
22069 # Whether dlopen of programs is supported.
22070 dlopen_self=$enable_dlopen_self
22071
22072 # Whether dlopen of statically linked programs is supported.
22073 dlopen_self_static=$enable_dlopen_self_static
22074
22075 # Compiler flag to prevent dynamic linking.
22076 link_static_flag=$lt_lt_prog_compiler_static_F77
22077
22078 # Compiler flag to turn off builtin functions.
22079 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22080
22081 # Compiler flag to allow reflexive dlopens.
22082 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22083
22084 # Compiler flag to generate shared objects directly from archives.
22085 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22086
22087 # Compiler flag to generate thread-safe objects.
22088 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22089
22090 # Library versioning type.
22091 version_type=$version_type
22092
22093 # Format of library name prefix.
22094 libname_spec=$lt_libname_spec
22095
22096 # List of archive names.  First name is the real one, the rest are links.
22097 # The last name is the one that the linker finds with -lNAME.
22098 library_names_spec=$lt_library_names_spec
22099
22100 # The coded name of the library, if different from the real name.
22101 soname_spec=$lt_soname_spec
22102
22103 # Commands used to build and install an old-style archive.
22104 RANLIB=$lt_RANLIB
22105 old_archive_cmds=$lt_old_archive_cmds_F77
22106 old_postinstall_cmds=$lt_old_postinstall_cmds
22107 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22108
22109 # Create an old-style archive from a shared archive.
22110 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22111
22112 # Create a temporary old-style archive to link instead of a shared archive.
22113 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22114
22115 # Commands used to build and install a shared archive.
22116 archive_cmds=$lt_archive_cmds_F77
22117 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22118 postinstall_cmds=$lt_postinstall_cmds
22119 postuninstall_cmds=$lt_postuninstall_cmds
22120
22121 # Commands used to build a loadable module (assumed same as above if empty)
22122 module_cmds=$lt_module_cmds_F77
22123 module_expsym_cmds=$lt_module_expsym_cmds_F77
22124
22125 # Commands to strip libraries.
22126 old_striplib=$lt_old_striplib
22127 striplib=$lt_striplib
22128
22129 # Dependencies to place before the objects being linked to create a
22130 # shared library.
22131 predep_objects=$lt_predep_objects_F77
22132
22133 # Dependencies to place after the objects being linked to create a
22134 # shared library.
22135 postdep_objects=$lt_postdep_objects_F77
22136
22137 # Dependencies to place before the objects being linked to create a
22138 # shared library.
22139 predeps=$lt_predeps_F77
22140
22141 # Dependencies to place after the objects being linked to create a
22142 # shared library.
22143 postdeps=$lt_postdeps_F77
22144
22145 # The library search path used internally by the compiler when linking
22146 # a shared library.
22147 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22148
22149 # Method to check whether dependent libraries are shared objects.
22150 deplibs_check_method=$lt_deplibs_check_method
22151
22152 # Command to use when deplibs_check_method == file_magic.
22153 file_magic_cmd=$lt_file_magic_cmd
22154
22155 # Flag that allows shared libraries with undefined symbols to be built.
22156 allow_undefined_flag=$lt_allow_undefined_flag_F77
22157
22158 # Flag that forces no undefined symbols.
22159 no_undefined_flag=$lt_no_undefined_flag_F77
22160
22161 # Commands used to finish a libtool library installation in a directory.
22162 finish_cmds=$lt_finish_cmds
22163
22164 # Same as above, but a single script fragment to be evaled but not shown.
22165 finish_eval=$lt_finish_eval
22166
22167 # Take the output of nm and produce a listing of raw symbols and C names.
22168 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22169
22170 # Transform the output of nm in a proper C declaration
22171 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22172
22173 # Transform the output of nm in a C name address pair
22174 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22175
22176 # This is the shared library runtime path variable.
22177 runpath_var=$runpath_var
22178
22179 # This is the shared library path variable.
22180 shlibpath_var=$shlibpath_var
22181
22182 # Is shlibpath searched before the hard-coded library search path?
22183 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22184
22185 # How to hardcode a shared library path into an executable.
22186 hardcode_action=$hardcode_action_F77
22187
22188 # Whether we should hardcode library paths into libraries.
22189 hardcode_into_libs=$hardcode_into_libs
22190
22191 # Flag to hardcode \$libdir into a binary during linking.
22192 # This must work even if \$libdir does not exist.
22193 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22194
22195 # If ld is used when linking, flag to hardcode \$libdir into
22196 # a binary during linking. This must work even if \$libdir does
22197 # not exist.
22198 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22199
22200 # Whether we need a single -rpath flag with a separated argument.
22201 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22202
22203 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22204 # resulting binary.
22205 hardcode_direct=$hardcode_direct_F77
22206
22207 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22208 # resulting binary.
22209 hardcode_minus_L=$hardcode_minus_L_F77
22210
22211 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22212 # the resulting binary.
22213 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22214
22215 # Set to yes if building a shared library automatically hardcodes DIR into the library
22216 # and all subsequent libraries and executables linked against it.
22217 hardcode_automatic=$hardcode_automatic_F77
22218
22219 # Variables whose values should be saved in libtool wrapper scripts and
22220 # restored at relink time.
22221 variables_saved_for_relink="$variables_saved_for_relink"
22222
22223 # Whether libtool must link a program against all its dependency libraries.
22224 link_all_deplibs=$link_all_deplibs_F77
22225
22226 # Compile-time system search path for libraries
22227 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22228
22229 # Run-time system search path for libraries
22230 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22231
22232 # Fix the shell variable \$srcfile for the compiler.
22233 fix_srcfile_path="$fix_srcfile_path_F77"
22234
22235 # Set to yes if exported symbols are required.
22236 always_export_symbols=$always_export_symbols_F77
22237
22238 # The commands to list exported symbols.
22239 export_symbols_cmds=$lt_export_symbols_cmds_F77
22240
22241 # The commands to extract the exported symbol list from a shared archive.
22242 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22243
22244 # Symbols that should not be listed in the preloaded symbols.
22245 exclude_expsyms=$lt_exclude_expsyms_F77
22246
22247 # Symbols that must always be exported.
22248 include_expsyms=$lt_include_expsyms_F77
22249
22250 # ### END LIBTOOL TAG CONFIG: $tagname
22251
22252 __EOF__
22253
22254
22255 else
22256   # If there is no Makefile yet, we rely on a make rule to execute
22257   # `config.status --recheck' to rerun these tests and create the
22258   # libtool script then.
22259   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22260   if test -f "$ltmain_in"; then
22261     test -f Makefile && make "$ltmain"
22262   fi
22263 fi
22264
22265
22266 ac_ext=c
22267 ac_cpp='$CPP $CPPFLAGS'
22268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22271
22272 CC="$lt_save_CC"
22273
22274         else
22275           tagname=""
22276         fi
22277         ;;
22278
22279       GCJ)
22280         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22281
22282
22283
22284 # Source file extension for Java test sources.
22285 ac_ext=java
22286
22287 # Object file extension for compiled Java test sources.
22288 objext=o
22289 objext_GCJ=$objext
22290
22291 # Code to be used in simple compile tests
22292 lt_simple_compile_test_code="class foo {}\n"
22293
22294 # Code to be used in simple link tests
22295 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22296
22297 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22298
22299 # If no C compiler was specified, use CC.
22300 LTCC=${LTCC-"$CC"}
22301
22302 # If no C compiler flags were specified, use CFLAGS.
22303 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22304
22305 # Allow CC to be a program name with arguments.
22306 compiler=$CC
22307
22308
22309 # save warnings/boilerplate of simple test code
22310 ac_outfile=conftest.$ac_objext
22311 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22312 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22313 _lt_compiler_boilerplate=`cat conftest.err`
22314 $rm conftest*
22315
22316 ac_outfile=conftest.$ac_objext
22317 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22318 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22319 _lt_linker_boilerplate=`cat conftest.err`
22320 $rm conftest*
22321
22322
22323 # Allow CC to be a program name with arguments.
22324 lt_save_CC="$CC"
22325 CC=${GCJ-"gcj"}
22326 compiler=$CC
22327 compiler_GCJ=$CC
22328 for cc_temp in $compiler""; do
22329   case $cc_temp in
22330     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22331     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22332     \-*) ;;
22333     *) break;;
22334   esac
22335 done
22336 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22337
22338
22339 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22340 archive_cmds_need_lc_GCJ=no
22341
22342 old_archive_cmds_GCJ=$old_archive_cmds
22343
22344
22345 lt_prog_compiler_no_builtin_flag_GCJ=
22346
22347 if test "$GCC" = yes; then
22348   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22349
22350
22351 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22352 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
22353 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22354   echo $ECHO_N "(cached) $ECHO_C" >&6
22355 else
22356   lt_cv_prog_compiler_rtti_exceptions=no
22357   ac_outfile=conftest.$ac_objext
22358    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22359    lt_compiler_flag="-fno-rtti -fno-exceptions"
22360    # Insert the option either (1) after the last *FLAGS variable, or
22361    # (2) before a word containing "conftest.", or (3) at the end.
22362    # Note that $ac_compile itself does not contain backslashes and begins
22363    # with a dollar sign (not a hyphen), so the echo should work correctly.
22364    # The option is referenced via a variable to avoid confusing sed.
22365    lt_compile=`echo "$ac_compile" | $SED \
22366    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22368    -e 's:$: $lt_compiler_flag:'`
22369    (eval echo "\"\$as_me:22369: $lt_compile\"" >&5)
22370    (eval "$lt_compile" 2>conftest.err)
22371    ac_status=$?
22372    cat conftest.err >&5
22373    echo "$as_me:22373: \$? = $ac_status" >&5
22374    if (exit $ac_status) && test -s "$ac_outfile"; then
22375      # The compiler can only warn and ignore the option if not recognized
22376      # So say no if there are warnings other than the usual output.
22377      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22378      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22379      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22380        lt_cv_prog_compiler_rtti_exceptions=yes
22381      fi
22382    fi
22383    $rm conftest*
22384
22385 fi
22386 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22387 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
22388
22389 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22390     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22391 else
22392     :
22393 fi
22394
22395 fi
22396
22397 lt_prog_compiler_wl_GCJ=
22398 lt_prog_compiler_pic_GCJ=
22399 lt_prog_compiler_static_GCJ=
22400
22401 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22402 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22403
22404   if test "$GCC" = yes; then
22405     lt_prog_compiler_wl_GCJ='-Wl,'
22406     lt_prog_compiler_static_GCJ='-static'
22407
22408     case $host_os in
22409       aix*)
22410       # All AIX code is PIC.
22411       if test "$host_cpu" = ia64; then
22412         # AIX 5 now supports IA64 processor
22413         lt_prog_compiler_static_GCJ='-Bstatic'
22414       fi
22415       ;;
22416
22417     amigaos*)
22418       # FIXME: we need at least 68020 code to build shared libraries, but
22419       # adding the `-m68020' flag to GCC prevents building anything better,
22420       # like `-m68040'.
22421       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22422       ;;
22423
22424     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22425       # PIC is the default for these OSes.
22426       ;;
22427
22428     mingw* | pw32* | os2*)
22429       # This hack is so that the source file can tell whether it is being
22430       # built for inclusion in a dll (and should export symbols for example).
22431       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22432       ;;
22433
22434     darwin* | rhapsody*)
22435       # PIC is the default on this platform
22436       # Common symbols not allowed in MH_DYLIB files
22437       lt_prog_compiler_pic_GCJ='-fno-common'
22438       ;;
22439
22440     interix3*)
22441       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22442       # Instead, we relocate shared libraries at runtime.
22443       ;;
22444
22445     msdosdjgpp*)
22446       # Just because we use GCC doesn't mean we suddenly get shared libraries
22447       # on systems that don't support them.
22448       lt_prog_compiler_can_build_shared_GCJ=no
22449       enable_shared=no
22450       ;;
22451
22452     sysv4*MP*)
22453       if test -d /usr/nec; then
22454         lt_prog_compiler_pic_GCJ=-Kconform_pic
22455       fi
22456       ;;
22457
22458     hpux*)
22459       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22460       # not for PA HP-UX.
22461       case $host_cpu in
22462       hppa*64*|ia64*)
22463         # +Z the default
22464         ;;
22465       *)
22466         lt_prog_compiler_pic_GCJ='-fPIC'
22467         ;;
22468       esac
22469       ;;
22470
22471     *)
22472       lt_prog_compiler_pic_GCJ='-fPIC'
22473       ;;
22474     esac
22475   else
22476     # PORTME Check for flag to pass linker flags through the system compiler.
22477     case $host_os in
22478     aix*)
22479       lt_prog_compiler_wl_GCJ='-Wl,'
22480       if test "$host_cpu" = ia64; then
22481         # AIX 5 now supports IA64 processor
22482         lt_prog_compiler_static_GCJ='-Bstatic'
22483       else
22484         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22485       fi
22486       ;;
22487       darwin*)
22488         # PIC is the default on this platform
22489         # Common symbols not allowed in MH_DYLIB files
22490        case $cc_basename in
22491          xlc*)
22492          lt_prog_compiler_pic_GCJ='-qnocommon'
22493          lt_prog_compiler_wl_GCJ='-Wl,'
22494          ;;
22495        esac
22496        ;;
22497
22498     mingw* | pw32* | os2*)
22499       # This hack is so that the source file can tell whether it is being
22500       # built for inclusion in a dll (and should export symbols for example).
22501       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22502       ;;
22503
22504     hpux9* | hpux10* | hpux11*)
22505       lt_prog_compiler_wl_GCJ='-Wl,'
22506       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22507       # not for PA HP-UX.
22508       case $host_cpu in
22509       hppa*64*|ia64*)
22510         # +Z the default
22511         ;;
22512       *)
22513         lt_prog_compiler_pic_GCJ='+Z'
22514         ;;
22515       esac
22516       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22517       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22518       ;;
22519
22520     irix5* | irix6* | nonstopux*)
22521       lt_prog_compiler_wl_GCJ='-Wl,'
22522       # PIC (with -KPIC) is the default.
22523       lt_prog_compiler_static_GCJ='-non_shared'
22524       ;;
22525
22526     newsos6)
22527       lt_prog_compiler_pic_GCJ='-KPIC'
22528       lt_prog_compiler_static_GCJ='-Bstatic'
22529       ;;
22530
22531     linux*)
22532       case $cc_basename in
22533       icc* | ecc*)
22534         lt_prog_compiler_wl_GCJ='-Wl,'
22535         lt_prog_compiler_pic_GCJ='-KPIC'
22536         lt_prog_compiler_static_GCJ='-static'
22537         ;;
22538       pgcc* | pgf77* | pgf90* | pgf95*)
22539         # Portland Group compilers (*not* the Pentium gcc compiler,
22540         # which looks to be a dead project)
22541         lt_prog_compiler_wl_GCJ='-Wl,'
22542         lt_prog_compiler_pic_GCJ='-fpic'
22543         lt_prog_compiler_static_GCJ='-Bstatic'
22544         ;;
22545       ccc*)
22546         lt_prog_compiler_wl_GCJ='-Wl,'
22547         # All Alpha code is PIC.
22548         lt_prog_compiler_static_GCJ='-non_shared'
22549         ;;
22550       esac
22551       ;;
22552
22553     osf3* | osf4* | osf5*)
22554       lt_prog_compiler_wl_GCJ='-Wl,'
22555       # All OSF/1 code is PIC.
22556       lt_prog_compiler_static_GCJ='-non_shared'
22557       ;;
22558
22559     solaris*)
22560       lt_prog_compiler_pic_GCJ='-KPIC'
22561       lt_prog_compiler_static_GCJ='-Bstatic'
22562       case $cc_basename in
22563       f77* | f90* | f95*)
22564         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22565       *)
22566         lt_prog_compiler_wl_GCJ='-Wl,';;
22567       esac
22568       ;;
22569
22570     sunos4*)
22571       lt_prog_compiler_wl_GCJ='-Qoption ld '
22572       lt_prog_compiler_pic_GCJ='-PIC'
22573       lt_prog_compiler_static_GCJ='-Bstatic'
22574       ;;
22575
22576     sysv4 | sysv4.2uw2* | sysv4.3*)
22577       lt_prog_compiler_wl_GCJ='-Wl,'
22578       lt_prog_compiler_pic_GCJ='-KPIC'
22579       lt_prog_compiler_static_GCJ='-Bstatic'
22580       ;;
22581
22582     sysv4*MP*)
22583       if test -d /usr/nec ;then
22584         lt_prog_compiler_pic_GCJ='-Kconform_pic'
22585         lt_prog_compiler_static_GCJ='-Bstatic'
22586       fi
22587       ;;
22588
22589     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22590       lt_prog_compiler_wl_GCJ='-Wl,'
22591       lt_prog_compiler_pic_GCJ='-KPIC'
22592       lt_prog_compiler_static_GCJ='-Bstatic'
22593       ;;
22594
22595     unicos*)
22596       lt_prog_compiler_wl_GCJ='-Wl,'
22597       lt_prog_compiler_can_build_shared_GCJ=no
22598       ;;
22599
22600     uts4*)
22601       lt_prog_compiler_pic_GCJ='-pic'
22602       lt_prog_compiler_static_GCJ='-Bstatic'
22603       ;;
22604
22605     *)
22606       lt_prog_compiler_can_build_shared_GCJ=no
22607       ;;
22608     esac
22609   fi
22610
22611 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22612 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22613
22614 #
22615 # Check to make sure the PIC flag actually works.
22616 #
22617 if test -n "$lt_prog_compiler_pic_GCJ"; then
22618
22619 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22620 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22621 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22622   echo $ECHO_N "(cached) $ECHO_C" >&6
22623 else
22624   lt_prog_compiler_pic_works_GCJ=no
22625   ac_outfile=conftest.$ac_objext
22626    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22627    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22628    # Insert the option either (1) after the last *FLAGS variable, or
22629    # (2) before a word containing "conftest.", or (3) at the end.
22630    # Note that $ac_compile itself does not contain backslashes and begins
22631    # with a dollar sign (not a hyphen), so the echo should work correctly.
22632    # The option is referenced via a variable to avoid confusing sed.
22633    lt_compile=`echo "$ac_compile" | $SED \
22634    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22635    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22636    -e 's:$: $lt_compiler_flag:'`
22637    (eval echo "\"\$as_me:22637: $lt_compile\"" >&5)
22638    (eval "$lt_compile" 2>conftest.err)
22639    ac_status=$?
22640    cat conftest.err >&5
22641    echo "$as_me:22641: \$? = $ac_status" >&5
22642    if (exit $ac_status) && test -s "$ac_outfile"; then
22643      # The compiler can only warn and ignore the option if not recognized
22644      # So say no if there are warnings other than the usual output.
22645      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22646      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22647      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22648        lt_prog_compiler_pic_works_GCJ=yes
22649      fi
22650    fi
22651    $rm conftest*
22652
22653 fi
22654 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22655 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22656
22657 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22658     case $lt_prog_compiler_pic_GCJ in
22659      "" | " "*) ;;
22660      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22661      esac
22662 else
22663     lt_prog_compiler_pic_GCJ=
22664      lt_prog_compiler_can_build_shared_GCJ=no
22665 fi
22666
22667 fi
22668 case $host_os in
22669   # For platforms which do not support PIC, -DPIC is meaningless:
22670   *djgpp*)
22671     lt_prog_compiler_pic_GCJ=
22672     ;;
22673   *)
22674     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22675     ;;
22676 esac
22677
22678 #
22679 # Check to make sure the static flag actually works.
22680 #
22681 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22682 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22683 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
22684 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22685   echo $ECHO_N "(cached) $ECHO_C" >&6
22686 else
22687   lt_prog_compiler_static_works_GCJ=no
22688    save_LDFLAGS="$LDFLAGS"
22689    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22690    printf "$lt_simple_link_test_code" > conftest.$ac_ext
22691    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22692      # The linker can only warn and ignore the option if not recognized
22693      # So say no if there are warnings
22694      if test -s conftest.err; then
22695        # Append any errors to the config.log.
22696        cat conftest.err 1>&5
22697        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22698        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22699        if diff conftest.exp conftest.er2 >/dev/null; then
22700          lt_prog_compiler_static_works_GCJ=yes
22701        fi
22702      else
22703        lt_prog_compiler_static_works_GCJ=yes
22704      fi
22705    fi
22706    $rm conftest*
22707    LDFLAGS="$save_LDFLAGS"
22708
22709 fi
22710 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22711 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
22712
22713 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22714     :
22715 else
22716     lt_prog_compiler_static_GCJ=
22717 fi
22718
22719
22720 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22721 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22722 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22723   echo $ECHO_N "(cached) $ECHO_C" >&6
22724 else
22725   lt_cv_prog_compiler_c_o_GCJ=no
22726    $rm -r conftest 2>/dev/null
22727    mkdir conftest
22728    cd conftest
22729    mkdir out
22730    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22731
22732    lt_compiler_flag="-o out/conftest2.$ac_objext"
22733    # Insert the option either (1) after the last *FLAGS variable, or
22734    # (2) before a word containing "conftest.", or (3) at the end.
22735    # Note that $ac_compile itself does not contain backslashes and begins
22736    # with a dollar sign (not a hyphen), so the echo should work correctly.
22737    lt_compile=`echo "$ac_compile" | $SED \
22738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22740    -e 's:$: $lt_compiler_flag:'`
22741    (eval echo "\"\$as_me:22741: $lt_compile\"" >&5)
22742    (eval "$lt_compile" 2>out/conftest.err)
22743    ac_status=$?
22744    cat out/conftest.err >&5
22745    echo "$as_me:22745: \$? = $ac_status" >&5
22746    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22747    then
22748      # The compiler can only warn and ignore the option if not recognized
22749      # So say no if there are warnings
22750      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22751      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22752      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22753        lt_cv_prog_compiler_c_o_GCJ=yes
22754      fi
22755    fi
22756    chmod u+w . 2>&5
22757    $rm conftest*
22758    # SGI C++ compiler will create directory out/ii_files/ for
22759    # template instantiation
22760    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22761    $rm out/* && rmdir out
22762    cd ..
22763    rmdir conftest
22764    $rm conftest*
22765
22766 fi
22767 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22768 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22769
22770
22771 hard_links="nottested"
22772 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22773   # do not overwrite the value of need_locks provided by the user
22774   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22775 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22776   hard_links=yes
22777   $rm conftest*
22778   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22779   touch conftest.a
22780   ln conftest.a conftest.b 2>&5 || hard_links=no
22781   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22782   echo "$as_me:$LINENO: result: $hard_links" >&5
22783 echo "${ECHO_T}$hard_links" >&6
22784   if test "$hard_links" = no; then
22785     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22786 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22787     need_locks=warn
22788   fi
22789 else
22790   need_locks=no
22791 fi
22792
22793 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22794 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22795
22796   runpath_var=
22797   allow_undefined_flag_GCJ=
22798   enable_shared_with_static_runtimes_GCJ=no
22799   archive_cmds_GCJ=
22800   archive_expsym_cmds_GCJ=
22801   old_archive_From_new_cmds_GCJ=
22802   old_archive_from_expsyms_cmds_GCJ=
22803   export_dynamic_flag_spec_GCJ=
22804   whole_archive_flag_spec_GCJ=
22805   thread_safe_flag_spec_GCJ=
22806   hardcode_libdir_flag_spec_GCJ=
22807   hardcode_libdir_flag_spec_ld_GCJ=
22808   hardcode_libdir_separator_GCJ=
22809   hardcode_direct_GCJ=no
22810   hardcode_minus_L_GCJ=no
22811   hardcode_shlibpath_var_GCJ=unsupported
22812   link_all_deplibs_GCJ=unknown
22813   hardcode_automatic_GCJ=no
22814   module_cmds_GCJ=
22815   module_expsym_cmds_GCJ=
22816   always_export_symbols_GCJ=no
22817   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22818   # include_expsyms should be a list of space-separated symbols to be *always*
22819   # included in the symbol list
22820   include_expsyms_GCJ=
22821   # exclude_expsyms can be an extended regexp of symbols to exclude
22822   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22823   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22824   # as well as any symbol that contains `d'.
22825   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22826   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22827   # platforms (ab)use it in PIC code, but their linkers get confused if
22828   # the symbol is explicitly referenced.  Since portable code cannot
22829   # rely on this symbol name, it's probably fine to never include it in
22830   # preloaded symbol tables.
22831   extract_expsyms_cmds=
22832   # Just being paranoid about ensuring that cc_basename is set.
22833   for cc_temp in $compiler""; do
22834   case $cc_temp in
22835     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22836     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22837     \-*) ;;
22838     *) break;;
22839   esac
22840 done
22841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22842
22843   case $host_os in
22844   cygwin* | mingw* | pw32*)
22845     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22846     # When not using gcc, we currently assume that we are using
22847     # Microsoft Visual C++.
22848     if test "$GCC" != yes; then
22849       with_gnu_ld=no
22850     fi
22851     ;;
22852   interix*)
22853     # we just hope/assume this is gcc and not c89 (= MSVC++)
22854     with_gnu_ld=yes
22855     ;;
22856   openbsd*)
22857     with_gnu_ld=no
22858     ;;
22859   esac
22860
22861   ld_shlibs_GCJ=yes
22862   if test "$with_gnu_ld" = yes; then
22863     # If archive_cmds runs LD, not CC, wlarc should be empty
22864     wlarc='${wl}'
22865
22866     # Set some defaults for GNU ld with shared library support. These
22867     # are reset later if shared libraries are not supported. Putting them
22868     # here allows them to be overridden if necessary.
22869     runpath_var=LD_RUN_PATH
22870     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22871     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22872     # ancient GNU ld didn't support --whole-archive et. al.
22873     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22874         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22875       else
22876         whole_archive_flag_spec_GCJ=
22877     fi
22878     supports_anon_versioning=no
22879     case `$LD -v 2>/dev/null` in
22880       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22881       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22882       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22883       *\ 2.11.*) ;; # other 2.11 versions
22884       *) supports_anon_versioning=yes ;;
22885     esac
22886
22887     # See if GNU ld supports shared libraries.
22888     case $host_os in
22889     aix3* | aix4* | aix5*)
22890       # On AIX/PPC, the GNU linker is very broken
22891       if test "$host_cpu" != ia64; then
22892         ld_shlibs_GCJ=no
22893         cat <<EOF 1>&2
22894
22895 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22896 *** to be unable to reliably create shared libraries on AIX.
22897 *** Therefore, libtool is disabling shared libraries support.  If you
22898 *** really care for shared libraries, you may want to modify your PATH
22899 *** so that a non-GNU linker is found, and then restart.
22900
22901 EOF
22902       fi
22903       ;;
22904
22905     amigaos*)
22906       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)'
22907       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22908       hardcode_minus_L_GCJ=yes
22909
22910       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22911       # that the semantics of dynamic libraries on AmigaOS, at least up
22912       # to version 4, is to share data among multiple programs linked
22913       # with the same dynamic library.  Since this doesn't match the
22914       # behavior of shared libraries on other platforms, we can't use
22915       # them.
22916       ld_shlibs_GCJ=no
22917       ;;
22918
22919     beos*)
22920       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22921         allow_undefined_flag_GCJ=unsupported
22922         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22923         # support --undefined.  This deserves some investigation.  FIXME
22924         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22925       else
22926         ld_shlibs_GCJ=no
22927       fi
22928       ;;
22929
22930     cygwin* | mingw* | pw32*)
22931       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22932       # as there is no search path for DLLs.
22933       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22934       allow_undefined_flag_GCJ=unsupported
22935       always_export_symbols_GCJ=no
22936       enable_shared_with_static_runtimes_GCJ=yes
22937       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22938
22939       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22940         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22941         # If the export-symbols file already is a .def file (1st line
22942         # is EXPORTS), use it as is; otherwise, prepend...
22943         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22944           cp $export_symbols $output_objdir/$soname.def;
22945         else
22946           echo EXPORTS > $output_objdir/$soname.def;
22947           cat $export_symbols >> $output_objdir/$soname.def;
22948         fi~
22949         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22950       else
22951         ld_shlibs_GCJ=no
22952       fi
22953       ;;
22954
22955     interix3*)
22956       hardcode_direct_GCJ=no
22957       hardcode_shlibpath_var_GCJ=no
22958       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22959       export_dynamic_flag_spec_GCJ='${wl}-E'
22960       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22961       # Instead, shared libraries are loaded at an image base (0x10000000 by
22962       # default) and relocated if they conflict, which is a slow very memory
22963       # consuming and fragmenting process.  To avoid this, we pick a random,
22964       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22965       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22966       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'
22967       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'
22968       ;;
22969
22970     linux*)
22971       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22972         tmp_addflag=
22973         case $cc_basename,$host_cpu in
22974         pgcc*)                          # Portland Group C compiler
22975           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'
22976           tmp_addflag=' $pic_flag'
22977           ;;
22978         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22979           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'
22980           tmp_addflag=' $pic_flag -Mnomain' ;;
22981         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22982           tmp_addflag=' -i_dynamic' ;;
22983         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22984           tmp_addflag=' -i_dynamic -nofor_main' ;;
22985         ifc* | ifort*)                  # Intel Fortran compiler
22986           tmp_addflag=' -nofor_main' ;;
22987         esac
22988         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22989
22990         if test $supports_anon_versioning = yes; then
22991           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22992   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22993   $echo "local: *; };" >> $output_objdir/$libname.ver~
22994           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22995         fi
22996       else
22997         ld_shlibs_GCJ=no
22998       fi
22999       ;;
23000
23001     netbsd*)
23002       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23003         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23004         wlarc=
23005       else
23006         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23007         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23008       fi
23009       ;;
23010
23011     solaris*)
23012       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23013         ld_shlibs_GCJ=no
23014         cat <<EOF 1>&2
23015
23016 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23017 *** create shared libraries on Solaris systems.  Therefore, libtool
23018 *** is disabling shared libraries support.  We urge you to upgrade GNU
23019 *** binutils to release 2.9.1 or newer.  Another option is to modify
23020 *** your PATH or compiler configuration so that the native linker is
23021 *** used, and then restart.
23022
23023 EOF
23024       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23025         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23026         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23027       else
23028         ld_shlibs_GCJ=no
23029       fi
23030       ;;
23031
23032     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23033       case `$LD -v 2>&1` in
23034         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23035         ld_shlibs_GCJ=no
23036         cat <<_LT_EOF 1>&2
23037
23038 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23039 *** reliably create shared libraries on SCO systems.  Therefore, libtool
23040 *** is disabling shared libraries support.  We urge you to upgrade GNU
23041 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23042 *** your PATH or compiler configuration so that the native linker is
23043 *** used, and then restart.
23044
23045 _LT_EOF
23046         ;;
23047         *)
23048           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23049             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23050             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23051             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23052           else
23053             ld_shlibs_GCJ=no
23054           fi
23055         ;;
23056       esac
23057       ;;
23058
23059     sunos4*)
23060       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23061       wlarc=
23062       hardcode_direct_GCJ=yes
23063       hardcode_shlibpath_var_GCJ=no
23064       ;;
23065
23066     *)
23067       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23068         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23069         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23070       else
23071         ld_shlibs_GCJ=no
23072       fi
23073       ;;
23074     esac
23075
23076     if test "$ld_shlibs_GCJ" = no; then
23077       runpath_var=
23078       hardcode_libdir_flag_spec_GCJ=
23079       export_dynamic_flag_spec_GCJ=
23080       whole_archive_flag_spec_GCJ=
23081     fi
23082   else
23083     # PORTME fill in a description of your system's linker (not GNU ld)
23084     case $host_os in
23085     aix3*)
23086       allow_undefined_flag_GCJ=unsupported
23087       always_export_symbols_GCJ=yes
23088       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'
23089       # Note: this linker hardcodes the directories in LIBPATH if there
23090       # are no directories specified by -L.
23091       hardcode_minus_L_GCJ=yes
23092       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23093         # Neither direct hardcoding nor static linking is supported with a
23094         # broken collect2.
23095         hardcode_direct_GCJ=unsupported
23096       fi
23097       ;;
23098
23099     aix4* | aix5*)
23100       if test "$host_cpu" = ia64; then
23101         # On IA64, the linker does run time linking by default, so we don't
23102         # have to do anything special.
23103         aix_use_runtimelinking=no
23104         exp_sym_flag='-Bexport'
23105         no_entry_flag=""
23106       else
23107         # If we're using GNU nm, then we don't want the "-C" option.
23108         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23109         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23110           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'
23111         else
23112           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'
23113         fi
23114         aix_use_runtimelinking=no
23115
23116         # Test if we are trying to use run time linking or normal
23117         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23118         # need to do runtime linking.
23119         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23120           for ld_flag in $LDFLAGS; do
23121           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23122             aix_use_runtimelinking=yes
23123             break
23124           fi
23125           done
23126           ;;
23127         esac
23128
23129         exp_sym_flag='-bexport'
23130         no_entry_flag='-bnoentry'
23131       fi
23132
23133       # When large executables or shared objects are built, AIX ld can
23134       # have problems creating the table of contents.  If linking a library
23135       # or program results in "error TOC overflow" add -mminimal-toc to
23136       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23137       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23138
23139       archive_cmds_GCJ=''
23140       hardcode_direct_GCJ=yes
23141       hardcode_libdir_separator_GCJ=':'
23142       link_all_deplibs_GCJ=yes
23143
23144       if test "$GCC" = yes; then
23145         case $host_os in aix4.[012]|aix4.[012].*)
23146         # We only want to do this on AIX 4.2 and lower, the check
23147         # below for broken collect2 doesn't work under 4.3+
23148           collect2name=`${CC} -print-prog-name=collect2`
23149           if test -f "$collect2name" && \
23150            strings "$collect2name" | grep resolve_lib_name >/dev/null
23151           then
23152           # We have reworked collect2
23153           hardcode_direct_GCJ=yes
23154           else
23155           # We have old collect2
23156           hardcode_direct_GCJ=unsupported
23157           # It fails to find uninstalled libraries when the uninstalled
23158           # path is not listed in the libpath.  Setting hardcode_minus_L
23159           # to unsupported forces relinking
23160           hardcode_minus_L_GCJ=yes
23161           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23162           hardcode_libdir_separator_GCJ=
23163           fi
23164           ;;
23165         esac
23166         shared_flag='-shared'
23167         if test "$aix_use_runtimelinking" = yes; then
23168           shared_flag="$shared_flag "'${wl}-G'
23169         fi
23170       else
23171         # not using gcc
23172         if test "$host_cpu" = ia64; then
23173         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23174         # chokes on -Wl,-G. The following line is correct:
23175           shared_flag='-G'
23176         else
23177           if test "$aix_use_runtimelinking" = yes; then
23178             shared_flag='${wl}-G'
23179           else
23180             shared_flag='${wl}-bM:SRE'
23181           fi
23182         fi
23183       fi
23184
23185       # It seems that -bexpall does not export symbols beginning with
23186       # underscore (_), so it is better to generate a list of symbols to export.
23187       always_export_symbols_GCJ=yes
23188       if test "$aix_use_runtimelinking" = yes; then
23189         # Warning - without using the other runtime loading flags (-brtl),
23190         # -berok will link without error, but may produce a broken library.
23191         allow_undefined_flag_GCJ='-berok'
23192        # Determine the default libpath from the value encoded in an empty executable.
23193        cat >conftest.$ac_ext <<_ACEOF
23194 /* confdefs.h.  */
23195 _ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h.  */
23199
23200 int
23201 main ()
23202 {
23203
23204   ;
23205   return 0;
23206 }
23207 _ACEOF
23208 rm -f conftest.$ac_objext conftest$ac_exeext
23209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23210   (eval $ac_link) 2>conftest.er1
23211   ac_status=$?
23212   grep -v '^ *+' conftest.er1 >conftest.err
23213   rm -f conftest.er1
23214   cat conftest.err >&5
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); } &&
23217          { ac_try='test -z "$ac_c_werror_flag"
23218                          || test ! -s conftest.err'
23219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220   (eval $ac_try) 2>&5
23221   ac_status=$?
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); }; } &&
23224          { ac_try='test -s conftest$ac_exeext'
23225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226   (eval $ac_try) 2>&5
23227   ac_status=$?
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); }; }; then
23230
23231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23232 }'`
23233 # Check for a 64-bit object if we didn't find anything.
23234 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; }
23235 }'`; fi
23236 else
23237   echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23239
23240 fi
23241 rm -f conftest.err conftest.$ac_objext \
23242       conftest$ac_exeext conftest.$ac_ext
23243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23244
23245        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23246         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"
23247        else
23248         if test "$host_cpu" = ia64; then
23249           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23250           allow_undefined_flag_GCJ="-z nodefs"
23251           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"
23252         else
23253          # Determine the default libpath from the value encoded in an empty executable.
23254          cat >conftest.$ac_ext <<_ACEOF
23255 /* confdefs.h.  */
23256 _ACEOF
23257 cat confdefs.h >>conftest.$ac_ext
23258 cat >>conftest.$ac_ext <<_ACEOF
23259 /* end confdefs.h.  */
23260
23261 int
23262 main ()
23263 {
23264
23265   ;
23266   return 0;
23267 }
23268 _ACEOF
23269 rm -f conftest.$ac_objext conftest$ac_exeext
23270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23271   (eval $ac_link) 2>conftest.er1
23272   ac_status=$?
23273   grep -v '^ *+' conftest.er1 >conftest.err
23274   rm -f conftest.er1
23275   cat conftest.err >&5
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); } &&
23278          { ac_try='test -z "$ac_c_werror_flag"
23279                          || test ! -s conftest.err'
23280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281   (eval $ac_try) 2>&5
23282   ac_status=$?
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); }; } &&
23285          { ac_try='test -s conftest$ac_exeext'
23286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287   (eval $ac_try) 2>&5
23288   ac_status=$?
23289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); }; }; then
23291
23292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23293 }'`
23294 # Check for a 64-bit object if we didn't find anything.
23295 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; }
23296 }'`; fi
23297 else
23298   echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23300
23301 fi
23302 rm -f conftest.err conftest.$ac_objext \
23303       conftest$ac_exeext conftest.$ac_ext
23304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23305
23306          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23307           # Warning - without using the other run time loading flags,
23308           # -berok will link without error, but may produce a broken library.
23309           no_undefined_flag_GCJ=' ${wl}-bernotok'
23310           allow_undefined_flag_GCJ=' ${wl}-berok'
23311           # Exported symbols can be pulled into shared objects from archives
23312           whole_archive_flag_spec_GCJ='$convenience'
23313           archive_cmds_need_lc_GCJ=yes
23314           # This is similar to how AIX traditionally builds its shared libraries.
23315           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'
23316         fi
23317       fi
23318       ;;
23319
23320     amigaos*)
23321       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)'
23322       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23323       hardcode_minus_L_GCJ=yes
23324       # see comment about different semantics on the GNU ld section
23325       ld_shlibs_GCJ=no
23326       ;;
23327
23328     bsdi[45]*)
23329       export_dynamic_flag_spec_GCJ=-rdynamic
23330       ;;
23331
23332     cygwin* | mingw* | pw32*)
23333       # When not using gcc, we currently assume that we are using
23334       # Microsoft Visual C++.
23335       # hardcode_libdir_flag_spec is actually meaningless, as there is
23336       # no search path for DLLs.
23337       hardcode_libdir_flag_spec_GCJ=' '
23338       allow_undefined_flag_GCJ=unsupported
23339       # Tell ltmain to make .lib files, not .a files.
23340       libext=lib
23341       # Tell ltmain to make .dll files, not .so files.
23342       shrext_cmds=".dll"
23343       # FIXME: Setting linknames here is a bad hack.
23344       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23345       # The linker will automatically build a .lib file if we build a DLL.
23346       old_archive_From_new_cmds_GCJ='true'
23347       # FIXME: Should let the user specify the lib program.
23348       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23349       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23350       enable_shared_with_static_runtimes_GCJ=yes
23351       ;;
23352
23353     darwin* | rhapsody*)
23354       case $host_os in
23355         rhapsody* | darwin1.[012])
23356          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23357          ;;
23358        *) # Darwin 1.3 on
23359          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23360            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23361          else
23362            case ${MACOSX_DEPLOYMENT_TARGET} in
23363              10.[012])
23364                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23365                ;;
23366              10.*)
23367                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23368                ;;
23369            esac
23370          fi
23371          ;;
23372       esac
23373       archive_cmds_need_lc_GCJ=no
23374       hardcode_direct_GCJ=no
23375       hardcode_automatic_GCJ=yes
23376       hardcode_shlibpath_var_GCJ=unsupported
23377       whole_archive_flag_spec_GCJ=''
23378       link_all_deplibs_GCJ=yes
23379     if test "$GCC" = yes ; then
23380         output_verbose_link_cmd='echo'
23381         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23382       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23383       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23384       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}'
23385       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}'
23386     else
23387       case $cc_basename in
23388         xlc*)
23389          output_verbose_link_cmd='echo'
23390          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23391          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23392           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23393          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}'
23394           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}'
23395           ;;
23396        *)
23397          ld_shlibs_GCJ=no
23398           ;;
23399       esac
23400     fi
23401       ;;
23402
23403     dgux*)
23404       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23405       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23406       hardcode_shlibpath_var_GCJ=no
23407       ;;
23408
23409     freebsd1*)
23410       ld_shlibs_GCJ=no
23411       ;;
23412
23413     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23414     # support.  Future versions do this automatically, but an explicit c++rt0.o
23415     # does not break anything, and helps significantly (at the cost of a little
23416     # extra space).
23417     freebsd2.2*)
23418       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23419       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23420       hardcode_direct_GCJ=yes
23421       hardcode_shlibpath_var_GCJ=no
23422       ;;
23423
23424     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23425     freebsd2*)
23426       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23427       hardcode_direct_GCJ=yes
23428       hardcode_minus_L_GCJ=yes
23429       hardcode_shlibpath_var_GCJ=no
23430       ;;
23431
23432     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23433     freebsd* | kfreebsd*-gnu | dragonfly*)
23434       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23435       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23436       hardcode_direct_GCJ=yes
23437       hardcode_shlibpath_var_GCJ=no
23438       ;;
23439
23440     hpux9*)
23441       if test "$GCC" = yes; then
23442         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'
23443       else
23444         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'
23445       fi
23446       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23447       hardcode_libdir_separator_GCJ=:
23448       hardcode_direct_GCJ=yes
23449
23450       # hardcode_minus_L: Not really in the search PATH,
23451       # but as the default location of the library.
23452       hardcode_minus_L_GCJ=yes
23453       export_dynamic_flag_spec_GCJ='${wl}-E'
23454       ;;
23455
23456     hpux10*)
23457       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23458         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23459       else
23460         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23461       fi
23462       if test "$with_gnu_ld" = no; then
23463         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23464         hardcode_libdir_separator_GCJ=:
23465
23466         hardcode_direct_GCJ=yes
23467         export_dynamic_flag_spec_GCJ='${wl}-E'
23468
23469         # hardcode_minus_L: Not really in the search PATH,
23470         # but as the default location of the library.
23471         hardcode_minus_L_GCJ=yes
23472       fi
23473       ;;
23474
23475     hpux11*)
23476       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23477         case $host_cpu in
23478         hppa*64*)
23479           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23480           ;;
23481         ia64*)
23482           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23483           ;;
23484         *)
23485           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23486           ;;
23487         esac
23488       else
23489         case $host_cpu in
23490         hppa*64*)
23491           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23492           ;;
23493         ia64*)
23494           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23495           ;;
23496         *)
23497           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23498           ;;
23499         esac
23500       fi
23501       if test "$with_gnu_ld" = no; then
23502         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23503         hardcode_libdir_separator_GCJ=:
23504
23505         case $host_cpu in
23506         hppa*64*|ia64*)
23507           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23508           hardcode_direct_GCJ=no
23509           hardcode_shlibpath_var_GCJ=no
23510           ;;
23511         *)
23512           hardcode_direct_GCJ=yes
23513           export_dynamic_flag_spec_GCJ='${wl}-E'
23514
23515           # hardcode_minus_L: Not really in the search PATH,
23516           # but as the default location of the library.
23517           hardcode_minus_L_GCJ=yes
23518           ;;
23519         esac
23520       fi
23521       ;;
23522
23523     irix5* | irix6* | nonstopux*)
23524       if test "$GCC" = yes; then
23525         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'
23526       else
23527         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'
23528         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23529       fi
23530       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23531       hardcode_libdir_separator_GCJ=:
23532       link_all_deplibs_GCJ=yes
23533       ;;
23534
23535     netbsd*)
23536       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23537         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23538       else
23539         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23540       fi
23541       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23542       hardcode_direct_GCJ=yes
23543       hardcode_shlibpath_var_GCJ=no
23544       ;;
23545
23546     newsos6)
23547       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23548       hardcode_direct_GCJ=yes
23549       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23550       hardcode_libdir_separator_GCJ=:
23551       hardcode_shlibpath_var_GCJ=no
23552       ;;
23553
23554     openbsd*)
23555       hardcode_direct_GCJ=yes
23556       hardcode_shlibpath_var_GCJ=no
23557       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23558         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23559         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23560         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23561         export_dynamic_flag_spec_GCJ='${wl}-E'
23562       else
23563        case $host_os in
23564          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23565            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23566            hardcode_libdir_flag_spec_GCJ='-R$libdir'
23567            ;;
23568          *)
23569            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23570            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23571            ;;
23572        esac
23573       fi
23574       ;;
23575
23576     os2*)
23577       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23578       hardcode_minus_L_GCJ=yes
23579       allow_undefined_flag_GCJ=unsupported
23580       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'
23581       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23582       ;;
23583
23584     osf3*)
23585       if test "$GCC" = yes; then
23586         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23587         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'
23588       else
23589         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23590         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'
23591       fi
23592       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23593       hardcode_libdir_separator_GCJ=:
23594       ;;
23595
23596     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23597       if test "$GCC" = yes; then
23598         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23599         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'
23600         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23601       else
23602         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23603         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'
23604         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~
23605         $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'
23606
23607         # Both c and cxx compiler support -rpath directly
23608         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23609       fi
23610       hardcode_libdir_separator_GCJ=:
23611       ;;
23612
23613     solaris*)
23614       no_undefined_flag_GCJ=' -z text'
23615       if test "$GCC" = yes; then
23616         wlarc='${wl}'
23617         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23618         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23619           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23620       else
23621         wlarc=''
23622         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23623         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23624         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23625       fi
23626       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23627       hardcode_shlibpath_var_GCJ=no
23628       case $host_os in
23629       solaris2.[0-5] | solaris2.[0-5].*) ;;
23630       *)
23631         # The compiler driver will combine linker options so we
23632         # cannot just pass the convience library names through
23633         # without $wl, iff we do not link with $LD.
23634         # Luckily, gcc supports the same syntax we need for Sun Studio.
23635         # Supported since Solaris 2.6 (maybe 2.5.1?)
23636         case $wlarc in
23637         '')
23638           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23639         *)
23640           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' ;;
23641         esac ;;
23642       esac
23643       link_all_deplibs_GCJ=yes
23644       ;;
23645
23646     sunos4*)
23647       if test "x$host_vendor" = xsequent; then
23648         # Use $CC to link under sequent, because it throws in some extra .o
23649         # files that make .init and .fini sections work.
23650         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23651       else
23652         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23653       fi
23654       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23655       hardcode_direct_GCJ=yes
23656       hardcode_minus_L_GCJ=yes
23657       hardcode_shlibpath_var_GCJ=no
23658       ;;
23659
23660     sysv4)
23661       case $host_vendor in
23662         sni)
23663           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23664           hardcode_direct_GCJ=yes # is this really true???
23665         ;;
23666         siemens)
23667           ## LD is ld it makes a PLAMLIB
23668           ## CC just makes a GrossModule.
23669           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23670           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23671           hardcode_direct_GCJ=no
23672         ;;
23673         motorola)
23674           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23675           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23676         ;;
23677       esac
23678       runpath_var='LD_RUN_PATH'
23679       hardcode_shlibpath_var_GCJ=no
23680       ;;
23681
23682     sysv4.3*)
23683       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23684       hardcode_shlibpath_var_GCJ=no
23685       export_dynamic_flag_spec_GCJ='-Bexport'
23686       ;;
23687
23688     sysv4*MP*)
23689       if test -d /usr/nec; then
23690         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23691         hardcode_shlibpath_var_GCJ=no
23692         runpath_var=LD_RUN_PATH
23693         hardcode_runpath_var=yes
23694         ld_shlibs_GCJ=yes
23695       fi
23696       ;;
23697
23698     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23699       no_undefined_flag_GCJ='${wl}-z,text'
23700       archive_cmds_need_lc_GCJ=no
23701       hardcode_shlibpath_var_GCJ=no
23702       runpath_var='LD_RUN_PATH'
23703
23704       if test "$GCC" = yes; then
23705         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23706         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23707       else
23708         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23709         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23710       fi
23711       ;;
23712
23713     sysv5* | sco3.2v5* | sco5v6*)
23714       # Note: We can NOT use -z defs as we might desire, because we do not
23715       # link with -lc, and that would cause any symbols used from libc to
23716       # always be unresolved, which means just about no library would
23717       # ever link correctly.  If we're not using GNU ld we use -z text
23718       # though, which does catch some bad symbols but isn't as heavy-handed
23719       # as -z defs.
23720       no_undefined_flag_GCJ='${wl}-z,text'
23721       allow_undefined_flag_GCJ='${wl}-z,nodefs'
23722       archive_cmds_need_lc_GCJ=no
23723       hardcode_shlibpath_var_GCJ=no
23724       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23725       hardcode_libdir_separator_GCJ=':'
23726       link_all_deplibs_GCJ=yes
23727       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23728       runpath_var='LD_RUN_PATH'
23729
23730       if test "$GCC" = yes; then
23731         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23732         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23733       else
23734         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23735         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23736       fi
23737       ;;
23738
23739     uts4*)
23740       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23741       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23742       hardcode_shlibpath_var_GCJ=no
23743       ;;
23744
23745     *)
23746       ld_shlibs_GCJ=no
23747       ;;
23748     esac
23749   fi
23750
23751 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23752 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23753 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23754
23755 #
23756 # Do we need to explicitly link libc?
23757 #
23758 case "x$archive_cmds_need_lc_GCJ" in
23759 x|xyes)
23760   # Assume -lc should be added
23761   archive_cmds_need_lc_GCJ=yes
23762
23763   if test "$enable_shared" = yes && test "$GCC" = yes; then
23764     case $archive_cmds_GCJ in
23765     *'~'*)
23766       # FIXME: we may have to deal with multi-command sequences.
23767       ;;
23768     '$CC '*)
23769       # Test whether the compiler implicitly links with -lc since on some
23770       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23771       # to ld, don't add -lc before -lgcc.
23772       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23773 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23774       $rm conftest*
23775       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23776
23777       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23778   (eval $ac_compile) 2>&5
23779   ac_status=$?
23780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781   (exit $ac_status); } 2>conftest.err; then
23782         soname=conftest
23783         lib=conftest
23784         libobjs=conftest.$ac_objext
23785         deplibs=
23786         wl=$lt_prog_compiler_wl_GCJ
23787         pic_flag=$lt_prog_compiler_pic_GCJ
23788         compiler_flags=-v
23789         linker_flags=-v
23790         verstring=
23791         output_objdir=.
23792         libname=conftest
23793         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23794         allow_undefined_flag_GCJ=
23795         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23796   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23797   ac_status=$?
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); }
23800         then
23801           archive_cmds_need_lc_GCJ=no
23802         else
23803           archive_cmds_need_lc_GCJ=yes
23804         fi
23805         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23806       else
23807         cat conftest.err 1>&5
23808       fi
23809       $rm conftest*
23810       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23811 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23812       ;;
23813     esac
23814   fi
23815   ;;
23816 esac
23817
23818 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23819 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23820 library_names_spec=
23821 libname_spec='lib$name'
23822 soname_spec=
23823 shrext_cmds=".so"
23824 postinstall_cmds=
23825 postuninstall_cmds=
23826 finish_cmds=
23827 finish_eval=
23828 shlibpath_var=
23829 shlibpath_overrides_runpath=unknown
23830 version_type=none
23831 dynamic_linker="$host_os ld.so"
23832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23833 if test "$GCC" = yes; then
23834   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23835   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23836     # if the path contains ";" then we assume it to be the separator
23837     # otherwise default to the standard path separator (i.e. ":") - it is
23838     # assumed that no part of a normal pathname contains ";" but that should
23839     # okay in the real world where ";" in dirpaths is itself problematic.
23840     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23841   else
23842     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23843   fi
23844 else
23845   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23846 fi
23847 need_lib_prefix=unknown
23848 hardcode_into_libs=no
23849
23850 # when you set need_version to no, make sure it does not cause -set_version
23851 # flags to be left without arguments
23852 need_version=unknown
23853
23854 case $host_os in
23855 aix3*)
23856   version_type=linux
23857   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23858   shlibpath_var=LIBPATH
23859
23860   # AIX 3 has no versioning support, so we append a major version to the name.
23861   soname_spec='${libname}${release}${shared_ext}$major'
23862   ;;
23863
23864 aix4* | aix5*)
23865   version_type=linux
23866   need_lib_prefix=no
23867   need_version=no
23868   hardcode_into_libs=yes
23869   if test "$host_cpu" = ia64; then
23870     # AIX 5 supports IA64
23871     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23872     shlibpath_var=LD_LIBRARY_PATH
23873   else
23874     # With GCC up to 2.95.x, collect2 would create an import file
23875     # for dependence libraries.  The import file would start with
23876     # the line `#! .'.  This would cause the generated library to
23877     # depend on `.', always an invalid library.  This was fixed in
23878     # development snapshots of GCC prior to 3.0.
23879     case $host_os in
23880       aix4 | aix4.[01] | aix4.[01].*)
23881       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23882            echo ' yes '
23883            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23884         :
23885       else
23886         can_build_shared=no
23887       fi
23888       ;;
23889     esac
23890     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23891     # soname into executable. Probably we can add versioning support to
23892     # collect2, so additional links can be useful in future.
23893     if test "$aix_use_runtimelinking" = yes; then
23894       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23895       # instead of lib<name>.a to let people know that these are not
23896       # typical AIX shared libraries.
23897       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23898     else
23899       # We preserve .a as extension for shared libraries through AIX4.2
23900       # and later when we are not doing run time linking.
23901       library_names_spec='${libname}${release}.a $libname.a'
23902       soname_spec='${libname}${release}${shared_ext}$major'
23903     fi
23904     shlibpath_var=LIBPATH
23905   fi
23906   ;;
23907
23908 amigaos*)
23909   library_names_spec='$libname.ixlibrary $libname.a'
23910   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23911   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'
23912   ;;
23913
23914 beos*)
23915   library_names_spec='${libname}${shared_ext}'
23916   dynamic_linker="$host_os ld.so"
23917   shlibpath_var=LIBRARY_PATH
23918   ;;
23919
23920 bsdi[45]*)
23921   version_type=linux
23922   need_version=no
23923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23924   soname_spec='${libname}${release}${shared_ext}$major'
23925   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23926   shlibpath_var=LD_LIBRARY_PATH
23927   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23928   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23929   # the default ld.so.conf also contains /usr/contrib/lib and
23930   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23931   # libtool to hard-code these into programs
23932   ;;
23933
23934 cygwin* | mingw* | pw32*)
23935   version_type=windows
23936   shrext_cmds=".dll"
23937   need_version=no
23938   need_lib_prefix=no
23939
23940   case $GCC,$host_os in
23941   yes,cygwin* | yes,mingw* | yes,pw32*)
23942     library_names_spec='$libname.dll.a'
23943     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23944     postinstall_cmds='base_file=`basename \${file}`~
23945       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23946       dldir=$destdir/`dirname \$dlpath`~
23947       test -d \$dldir || mkdir -p \$dldir~
23948       $install_prog $dir/$dlname \$dldir/$dlname~
23949       chmod a+x \$dldir/$dlname'
23950     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23951       dlpath=$dir/\$dldll~
23952        $rm \$dlpath'
23953     shlibpath_overrides_runpath=yes
23954
23955     case $host_os in
23956     cygwin*)
23957       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23958       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23959       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23960       ;;
23961     mingw*)
23962       # MinGW DLLs use traditional 'lib' prefix
23963       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23964       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23965       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23966         # It is most probably a Windows format PATH printed by
23967         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23968         # path with ; separators, and with drive letters. We can handle the
23969         # drive letters (cygwin fileutils understands them), so leave them,
23970         # especially as we might pass files found there to a mingw objdump,
23971         # which wouldn't understand a cygwinified path. Ahh.
23972         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23973       else
23974         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23975       fi
23976       ;;
23977     pw32*)
23978       # pw32 DLLs use 'pw' prefix rather than 'lib'
23979       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23980       ;;
23981     esac
23982     ;;
23983
23984   *)
23985     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23986     ;;
23987   esac
23988   dynamic_linker='Win32 ld.exe'
23989   # FIXME: first we should search . and the directory the executable is in
23990   shlibpath_var=PATH
23991   ;;
23992
23993 darwin* | rhapsody*)
23994   dynamic_linker="$host_os dyld"
23995   version_type=darwin
23996   need_lib_prefix=no
23997   need_version=no
23998   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23999   soname_spec='${libname}${release}${major}$shared_ext'
24000   shlibpath_overrides_runpath=yes
24001   shlibpath_var=DYLD_LIBRARY_PATH
24002   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24003   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24004   if test "$GCC" = yes; then
24005     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"`
24006   else
24007     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24008   fi
24009   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24010   ;;
24011
24012 dgux*)
24013   version_type=linux
24014   need_lib_prefix=no
24015   need_version=no
24016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24017   soname_spec='${libname}${release}${shared_ext}$major'
24018   shlibpath_var=LD_LIBRARY_PATH
24019   ;;
24020
24021 freebsd1*)
24022   dynamic_linker=no
24023   ;;
24024
24025 kfreebsd*-gnu)
24026   version_type=linux
24027   need_lib_prefix=no
24028   need_version=no
24029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24030   soname_spec='${libname}${release}${shared_ext}$major'
24031   shlibpath_var=LD_LIBRARY_PATH
24032   shlibpath_overrides_runpath=no
24033   hardcode_into_libs=yes
24034   dynamic_linker='GNU ld.so'
24035   ;;
24036
24037 freebsd* | dragonfly*)
24038   # DragonFly does not have aout.  When/if they implement a new
24039   # versioning mechanism, adjust this.
24040   if test -x /usr/bin/objformat; then
24041     objformat=`/usr/bin/objformat`
24042   else
24043     case $host_os in
24044     freebsd[123]*) objformat=aout ;;
24045     *) objformat=elf ;;
24046     esac
24047   fi
24048   version_type=freebsd-$objformat
24049   case $version_type in
24050     freebsd-elf*)
24051       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24052       need_version=no
24053       need_lib_prefix=no
24054       ;;
24055     freebsd-*)
24056       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24057       need_version=yes
24058       ;;
24059   esac
24060   shlibpath_var=LD_LIBRARY_PATH
24061   case $host_os in
24062   freebsd2*)
24063     shlibpath_overrides_runpath=yes
24064     ;;
24065   freebsd3.[01]* | freebsdelf3.[01]*)
24066     shlibpath_overrides_runpath=yes
24067     hardcode_into_libs=yes
24068     ;;
24069   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24070   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24071     shlibpath_overrides_runpath=no
24072     hardcode_into_libs=yes
24073     ;;
24074   freebsd*) # from 4.6 on
24075     shlibpath_overrides_runpath=yes
24076     hardcode_into_libs=yes
24077     ;;
24078   esac
24079   ;;
24080
24081 gnu*)
24082   version_type=linux
24083   need_lib_prefix=no
24084   need_version=no
24085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24086   soname_spec='${libname}${release}${shared_ext}$major'
24087   shlibpath_var=LD_LIBRARY_PATH
24088   hardcode_into_libs=yes
24089   ;;
24090
24091 hpux9* | hpux10* | hpux11*)
24092   # Give a soname corresponding to the major version so that dld.sl refuses to
24093   # link against other versions.
24094   version_type=sunos
24095   need_lib_prefix=no
24096   need_version=no
24097   case $host_cpu in
24098   ia64*)
24099     shrext_cmds='.so'
24100     hardcode_into_libs=yes
24101     dynamic_linker="$host_os dld.so"
24102     shlibpath_var=LD_LIBRARY_PATH
24103     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24104     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24105     soname_spec='${libname}${release}${shared_ext}$major'
24106     if test "X$HPUX_IA64_MODE" = X32; then
24107       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24108     else
24109       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24110     fi
24111     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24112     ;;
24113    hppa*64*)
24114      shrext_cmds='.sl'
24115      hardcode_into_libs=yes
24116      dynamic_linker="$host_os dld.sl"
24117      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24118      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24119      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24120      soname_spec='${libname}${release}${shared_ext}$major'
24121      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24122      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24123      ;;
24124    *)
24125     shrext_cmds='.sl'
24126     dynamic_linker="$host_os dld.sl"
24127     shlibpath_var=SHLIB_PATH
24128     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24130     soname_spec='${libname}${release}${shared_ext}$major'
24131     ;;
24132   esac
24133   # HP-UX runs *really* slowly unless shared libraries are mode 555.
24134   postinstall_cmds='chmod 555 $lib'
24135   ;;
24136
24137 interix3*)
24138   version_type=linux
24139   need_lib_prefix=no
24140   need_version=no
24141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24142   soname_spec='${libname}${release}${shared_ext}$major'
24143   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24144   shlibpath_var=LD_LIBRARY_PATH
24145   shlibpath_overrides_runpath=no
24146   hardcode_into_libs=yes
24147   ;;
24148
24149 irix5* | irix6* | nonstopux*)
24150   case $host_os in
24151     nonstopux*) version_type=nonstopux ;;
24152     *)
24153         if test "$lt_cv_prog_gnu_ld" = yes; then
24154                 version_type=linux
24155         else
24156                 version_type=irix
24157         fi ;;
24158   esac
24159   need_lib_prefix=no
24160   need_version=no
24161   soname_spec='${libname}${release}${shared_ext}$major'
24162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24163   case $host_os in
24164   irix5* | nonstopux*)
24165     libsuff= shlibsuff=
24166     ;;
24167   *)
24168     case $LD in # libtool.m4 will add one of these switches to LD
24169     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24170       libsuff= shlibsuff= libmagic=32-bit;;
24171     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24172       libsuff=32 shlibsuff=N32 libmagic=N32;;
24173     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24174       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24175     *) libsuff= shlibsuff= libmagic=never-match;;
24176     esac
24177     ;;
24178   esac
24179   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24180   shlibpath_overrides_runpath=no
24181   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24182   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24183   hardcode_into_libs=yes
24184   ;;
24185
24186 # No shared lib support for Linux oldld, aout, or coff.
24187 linux*oldld* | linux*aout* | linux*coff*)
24188   dynamic_linker=no
24189   ;;
24190
24191 # This must be Linux ELF.
24192 linux*)
24193   version_type=linux
24194   need_lib_prefix=no
24195   need_version=no
24196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24197   soname_spec='${libname}${release}${shared_ext}$major'
24198   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24199   shlibpath_var=LD_LIBRARY_PATH
24200   shlibpath_overrides_runpath=no
24201   # This implies no fast_install, which is unacceptable.
24202   # Some rework will be needed to allow for fast_install
24203   # before this can be enabled.
24204   hardcode_into_libs=yes
24205
24206   # find out which ABI we are using
24207   libsuff=
24208   case "$host_cpu" in
24209   x86_64*|s390x*|powerpc64*)
24210     echo '#line 24210 "configure"' > conftest.$ac_ext
24211     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24212   (eval $ac_compile) 2>&5
24213   ac_status=$?
24214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215   (exit $ac_status); }; then
24216       case `/usr/bin/file conftest.$ac_objext` in
24217       *64-bit*)
24218         libsuff=64
24219         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
24220         ;;
24221       esac
24222     fi
24223     rm -rf conftest*
24224     ;;
24225   esac
24226
24227   # Append ld.so.conf contents to the search path
24228   if test -f /etc/ld.so.conf; then
24229     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' ' '`
24230     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
24231   fi
24232
24233   # We used to test for /lib/ld.so.1 and disable shared libraries on
24234   # powerpc, because MkLinux only supported shared libraries with the
24235   # GNU dynamic linker.  Since this was broken with cross compilers,
24236   # most powerpc-linux boxes support dynamic linking these days and
24237   # people can always --disable-shared, the test was removed, and we
24238   # assume the GNU/Linux dynamic linker is in use.
24239   dynamic_linker='GNU/Linux ld.so'
24240   ;;
24241
24242 knetbsd*-gnu)
24243   version_type=linux
24244   need_lib_prefix=no
24245   need_version=no
24246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24247   soname_spec='${libname}${release}${shared_ext}$major'
24248   shlibpath_var=LD_LIBRARY_PATH
24249   shlibpath_overrides_runpath=no
24250   hardcode_into_libs=yes
24251   dynamic_linker='GNU ld.so'
24252   ;;
24253
24254 netbsd*)
24255   version_type=sunos
24256   need_lib_prefix=no
24257   need_version=no
24258   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24260     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24261     dynamic_linker='NetBSD (a.out) ld.so'
24262   else
24263     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24264     soname_spec='${libname}${release}${shared_ext}$major'
24265     dynamic_linker='NetBSD ld.elf_so'
24266   fi
24267   shlibpath_var=LD_LIBRARY_PATH
24268   shlibpath_overrides_runpath=yes
24269   hardcode_into_libs=yes
24270   ;;
24271
24272 newsos6)
24273   version_type=linux
24274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24275   shlibpath_var=LD_LIBRARY_PATH
24276   shlibpath_overrides_runpath=yes
24277   ;;
24278
24279 nto-qnx*)
24280   version_type=linux
24281   need_lib_prefix=no
24282   need_version=no
24283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24284   soname_spec='${libname}${release}${shared_ext}$major'
24285   shlibpath_var=LD_LIBRARY_PATH
24286   shlibpath_overrides_runpath=yes
24287   ;;
24288
24289 openbsd*)
24290   version_type=sunos
24291   sys_lib_dlsearch_path_spec="/usr/lib"
24292   need_lib_prefix=no
24293   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24294   case $host_os in
24295     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24296     *)                         need_version=no  ;;
24297   esac
24298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24299   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24300   shlibpath_var=LD_LIBRARY_PATH
24301   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24302     case $host_os in
24303       openbsd2.[89] | openbsd2.[89].*)
24304         shlibpath_overrides_runpath=no
24305         ;;
24306       *)
24307         shlibpath_overrides_runpath=yes
24308         ;;
24309       esac
24310   else
24311     shlibpath_overrides_runpath=yes
24312   fi
24313   ;;
24314
24315 os2*)
24316   libname_spec='$name'
24317   shrext_cmds=".dll"
24318   need_lib_prefix=no
24319   library_names_spec='$libname${shared_ext} $libname.a'
24320   dynamic_linker='OS/2 ld.exe'
24321   shlibpath_var=LIBPATH
24322   ;;
24323
24324 osf3* | osf4* | osf5*)
24325   version_type=osf
24326   need_lib_prefix=no
24327   need_version=no
24328   soname_spec='${libname}${release}${shared_ext}$major'
24329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24330   shlibpath_var=LD_LIBRARY_PATH
24331   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24332   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24333   ;;
24334
24335 solaris*)
24336   version_type=linux
24337   need_lib_prefix=no
24338   need_version=no
24339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24340   soname_spec='${libname}${release}${shared_ext}$major'
24341   shlibpath_var=LD_LIBRARY_PATH
24342   shlibpath_overrides_runpath=yes
24343   hardcode_into_libs=yes
24344   # ldd complains unless libraries are executable
24345   postinstall_cmds='chmod +x $lib'
24346   ;;
24347
24348 sunos4*)
24349   version_type=sunos
24350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24351   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24352   shlibpath_var=LD_LIBRARY_PATH
24353   shlibpath_overrides_runpath=yes
24354   if test "$with_gnu_ld" = yes; then
24355     need_lib_prefix=no
24356   fi
24357   need_version=yes
24358   ;;
24359
24360 sysv4 | sysv4.3*)
24361   version_type=linux
24362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24363   soname_spec='${libname}${release}${shared_ext}$major'
24364   shlibpath_var=LD_LIBRARY_PATH
24365   case $host_vendor in
24366     sni)
24367       shlibpath_overrides_runpath=no
24368       need_lib_prefix=no
24369       export_dynamic_flag_spec='${wl}-Blargedynsym'
24370       runpath_var=LD_RUN_PATH
24371       ;;
24372     siemens)
24373       need_lib_prefix=no
24374       ;;
24375     motorola)
24376       need_lib_prefix=no
24377       need_version=no
24378       shlibpath_overrides_runpath=no
24379       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24380       ;;
24381   esac
24382   ;;
24383
24384 sysv4*MP*)
24385   if test -d /usr/nec ;then
24386     version_type=linux
24387     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24388     soname_spec='$libname${shared_ext}.$major'
24389     shlibpath_var=LD_LIBRARY_PATH
24390   fi
24391   ;;
24392
24393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24394   version_type=freebsd-elf
24395   need_lib_prefix=no
24396   need_version=no
24397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24398   soname_spec='${libname}${release}${shared_ext}$major'
24399   shlibpath_var=LD_LIBRARY_PATH
24400   hardcode_into_libs=yes
24401   if test "$with_gnu_ld" = yes; then
24402     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24403     shlibpath_overrides_runpath=no
24404   else
24405     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24406     shlibpath_overrides_runpath=yes
24407     case $host_os in
24408       sco3.2v5*)
24409         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24410         ;;
24411     esac
24412   fi
24413   sys_lib_dlsearch_path_spec='/usr/lib'
24414   ;;
24415
24416 uts4*)
24417   version_type=linux
24418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24419   soname_spec='${libname}${release}${shared_ext}$major'
24420   shlibpath_var=LD_LIBRARY_PATH
24421   ;;
24422
24423 *)
24424   dynamic_linker=no
24425   ;;
24426 esac
24427 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24428 echo "${ECHO_T}$dynamic_linker" >&6
24429 test "$dynamic_linker" = no && can_build_shared=no
24430
24431 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24432 if test "$GCC" = yes; then
24433   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24434 fi
24435
24436 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24437 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24438 hardcode_action_GCJ=
24439 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24440    test -n "$runpath_var_GCJ" || \
24441    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24442
24443   # We can hardcode non-existant directories.
24444   if test "$hardcode_direct_GCJ" != no &&
24445      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24446      # have to relink, otherwise we might link with an installed library
24447      # when we should be linking with a yet-to-be-installed one
24448      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24449      test "$hardcode_minus_L_GCJ" != no; then
24450     # Linking always hardcodes the temporary library directory.
24451     hardcode_action_GCJ=relink
24452   else
24453     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24454     hardcode_action_GCJ=immediate
24455   fi
24456 else
24457   # We cannot hardcode anything, or else we can only hardcode existing
24458   # directories.
24459   hardcode_action_GCJ=unsupported
24460 fi
24461 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24462 echo "${ECHO_T}$hardcode_action_GCJ" >&6
24463
24464 if test "$hardcode_action_GCJ" = relink; then
24465   # Fast installation is not supported
24466   enable_fast_install=no
24467 elif test "$shlibpath_overrides_runpath" = yes ||
24468      test "$enable_shared" = no; then
24469   # Fast installation is not necessary
24470   enable_fast_install=needless
24471 fi
24472
24473
24474 # The else clause should only fire when bootstrapping the
24475 # libtool distribution, otherwise you forgot to ship ltmain.sh
24476 # with your package, and you will get complaints that there are
24477 # no rules to generate ltmain.sh.
24478 if test -f "$ltmain"; then
24479   # See if we are running on zsh, and set the options which allow our commands through
24480   # without removal of \ escapes.
24481   if test -n "${ZSH_VERSION+set}" ; then
24482     setopt NO_GLOB_SUBST
24483   fi
24484   # Now quote all the things that may contain metacharacters while being
24485   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24486   # variables and quote the copies for generation of the libtool script.
24487   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24488     SED SHELL STRIP \
24489     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24490     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24491     deplibs_check_method reload_flag reload_cmds need_locks \
24492     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24493     lt_cv_sys_global_symbol_to_c_name_address \
24494     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24495     old_postinstall_cmds old_postuninstall_cmds \
24496     compiler_GCJ \
24497     CC_GCJ \
24498     LD_GCJ \
24499     lt_prog_compiler_wl_GCJ \
24500     lt_prog_compiler_pic_GCJ \
24501     lt_prog_compiler_static_GCJ \
24502     lt_prog_compiler_no_builtin_flag_GCJ \
24503     export_dynamic_flag_spec_GCJ \
24504     thread_safe_flag_spec_GCJ \
24505     whole_archive_flag_spec_GCJ \
24506     enable_shared_with_static_runtimes_GCJ \
24507     old_archive_cmds_GCJ \
24508     old_archive_from_new_cmds_GCJ \
24509     predep_objects_GCJ \
24510     postdep_objects_GCJ \
24511     predeps_GCJ \
24512     postdeps_GCJ \
24513     compiler_lib_search_path_GCJ \
24514     archive_cmds_GCJ \
24515     archive_expsym_cmds_GCJ \
24516     postinstall_cmds_GCJ \
24517     postuninstall_cmds_GCJ \
24518     old_archive_from_expsyms_cmds_GCJ \
24519     allow_undefined_flag_GCJ \
24520     no_undefined_flag_GCJ \
24521     export_symbols_cmds_GCJ \
24522     hardcode_libdir_flag_spec_GCJ \
24523     hardcode_libdir_flag_spec_ld_GCJ \
24524     hardcode_libdir_separator_GCJ \
24525     hardcode_automatic_GCJ \
24526     module_cmds_GCJ \
24527     module_expsym_cmds_GCJ \
24528     lt_cv_prog_compiler_c_o_GCJ \
24529     exclude_expsyms_GCJ \
24530     include_expsyms_GCJ; do
24531
24532     case $var in
24533     old_archive_cmds_GCJ | \
24534     old_archive_from_new_cmds_GCJ | \
24535     archive_cmds_GCJ | \
24536     archive_expsym_cmds_GCJ | \
24537     module_cmds_GCJ | \
24538     module_expsym_cmds_GCJ | \
24539     old_archive_from_expsyms_cmds_GCJ | \
24540     export_symbols_cmds_GCJ | \
24541     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24542     postinstall_cmds | postuninstall_cmds | \
24543     old_postinstall_cmds | old_postuninstall_cmds | \
24544     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24545       # Double-quote double-evaled strings.
24546       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24547       ;;
24548     *)
24549       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24550       ;;
24551     esac
24552   done
24553
24554   case $lt_echo in
24555   *'\$0 --fallback-echo"')
24556     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24557     ;;
24558   esac
24559
24560 cfgfile="$ofile"
24561
24562   cat <<__EOF__ >> "$cfgfile"
24563 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24564
24565 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24566
24567 # Shell to use when invoking shell scripts.
24568 SHELL=$lt_SHELL
24569
24570 # Whether or not to build shared libraries.
24571 build_libtool_libs=$enable_shared
24572
24573 # Whether or not to build static libraries.
24574 build_old_libs=$enable_static
24575
24576 # Whether or not to add -lc for building shared libraries.
24577 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24578
24579 # Whether or not to disallow shared libs when runtime libs are static
24580 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24581
24582 # Whether or not to optimize for fast installation.
24583 fast_install=$enable_fast_install
24584
24585 # The host system.
24586 host_alias=$host_alias
24587 host=$host
24588 host_os=$host_os
24589
24590 # The build system.
24591 build_alias=$build_alias
24592 build=$build
24593 build_os=$build_os
24594
24595 # An echo program that does not interpret backslashes.
24596 echo=$lt_echo
24597
24598 # The archiver.
24599 AR=$lt_AR
24600 AR_FLAGS=$lt_AR_FLAGS
24601
24602 # A C compiler.
24603 LTCC=$lt_LTCC
24604
24605 # LTCC compiler flags.
24606 LTCFLAGS=$lt_LTCFLAGS
24607
24608 # A language-specific compiler.
24609 CC=$lt_compiler_GCJ
24610
24611 # Is the compiler the GNU C compiler?
24612 with_gcc=$GCC_GCJ
24613
24614 # An ERE matcher.
24615 EGREP=$lt_EGREP
24616
24617 # The linker used to build libraries.
24618 LD=$lt_LD_GCJ
24619
24620 # Whether we need hard or soft links.
24621 LN_S=$lt_LN_S
24622
24623 # A BSD-compatible nm program.
24624 NM=$lt_NM
24625
24626 # A symbol stripping program
24627 STRIP=$lt_STRIP
24628
24629 # Used to examine libraries when file_magic_cmd begins "file"
24630 MAGIC_CMD=$MAGIC_CMD
24631
24632 # Used on cygwin: DLL creation program.
24633 DLLTOOL="$DLLTOOL"
24634
24635 # Used on cygwin: object dumper.
24636 OBJDUMP="$OBJDUMP"
24637
24638 # Used on cygwin: assembler.
24639 AS="$AS"
24640
24641 # The name of the directory that contains temporary libtool files.
24642 objdir=$objdir
24643
24644 # How to create reloadable object files.
24645 reload_flag=$lt_reload_flag
24646 reload_cmds=$lt_reload_cmds
24647
24648 # How to pass a linker flag through the compiler.
24649 wl=$lt_lt_prog_compiler_wl_GCJ
24650
24651 # Object file suffix (normally "o").
24652 objext="$ac_objext"
24653
24654 # Old archive suffix (normally "a").
24655 libext="$libext"
24656
24657 # Shared library suffix (normally ".so").
24658 shrext_cmds='$shrext_cmds'
24659
24660 # Executable file suffix (normally "").
24661 exeext="$exeext"
24662
24663 # Additional compiler flags for building library objects.
24664 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24665 pic_mode=$pic_mode
24666
24667 # What is the maximum length of a command?
24668 max_cmd_len=$lt_cv_sys_max_cmd_len
24669
24670 # Does compiler simultaneously support -c and -o options?
24671 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24672
24673 # Must we lock files when doing compilation?
24674 need_locks=$lt_need_locks
24675
24676 # Do we need the lib prefix for modules?
24677 need_lib_prefix=$need_lib_prefix
24678
24679 # Do we need a version for libraries?
24680 need_version=$need_version
24681
24682 # Whether dlopen is supported.
24683 dlopen_support=$enable_dlopen
24684
24685 # Whether dlopen of programs is supported.
24686 dlopen_self=$enable_dlopen_self
24687
24688 # Whether dlopen of statically linked programs is supported.
24689 dlopen_self_static=$enable_dlopen_self_static
24690
24691 # Compiler flag to prevent dynamic linking.
24692 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24693
24694 # Compiler flag to turn off builtin functions.
24695 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24696
24697 # Compiler flag to allow reflexive dlopens.
24698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24699
24700 # Compiler flag to generate shared objects directly from archives.
24701 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24702
24703 # Compiler flag to generate thread-safe objects.
24704 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24705
24706 # Library versioning type.
24707 version_type=$version_type
24708
24709 # Format of library name prefix.
24710 libname_spec=$lt_libname_spec
24711
24712 # List of archive names.  First name is the real one, the rest are links.
24713 # The last name is the one that the linker finds with -lNAME.
24714 library_names_spec=$lt_library_names_spec
24715
24716 # The coded name of the library, if different from the real name.
24717 soname_spec=$lt_soname_spec
24718
24719 # Commands used to build and install an old-style archive.
24720 RANLIB=$lt_RANLIB
24721 old_archive_cmds=$lt_old_archive_cmds_GCJ
24722 old_postinstall_cmds=$lt_old_postinstall_cmds
24723 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24724
24725 # Create an old-style archive from a shared archive.
24726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24727
24728 # Create a temporary old-style archive to link instead of a shared archive.
24729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24730
24731 # Commands used to build and install a shared archive.
24732 archive_cmds=$lt_archive_cmds_GCJ
24733 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24734 postinstall_cmds=$lt_postinstall_cmds
24735 postuninstall_cmds=$lt_postuninstall_cmds
24736
24737 # Commands used to build a loadable module (assumed same as above if empty)
24738 module_cmds=$lt_module_cmds_GCJ
24739 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24740
24741 # Commands to strip libraries.
24742 old_striplib=$lt_old_striplib
24743 striplib=$lt_striplib
24744
24745 # Dependencies to place before the objects being linked to create a
24746 # shared library.
24747 predep_objects=$lt_predep_objects_GCJ
24748
24749 # Dependencies to place after the objects being linked to create a
24750 # shared library.
24751 postdep_objects=$lt_postdep_objects_GCJ
24752
24753 # Dependencies to place before the objects being linked to create a
24754 # shared library.
24755 predeps=$lt_predeps_GCJ
24756
24757 # Dependencies to place after the objects being linked to create a
24758 # shared library.
24759 postdeps=$lt_postdeps_GCJ
24760
24761 # The library search path used internally by the compiler when linking
24762 # a shared library.
24763 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24764
24765 # Method to check whether dependent libraries are shared objects.
24766 deplibs_check_method=$lt_deplibs_check_method
24767
24768 # Command to use when deplibs_check_method == file_magic.
24769 file_magic_cmd=$lt_file_magic_cmd
24770
24771 # Flag that allows shared libraries with undefined symbols to be built.
24772 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24773
24774 # Flag that forces no undefined symbols.
24775 no_undefined_flag=$lt_no_undefined_flag_GCJ
24776
24777 # Commands used to finish a libtool library installation in a directory.
24778 finish_cmds=$lt_finish_cmds
24779
24780 # Same as above, but a single script fragment to be evaled but not shown.
24781 finish_eval=$lt_finish_eval
24782
24783 # Take the output of nm and produce a listing of raw symbols and C names.
24784 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24785
24786 # Transform the output of nm in a proper C declaration
24787 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24788
24789 # Transform the output of nm in a C name address pair
24790 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24791
24792 # This is the shared library runtime path variable.
24793 runpath_var=$runpath_var
24794
24795 # This is the shared library path variable.
24796 shlibpath_var=$shlibpath_var
24797
24798 # Is shlibpath searched before the hard-coded library search path?
24799 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24800
24801 # How to hardcode a shared library path into an executable.
24802 hardcode_action=$hardcode_action_GCJ
24803
24804 # Whether we should hardcode library paths into libraries.
24805 hardcode_into_libs=$hardcode_into_libs
24806
24807 # Flag to hardcode \$libdir into a binary during linking.
24808 # This must work even if \$libdir does not exist.
24809 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24810
24811 # If ld is used when linking, flag to hardcode \$libdir into
24812 # a binary during linking. This must work even if \$libdir does
24813 # not exist.
24814 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24815
24816 # Whether we need a single -rpath flag with a separated argument.
24817 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24818
24819 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24820 # resulting binary.
24821 hardcode_direct=$hardcode_direct_GCJ
24822
24823 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24824 # resulting binary.
24825 hardcode_minus_L=$hardcode_minus_L_GCJ
24826
24827 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24828 # the resulting binary.
24829 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24830
24831 # Set to yes if building a shared library automatically hardcodes DIR into the library
24832 # and all subsequent libraries and executables linked against it.
24833 hardcode_automatic=$hardcode_automatic_GCJ
24834
24835 # Variables whose values should be saved in libtool wrapper scripts and
24836 # restored at relink time.
24837 variables_saved_for_relink="$variables_saved_for_relink"
24838
24839 # Whether libtool must link a program against all its dependency libraries.
24840 link_all_deplibs=$link_all_deplibs_GCJ
24841
24842 # Compile-time system search path for libraries
24843 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24844
24845 # Run-time system search path for libraries
24846 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24847
24848 # Fix the shell variable \$srcfile for the compiler.
24849 fix_srcfile_path="$fix_srcfile_path_GCJ"
24850
24851 # Set to yes if exported symbols are required.
24852 always_export_symbols=$always_export_symbols_GCJ
24853
24854 # The commands to list exported symbols.
24855 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24856
24857 # The commands to extract the exported symbol list from a shared archive.
24858 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24859
24860 # Symbols that should not be listed in the preloaded symbols.
24861 exclude_expsyms=$lt_exclude_expsyms_GCJ
24862
24863 # Symbols that must always be exported.
24864 include_expsyms=$lt_include_expsyms_GCJ
24865
24866 # ### END LIBTOOL TAG CONFIG: $tagname
24867
24868 __EOF__
24869
24870
24871 else
24872   # If there is no Makefile yet, we rely on a make rule to execute
24873   # `config.status --recheck' to rerun these tests and create the
24874   # libtool script then.
24875   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24876   if test -f "$ltmain_in"; then
24877     test -f Makefile && make "$ltmain"
24878   fi
24879 fi
24880
24881
24882 ac_ext=c
24883 ac_cpp='$CPP $CPPFLAGS'
24884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24887
24888 CC="$lt_save_CC"
24889
24890         else
24891           tagname=""
24892         fi
24893         ;;
24894
24895       RC)
24896
24897
24898
24899 # Source file extension for RC test sources.
24900 ac_ext=rc
24901
24902 # Object file extension for compiled RC test sources.
24903 objext=o
24904 objext_RC=$objext
24905
24906 # Code to be used in simple compile tests
24907 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24908
24909 # Code to be used in simple link tests
24910 lt_simple_link_test_code="$lt_simple_compile_test_code"
24911
24912 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24913
24914 # If no C compiler was specified, use CC.
24915 LTCC=${LTCC-"$CC"}
24916
24917 # If no C compiler flags were specified, use CFLAGS.
24918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24919
24920 # Allow CC to be a program name with arguments.
24921 compiler=$CC
24922
24923
24924 # save warnings/boilerplate of simple test code
24925 ac_outfile=conftest.$ac_objext
24926 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24927 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24928 _lt_compiler_boilerplate=`cat conftest.err`
24929 $rm conftest*
24930
24931 ac_outfile=conftest.$ac_objext
24932 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24933 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24934 _lt_linker_boilerplate=`cat conftest.err`
24935 $rm conftest*
24936
24937
24938 # Allow CC to be a program name with arguments.
24939 lt_save_CC="$CC"
24940 CC=${RC-"windres"}
24941 compiler=$CC
24942 compiler_RC=$CC
24943 for cc_temp in $compiler""; do
24944   case $cc_temp in
24945     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24946     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24947     \-*) ;;
24948     *) break;;
24949   esac
24950 done
24951 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24952
24953 lt_cv_prog_compiler_c_o_RC=yes
24954
24955 # The else clause should only fire when bootstrapping the
24956 # libtool distribution, otherwise you forgot to ship ltmain.sh
24957 # with your package, and you will get complaints that there are
24958 # no rules to generate ltmain.sh.
24959 if test -f "$ltmain"; then
24960   # See if we are running on zsh, and set the options which allow our commands through
24961   # without removal of \ escapes.
24962   if test -n "${ZSH_VERSION+set}" ; then
24963     setopt NO_GLOB_SUBST
24964   fi
24965   # Now quote all the things that may contain metacharacters while being
24966   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24967   # variables and quote the copies for generation of the libtool script.
24968   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24969     SED SHELL STRIP \
24970     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24971     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24972     deplibs_check_method reload_flag reload_cmds need_locks \
24973     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24974     lt_cv_sys_global_symbol_to_c_name_address \
24975     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24976     old_postinstall_cmds old_postuninstall_cmds \
24977     compiler_RC \
24978     CC_RC \
24979     LD_RC \
24980     lt_prog_compiler_wl_RC \
24981     lt_prog_compiler_pic_RC \
24982     lt_prog_compiler_static_RC \
24983     lt_prog_compiler_no_builtin_flag_RC \
24984     export_dynamic_flag_spec_RC \
24985     thread_safe_flag_spec_RC \
24986     whole_archive_flag_spec_RC \
24987     enable_shared_with_static_runtimes_RC \
24988     old_archive_cmds_RC \
24989     old_archive_from_new_cmds_RC \
24990     predep_objects_RC \
24991     postdep_objects_RC \
24992     predeps_RC \
24993     postdeps_RC \
24994     compiler_lib_search_path_RC \
24995     archive_cmds_RC \
24996     archive_expsym_cmds_RC \
24997     postinstall_cmds_RC \
24998     postuninstall_cmds_RC \
24999     old_archive_from_expsyms_cmds_RC \
25000     allow_undefined_flag_RC \
25001     no_undefined_flag_RC \
25002     export_symbols_cmds_RC \
25003     hardcode_libdir_flag_spec_RC \
25004     hardcode_libdir_flag_spec_ld_RC \
25005     hardcode_libdir_separator_RC \
25006     hardcode_automatic_RC \
25007     module_cmds_RC \
25008     module_expsym_cmds_RC \
25009     lt_cv_prog_compiler_c_o_RC \
25010     exclude_expsyms_RC \
25011     include_expsyms_RC; do
25012
25013     case $var in
25014     old_archive_cmds_RC | \
25015     old_archive_from_new_cmds_RC | \
25016     archive_cmds_RC | \
25017     archive_expsym_cmds_RC | \
25018     module_cmds_RC | \
25019     module_expsym_cmds_RC | \
25020     old_archive_from_expsyms_cmds_RC | \
25021     export_symbols_cmds_RC | \
25022     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25023     postinstall_cmds | postuninstall_cmds | \
25024     old_postinstall_cmds | old_postuninstall_cmds | \
25025     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25026       # Double-quote double-evaled strings.
25027       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25028       ;;
25029     *)
25030       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25031       ;;
25032     esac
25033   done
25034
25035   case $lt_echo in
25036   *'\$0 --fallback-echo"')
25037     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25038     ;;
25039   esac
25040
25041 cfgfile="$ofile"
25042
25043   cat <<__EOF__ >> "$cfgfile"
25044 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25045
25046 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25047
25048 # Shell to use when invoking shell scripts.
25049 SHELL=$lt_SHELL
25050
25051 # Whether or not to build shared libraries.
25052 build_libtool_libs=$enable_shared
25053
25054 # Whether or not to build static libraries.
25055 build_old_libs=$enable_static
25056
25057 # Whether or not to add -lc for building shared libraries.
25058 build_libtool_need_lc=$archive_cmds_need_lc_RC
25059
25060 # Whether or not to disallow shared libs when runtime libs are static
25061 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25062
25063 # Whether or not to optimize for fast installation.
25064 fast_install=$enable_fast_install
25065
25066 # The host system.
25067 host_alias=$host_alias
25068 host=$host
25069 host_os=$host_os
25070
25071 # The build system.
25072 build_alias=$build_alias
25073 build=$build
25074 build_os=$build_os
25075
25076 # An echo program that does not interpret backslashes.
25077 echo=$lt_echo
25078
25079 # The archiver.
25080 AR=$lt_AR
25081 AR_FLAGS=$lt_AR_FLAGS
25082
25083 # A C compiler.
25084 LTCC=$lt_LTCC
25085
25086 # LTCC compiler flags.
25087 LTCFLAGS=$lt_LTCFLAGS
25088
25089 # A language-specific compiler.
25090 CC=$lt_compiler_RC
25091
25092 # Is the compiler the GNU C compiler?
25093 with_gcc=$GCC_RC
25094
25095 # An ERE matcher.
25096 EGREP=$lt_EGREP
25097
25098 # The linker used to build libraries.
25099 LD=$lt_LD_RC
25100
25101 # Whether we need hard or soft links.
25102 LN_S=$lt_LN_S
25103
25104 # A BSD-compatible nm program.
25105 NM=$lt_NM
25106
25107 # A symbol stripping program
25108 STRIP=$lt_STRIP
25109
25110 # Used to examine libraries when file_magic_cmd begins "file"
25111 MAGIC_CMD=$MAGIC_CMD
25112
25113 # Used on cygwin: DLL creation program.
25114 DLLTOOL="$DLLTOOL"
25115
25116 # Used on cygwin: object dumper.
25117 OBJDUMP="$OBJDUMP"
25118
25119 # Used on cygwin: assembler.
25120 AS="$AS"
25121
25122 # The name of the directory that contains temporary libtool files.
25123 objdir=$objdir
25124
25125 # How to create reloadable object files.
25126 reload_flag=$lt_reload_flag
25127 reload_cmds=$lt_reload_cmds
25128
25129 # How to pass a linker flag through the compiler.
25130 wl=$lt_lt_prog_compiler_wl_RC
25131
25132 # Object file suffix (normally "o").
25133 objext="$ac_objext"
25134
25135 # Old archive suffix (normally "a").
25136 libext="$libext"
25137
25138 # Shared library suffix (normally ".so").
25139 shrext_cmds='$shrext_cmds'
25140
25141 # Executable file suffix (normally "").
25142 exeext="$exeext"
25143
25144 # Additional compiler flags for building library objects.
25145 pic_flag=$lt_lt_prog_compiler_pic_RC
25146 pic_mode=$pic_mode
25147
25148 # What is the maximum length of a command?
25149 max_cmd_len=$lt_cv_sys_max_cmd_len
25150
25151 # Does compiler simultaneously support -c and -o options?
25152 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25153
25154 # Must we lock files when doing compilation?
25155 need_locks=$lt_need_locks
25156
25157 # Do we need the lib prefix for modules?
25158 need_lib_prefix=$need_lib_prefix
25159
25160 # Do we need a version for libraries?
25161 need_version=$need_version
25162
25163 # Whether dlopen is supported.
25164 dlopen_support=$enable_dlopen
25165
25166 # Whether dlopen of programs is supported.
25167 dlopen_self=$enable_dlopen_self
25168
25169 # Whether dlopen of statically linked programs is supported.
25170 dlopen_self_static=$enable_dlopen_self_static
25171
25172 # Compiler flag to prevent dynamic linking.
25173 link_static_flag=$lt_lt_prog_compiler_static_RC
25174
25175 # Compiler flag to turn off builtin functions.
25176 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25177
25178 # Compiler flag to allow reflexive dlopens.
25179 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25180
25181 # Compiler flag to generate shared objects directly from archives.
25182 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25183
25184 # Compiler flag to generate thread-safe objects.
25185 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25186
25187 # Library versioning type.
25188 version_type=$version_type
25189
25190 # Format of library name prefix.
25191 libname_spec=$lt_libname_spec
25192
25193 # List of archive names.  First name is the real one, the rest are links.
25194 # The last name is the one that the linker finds with -lNAME.
25195 library_names_spec=$lt_library_names_spec
25196
25197 # The coded name of the library, if different from the real name.
25198 soname_spec=$lt_soname_spec
25199
25200 # Commands used to build and install an old-style archive.
25201 RANLIB=$lt_RANLIB
25202 old_archive_cmds=$lt_old_archive_cmds_RC
25203 old_postinstall_cmds=$lt_old_postinstall_cmds
25204 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25205
25206 # Create an old-style archive from a shared archive.
25207 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25208
25209 # Create a temporary old-style archive to link instead of a shared archive.
25210 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25211
25212 # Commands used to build and install a shared archive.
25213 archive_cmds=$lt_archive_cmds_RC
25214 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25215 postinstall_cmds=$lt_postinstall_cmds
25216 postuninstall_cmds=$lt_postuninstall_cmds
25217
25218 # Commands used to build a loadable module (assumed same as above if empty)
25219 module_cmds=$lt_module_cmds_RC
25220 module_expsym_cmds=$lt_module_expsym_cmds_RC
25221
25222 # Commands to strip libraries.
25223 old_striplib=$lt_old_striplib
25224 striplib=$lt_striplib
25225
25226 # Dependencies to place before the objects being linked to create a
25227 # shared library.
25228 predep_objects=$lt_predep_objects_RC
25229
25230 # Dependencies to place after the objects being linked to create a
25231 # shared library.
25232 postdep_objects=$lt_postdep_objects_RC
25233
25234 # Dependencies to place before the objects being linked to create a
25235 # shared library.
25236 predeps=$lt_predeps_RC
25237
25238 # Dependencies to place after the objects being linked to create a
25239 # shared library.
25240 postdeps=$lt_postdeps_RC
25241
25242 # The library search path used internally by the compiler when linking
25243 # a shared library.
25244 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25245
25246 # Method to check whether dependent libraries are shared objects.
25247 deplibs_check_method=$lt_deplibs_check_method
25248
25249 # Command to use when deplibs_check_method == file_magic.
25250 file_magic_cmd=$lt_file_magic_cmd
25251
25252 # Flag that allows shared libraries with undefined symbols to be built.
25253 allow_undefined_flag=$lt_allow_undefined_flag_RC
25254
25255 # Flag that forces no undefined symbols.
25256 no_undefined_flag=$lt_no_undefined_flag_RC
25257
25258 # Commands used to finish a libtool library installation in a directory.
25259 finish_cmds=$lt_finish_cmds
25260
25261 # Same as above, but a single script fragment to be evaled but not shown.
25262 finish_eval=$lt_finish_eval
25263
25264 # Take the output of nm and produce a listing of raw symbols and C names.
25265 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25266
25267 # Transform the output of nm in a proper C declaration
25268 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25269
25270 # Transform the output of nm in a C name address pair
25271 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25272
25273 # This is the shared library runtime path variable.
25274 runpath_var=$runpath_var
25275
25276 # This is the shared library path variable.
25277 shlibpath_var=$shlibpath_var
25278
25279 # Is shlibpath searched before the hard-coded library search path?
25280 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25281
25282 # How to hardcode a shared library path into an executable.
25283 hardcode_action=$hardcode_action_RC
25284
25285 # Whether we should hardcode library paths into libraries.
25286 hardcode_into_libs=$hardcode_into_libs
25287
25288 # Flag to hardcode \$libdir into a binary during linking.
25289 # This must work even if \$libdir does not exist.
25290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25291
25292 # If ld is used when linking, flag to hardcode \$libdir into
25293 # a binary during linking. This must work even if \$libdir does
25294 # not exist.
25295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25296
25297 # Whether we need a single -rpath flag with a separated argument.
25298 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25299
25300 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25301 # resulting binary.
25302 hardcode_direct=$hardcode_direct_RC
25303
25304 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25305 # resulting binary.
25306 hardcode_minus_L=$hardcode_minus_L_RC
25307
25308 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25309 # the resulting binary.
25310 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25311
25312 # Set to yes if building a shared library automatically hardcodes DIR into the library
25313 # and all subsequent libraries and executables linked against it.
25314 hardcode_automatic=$hardcode_automatic_RC
25315
25316 # Variables whose values should be saved in libtool wrapper scripts and
25317 # restored at relink time.
25318 variables_saved_for_relink="$variables_saved_for_relink"
25319
25320 # Whether libtool must link a program against all its dependency libraries.
25321 link_all_deplibs=$link_all_deplibs_RC
25322
25323 # Compile-time system search path for libraries
25324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25325
25326 # Run-time system search path for libraries
25327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25328
25329 # Fix the shell variable \$srcfile for the compiler.
25330 fix_srcfile_path="$fix_srcfile_path_RC"
25331
25332 # Set to yes if exported symbols are required.
25333 always_export_symbols=$always_export_symbols_RC
25334
25335 # The commands to list exported symbols.
25336 export_symbols_cmds=$lt_export_symbols_cmds_RC
25337
25338 # The commands to extract the exported symbol list from a shared archive.
25339 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25340
25341 # Symbols that should not be listed in the preloaded symbols.
25342 exclude_expsyms=$lt_exclude_expsyms_RC
25343
25344 # Symbols that must always be exported.
25345 include_expsyms=$lt_include_expsyms_RC
25346
25347 # ### END LIBTOOL TAG CONFIG: $tagname
25348
25349 __EOF__
25350
25351
25352 else
25353   # If there is no Makefile yet, we rely on a make rule to execute
25354   # `config.status --recheck' to rerun these tests and create the
25355   # libtool script then.
25356   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25357   if test -f "$ltmain_in"; then
25358     test -f Makefile && make "$ltmain"
25359   fi
25360 fi
25361
25362
25363 ac_ext=c
25364 ac_cpp='$CPP $CPPFLAGS'
25365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25368
25369 CC="$lt_save_CC"
25370
25371         ;;
25372
25373       *)
25374         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25375 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25376    { (exit 1); exit 1; }; }
25377         ;;
25378       esac
25379
25380       # Append the new tag name to the list of available tags.
25381       if test -n "$tagname" ; then
25382       available_tags="$available_tags $tagname"
25383     fi
25384     fi
25385   done
25386   IFS="$lt_save_ifs"
25387
25388   # Now substitute the updated list of available tags.
25389   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25390     mv "${ofile}T" "$ofile"
25391     chmod +x "$ofile"
25392   else
25393     rm -f "${ofile}T"
25394     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25395 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25396    { (exit 1); exit 1; }; }
25397   fi
25398 fi
25399
25400
25401
25402 # This can be used to rebuild libtool when needed
25403 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25404
25405 # Always use our own libtool.
25406 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
25407
25408 # Prevent multiple expansion
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432         echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
25433 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6
25434
25435 # Check whether --with-vrootdir or --without-vrootdir was given.
25436 if test "${with_vrootdir+set}" = set; then
25437   withval="$with_vrootdir"
25438   case "$withval" in
25439                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
25440 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
25441    { (exit 1); exit 1; }; };;
25442                         *)      ensc_uv_path_vrootdir=$withval;;
25443                      esac
25444 else
25445   ensc_uv_path_vrootdir=/vservers
25446 fi;
25447         echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
25448 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6
25449
25450         if test x"vserverdir" != x; then
25451                 vserverdir=$ensc_uv_path_vrootdir
25452
25453         fi
25454
25455
25456         for ac_prog in svn2cl
25457 do
25458   # Extract the first word of "$ac_prog", so it can be a program name with args.
25459 set dummy $ac_prog; ac_word=$2
25460 echo "$as_me:$LINENO: checking for $ac_word" >&5
25461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25462 if test "${ac_cv_prog_SVN2CL+set}" = set; then
25463   echo $ECHO_N "(cached) $ECHO_C" >&6
25464 else
25465   if test -n "$SVN2CL"; then
25466   ac_cv_prog_SVN2CL="$SVN2CL" # Let the user override the test.
25467 else
25468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25469 for as_dir in $PATH
25470 do
25471   IFS=$as_save_IFS
25472   test -z "$as_dir" && as_dir=.
25473   for ac_exec_ext in '' $ac_executable_extensions; do
25474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25475     ac_cv_prog_SVN2CL="$ac_prog"
25476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25477     break 2
25478   fi
25479 done
25480 done
25481
25482 fi
25483 fi
25484 SVN2CL=$ac_cv_prog_SVN2CL
25485 if test -n "$SVN2CL"; then
25486   echo "$as_me:$LINENO: result: $SVN2CL" >&5
25487 echo "${ECHO_T}$SVN2CL" >&6
25488 else
25489   echo "$as_me:$LINENO: result: no" >&5
25490 echo "${ECHO_T}no" >&6
25491 fi
25492
25493   test -n "$SVN2CL" && break
25494 done
25495
25496
25497
25498 if test x"$SVN2CL" != x; then
25499   HAVE_SVN2CL_TRUE=
25500   HAVE_SVN2CL_FALSE='#'
25501 else
25502   HAVE_SVN2CL_TRUE='#'
25503   HAVE_SVN2CL_FALSE=
25504 fi
25505
25506
25507
25508
25509 echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
25510 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6
25511 # Check whether --enable-internal-headers or --disable-internal-headers was given.
25512 if test "${enable_internal_headers+set}" = set; then
25513   enableval="$enable_internal_headers"
25514   case "$enableval" in
25515                   (yes|no) ;;
25516                   (*)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
25517 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
25518    { (exit 1); exit 1; }; };;
25519                esac
25520 else
25521   enable_internal_headers=yes
25522 fi;
25523
25524
25525
25526 if test x"$enable_internal_headers" = xyes; then
25527   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
25528   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
25529 else
25530   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
25531   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
25532 fi
25533
25534 echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
25535 echo "${ECHO_T}$enable_internal_headers" >&6
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558 echo "$as_me:$LINENO: checking for supported APIs" >&5
25559 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6
25560 # Check whether --enable-apis or --disable-apis was given.
25561 if test "${enable_apis+set}" = set; then
25562   enableval="$enable_apis"
25563
25564 else
25565   enable_apis=v13,net,v21
25566 fi;
25567
25568 test x"$enable_apis" != xALL      || enable_apis='legacy,compat,v11,fscompat,v13obs,v13,net,v21'
25569 test x"$enable_apis" != xNOLEGACY || enable_apis='compat,v11,fscompat,v13,net,v21'
25570 enable_api_oldproc=
25571 enable_api_olduts=
25572 old_IFS=$IFS
25573 IFS=,;
25574
25575 for i in $enable_apis; do
25576         case "$i" in
25577                 (compat)        cat >>confdefs.h <<\_ACEOF
25578 #define VC_ENABLE_API_COMPAT 1
25579 _ACEOF
25580
25581                                 enable_api_oldproc=${enable_api_oldproc:-1}
25582                                 enable_api_olduts=${enable_api_olduts:-1}
25583                                 ;;
25584                 (legacy)        cat >>confdefs.h <<\_ACEOF
25585 #define VC_ENABLE_API_LEGACY 1
25586 _ACEOF
25587
25588                                 enable_api_oldproc=${enable_api_oldproc:-1}
25589                                 enable_api_olduts=${enable_api_olduts:-1}
25590                                 ;;
25591                 (v11)           cat >>confdefs.h <<\_ACEOF
25592 #define VC_ENABLE_API_V11 1
25593 _ACEOF
25594
25595                                 enable_api_oldproc=${enable_api_oldproc:-1}
25596                                 enable_api_olduts=${enable_api_olduts:-1}
25597                                 ;;
25598                 (fscompat)      cat >>confdefs.h <<\_ACEOF
25599 #define VC_ENABLE_API_FSCOMPAT 1
25600 _ACEOF
25601 ;;
25602                 (v13obs)        cat >>confdefs.h <<\_ACEOF
25603 #define VC_ENABLE_API_V13OBS 1
25604 _ACEOF
25605
25606                                 cat >>confdefs.h <<\_ACEOF
25607 #define VC_ENABLE_API_V13 1
25608 _ACEOF
25609 ;;
25610                 (v13)           cat >>confdefs.h <<\_ACEOF
25611 #define VC_ENABLE_API_V13 1
25612 _ACEOF
25613 ;;
25614                 (net)           cat >>confdefs.h <<\_ACEOF
25615 #define VC_ENABLE_API_NET 1
25616 _ACEOF
25617 ;;
25618                 (v21)           cat >>confdefs.h <<\_ACEOF
25619 #define VC_ENABLE_API_V21 1
25620 _ACEOF
25621 ;;
25622                 (oldproc)       enable_api_oldproc=2;;
25623                 (olduts)        enable_api_olduts=2;;
25624                 (*)             { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
25625 echo "$as_me: error: '$i' is not a supported API" >&2;}
25626    { (exit 1); exit 1; }; };;
25627         esac
25628 done
25629 IFS=$old_IFS
25630 if test x"$enable_api_oldproc" != x; then
25631         cat >>confdefs.h <<\_ACEOF
25632 #define VC_ENABLE_API_OLDPROC 1
25633 _ACEOF
25634
25635         test x"$enable_api_oldproc" != x2 && enable_apis="$enable_apis,oldproc"
25636 fi
25637 if test x"$enable_api_olduts" != x; then
25638         cat >>confdefs.h <<\_ACEOF
25639 #define VC_ENABLE_API_OLDUTS 1
25640 _ACEOF
25641
25642         test x"$enable_api_olduts" != x2 && enable_apis="$enable_apis,olduts"
25643 fi
25644 echo "$as_me:$LINENO: result: $enable_apis" >&5
25645 echo "${ECHO_T}$enable_apis" >&6
25646
25647
25648
25649
25650
25651
25652         echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
25653 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6
25654 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
25655   echo $ECHO_N "(cached) $ECHO_C" >&6
25656 else
25657
25658                 ac_ext=c
25659 ac_cpp='$CPP $CPPFLAGS'
25660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25663
25664                 cat >conftest.$ac_ext <<_ACEOF
25665
25666 #ifdef ENSC_SYSCALL_FALLBACK
25667 #  include ENSC_SYSCALL_FALLBACK
25668 #else
25669 #  include <asm/unistd.h>
25670 #endif
25671 #ifdef __NR_vserver
25672 ensc_syscall_tmp_nr=__NR_vserver;
25673 ensc_syscall_tmp_src=ENSC_MARK
25674 #endif
25675
25676 _ACEOF
25677                 ensc_syscall_tmp_nr=
25678                 ensc_syscall_tmp_src=
25679                 test x"$ensc_syscall_tmp_nr" != x || \
25680                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                    conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
25681                 test x"$ensc_syscall_tmp_nr" != x -o x'lib/syscall-fallback.h' = x || \
25682                         eval $($CPP $CPPFLAGS -D ENSC_MARK='fallback' -D ENSC_SYSCALL_FALLBACK='"lib/syscall-fallback.h"' conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
25683                 test "$ensc_syscall_tmp_nr" || {
25684                         ensc_syscall_tmp_nr=273
25685                         ensc_syscall_tmp_src=default
25686                 }
25687
25688                 if test x"$ensc_syscall_tmp_nr" = x; then
25689                         { { echo "$as_me:$LINENO: error: Can not determine value of __NR_vserver; please verify your glibc/kernelheaders, and/or set CPPFLAGS='-D__NR_vserver=<value>' environment when calling configure." >&5
25690 echo "$as_me: error: Can not determine value of __NR_vserver; please verify your glibc/kernelheaders, and/or set CPPFLAGS='-D__NR_vserver=<value>' environment when calling configure." >&2;}
25691    { (exit 1); exit 1; }; }
25692                 fi
25693                 ac_ext=c
25694 ac_cpp='$CPP $CPPFLAGS'
25695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25698
25699
25700                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
25701
25702 fi
25703 echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
25704 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6
25705
25706         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
25707         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
25708
25709         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
25710
25711 cat >>confdefs.h <<_ACEOF
25712 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
25713 _ACEOF
25714
25715         fi
25716
25717
25718
25719
25720         echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
25721 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6
25722
25723 # Check whether --with-syscall or --without-syscall was given.
25724 if test "${with_syscall+set}" = set; then
25725   withval="$with_syscall"
25726
25727 else
25728   with_syscall=auto
25729 fi;
25730         echo "$as_me:$LINENO: result: $with_syscall" >&5
25731 echo "${ECHO_T}$with_syscall" >&6
25732
25733         case x"$with_syscall" in
25734             (xauto)
25735                 echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
25736 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6
25737 if test "${ensc_cv_test_syscall+set}" = set; then
25738   echo $ECHO_N "(cached) $ECHO_C" >&6
25739 else
25740
25741                                 ac_ext=c
25742 ac_cpp='$CPP $CPPFLAGS'
25743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25746
25747                                 cat >conftest.$ac_ext <<_ACEOF
25748 /* confdefs.h.  */
25749 _ACEOF
25750 cat confdefs.h >>conftest.$ac_ext
25751 cat >>conftest.$ac_ext <<_ACEOF
25752 /* end confdefs.h.  */
25753
25754 #include "$srcdir/lib/syscall-wrap.h"
25755 #include <errno.h>
25756
25757 #define __NR_foo0       300
25758 #define __NR_foo1       301
25759 #define __NR_foo2       302
25760 #define __NR_foo3       303
25761 #define __NR_foo4       304
25762 #define __NR_foo5       305
25763 inline static _syscall0(int, foo0)
25764 inline static _syscall1(int, foo1, int, a)
25765 inline static _syscall2(int, foo2, int, a, int, b)
25766 inline static _syscall3(int, foo3, int, a, int, b, int, c)
25767 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
25768 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
25769
25770 int main() {
25771   return foo0() || \
25772          foo1(1) || \
25773          foo2(1,2) || \
25774          foo3(1,2,3) || \
25775          foo4(1,2,3,4) || \
25776          foo5(1,2,3,4,5);
25777 }
25778
25779 _ACEOF
25780 rm -f conftest.$ac_objext
25781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25782   (eval $ac_compile) 2>conftest.er1
25783   ac_status=$?
25784   grep -v '^ *+' conftest.er1 >conftest.err
25785   rm -f conftest.er1
25786   cat conftest.err >&5
25787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788   (exit $ac_status); } &&
25789          { ac_try='test -z "$ac_c_werror_flag"
25790                          || test ! -s conftest.err'
25791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25792   (eval $ac_try) 2>&5
25793   ac_status=$?
25794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795   (exit $ac_status); }; } &&
25796          { ac_try='test -s conftest.$ac_objext'
25797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798   (eval $ac_try) 2>&5
25799   ac_status=$?
25800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); }; }; then
25802   ensc_cv_test_syscall=fast
25803 else
25804   echo "$as_me: failed program was:" >&5
25805 sed 's/^/| /' conftest.$ac_ext >&5
25806
25807 ensc_cv_test_syscall=traditional
25808 fi
25809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25810
25811                                 ac_ext=c
25812 ac_cpp='$CPP $CPPFLAGS'
25813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25816
25817
25818 fi
25819 echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
25820 echo "${ECHO_T}$ensc_cv_test_syscall" >&6
25821                 with_syscall=$ensc_cv_test_syscall
25822                 ;;
25823             (xfast|xtraditional)
25824                 ;;
25825             *)
25826                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
25827 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
25828    { (exit 1); exit 1; }; }
25829                 ;;
25830         esac
25831
25832         if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
25833             with_syscall='alternative'
25834         fi
25835
25836         if test x"$with_syscall" = xtraditional; then
25837
25838 cat >>confdefs.h <<\_ACEOF
25839 #define ENSC_SYSCALL_TRADITIONAL 1
25840 _ACEOF
25841
25842         fi
25843
25844
25845
25846
25847
25848
25849     ac_ext=cc
25850 ac_cpp='$CXXCPP $CPPFLAGS'
25851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25854
25855     echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
25856 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6
25857 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
25858   echo $ECHO_N "(cached) $ECHO_C" >&6
25859 else
25860
25861         cat >conftest.$ac_ext <<_ACEOF
25862 /* confdefs.h.  */
25863 _ACEOF
25864 cat confdefs.h >>conftest.$ac_ext
25865 cat >>conftest.$ac_ext <<_ACEOF
25866 /* end confdefs.h.  */
25867 #include <ext2fs/ext2_fs.h>
25868                                           int main() { return 0; }
25869 _ACEOF
25870 rm -f conftest.$ac_objext
25871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25872   (eval $ac_compile) 2>conftest.er1
25873   ac_status=$?
25874   grep -v '^ *+' conftest.er1 >conftest.err
25875   rm -f conftest.er1
25876   cat conftest.err >&5
25877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878   (exit $ac_status); } &&
25879          { ac_try='test -z "$ac_cxx_werror_flag"
25880                          || test ! -s conftest.err'
25881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25882   (eval $ac_try) 2>&5
25883   ac_status=$?
25884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885   (exit $ac_status); }; } &&
25886          { ac_try='test -s conftest.$ac_objext'
25887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25888   (eval $ac_try) 2>&5
25889   ac_status=$?
25890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891   (exit $ac_status); }; }; then
25892   ensc_cv_test_ext2fs_header=e2fsprogs
25893 else
25894   echo "$as_me: failed program was:" >&5
25895 sed 's/^/| /' conftest.$ac_ext >&5
25896
25897
25898         cat >conftest.$ac_ext <<_ACEOF
25899 /* confdefs.h.  */
25900 _ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h.  */
25904 #include <linux/ext2_fs.h>
25905                                           int main() { return 0; }
25906 _ACEOF
25907 rm -f conftest.$ac_objext
25908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25909   (eval $ac_compile) 2>conftest.er1
25910   ac_status=$?
25911   grep -v '^ *+' conftest.er1 >conftest.err
25912   rm -f conftest.er1
25913   cat conftest.err >&5
25914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915   (exit $ac_status); } &&
25916          { ac_try='test -z "$ac_cxx_werror_flag"
25917                          || test ! -s conftest.err'
25918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919   (eval $ac_try) 2>&5
25920   ac_status=$?
25921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922   (exit $ac_status); }; } &&
25923          { ac_try='test -s conftest.$ac_objext'
25924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25925   (eval $ac_try) 2>&5
25926   ac_status=$?
25927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928   (exit $ac_status); }; }; then
25929   ensc_cv_test_ext2fs_header=kernel
25930 else
25931   echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25933
25934
25935         ensc_cv_test_ext2fs_header=none
25936 fi
25937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25938 fi
25939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25940 fi
25941 echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
25942 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6
25943
25944     case x"$ensc_cv_test_ext2fs_header" in
25945         (xe2fsprogs)
25946                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
25947   echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
25948 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
25949 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
25950   echo $ECHO_N "(cached) $ECHO_C" >&6
25951 fi
25952 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
25953 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
25954 else
25955   # Is the header compilable?
25956 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
25957 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6
25958 cat >conftest.$ac_ext <<_ACEOF
25959 /* confdefs.h.  */
25960 _ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h.  */
25964 $ac_includes_default
25965 #include <ext2fs/ext2_fs.h>
25966 _ACEOF
25967 rm -f conftest.$ac_objext
25968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25969   (eval $ac_compile) 2>conftest.er1
25970   ac_status=$?
25971   grep -v '^ *+' conftest.er1 >conftest.err
25972   rm -f conftest.er1
25973   cat conftest.err >&5
25974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975   (exit $ac_status); } &&
25976          { ac_try='test -z "$ac_cxx_werror_flag"
25977                          || test ! -s conftest.err'
25978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25979   (eval $ac_try) 2>&5
25980   ac_status=$?
25981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982   (exit $ac_status); }; } &&
25983          { ac_try='test -s conftest.$ac_objext'
25984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25985   (eval $ac_try) 2>&5
25986   ac_status=$?
25987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988   (exit $ac_status); }; }; then
25989   ac_header_compiler=yes
25990 else
25991   echo "$as_me: failed program was:" >&5
25992 sed 's/^/| /' conftest.$ac_ext >&5
25993
25994 ac_header_compiler=no
25995 fi
25996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25998 echo "${ECHO_T}$ac_header_compiler" >&6
25999
26000 # Is the header present?
26001 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
26002 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6
26003 cat >conftest.$ac_ext <<_ACEOF
26004 /* confdefs.h.  */
26005 _ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h.  */
26009 #include <ext2fs/ext2_fs.h>
26010 _ACEOF
26011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26013   ac_status=$?
26014   grep -v '^ *+' conftest.er1 >conftest.err
26015   rm -f conftest.er1
26016   cat conftest.err >&5
26017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018   (exit $ac_status); } >/dev/null; then
26019   if test -s conftest.err; then
26020     ac_cpp_err=$ac_cxx_preproc_warn_flag
26021     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26022   else
26023     ac_cpp_err=
26024   fi
26025 else
26026   ac_cpp_err=yes
26027 fi
26028 if test -z "$ac_cpp_err"; then
26029   ac_header_preproc=yes
26030 else
26031   echo "$as_me: failed program was:" >&5
26032 sed 's/^/| /' conftest.$ac_ext >&5
26033
26034   ac_header_preproc=no
26035 fi
26036 rm -f conftest.err conftest.$ac_ext
26037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26038 echo "${ECHO_T}$ac_header_preproc" >&6
26039
26040 # So?  What about this header?
26041 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26042   yes:no: )
26043     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26044 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26045     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
26046 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
26047     ac_header_preproc=yes
26048     ;;
26049   no:yes:* )
26050     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
26051 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
26052     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
26053 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26054     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
26055 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
26056     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26057 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26058     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
26059 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26060     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
26061 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26062     (
26063       cat <<\_ASBOX
26064 ## --------------------------------------------- ##
26065 ## Report this to vserver@list.linux-vserver.org ##
26066 ## --------------------------------------------- ##
26067 _ASBOX
26068     ) |
26069       sed "s/^/$as_me: WARNING:     /" >&2
26070     ;;
26071 esac
26072 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26073 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26074 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26075   echo $ECHO_N "(cached) $ECHO_C" >&6
26076 else
26077   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
26078 fi
26079 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26080 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26081
26082 fi
26083 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
26084
26085 cat >>confdefs.h <<\_ACEOF
26086 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
26087 _ACEOF
26088
26089 else
26090   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26091 See \`config.log' for more details." >&5
26092 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26093 See \`config.log' for more details." >&2;}
26094    { (exit 1); exit 1; }; }
26095 fi
26096
26097
26098                 ;;
26099         (xkernel)
26100                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26101   echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26102 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26103 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26104   echo $ECHO_N "(cached) $ECHO_C" >&6
26105 fi
26106 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26107 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26108 else
26109   # Is the header compilable?
26110 echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
26111 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6
26112 cat >conftest.$ac_ext <<_ACEOF
26113 /* confdefs.h.  */
26114 _ACEOF
26115 cat confdefs.h >>conftest.$ac_ext
26116 cat >>conftest.$ac_ext <<_ACEOF
26117 /* end confdefs.h.  */
26118 $ac_includes_default
26119 #include <linux/ext2_fs.h>
26120 _ACEOF
26121 rm -f conftest.$ac_objext
26122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26123   (eval $ac_compile) 2>conftest.er1
26124   ac_status=$?
26125   grep -v '^ *+' conftest.er1 >conftest.err
26126   rm -f conftest.er1
26127   cat conftest.err >&5
26128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129   (exit $ac_status); } &&
26130          { ac_try='test -z "$ac_cxx_werror_flag"
26131                          || test ! -s conftest.err'
26132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133   (eval $ac_try) 2>&5
26134   ac_status=$?
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); }; } &&
26137          { ac_try='test -s conftest.$ac_objext'
26138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139   (eval $ac_try) 2>&5
26140   ac_status=$?
26141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142   (exit $ac_status); }; }; then
26143   ac_header_compiler=yes
26144 else
26145   echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26147
26148 ac_header_compiler=no
26149 fi
26150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26152 echo "${ECHO_T}$ac_header_compiler" >&6
26153
26154 # Is the header present?
26155 echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
26156 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6
26157 cat >conftest.$ac_ext <<_ACEOF
26158 /* confdefs.h.  */
26159 _ACEOF
26160 cat confdefs.h >>conftest.$ac_ext
26161 cat >>conftest.$ac_ext <<_ACEOF
26162 /* end confdefs.h.  */
26163 #include <linux/ext2_fs.h>
26164 _ACEOF
26165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26167   ac_status=$?
26168   grep -v '^ *+' conftest.er1 >conftest.err
26169   rm -f conftest.er1
26170   cat conftest.err >&5
26171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172   (exit $ac_status); } >/dev/null; then
26173   if test -s conftest.err; then
26174     ac_cpp_err=$ac_cxx_preproc_warn_flag
26175     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26176   else
26177     ac_cpp_err=
26178   fi
26179 else
26180   ac_cpp_err=yes
26181 fi
26182 if test -z "$ac_cpp_err"; then
26183   ac_header_preproc=yes
26184 else
26185   echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26187
26188   ac_header_preproc=no
26189 fi
26190 rm -f conftest.err conftest.$ac_ext
26191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26192 echo "${ECHO_T}$ac_header_preproc" >&6
26193
26194 # So?  What about this header?
26195 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26196   yes:no: )
26197     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26198 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26199     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
26200 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
26201     ac_header_preproc=yes
26202     ;;
26203   no:yes:* )
26204     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
26205 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
26206     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
26207 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26208     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
26209 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
26210     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26211 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26212     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
26213 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26214     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
26215 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26216     (
26217       cat <<\_ASBOX
26218 ## --------------------------------------------- ##
26219 ## Report this to vserver@list.linux-vserver.org ##
26220 ## --------------------------------------------- ##
26221 _ASBOX
26222     ) |
26223       sed "s/^/$as_me: WARNING:     /" >&2
26224     ;;
26225 esac
26226 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26227 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26228 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26229   echo $ECHO_N "(cached) $ECHO_C" >&6
26230 else
26231   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
26232 fi
26233 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26234 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26235
26236 fi
26237 if test $ac_cv_header_linux_ext2_fs_h = yes; then
26238
26239 cat >>confdefs.h <<\_ACEOF
26240 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
26241 _ACEOF
26242
26243 else
26244   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
26245 See \`config.log' for more details." >&5
26246 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
26247 See \`config.log' for more details." >&2;}
26248    { (exit 1); exit 1; }; }
26249 fi
26250
26251
26252                 ;;
26253         (*)
26254                 { { echo "$as_me:$LINENO: error:
26255 ext2fs headers were not found, or they are not usable. This can have
26256 the following reasons:
26257
26258 * you have neither the e2fsprogs nor the kernel headers installed
26259
26260 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26261   and you do not have e2fsprogs headers installed; please try to install
26262   - e2fsprogs-devel (for Red Hat), or
26263   - lib*ext2fs2-devel (for Mandriva), or
26264   - e2fslibs-dev (for Debian)
26265   in this case.
26266
26267 * kernel headers are broken and your e2fsprogs headers are too old;
26268   until version 1.27 (inclusive), they are using reserved C++ keywords
26269
26270 * kernel headers are broken and your e2fsprogs headers are too new;
26271   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26272   C++, for details and a solution see
26273   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26274
26275
26276 In the latter two cases you have the following options:
26277 * fix the headers manually, or
26278 * install a stable version of e2fsprogs (e.g. 1.34), or
26279 * use good kernel headers (from linux 2.4.x)
26280
26281 See \`config.log' for more details." >&5
26282 echo "$as_me: error:
26283 ext2fs headers were not found, or they are not usable. This can have
26284 the following reasons:
26285
26286 * you have neither the e2fsprogs nor the kernel headers installed
26287
26288 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26289   and you do not have e2fsprogs headers installed; please try to install
26290   - e2fsprogs-devel (for Red Hat), or
26291   - lib*ext2fs2-devel (for Mandriva), or
26292   - e2fslibs-dev (for Debian)
26293   in this case.
26294
26295 * kernel headers are broken and your e2fsprogs headers are too old;
26296   until version 1.27 (inclusive), they are using reserved C++ keywords
26297
26298 * kernel headers are broken and your e2fsprogs headers are too new;
26299   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26300   C++, for details and a solution see
26301   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26302
26303
26304 In the latter two cases you have the following options:
26305 * fix the headers manually, or
26306 * install a stable version of e2fsprogs (e.g. 1.34), or
26307 * use good kernel headers (from linux 2.4.x)
26308
26309 See \`config.log' for more details." >&2;}
26310    { (exit 1); exit 1; }; }
26311                 ;;
26312     esac
26313     ac_ext=c
26314 ac_cpp='$CPP $CPPFLAGS'
26315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26318
26319
26320
26321 for ac_func in vserver
26322 do
26323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26324 echo "$as_me:$LINENO: checking for $ac_func" >&5
26325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26326 if eval "test \"\${$as_ac_var+set}\" = set"; then
26327   echo $ECHO_N "(cached) $ECHO_C" >&6
26328 else
26329   cat >conftest.$ac_ext <<_ACEOF
26330 /* confdefs.h.  */
26331 _ACEOF
26332 cat confdefs.h >>conftest.$ac_ext
26333 cat >>conftest.$ac_ext <<_ACEOF
26334 /* end confdefs.h.  */
26335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26337 #define $ac_func innocuous_$ac_func
26338
26339 /* System header to define __stub macros and hopefully few prototypes,
26340     which can conflict with char $ac_func (); below.
26341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26342     <limits.h> exists even on freestanding compilers.  */
26343
26344 #ifdef __STDC__
26345 # include <limits.h>
26346 #else
26347 # include <assert.h>
26348 #endif
26349
26350 #undef $ac_func
26351
26352 /* Override any gcc2 internal prototype to avoid an error.  */
26353 #ifdef __cplusplus
26354 extern "C"
26355 {
26356 #endif
26357 /* We use char because int might match the return type of a gcc2
26358    builtin and then its argument prototype would still apply.  */
26359 char $ac_func ();
26360 /* The GNU C library defines this for functions which it implements
26361     to always fail with ENOSYS.  Some functions are actually named
26362     something starting with __ and the normal name is an alias.  */
26363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26364 choke me
26365 #else
26366 char (*f) () = $ac_func;
26367 #endif
26368 #ifdef __cplusplus
26369 }
26370 #endif
26371
26372 int
26373 main ()
26374 {
26375 return f != $ac_func;
26376   ;
26377   return 0;
26378 }
26379 _ACEOF
26380 rm -f conftest.$ac_objext conftest$ac_exeext
26381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26382   (eval $ac_link) 2>conftest.er1
26383   ac_status=$?
26384   grep -v '^ *+' conftest.er1 >conftest.err
26385   rm -f conftest.er1
26386   cat conftest.err >&5
26387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388   (exit $ac_status); } &&
26389          { ac_try='test -z "$ac_c_werror_flag"
26390                          || test ! -s conftest.err'
26391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26392   (eval $ac_try) 2>&5
26393   ac_status=$?
26394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); }; } &&
26396          { ac_try='test -s conftest$ac_exeext'
26397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398   (eval $ac_try) 2>&5
26399   ac_status=$?
26400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401   (exit $ac_status); }; }; then
26402   eval "$as_ac_var=yes"
26403 else
26404   echo "$as_me: failed program was:" >&5
26405 sed 's/^/| /' conftest.$ac_ext >&5
26406
26407 eval "$as_ac_var=no"
26408 fi
26409 rm -f conftest.err conftest.$ac_objext \
26410       conftest$ac_exeext conftest.$ac_ext
26411 fi
26412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26414 if test `eval echo '${'$as_ac_var'}'` = yes; then
26415   cat >>confdefs.h <<_ACEOF
26416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26417 _ACEOF
26418
26419 fi
26420 done
26421
26422 echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
26423 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6
26424 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
26425   echo $ECHO_N "(cached) $ECHO_C" >&6
26426 else
26427   cat >conftest.$ac_ext <<_ACEOF
26428 /* confdefs.h.  */
26429 _ACEOF
26430 cat confdefs.h >>conftest.$ac_ext
26431 cat >>conftest.$ac_ext <<_ACEOF
26432 /* end confdefs.h.  */
26433 #include <linux/fs.h>
26434
26435 int
26436 main ()
26437 {
26438 #ifndef MS_MOVE
26439   char *p = (char *) MS_MOVE;
26440 #endif
26441
26442   ;
26443   return 0;
26444 }
26445 _ACEOF
26446 rm -f conftest.$ac_objext
26447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26448   (eval $ac_compile) 2>conftest.er1
26449   ac_status=$?
26450   grep -v '^ *+' conftest.er1 >conftest.err
26451   rm -f conftest.er1
26452   cat conftest.err >&5
26453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454   (exit $ac_status); } &&
26455          { ac_try='test -z "$ac_c_werror_flag"
26456                          || test ! -s conftest.err'
26457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26458   (eval $ac_try) 2>&5
26459   ac_status=$?
26460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461   (exit $ac_status); }; } &&
26462          { ac_try='test -s conftest.$ac_objext'
26463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26464   (eval $ac_try) 2>&5
26465   ac_status=$?
26466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467   (exit $ac_status); }; }; then
26468   ac_cv_have_decl_MS_MOVE=yes
26469 else
26470   echo "$as_me: failed program was:" >&5
26471 sed 's/^/| /' conftest.$ac_ext >&5
26472
26473 ac_cv_have_decl_MS_MOVE=no
26474 fi
26475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26476 fi
26477 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
26478 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6
26479 if test $ac_cv_have_decl_MS_MOVE = yes; then
26480
26481 cat >>confdefs.h <<_ACEOF
26482 #define HAVE_DECL_MS_MOVE 1
26483 _ACEOF
26484
26485
26486 else
26487   cat >>confdefs.h <<_ACEOF
26488 #define HAVE_DECL_MS_MOVE 0
26489 _ACEOF
26490
26491
26492 fi
26493
26494
26495 echo "$as_me:$LINENO: checking for xid_t" >&5
26496 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6
26497 if test "${ac_cv_type_xid_t+set}" = set; then
26498   echo $ECHO_N "(cached) $ECHO_C" >&6
26499 else
26500   cat >conftest.$ac_ext <<_ACEOF
26501 /* confdefs.h.  */
26502 _ACEOF
26503 cat confdefs.h >>conftest.$ac_ext
26504 cat >>conftest.$ac_ext <<_ACEOF
26505 /* end confdefs.h.  */
26506 #include <sys/types.h>
26507
26508 int
26509 main ()
26510 {
26511 if ((xid_t *) 0)
26512   return 0;
26513 if (sizeof (xid_t))
26514   return 0;
26515   ;
26516   return 0;
26517 }
26518 _ACEOF
26519 rm -f conftest.$ac_objext
26520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26521   (eval $ac_compile) 2>conftest.er1
26522   ac_status=$?
26523   grep -v '^ *+' conftest.er1 >conftest.err
26524   rm -f conftest.er1
26525   cat conftest.err >&5
26526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527   (exit $ac_status); } &&
26528          { ac_try='test -z "$ac_c_werror_flag"
26529                          || test ! -s conftest.err'
26530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26531   (eval $ac_try) 2>&5
26532   ac_status=$?
26533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534   (exit $ac_status); }; } &&
26535          { ac_try='test -s conftest.$ac_objext'
26536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537   (eval $ac_try) 2>&5
26538   ac_status=$?
26539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540   (exit $ac_status); }; }; then
26541   ac_cv_type_xid_t=yes
26542 else
26543   echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26545
26546 ac_cv_type_xid_t=no
26547 fi
26548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26549 fi
26550 echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
26551 echo "${ECHO_T}$ac_cv_type_xid_t" >&6
26552 if test $ac_cv_type_xid_t = yes; then
26553
26554 cat >>confdefs.h <<_ACEOF
26555 #define HAVE_XID_T 1
26556 _ACEOF
26557
26558
26559 fi
26560
26561 echo "$as_me:$LINENO: checking for nid_t" >&5
26562 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6
26563 if test "${ac_cv_type_nid_t+set}" = set; then
26564   echo $ECHO_N "(cached) $ECHO_C" >&6
26565 else
26566   cat >conftest.$ac_ext <<_ACEOF
26567 /* confdefs.h.  */
26568 _ACEOF
26569 cat confdefs.h >>conftest.$ac_ext
26570 cat >>conftest.$ac_ext <<_ACEOF
26571 /* end confdefs.h.  */
26572 #include <sys/types.h>
26573
26574 int
26575 main ()
26576 {
26577 if ((nid_t *) 0)
26578   return 0;
26579 if (sizeof (nid_t))
26580   return 0;
26581   ;
26582   return 0;
26583 }
26584 _ACEOF
26585 rm -f conftest.$ac_objext
26586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26587   (eval $ac_compile) 2>conftest.er1
26588   ac_status=$?
26589   grep -v '^ *+' conftest.er1 >conftest.err
26590   rm -f conftest.er1
26591   cat conftest.err >&5
26592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593   (exit $ac_status); } &&
26594          { ac_try='test -z "$ac_c_werror_flag"
26595                          || test ! -s conftest.err'
26596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26597   (eval $ac_try) 2>&5
26598   ac_status=$?
26599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600   (exit $ac_status); }; } &&
26601          { ac_try='test -s conftest.$ac_objext'
26602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603   (eval $ac_try) 2>&5
26604   ac_status=$?
26605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606   (exit $ac_status); }; }; then
26607   ac_cv_type_nid_t=yes
26608 else
26609   echo "$as_me: failed program was:" >&5
26610 sed 's/^/| /' conftest.$ac_ext >&5
26611
26612 ac_cv_type_nid_t=no
26613 fi
26614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26615 fi
26616 echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
26617 echo "${ECHO_T}$ac_cv_type_nid_t" >&6
26618 if test $ac_cv_type_nid_t = yes; then
26619
26620 cat >>confdefs.h <<_ACEOF
26621 #define HAVE_NID_T 1
26622 _ACEOF
26623
26624
26625 fi
26626
26627
26628
26629 for ac_header in sys/capability.h
26630 do
26631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26633   echo "$as_me:$LINENO: checking for $ac_header" >&5
26634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26636   echo $ECHO_N "(cached) $ECHO_C" >&6
26637 fi
26638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26640 else
26641   # Is the header compilable?
26642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26644 cat >conftest.$ac_ext <<_ACEOF
26645 /* confdefs.h.  */
26646 _ACEOF
26647 cat confdefs.h >>conftest.$ac_ext
26648 cat >>conftest.$ac_ext <<_ACEOF
26649 /* end confdefs.h.  */
26650 $ac_includes_default
26651 #include <$ac_header>
26652 _ACEOF
26653 rm -f conftest.$ac_objext
26654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26655   (eval $ac_compile) 2>conftest.er1
26656   ac_status=$?
26657   grep -v '^ *+' conftest.er1 >conftest.err
26658   rm -f conftest.er1
26659   cat conftest.err >&5
26660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661   (exit $ac_status); } &&
26662          { ac_try='test -z "$ac_c_werror_flag"
26663                          || test ! -s conftest.err'
26664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665   (eval $ac_try) 2>&5
26666   ac_status=$?
26667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668   (exit $ac_status); }; } &&
26669          { ac_try='test -s conftest.$ac_objext'
26670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671   (eval $ac_try) 2>&5
26672   ac_status=$?
26673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674   (exit $ac_status); }; }; then
26675   ac_header_compiler=yes
26676 else
26677   echo "$as_me: failed program was:" >&5
26678 sed 's/^/| /' conftest.$ac_ext >&5
26679
26680 ac_header_compiler=no
26681 fi
26682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26684 echo "${ECHO_T}$ac_header_compiler" >&6
26685
26686 # Is the header present?
26687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26689 cat >conftest.$ac_ext <<_ACEOF
26690 /* confdefs.h.  */
26691 _ACEOF
26692 cat confdefs.h >>conftest.$ac_ext
26693 cat >>conftest.$ac_ext <<_ACEOF
26694 /* end confdefs.h.  */
26695 #include <$ac_header>
26696 _ACEOF
26697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26698   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26699   ac_status=$?
26700   grep -v '^ *+' conftest.er1 >conftest.err
26701   rm -f conftest.er1
26702   cat conftest.err >&5
26703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704   (exit $ac_status); } >/dev/null; then
26705   if test -s conftest.err; then
26706     ac_cpp_err=$ac_c_preproc_warn_flag
26707     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26708   else
26709     ac_cpp_err=
26710   fi
26711 else
26712   ac_cpp_err=yes
26713 fi
26714 if test -z "$ac_cpp_err"; then
26715   ac_header_preproc=yes
26716 else
26717   echo "$as_me: failed program was:" >&5
26718 sed 's/^/| /' conftest.$ac_ext >&5
26719
26720   ac_header_preproc=no
26721 fi
26722 rm -f conftest.err conftest.$ac_ext
26723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26724 echo "${ECHO_T}$ac_header_preproc" >&6
26725
26726 # So?  What about this header?
26727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26728   yes:no: )
26729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26733     ac_header_preproc=yes
26734     ;;
26735   no:yes:* )
26736     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26738     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26739 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26740     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26742     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26743 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26746     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26748     (
26749       cat <<\_ASBOX
26750 ## --------------------------------------------- ##
26751 ## Report this to vserver@list.linux-vserver.org ##
26752 ## --------------------------------------------- ##
26753 _ASBOX
26754     ) |
26755       sed "s/^/$as_me: WARNING:     /" >&2
26756     ;;
26757 esac
26758 echo "$as_me:$LINENO: checking for $ac_header" >&5
26759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26761   echo $ECHO_N "(cached) $ECHO_C" >&6
26762 else
26763   eval "$as_ac_Header=\$ac_header_preproc"
26764 fi
26765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26767
26768 fi
26769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26770   cat >>confdefs.h <<_ACEOF
26771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26772 _ACEOF
26773
26774 fi
26775
26776 done
26777
26778
26779 if test x"$ensc_have_dietlibc" = xno; then
26780         echo "$as_me:$LINENO: checking for openpty" >&5
26781 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
26782 if test "${ac_cv_func_openpty+set}" = set; then
26783   echo $ECHO_N "(cached) $ECHO_C" >&6
26784 else
26785   cat >conftest.$ac_ext <<_ACEOF
26786 /* confdefs.h.  */
26787 _ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h.  */
26791 /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
26792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26793 #define openpty innocuous_openpty
26794
26795 /* System header to define __stub macros and hopefully few prototypes,
26796     which can conflict with char openpty (); below.
26797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26798     <limits.h> exists even on freestanding compilers.  */
26799
26800 #ifdef __STDC__
26801 # include <limits.h>
26802 #else
26803 # include <assert.h>
26804 #endif
26805
26806 #undef openpty
26807
26808 /* Override any gcc2 internal prototype to avoid an error.  */
26809 #ifdef __cplusplus
26810 extern "C"
26811 {
26812 #endif
26813 /* We use char because int might match the return type of a gcc2
26814    builtin and then its argument prototype would still apply.  */
26815 char openpty ();
26816 /* The GNU C library defines this for functions which it implements
26817     to always fail with ENOSYS.  Some functions are actually named
26818     something starting with __ and the normal name is an alias.  */
26819 #if defined (__stub_openpty) || defined (__stub___openpty)
26820 choke me
26821 #else
26822 char (*f) () = openpty;
26823 #endif
26824 #ifdef __cplusplus
26825 }
26826 #endif
26827
26828 int
26829 main ()
26830 {
26831 return f != openpty;
26832   ;
26833   return 0;
26834 }
26835 _ACEOF
26836 rm -f conftest.$ac_objext conftest$ac_exeext
26837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26838   (eval $ac_link) 2>conftest.er1
26839   ac_status=$?
26840   grep -v '^ *+' conftest.er1 >conftest.err
26841   rm -f conftest.er1
26842   cat conftest.err >&5
26843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844   (exit $ac_status); } &&
26845          { ac_try='test -z "$ac_c_werror_flag"
26846                          || test ! -s conftest.err'
26847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848   (eval $ac_try) 2>&5
26849   ac_status=$?
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); }; } &&
26852          { ac_try='test -s conftest$ac_exeext'
26853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854   (eval $ac_try) 2>&5
26855   ac_status=$?
26856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857   (exit $ac_status); }; }; then
26858   ac_cv_func_openpty=yes
26859 else
26860   echo "$as_me: failed program was:" >&5
26861 sed 's/^/| /' conftest.$ac_ext >&5
26862
26863 ac_cv_func_openpty=no
26864 fi
26865 rm -f conftest.err conftest.$ac_objext \
26866       conftest$ac_exeext conftest.$ac_ext
26867 fi
26868 echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
26869 echo "${ECHO_T}$ac_cv_func_openpty" >&6
26870 if test $ac_cv_func_openpty = yes; then
26871   :
26872 else
26873
26874 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26875 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
26876 if test "${ac_cv_lib_util_openpty+set}" = set; then
26877   echo $ECHO_N "(cached) $ECHO_C" >&6
26878 else
26879   ac_check_lib_save_LIBS=$LIBS
26880 LIBS="-lutil  $LIBS"
26881 cat >conftest.$ac_ext <<_ACEOF
26882 /* confdefs.h.  */
26883 _ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h.  */
26887
26888 /* Override any gcc2 internal prototype to avoid an error.  */
26889 #ifdef __cplusplus
26890 extern "C"
26891 #endif
26892 /* We use char because int might match the return type of a gcc2
26893    builtin and then its argument prototype would still apply.  */
26894 char openpty ();
26895 int
26896 main ()
26897 {
26898 openpty ();
26899   ;
26900   return 0;
26901 }
26902 _ACEOF
26903 rm -f conftest.$ac_objext conftest$ac_exeext
26904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26905   (eval $ac_link) 2>conftest.er1
26906   ac_status=$?
26907   grep -v '^ *+' conftest.er1 >conftest.err
26908   rm -f conftest.er1
26909   cat conftest.err >&5
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); } &&
26912          { ac_try='test -z "$ac_c_werror_flag"
26913                          || 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_exeext'
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_cv_lib_util_openpty=yes
26926 else
26927   echo "$as_me: failed program was:" >&5
26928 sed 's/^/| /' conftest.$ac_ext >&5
26929
26930 ac_cv_lib_util_openpty=no
26931 fi
26932 rm -f conftest.err conftest.$ac_objext \
26933       conftest$ac_exeext conftest.$ac_ext
26934 LIBS=$ac_check_lib_save_LIBS
26935 fi
26936 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26937 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
26938 if test $ac_cv_lib_util_openpty = yes; then
26939   cat >>confdefs.h <<_ACEOF
26940 #define HAVE_LIBUTIL 1
26941 _ACEOF
26942
26943   LIBS="-lutil $LIBS"
26944
26945 else
26946   { { echo "$as_me:$LINENO: error:
26947 ****
26948 **** openpty could not be found
26949 ****" >&5
26950 echo "$as_me: error:
26951 ****
26952 **** openpty could not be found
26953 ****" >&2;}
26954    { (exit 1); exit 1; }; }
26955 fi
26956
26957 fi
26958
26959 fi
26960
26961
26962 if test x"$ensc_cv_c99_c99compiler" = xyes; then
26963         ensc_have_beecrypt=yes
26964
26965         if test x"$ensc_have_beecrypt" = xyes; then
26966                 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
26967   echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
26968 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
26969 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
26970   echo $ECHO_N "(cached) $ECHO_C" >&6
26971 fi
26972 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
26973 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
26974 else
26975   # Is the header compilable?
26976 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
26977 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6
26978 cat >conftest.$ac_ext <<_ACEOF
26979 /* confdefs.h.  */
26980 _ACEOF
26981 cat confdefs.h >>conftest.$ac_ext
26982 cat >>conftest.$ac_ext <<_ACEOF
26983 /* end confdefs.h.  */
26984 $ac_includes_default
26985 #include <beecrypt/beecrypt.h>
26986 _ACEOF
26987 rm -f conftest.$ac_objext
26988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26989   (eval $ac_compile) 2>conftest.er1
26990   ac_status=$?
26991   grep -v '^ *+' conftest.er1 >conftest.err
26992   rm -f conftest.er1
26993   cat conftest.err >&5
26994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995   (exit $ac_status); } &&
26996          { ac_try='test -z "$ac_c_werror_flag"
26997                          || test ! -s conftest.err'
26998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999   (eval $ac_try) 2>&5
27000   ac_status=$?
27001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002   (exit $ac_status); }; } &&
27003          { ac_try='test -s conftest.$ac_objext'
27004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27005   (eval $ac_try) 2>&5
27006   ac_status=$?
27007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008   (exit $ac_status); }; }; then
27009   ac_header_compiler=yes
27010 else
27011   echo "$as_me: failed program was:" >&5
27012 sed 's/^/| /' conftest.$ac_ext >&5
27013
27014 ac_header_compiler=no
27015 fi
27016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27018 echo "${ECHO_T}$ac_header_compiler" >&6
27019
27020 # Is the header present?
27021 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
27022 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6
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 #include <beecrypt/beecrypt.h>
27030 _ACEOF
27031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27033   ac_status=$?
27034   grep -v '^ *+' conftest.er1 >conftest.err
27035   rm -f conftest.er1
27036   cat conftest.err >&5
27037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038   (exit $ac_status); } >/dev/null; then
27039   if test -s conftest.err; then
27040     ac_cpp_err=$ac_c_preproc_warn_flag
27041     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27042   else
27043     ac_cpp_err=
27044   fi
27045 else
27046   ac_cpp_err=yes
27047 fi
27048 if test -z "$ac_cpp_err"; then
27049   ac_header_preproc=yes
27050 else
27051   echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27053
27054   ac_header_preproc=no
27055 fi
27056 rm -f conftest.err conftest.$ac_ext
27057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27058 echo "${ECHO_T}$ac_header_preproc" >&6
27059
27060 # So?  What about this header?
27061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27062   yes:no: )
27063     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27064 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27065     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
27066 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
27067     ac_header_preproc=yes
27068     ;;
27069   no:yes:* )
27070     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
27071 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
27072     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&5
27073 echo "$as_me: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&2;}
27074     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
27075 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
27076     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
27077 echo "$as_me: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27078     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
27079 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
27080     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
27081 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
27082     (
27083       cat <<\_ASBOX
27084 ## --------------------------------------------- ##
27085 ## Report this to vserver@list.linux-vserver.org ##
27086 ## --------------------------------------------- ##
27087 _ASBOX
27088     ) |
27089       sed "s/^/$as_me: WARNING:     /" >&2
27090     ;;
27091 esac
27092 echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27093 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27094 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27095   echo $ECHO_N "(cached) $ECHO_C" >&6
27096 else
27097   ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
27098 fi
27099 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27100 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27101
27102 fi
27103 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
27104    :
27105 else
27106    ensc_have_beecrypt=no
27107 fi
27108
27109
27110         fi
27111
27112         if test x"$ensc_have_beecrypt" = xyes; then
27113                 echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
27114 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6
27115 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
27116   echo $ECHO_N "(cached) $ECHO_C" >&6
27117 else
27118   ac_check_lib_save_LIBS=$LIBS
27119 LIBS="-lbeecrypt  $LIBS"
27120 cat >conftest.$ac_ext <<_ACEOF
27121 /* confdefs.h.  */
27122 _ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h.  */
27126
27127 /* Override any gcc2 internal prototype to avoid an error.  */
27128 #ifdef __cplusplus
27129 extern "C"
27130 #endif
27131 /* We use char because int might match the return type of a gcc2
27132    builtin and then its argument prototype would still apply.  */
27133 char hashFunctionContextInit ();
27134 int
27135 main ()
27136 {
27137 hashFunctionContextInit ();
27138   ;
27139   return 0;
27140 }
27141 _ACEOF
27142 rm -f conftest.$ac_objext conftest$ac_exeext
27143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27144   (eval $ac_link) 2>conftest.er1
27145   ac_status=$?
27146   grep -v '^ *+' conftest.er1 >conftest.err
27147   rm -f conftest.er1
27148   cat conftest.err >&5
27149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150   (exit $ac_status); } &&
27151          { ac_try='test -z "$ac_c_werror_flag"
27152                          || test ! -s conftest.err'
27153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154   (eval $ac_try) 2>&5
27155   ac_status=$?
27156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157   (exit $ac_status); }; } &&
27158          { ac_try='test -s conftest$ac_exeext'
27159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27160   (eval $ac_try) 2>&5
27161   ac_status=$?
27162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163   (exit $ac_status); }; }; then
27164   ac_cv_lib_beecrypt_hashFunctionContextInit=yes
27165 else
27166   echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27168
27169 ac_cv_lib_beecrypt_hashFunctionContextInit=no
27170 fi
27171 rm -f conftest.err conftest.$ac_objext \
27172       conftest$ac_exeext conftest.$ac_ext
27173 LIBS=$ac_check_lib_save_LIBS
27174 fi
27175 echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
27176 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6
27177 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
27178    :
27179 else
27180    ensc_have_beecrypt=no
27181 fi
27182
27183         fi
27184
27185         if test x"$ensc_have_beecrypt" != xyes; then
27186                 { echo "$as_me:$LINENO: WARNING:
27187 ****
27188 **** 'beecrypt' could not be found;
27189 **** this will disable the build of 'vhashify'
27190 ****" >&5
27191 echo "$as_me: WARNING:
27192 ****
27193 **** 'beecrypt' could not be found;
27194 **** this will disable the build of 'vhashify'
27195 ****" >&2;}
27196         fi
27197 else
27198         ensc_have_beecrypt=no
27199 fi
27200
27201
27202
27203 if test x"$ensc_have_beecrypt" = xyes; then
27204   ENSC_HAVE_BEECRYPT_TRUE=
27205   ENSC_HAVE_BEECRYPT_FALSE='#'
27206 else
27207   ENSC_HAVE_BEECRYPT_TRUE='#'
27208   ENSC_HAVE_BEECRYPT_FALSE=
27209 fi
27210
27211
27212
27213 if false; then
27214   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
27215   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
27216 else
27217   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
27218   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
27219 fi
27220
27221
27222
27223
27224 cat >>confdefs.h <<\_ACEOF
27225 #define UTMP_GID 22
27226 _ACEOF
27227
27228
27229 if false; then
27230
27231 cat >>confdefs.h <<\_ACEOF
27232 #define HAVE_GROWING_STACK 1
27233 _ACEOF
27234
27235 fi
27236
27237
27238 cat >>confdefs.h <<\_ACEOF
27239 #define _FILE_OFFSET_BITS 64
27240 _ACEOF
27241
27242
27243 ensc_cxx_affected=" (affected: vbuild, vcheck)"
27244 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
27245 ensc_diet_msg=" (you have been warned)"
27246 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
27247 ensc_diet_compat_msg=" (using -lcompat)"
27248 test x"$ensc_cv_cxx_cxxcompiler"    = xno || ensc_cxx_affected=
27249 test x"$ensc_cv_c99_c99compiler"    = xno || ensc_c99_affected=
27250 test x"$ensc_have_dietlibc"         = xno || ensc_diet_msg=
27251 test x"$ensc_version_dietlibc"     != x   || ensc_diet_version_msg=
27252 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
27253
27254
27255
27256
27257
27258                                         ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile"
27259
27260 cat >confcache <<\_ACEOF
27261 # This file is a shell script that caches the results of configure
27262 # tests run on this system so they can be shared between configure
27263 # scripts and configure runs, see configure's option --config-cache.
27264 # It is not useful on other systems.  If it contains results you don't
27265 # want to keep, you may remove or edit it.
27266 #
27267 # config.status only pays attention to the cache file if you give it
27268 # the --recheck option to rerun configure.
27269 #
27270 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27271 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27272 # following values.
27273
27274 _ACEOF
27275
27276 # The following way of writing the cache mishandles newlines in values,
27277 # but we know of no workaround that is simple, portable, and efficient.
27278 # So, don't put newlines in cache variables' values.
27279 # Ultrix sh set writes to stderr and can't be redirected directly,
27280 # and sets the high bit in the cache file unless we assign to the vars.
27281 {
27282   (set) 2>&1 |
27283     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27284     *ac_space=\ *)
27285       # `set' does not quote correctly, so add quotes (double-quote
27286       # substitution turns \\\\ into \\, and sed turns \\ into \).
27287       sed -n \
27288         "s/'/'\\\\''/g;
27289           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27290       ;;
27291     *)
27292       # `set' quotes correctly as required by POSIX, so do not add quotes.
27293       sed -n \
27294         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27295       ;;
27296     esac;
27297 } |
27298   sed '
27299      t clear
27300      : clear
27301      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27302      t end
27303      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27304      : end' >>confcache
27305 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27306   if test -w $cache_file; then
27307     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27308     cat confcache >$cache_file
27309   else
27310     echo "not updating unwritable cache $cache_file"
27311   fi
27312 fi
27313 rm -f confcache
27314
27315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27316 # Let make expand exec_prefix.
27317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27318
27319 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27320 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27321 # trailing colons and then remove the whole line if VPATH becomes empty
27322 # (actually we leave an empty line to preserve line numbers).
27323 if test "x$srcdir" = x.; then
27324   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27325 s/:*\$(srcdir):*/:/;
27326 s/:*\${srcdir}:*/:/;
27327 s/:*@srcdir@:*/:/;
27328 s/^\([^=]*=[     ]*\):*/\1/;
27329 s/:*$//;
27330 s/^[^=]*=[       ]*$//;
27331 }'
27332 fi
27333
27334 DEFS=-DHAVE_CONFIG_H
27335
27336 ac_libobjs=
27337 ac_ltlibobjs=
27338 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27339   # 1. Remove the extension, and $U if already installed.
27340   ac_i=`echo "$ac_i" |
27341          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27342   # 2. Add them.
27343   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27344   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27345 done
27346 LIBOBJS=$ac_libobjs
27347
27348 LTLIBOBJS=$ac_ltlibobjs
27349
27350
27351 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27352   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27353 Usually this means the macro was only invoked conditionally." >&5
27354 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27355 Usually this means the macro was only invoked conditionally." >&2;}
27356    { (exit 1); exit 1; }; }
27357 fi
27358 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27359   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27360 Usually this means the macro was only invoked conditionally." >&5
27361 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27362 Usually this means the macro was only invoked conditionally." >&2;}
27363    { (exit 1); exit 1; }; }
27364 fi
27365 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27366   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27367 Usually this means the macro was only invoked conditionally." >&5
27368 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27369 Usually this means the macro was only invoked conditionally." >&2;}
27370    { (exit 1); exit 1; }; }
27371 fi
27372 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27373   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27374 Usually this means the macro was only invoked conditionally." >&5
27375 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27376 Usually this means the macro was only invoked conditionally." >&2;}
27377    { (exit 1); exit 1; }; }
27378 fi
27379 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
27380   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27381 Usually this means the macro was only invoked conditionally." >&5
27382 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27383 Usually this means the macro was only invoked conditionally." >&2;}
27384    { (exit 1); exit 1; }; }
27385 fi
27386 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
27387   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27388 Usually this means the macro was only invoked conditionally." >&5
27389 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27390 Usually this means the macro was only invoked conditionally." >&2;}
27391    { (exit 1); exit 1; }; }
27392 fi
27393 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
27394   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
27395 Usually this means the macro was only invoked conditionally." >&5
27396 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
27397 Usually this means the macro was only invoked conditionally." >&2;}
27398    { (exit 1); exit 1; }; }
27399 fi
27400 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
27401   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
27402 Usually this means the macro was only invoked conditionally." >&5
27403 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
27404 Usually this means the macro was only invoked conditionally." >&2;}
27405    { (exit 1); exit 1; }; }
27406 fi
27407 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27408   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27409 Usually this means the macro was only invoked conditionally." >&5
27410 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27411 Usually this means the macro was only invoked conditionally." >&2;}
27412    { (exit 1); exit 1; }; }
27413 fi
27414 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27415   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27416 Usually this means the macro was only invoked conditionally." >&5
27417 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27418 Usually this means the macro was only invoked conditionally." >&2;}
27419    { (exit 1); exit 1; }; }
27420 fi
27421 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27422   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27423 Usually this means the macro was only invoked conditionally." >&5
27424 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27425 Usually this means the macro was only invoked conditionally." >&2;}
27426    { (exit 1); exit 1; }; }
27427 fi
27428 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27429   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27430 Usually this means the macro was only invoked conditionally." >&5
27431 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27432 Usually this means the macro was only invoked conditionally." >&2;}
27433    { (exit 1); exit 1; }; }
27434 fi
27435 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27436   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27437 Usually this means the macro was only invoked conditionally." >&5
27438 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27439 Usually this means the macro was only invoked conditionally." >&2;}
27440    { (exit 1); exit 1; }; }
27441 fi
27442 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27443   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27444 Usually this means the macro was only invoked conditionally." >&5
27445 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27446 Usually this means the macro was only invoked conditionally." >&2;}
27447    { (exit 1); exit 1; }; }
27448 fi
27449 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27450   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27451 Usually this means the macro was only invoked conditionally." >&5
27452 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27453 Usually this means the macro was only invoked conditionally." >&2;}
27454    { (exit 1); exit 1; }; }
27455 fi
27456 if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
27457   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27458 Usually this means the macro was only invoked conditionally." >&5
27459 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27460 Usually this means the macro was only invoked conditionally." >&2;}
27461    { (exit 1); exit 1; }; }
27462 fi
27463 if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
27464   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27465 Usually this means the macro was only invoked conditionally." >&5
27466 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27467 Usually this means the macro was only invoked conditionally." >&2;}
27468    { (exit 1); exit 1; }; }
27469 fi
27470 if test -z "${HAVE_SVN2CL_TRUE}" && test -z "${HAVE_SVN2CL_FALSE}"; then
27471   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SVN2CL\" was never defined.
27472 Usually this means the macro was only invoked conditionally." >&5
27473 echo "$as_me: error: conditional \"HAVE_SVN2CL\" was never defined.
27474 Usually this means the macro was only invoked conditionally." >&2;}
27475    { (exit 1); exit 1; }; }
27476 fi
27477 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
27478   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27479 Usually this means the macro was only invoked conditionally." >&5
27480 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27481 Usually this means the macro was only invoked conditionally." >&2;}
27482    { (exit 1); exit 1; }; }
27483 fi
27484 if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
27485   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27486 Usually this means the macro was only invoked conditionally." >&5
27487 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27488 Usually this means the macro was only invoked conditionally." >&2;}
27489    { (exit 1); exit 1; }; }
27490 fi
27491 if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
27492   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27493 Usually this means the macro was only invoked conditionally." >&5
27494 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27495 Usually this means the macro was only invoked conditionally." >&2;}
27496    { (exit 1); exit 1; }; }
27497 fi
27498
27499                         FEATURES_TXT="\
27500 Features:
27501                        CC: $CC, $($CC   --version | sed -e '1p;d')
27502                       CXX: $CXX, $($CXX --version | sed -e '1p;d')
27503                  CPPFLAGS: '$CPPFLAGS'
27504                    CFLAGS: '$CFLAGS'
27505                  CXXFLAGS: '$CXXFLAGS'
27506                build/host: $build/$host
27507              Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
27508        Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
27509        Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
27510            Available APIs: $enable_apis
27511             ext2fs Source: $ensc_cv_test_ext2fs_header
27512     syscall(2) invocation: $with_syscall
27513       vserver(2) syscall#: $ensc_cv_value_syscall_vserver
27514
27515 Paths:
27516                    prefix: $prefix
27517         sysconf-Directory: $sysconfdir
27518             cfg-Directory: $sysconfdir/vservers
27519          initrd-Directory: $initrddir
27520        pkgstate-Directory: $localstatedir/run/vservers
27521           vserver-Rootdir: $vserverdir
27522 "
27523                         echo "$FEATURES_TXT" >FEATURES.txt
27524
27525
27526 : ${CONFIG_STATUS=./config.status}
27527 ac_clean_files_save=$ac_clean_files
27528 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27529 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27530 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27531 cat >$CONFIG_STATUS <<_ACEOF
27532 #! $SHELL
27533 # Generated by $as_me.
27534 # Run this file to recreate the current configuration.
27535 # Compiler output produced by configure, useful for debugging
27536 # configure, is in config.log if it exists.
27537
27538 debug=false
27539 ac_cs_recheck=false
27540 ac_cs_silent=false
27541 SHELL=\${CONFIG_SHELL-$SHELL}
27542 _ACEOF
27543
27544 cat >>$CONFIG_STATUS <<\_ACEOF
27545 ## --------------------- ##
27546 ## M4sh Initialization.  ##
27547 ## --------------------- ##
27548
27549 # Be Bourne compatible
27550 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27551   emulate sh
27552   NULLCMD=:
27553   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27554   # is contrary to our usage.  Disable this feature.
27555   alias -g '${1+"$@"}'='"$@"'
27556 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27557   set -o posix
27558 fi
27559 DUALCASE=1; export DUALCASE # for MKS sh
27560
27561 # Support unset when possible.
27562 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27563   as_unset=unset
27564 else
27565   as_unset=false
27566 fi
27567
27568
27569 # Work around bugs in pre-3.0 UWIN ksh.
27570 $as_unset ENV MAIL MAILPATH
27571 PS1='$ '
27572 PS2='> '
27573 PS4='+ '
27574
27575 # NLS nuisances.
27576 for as_var in \
27577   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27578   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27579   LC_TELEPHONE LC_TIME
27580 do
27581   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27582     eval $as_var=C; export $as_var
27583   else
27584     $as_unset $as_var
27585   fi
27586 done
27587
27588 # Required to use basename.
27589 if expr a : '\(a\)' >/dev/null 2>&1; then
27590   as_expr=expr
27591 else
27592   as_expr=false
27593 fi
27594
27595 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27596   as_basename=basename
27597 else
27598   as_basename=false
27599 fi
27600
27601
27602 # Name of the executable.
27603 as_me=`$as_basename "$0" ||
27604 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27605          X"$0" : 'X\(//\)$' \| \
27606          X"$0" : 'X\(/\)$' \| \
27607          .     : '\(.\)' 2>/dev/null ||
27608 echo X/"$0" |
27609     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27610           /^X\/\(\/\/\)$/{ s//\1/; q; }
27611           /^X\/\(\/\).*/{ s//\1/; q; }
27612           s/.*/./; q'`
27613
27614
27615 # PATH needs CR, and LINENO needs CR and PATH.
27616 # Avoid depending upon Character Ranges.
27617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27620 as_cr_digits='0123456789'
27621 as_cr_alnum=$as_cr_Letters$as_cr_digits
27622
27623 # The user is always right.
27624 if test "${PATH_SEPARATOR+set}" != set; then
27625   echo "#! /bin/sh" >conf$$.sh
27626   echo  "exit 0"   >>conf$$.sh
27627   chmod +x conf$$.sh
27628   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27629     PATH_SEPARATOR=';'
27630   else
27631     PATH_SEPARATOR=:
27632   fi
27633   rm -f conf$$.sh
27634 fi
27635
27636
27637   as_lineno_1=$LINENO
27638   as_lineno_2=$LINENO
27639   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27640   test "x$as_lineno_1" != "x$as_lineno_2" &&
27641   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
27642   # Find who we are.  Look in the path if we contain no path at all
27643   # relative or not.
27644   case $0 in
27645     *[\\/]* ) as_myself=$0 ;;
27646     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27647 for as_dir in $PATH
27648 do
27649   IFS=$as_save_IFS
27650   test -z "$as_dir" && as_dir=.
27651   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27652 done
27653
27654        ;;
27655   esac
27656   # We did not find ourselves, most probably we were run as `sh COMMAND'
27657   # in which case we are not to be found in the path.
27658   if test "x$as_myself" = x; then
27659     as_myself=$0
27660   fi
27661   if test ! -f "$as_myself"; then
27662     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27663 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27664    { (exit 1); exit 1; }; }
27665   fi
27666   case $CONFIG_SHELL in
27667   '')
27668     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27669 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27670 do
27671   IFS=$as_save_IFS
27672   test -z "$as_dir" && as_dir=.
27673   for as_base in sh bash ksh sh5; do
27674          case $as_dir in
27675          /*)
27676            if ("$as_dir/$as_base" -c '
27677   as_lineno_1=$LINENO
27678   as_lineno_2=$LINENO
27679   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27680   test "x$as_lineno_1" != "x$as_lineno_2" &&
27681   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
27682              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27683              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27684              CONFIG_SHELL=$as_dir/$as_base
27685              export CONFIG_SHELL
27686              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27687            fi;;
27688          esac
27689        done
27690 done
27691 ;;
27692   esac
27693
27694   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27695   # uniformly replaced by the line number.  The first 'sed' inserts a
27696   # line-number line before each line; the second 'sed' does the real
27697   # work.  The second script uses 'N' to pair each line-number line
27698   # with the numbered line, and appends trailing '-' during
27699   # substitution so that $LINENO is not a special case at line end.
27700   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27701   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
27702   sed '=' <$as_myself |
27703     sed '
27704       N
27705       s,$,-,
27706       : loop
27707       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27708       t loop
27709       s,-$,,
27710       s,^['$as_cr_digits']*\n,,
27711     ' >$as_me.lineno &&
27712   chmod +x $as_me.lineno ||
27713     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27714 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27715    { (exit 1); exit 1; }; }
27716
27717   # Don't try to exec as it changes $[0], causing all sort of problems
27718   # (the dirname of $[0] is not the place where we might find the
27719   # original and so on.  Autoconf is especially sensible to this).
27720   . ./$as_me.lineno
27721   # Exit status is that of the last command.
27722   exit
27723 }
27724
27725
27726 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27727   *c*,-n*) ECHO_N= ECHO_C='
27728 ' ECHO_T='      ' ;;
27729   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27730   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
27731 esac
27732
27733 if expr a : '\(a\)' >/dev/null 2>&1; then
27734   as_expr=expr
27735 else
27736   as_expr=false
27737 fi
27738
27739 rm -f conf$$ conf$$.exe conf$$.file
27740 echo >conf$$.file
27741 if ln -s conf$$.file conf$$ 2>/dev/null; then
27742   # We could just check for DJGPP; but this test a) works b) is more generic
27743   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27744   if test -f conf$$.exe; then
27745     # Don't use ln at all; we don't have any links
27746     as_ln_s='cp -p'
27747   else
27748     as_ln_s='ln -s'
27749   fi
27750 elif ln conf$$.file conf$$ 2>/dev/null; then
27751   as_ln_s=ln
27752 else
27753   as_ln_s='cp -p'
27754 fi
27755 rm -f conf$$ conf$$.exe conf$$.file
27756
27757 if mkdir -p . 2>/dev/null; then
27758   as_mkdir_p=:
27759 else
27760   test -d ./-p && rmdir ./-p
27761   as_mkdir_p=false
27762 fi
27763
27764 as_executable_p="test -f"
27765
27766 # Sed expression to map a string onto a valid CPP name.
27767 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27768
27769 # Sed expression to map a string onto a valid variable name.
27770 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27771
27772
27773 # IFS
27774 # We need space, tab and new line, in precisely that order.
27775 as_nl='
27776 '
27777 IFS="   $as_nl"
27778
27779 # CDPATH.
27780 $as_unset CDPATH
27781
27782 exec 6>&1
27783
27784 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27785 # report actual input values of CONFIG_FILES etc. instead of their
27786 # values after options handling.  Logging --version etc. is OK.
27787 exec 5>>config.log
27788 {
27789   echo
27790   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27791 ## Running $as_me. ##
27792 _ASBOX
27793 } >&5
27794 cat >&5 <<_CSEOF
27795
27796 This file was extended by util-vserver $as_me 0.30.212, which was
27797 generated by GNU Autoconf 2.59.  Invocation command line was
27798
27799   CONFIG_FILES    = $CONFIG_FILES
27800   CONFIG_HEADERS  = $CONFIG_HEADERS
27801   CONFIG_LINKS    = $CONFIG_LINKS
27802   CONFIG_COMMANDS = $CONFIG_COMMANDS
27803   $ $0 $@
27804
27805 _CSEOF
27806 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27807 echo >&5
27808 _ACEOF
27809
27810 # Files that config.status was made for.
27811 if test -n "$ac_config_files"; then
27812   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27813 fi
27814
27815 if test -n "$ac_config_headers"; then
27816   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27817 fi
27818
27819 if test -n "$ac_config_links"; then
27820   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27821 fi
27822
27823 if test -n "$ac_config_commands"; then
27824   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27825 fi
27826
27827 cat >>$CONFIG_STATUS <<\_ACEOF
27828
27829 ac_cs_usage="\
27830 \`$as_me' instantiates files from templates according to the
27831 current configuration.
27832
27833 Usage: $0 [OPTIONS] [FILE]...
27834
27835   -h, --help       print this help, then exit
27836   -V, --version    print version number, then exit
27837   -q, --quiet      do not print progress messages
27838   -d, --debug      don't remove temporary files
27839       --recheck    update $as_me by reconfiguring in the same conditions
27840   --file=FILE[:TEMPLATE]
27841                    instantiate the configuration file FILE
27842   --header=FILE[:TEMPLATE]
27843                    instantiate the configuration header FILE
27844
27845 Configuration files:
27846 $config_files
27847
27848 Configuration headers:
27849 $config_headers
27850
27851 Configuration commands:
27852 $config_commands
27853
27854 Report bugs to <bug-autoconf@gnu.org>."
27855 _ACEOF
27856
27857 cat >>$CONFIG_STATUS <<_ACEOF
27858 ac_cs_version="\\
27859 util-vserver config.status 0.30.212
27860 configured by $0, generated by GNU Autoconf 2.59,
27861   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27862
27863 Copyright (C) 2003 Free Software Foundation, Inc.
27864 This config.status script is free software; the Free Software Foundation
27865 gives unlimited permission to copy, distribute and modify it."
27866 srcdir=$srcdir
27867 INSTALL="$INSTALL"
27868 _ACEOF
27869
27870 cat >>$CONFIG_STATUS <<\_ACEOF
27871 # If no file are specified by the user, then we need to provide default
27872 # value.  By we need to know if files were specified by the user.
27873 ac_need_defaults=:
27874 while test $# != 0
27875 do
27876   case $1 in
27877   --*=*)
27878     ac_option=`expr "x$1" : 'x\([^=]*\)='`
27879     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27880     ac_shift=:
27881     ;;
27882   -*)
27883     ac_option=$1
27884     ac_optarg=$2
27885     ac_shift=shift
27886     ;;
27887   *) # This is not an option, so the user has probably given explicit
27888      # arguments.
27889      ac_option=$1
27890      ac_need_defaults=false;;
27891   esac
27892
27893   case $ac_option in
27894   # Handling of the options.
27895 _ACEOF
27896 cat >>$CONFIG_STATUS <<\_ACEOF
27897   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27898     ac_cs_recheck=: ;;
27899   --version | --vers* | -V )
27900     echo "$ac_cs_version"; exit 0 ;;
27901   --he | --h)
27902     # Conflict between --help and --header
27903     { { echo "$as_me:$LINENO: error: ambiguous option: $1
27904 Try \`$0 --help' for more information." >&5
27905 echo "$as_me: error: ambiguous option: $1
27906 Try \`$0 --help' for more information." >&2;}
27907    { (exit 1); exit 1; }; };;
27908   --help | --hel | -h )
27909     echo "$ac_cs_usage"; exit 0 ;;
27910   --debug | --d* | -d )
27911     debug=: ;;
27912   --file | --fil | --fi | --f )
27913     $ac_shift
27914     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27915     ac_need_defaults=false;;
27916   --header | --heade | --head | --hea )
27917     $ac_shift
27918     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27919     ac_need_defaults=false;;
27920   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27921   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27922     ac_cs_silent=: ;;
27923
27924   # This is an error.
27925   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27926 Try \`$0 --help' for more information." >&5
27927 echo "$as_me: error: unrecognized option: $1
27928 Try \`$0 --help' for more information." >&2;}
27929    { (exit 1); exit 1; }; } ;;
27930
27931   *) ac_config_targets="$ac_config_targets $1" ;;
27932
27933   esac
27934   shift
27935 done
27936
27937 ac_configure_extra_args=
27938
27939 if $ac_cs_silent; then
27940   exec 6>/dev/null
27941   ac_configure_extra_args="$ac_configure_extra_args --silent"
27942 fi
27943
27944 _ACEOF
27945 cat >>$CONFIG_STATUS <<_ACEOF
27946 if \$ac_cs_recheck; then
27947   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27948   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27949 fi
27950
27951 _ACEOF
27952
27953 cat >>$CONFIG_STATUS <<_ACEOF
27954 #
27955 # INIT-COMMANDS section.
27956 #
27957
27958 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27959
27960 _ACEOF
27961
27962
27963
27964 cat >>$CONFIG_STATUS <<\_ACEOF
27965 for ac_config_target in $ac_config_targets
27966 do
27967   case "$ac_config_target" in
27968   # Handling of arguments.
27969   "util-vserver.spec" ) CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
27970   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27971   "distrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
27972   "lib/apidoc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
27973   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27974   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27975   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27976 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27977    { (exit 1); exit 1; }; };;
27978   esac
27979 done
27980
27981 # If the user did not use the arguments to specify the items to instantiate,
27982 # then the envvar interface is used.  Set only those that are not.
27983 # We use the long form for the default assignment because of an extremely
27984 # bizarre bug on SunOS 4.1.3.
27985 if $ac_need_defaults; then
27986   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27987   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27988   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27989 fi
27990
27991 # Have a temporary directory for convenience.  Make it in the build tree
27992 # simply because there is no reason to put it here, and in addition,
27993 # creating and moving files from /tmp can sometimes cause problems.
27994 # Create a temporary directory, and hook for its removal unless debugging.
27995 $debug ||
27996 {
27997   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27998   trap '{ (exit 1); exit 1; }' 1 2 13 15
27999 }
28000
28001 # Create a (secure) tmp directory for tmp files.
28002
28003 {
28004   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28005   test -n "$tmp" && test -d "$tmp"
28006 }  ||
28007 {
28008   tmp=./confstat$$-$RANDOM
28009   (umask 077 && mkdir $tmp)
28010 } ||
28011 {
28012    echo "$me: cannot create a temporary directory in ." >&2
28013    { (exit 1); exit 1; }
28014 }
28015
28016 _ACEOF
28017
28018 cat >>$CONFIG_STATUS <<_ACEOF
28019
28020 #
28021 # CONFIG_FILES section.
28022 #
28023
28024 # No need to generate the scripts if there are no CONFIG_FILES.
28025 # This happens for instance when ./config.status config.h
28026 if test -n "\$CONFIG_FILES"; then
28027   # Protect against being on the right side of a sed subst in config.status.
28028   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28029    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28030 s,@SHELL@,$SHELL,;t t
28031 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28032 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28033 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28034 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28035 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28036 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28037 s,@exec_prefix@,$exec_prefix,;t t
28038 s,@prefix@,$prefix,;t t
28039 s,@program_transform_name@,$program_transform_name,;t t
28040 s,@bindir@,$bindir,;t t
28041 s,@sbindir@,$sbindir,;t t
28042 s,@libexecdir@,$libexecdir,;t t
28043 s,@datadir@,$datadir,;t t
28044 s,@sysconfdir@,$sysconfdir,;t t
28045 s,@sharedstatedir@,$sharedstatedir,;t t
28046 s,@localstatedir@,$localstatedir,;t t
28047 s,@libdir@,$libdir,;t t
28048 s,@includedir@,$includedir,;t t
28049 s,@oldincludedir@,$oldincludedir,;t t
28050 s,@infodir@,$infodir,;t t
28051 s,@mandir@,$mandir,;t t
28052 s,@build_alias@,$build_alias,;t t
28053 s,@host_alias@,$host_alias,;t t
28054 s,@target_alias@,$target_alias,;t t
28055 s,@DEFS@,$DEFS,;t t
28056 s,@ECHO_C@,$ECHO_C,;t t
28057 s,@ECHO_N@,$ECHO_N,;t t
28058 s,@ECHO_T@,$ECHO_T,;t t
28059 s,@LIBS@,$LIBS,;t t
28060 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28061 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28062 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28063 s,@CYGPATH_W@,$CYGPATH_W,;t t
28064 s,@PACKAGE@,$PACKAGE,;t t
28065 s,@VERSION@,$VERSION,;t t
28066 s,@ACLOCAL@,$ACLOCAL,;t t
28067 s,@AUTOCONF@,$AUTOCONF,;t t
28068 s,@AUTOMAKE@,$AUTOMAKE,;t t
28069 s,@AUTOHEADER@,$AUTOHEADER,;t t
28070 s,@MAKEINFO@,$MAKEINFO,;t t
28071 s,@install_sh@,$install_sh,;t t
28072 s,@STRIP@,$STRIP,;t t
28073 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28074 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28075 s,@mkdir_p@,$mkdir_p,;t t
28076 s,@AWK@,$AWK,;t t
28077 s,@SET_MAKE@,$SET_MAKE,;t t
28078 s,@am__leading_dot@,$am__leading_dot,;t t
28079 s,@AMTAR@,$AMTAR,;t t
28080 s,@am__tar@,$am__tar,;t t
28081 s,@am__untar@,$am__untar,;t t
28082 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28083 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28084 s,@MAINT@,$MAINT,;t t
28085 s,@build@,$build,;t t
28086 s,@build_cpu@,$build_cpu,;t t
28087 s,@build_vendor@,$build_vendor,;t t
28088 s,@build_os@,$build_os,;t t
28089 s,@host@,$host,;t t
28090 s,@host_cpu@,$host_cpu,;t t
28091 s,@host_vendor@,$host_vendor,;t t
28092 s,@host_os@,$host_os,;t t
28093 s,@GPG_KEY@,$GPG_KEY,;t t
28094 s,@CXX@,$CXX,;t t
28095 s,@CXXFLAGS@,$CXXFLAGS,;t t
28096 s,@LDFLAGS@,$LDFLAGS,;t t
28097 s,@CPPFLAGS@,$CPPFLAGS,;t t
28098 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28099 s,@EXEEXT@,$EXEEXT,;t t
28100 s,@OBJEXT@,$OBJEXT,;t t
28101 s,@DEPDIR@,$DEPDIR,;t t
28102 s,@am__include@,$am__include,;t t
28103 s,@am__quote@,$am__quote,;t t
28104 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28105 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28106 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28107 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28108 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28109 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28110 s,@CC@,$CC,;t t
28111 s,@CFLAGS@,$CFLAGS,;t t
28112 s,@ac_ct_CC@,$ac_ct_CC,;t t
28113 s,@CCDEPMODE@,$CCDEPMODE,;t t
28114 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28115 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28116 s,@LN_S@,$LN_S,;t t
28117 s,@ENSC_HAVE_CXX_COMPILER_TRUE@,$ENSC_HAVE_CXX_COMPILER_TRUE,;t t
28118 s,@ENSC_HAVE_CXX_COMPILER_FALSE@,$ENSC_HAVE_CXX_COMPILER_FALSE,;t t
28119 s,@ENSC_HAVE_C99_COMPILER_TRUE@,$ENSC_HAVE_C99_COMPILER_TRUE,;t t
28120 s,@ENSC_HAVE_C99_COMPILER_FALSE@,$ENSC_HAVE_C99_COMPILER_FALSE,;t t
28121 s,@ENSC_PATHPROG_SED@,$ENSC_PATHPROG_SED,;t t
28122 s,@CAT@,$CAT,;t t
28123 s,@CHOWN@,$CHOWN,;t t
28124 s,@CMP@,$CMP,;t t
28125 s,@CP@,$CP,;t t
28126 s,@DIRNAME@,$DIRNAME,;t t
28127 s,@EGREP@,$EGREP,;t t
28128 s,@ENV@,$ENV,;t t
28129 s,@GREP@,$GREP,;t t
28130 s,@LN@,$LN,;t t
28131 s,@MKDIR@,$MKDIR,;t t
28132 s,@MKFIFO@,$MKFIFO,;t t
28133 s,@MKTEMP@,$MKTEMP,;t t
28134 s,@MOUNT@,$MOUNT,;t t
28135 s,@MV@,$MV,;t t
28136 s,@NICE@,$NICE,;t t
28137 s,@PS@,$PS,;t t
28138 s,@RM@,$RM,;t t
28139 s,@RMDIR@,$RMDIR,;t t
28140 s,@SED@,$SED,;t t
28141 s,@SH@,$SH,;t t
28142 s,@TAC@,$TAC,;t t
28143 s,@TAR@,$TAR,;t t
28144 s,@TOUCH@,$TOUCH,;t t
28145 s,@TTY@,$TTY,;t t
28146 s,@UMOUNT@,$UMOUNT,;t t
28147 s,@WC@,$WC,;t t
28148 s,@IP@,$IP,;t t
28149 s,@IPTABLES@,$IPTABLES,;t t
28150 s,@MODPROBE@,$MODPROBE,;t t
28151 s,@NAMEIF@,$NAMEIF,;t t
28152 s,@NOHUP@,$NOHUP,;t t
28153 s,@RMMOD@,$RMMOD,;t t
28154 s,@VCONFIG@,$VCONFIG,;t t
28155 s,@WGET@,$WGET,;t t
28156 s,@FILE@,$FILE,;t t
28157 s,@GZIP@,$GZIP,;t t
28158 s,@BZIP2@,$BZIP2,;t t
28159 s,@CPIO@,$CPIO,;t t
28160 s,@RESTORE@,$RESTORE,;t t
28161 s,@RSYNC@,$RSYNC,;t t
28162 s,@DOXYGEN@,$DOXYGEN,;t t
28163 s,@XSLTP@,$XSLTP,;t t
28164 s,@XSLTPROC@,$XSLTPROC,;t t
28165 s,@HAVE_XSLTP_TRUE@,$HAVE_XSLTP_TRUE,;t t
28166 s,@HAVE_XSLTP_FALSE@,$HAVE_XSLTP_FALSE,;t t
28167 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
28168 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
28169 s,@LIB_DEBUG_CPPFLAGS@,$LIB_DEBUG_CPPFLAGS,;t t
28170 s,@ENSC_USE_EXPENSIVE_TESTS@,$ENSC_USE_EXPENSIVE_TESTS,;t t
28171 s,@initrddir@,$initrddir,;t t
28172 s,@RELEASE_CPPFLAGS@,$RELEASE_CPPFLAGS,;t t
28173 s,@DIET@,$DIET,;t t
28174 s,@DIETFLAGS@,$DIETFLAGS,;t t
28175 s,@USE_DIETLIBC_TRUE@,$USE_DIETLIBC_TRUE,;t t
28176 s,@USE_DIETLIBC_FALSE@,$USE_DIETLIBC_FALSE,;t t
28177 s,@USE_DIETLIBC_COMPAT_TRUE@,$USE_DIETLIBC_COMPAT_TRUE,;t t
28178 s,@USE_DIETLIBC_COMPAT_FALSE@,$USE_DIETLIBC_COMPAT_FALSE,;t t
28179 s,@ENSC_USE_DIETLIBC_TRUE@,$ENSC_USE_DIETLIBC_TRUE,;t t
28180 s,@ENSC_USE_DIETLIBC_FALSE@,$ENSC_USE_DIETLIBC_FALSE,;t t
28181 s,@ENSC_USE_GLIBC_TRUE@,$ENSC_USE_GLIBC_TRUE,;t t
28182 s,@ENSC_USE_GLIBC_FALSE@,$ENSC_USE_GLIBC_FALSE,;t t
28183 s,@ECHO@,$ECHO,;t t
28184 s,@AR@,$AR,;t t
28185 s,@ac_ct_AR@,$ac_ct_AR,;t t
28186 s,@RANLIB@,$RANLIB,;t t
28187 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28188 s,@CPP@,$CPP,;t t
28189 s,@CXXCPP@,$CXXCPP,;t t
28190 s,@F77@,$F77,;t t
28191 s,@FFLAGS@,$FFLAGS,;t t
28192 s,@ac_ct_F77@,$ac_ct_F77,;t t
28193 s,@LIBTOOL@,$LIBTOOL,;t t
28194 s,@vserverdir@,$vserverdir,;t t
28195 s,@SVN2CL@,$SVN2CL,;t t
28196 s,@HAVE_SVN2CL_TRUE@,$HAVE_SVN2CL_TRUE,;t t
28197 s,@HAVE_SVN2CL_FALSE@,$HAVE_SVN2CL_FALSE,;t t
28198 s,@ENSC_ENABLE_INTERNAL_HEADERS_TRUE@,$ENSC_ENABLE_INTERNAL_HEADERS_TRUE,;t t
28199 s,@ENSC_ENABLE_INTERNAL_HEADERS_FALSE@,$ENSC_ENABLE_INTERNAL_HEADERS_FALSE,;t t
28200 s,@ENSC_HAVE_BEECRYPT_TRUE@,$ENSC_HAVE_BEECRYPT_TRUE,;t t
28201 s,@ENSC_HAVE_BEECRYPT_FALSE@,$ENSC_HAVE_BEECRYPT_FALSE,;t t
28202 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE,;t t
28203 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE,;t t
28204 s,@LIBOBJS@,$LIBOBJS,;t t
28205 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28206 CEOF
28207
28208 _ACEOF
28209
28210   cat >>$CONFIG_STATUS <<\_ACEOF
28211   # Split the substitutions into bite-sized pieces for seds with
28212   # small command number limits, like on Digital OSF/1 and HP-UX.
28213   ac_max_sed_lines=48
28214   ac_sed_frag=1 # Number of current file.
28215   ac_beg=1 # First line for current file.
28216   ac_end=$ac_max_sed_lines # Line after last line for current file.
28217   ac_more_lines=:
28218   ac_sed_cmds=
28219   while $ac_more_lines; do
28220     if test $ac_beg -gt 1; then
28221       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28222     else
28223       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28224     fi
28225     if test ! -s $tmp/subs.frag; then
28226       ac_more_lines=false
28227     else
28228       # The purpose of the label and of the branching condition is to
28229       # speed up the sed processing (if there are no `@' at all, there
28230       # is no need to browse any of the substitutions).
28231       # These are the two extra sed commands mentioned above.
28232       (echo ':t
28233   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28234       if test -z "$ac_sed_cmds"; then
28235         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28236       else
28237         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28238       fi
28239       ac_sed_frag=`expr $ac_sed_frag + 1`
28240       ac_beg=$ac_end
28241       ac_end=`expr $ac_end + $ac_max_sed_lines`
28242     fi
28243   done
28244   if test -z "$ac_sed_cmds"; then
28245     ac_sed_cmds=cat
28246   fi
28247 fi # test -n "$CONFIG_FILES"
28248
28249 _ACEOF
28250 cat >>$CONFIG_STATUS <<\_ACEOF
28251 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28252   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28253   case $ac_file in
28254   - | *:- | *:-:* ) # input from stdin
28255         cat >$tmp/stdin
28256         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28257         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28258   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28259         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28260   * )   ac_file_in=$ac_file.in ;;
28261   esac
28262
28263   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28264   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28266          X"$ac_file" : 'X\(//\)[^/]' \| \
28267          X"$ac_file" : 'X\(//\)$' \| \
28268          X"$ac_file" : 'X\(/\)' \| \
28269          .     : '\(.\)' 2>/dev/null ||
28270 echo X"$ac_file" |
28271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28272           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28273           /^X\(\/\/\)$/{ s//\1/; q; }
28274           /^X\(\/\).*/{ s//\1/; q; }
28275           s/.*/./; q'`
28276   { if $as_mkdir_p; then
28277     mkdir -p "$ac_dir"
28278   else
28279     as_dir="$ac_dir"
28280     as_dirs=
28281     while test ! -d "$as_dir"; do
28282       as_dirs="$as_dir $as_dirs"
28283       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28285          X"$as_dir" : 'X\(//\)[^/]' \| \
28286          X"$as_dir" : 'X\(//\)$' \| \
28287          X"$as_dir" : 'X\(/\)' \| \
28288          .     : '\(.\)' 2>/dev/null ||
28289 echo X"$as_dir" |
28290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28291           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28292           /^X\(\/\/\)$/{ s//\1/; q; }
28293           /^X\(\/\).*/{ s//\1/; q; }
28294           s/.*/./; q'`
28295     done
28296     test ! -n "$as_dirs" || mkdir $as_dirs
28297   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28298 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28299    { (exit 1); exit 1; }; }; }
28300
28301   ac_builddir=.
28302
28303 if test "$ac_dir" != .; then
28304   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28305   # A "../" for each directory in $ac_dir_suffix.
28306   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28307 else
28308   ac_dir_suffix= ac_top_builddir=
28309 fi
28310
28311 case $srcdir in
28312   .)  # No --srcdir option.  We are building in place.
28313     ac_srcdir=.
28314     if test -z "$ac_top_builddir"; then
28315        ac_top_srcdir=.
28316     else
28317        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28318     fi ;;
28319   [\\/]* | ?:[\\/]* )  # Absolute path.
28320     ac_srcdir=$srcdir$ac_dir_suffix;
28321     ac_top_srcdir=$srcdir ;;
28322   *) # Relative path.
28323     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28324     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28325 esac
28326
28327 # Do not use `cd foo && pwd` to compute absolute paths, because
28328 # the directories may not exist.
28329 case `pwd` in
28330 .) ac_abs_builddir="$ac_dir";;
28331 *)
28332   case "$ac_dir" in
28333   .) ac_abs_builddir=`pwd`;;
28334   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28335   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28336   esac;;
28337 esac
28338 case $ac_abs_builddir in
28339 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28340 *)
28341   case ${ac_top_builddir}. in
28342   .) ac_abs_top_builddir=$ac_abs_builddir;;
28343   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28344   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28345   esac;;
28346 esac
28347 case $ac_abs_builddir in
28348 .) ac_abs_srcdir=$ac_srcdir;;
28349 *)
28350   case $ac_srcdir in
28351   .) ac_abs_srcdir=$ac_abs_builddir;;
28352   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28353   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28354   esac;;
28355 esac
28356 case $ac_abs_builddir in
28357 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28358 *)
28359   case $ac_top_srcdir in
28360   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28361   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28362   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28363   esac;;
28364 esac
28365
28366
28367   case $INSTALL in
28368   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28369   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28370   esac
28371
28372   if test x"$ac_file" != x-; then
28373     { echo "$as_me:$LINENO: creating $ac_file" >&5
28374 echo "$as_me: creating $ac_file" >&6;}
28375     rm -f "$ac_file"
28376   fi
28377   # Let's still pretend it is `configure' which instantiates (i.e., don't
28378   # use $as_me), people would be surprised to read:
28379   #    /* config.h.  Generated by config.status.  */
28380   if test x"$ac_file" = x-; then
28381     configure_input=
28382   else
28383     configure_input="$ac_file.  "
28384   fi
28385   configure_input=$configure_input"Generated from `echo $ac_file_in |
28386                                      sed 's,.*/,,'` by configure."
28387
28388   # First look for the input files in the build tree, otherwise in the
28389   # src tree.
28390   ac_file_inputs=`IFS=:
28391     for f in $ac_file_in; do
28392       case $f in
28393       -) echo $tmp/stdin ;;
28394       [\\/$]*)
28395          # Absolute (can't be DOS-style, as IFS=:)
28396          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28397 echo "$as_me: error: cannot find input file: $f" >&2;}
28398    { (exit 1); exit 1; }; }
28399          echo "$f";;
28400       *) # Relative
28401          if test -f "$f"; then
28402            # Build tree
28403            echo "$f"
28404          elif test -f "$srcdir/$f"; then
28405            # Source tree
28406            echo "$srcdir/$f"
28407          else
28408            # /dev/null tree
28409            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28410 echo "$as_me: error: cannot find input file: $f" >&2;}
28411    { (exit 1); exit 1; }; }
28412          fi;;
28413       esac
28414     done` || { (exit 1); exit 1; }
28415 _ACEOF
28416 cat >>$CONFIG_STATUS <<_ACEOF
28417   sed "$ac_vpsub
28418 $extrasub
28419 _ACEOF
28420 cat >>$CONFIG_STATUS <<\_ACEOF
28421 :t
28422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28423 s,@configure_input@,$configure_input,;t t
28424 s,@srcdir@,$ac_srcdir,;t t
28425 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28426 s,@top_srcdir@,$ac_top_srcdir,;t t
28427 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28428 s,@builddir@,$ac_builddir,;t t
28429 s,@abs_builddir@,$ac_abs_builddir,;t t
28430 s,@top_builddir@,$ac_top_builddir,;t t
28431 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28432 s,@INSTALL@,$ac_INSTALL,;t t
28433 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28434   rm -f $tmp/stdin
28435   if test x"$ac_file" != x-; then
28436     mv $tmp/out $ac_file
28437   else
28438     cat $tmp/out
28439     rm -f $tmp/out
28440   fi
28441
28442 done
28443 _ACEOF
28444 cat >>$CONFIG_STATUS <<\_ACEOF
28445
28446 #
28447 # CONFIG_HEADER section.
28448 #
28449
28450 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28451 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28452 #
28453 # ac_d sets the value in "#define NAME VALUE" lines.
28454 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
28455 ac_dB='[         ].*$,\1#\2'
28456 ac_dC=' '
28457 ac_dD=',;t'
28458 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28459 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
28460 ac_uB='$,\1#\2define\3'
28461 ac_uC=' '
28462 ac_uD=',;t'
28463
28464 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28465   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28466   case $ac_file in
28467   - | *:- | *:-:* ) # input from stdin
28468         cat >$tmp/stdin
28469         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28470         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28471   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28472         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28473   * )   ac_file_in=$ac_file.in ;;
28474   esac
28475
28476   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28477 echo "$as_me: creating $ac_file" >&6;}
28478
28479   # First look for the input files in the build tree, otherwise in the
28480   # src tree.
28481   ac_file_inputs=`IFS=:
28482     for f in $ac_file_in; do
28483       case $f in
28484       -) echo $tmp/stdin ;;
28485       [\\/$]*)
28486          # Absolute (can't be DOS-style, as IFS=:)
28487          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28488 echo "$as_me: error: cannot find input file: $f" >&2;}
28489    { (exit 1); exit 1; }; }
28490          # Do quote $f, to prevent DOS paths from being IFS'd.
28491          echo "$f";;
28492       *) # Relative
28493          if test -f "$f"; then
28494            # Build tree
28495            echo "$f"
28496          elif test -f "$srcdir/$f"; then
28497            # Source tree
28498            echo "$srcdir/$f"
28499          else
28500            # /dev/null tree
28501            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28502 echo "$as_me: error: cannot find input file: $f" >&2;}
28503    { (exit 1); exit 1; }; }
28504          fi;;
28505       esac
28506     done` || { (exit 1); exit 1; }
28507   # Remove the trailing spaces.
28508   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
28509
28510 _ACEOF
28511
28512 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28513 # `conftest.undefs', that substitutes the proper values into
28514 # config.h.in to produce config.h.  The first handles `#define'
28515 # templates, and the second `#undef' templates.
28516 # And first: Protect against being on the right side of a sed subst in
28517 # config.status.  Protect against being in an unquoted here document
28518 # in config.status.
28519 rm -f conftest.defines conftest.undefs
28520 # Using a here document instead of a string reduces the quoting nightmare.
28521 # Putting comments in sed scripts is not portable.
28522 #
28523 # `end' is used to avoid that the second main sed command (meant for
28524 # 0-ary CPP macros) applies to n-ary macro definitions.
28525 # See the Autoconf documentation for `clear'.
28526 cat >confdef2sed.sed <<\_ACEOF
28527 s/[\\&,]/\\&/g
28528 s,[\\$`],\\&,g
28529 t clear
28530 : clear
28531 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28532 t end
28533 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28534 : end
28535 _ACEOF
28536 # If some macros were called several times there might be several times
28537 # the same #defines, which is useless.  Nevertheless, we may not want to
28538 # sort them, since we want the *last* AC-DEFINE to be honored.
28539 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28540 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28541 rm -f confdef2sed.sed
28542
28543 # This sed command replaces #undef with comments.  This is necessary, for
28544 # example, in the case of _POSIX_SOURCE, which is predefined and required
28545 # on some systems where configure will not decide to define it.
28546 cat >>conftest.undefs <<\_ACEOF
28547 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28548 _ACEOF
28549
28550 # Break up conftest.defines because some shells have a limit on the size
28551 # of here documents, and old seds have small limits too (100 cmds).
28552 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28553 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28554 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28555 echo '  :' >>$CONFIG_STATUS
28556 rm -f conftest.tail
28557 while grep . conftest.defines >/dev/null
28558 do
28559   # Write a limited-size here document to $tmp/defines.sed.
28560   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28561   # Speed up: don't consider the non `#define' lines.
28562   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
28563   # Work around the forget-to-reset-the-flag bug.
28564   echo 't clr' >>$CONFIG_STATUS
28565   echo ': clr' >>$CONFIG_STATUS
28566   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28567   echo 'CEOF
28568   sed -f $tmp/defines.sed $tmp/in >$tmp/out
28569   rm -f $tmp/in
28570   mv $tmp/out $tmp/in
28571 ' >>$CONFIG_STATUS
28572   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28573   rm -f conftest.defines
28574   mv conftest.tail conftest.defines
28575 done
28576 rm -f conftest.defines
28577 echo '  fi # grep' >>$CONFIG_STATUS
28578 echo >>$CONFIG_STATUS
28579
28580 # Break up conftest.undefs because some shells have a limit on the size
28581 # of here documents, and old seds have small limits too (100 cmds).
28582 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
28583 rm -f conftest.tail
28584 while grep . conftest.undefs >/dev/null
28585 do
28586   # Write a limited-size here document to $tmp/undefs.sed.
28587   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28588   # Speed up: don't consider the non `#undef'
28589   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
28590   # Work around the forget-to-reset-the-flag bug.
28591   echo 't clr' >>$CONFIG_STATUS
28592   echo ': clr' >>$CONFIG_STATUS
28593   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28594   echo 'CEOF
28595   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28596   rm -f $tmp/in
28597   mv $tmp/out $tmp/in
28598 ' >>$CONFIG_STATUS
28599   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28600   rm -f conftest.undefs
28601   mv conftest.tail conftest.undefs
28602 done
28603 rm -f conftest.undefs
28604
28605 cat >>$CONFIG_STATUS <<\_ACEOF
28606   # Let's still pretend it is `configure' which instantiates (i.e., don't
28607   # use $as_me), people would be surprised to read:
28608   #    /* config.h.  Generated by config.status.  */
28609   if test x"$ac_file" = x-; then
28610     echo "/* Generated by configure.  */" >$tmp/config.h
28611   else
28612     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28613   fi
28614   cat $tmp/in >>$tmp/config.h
28615   rm -f $tmp/in
28616   if test x"$ac_file" != x-; then
28617     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28618       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28619 echo "$as_me: $ac_file is unchanged" >&6;}
28620     else
28621       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28622 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28623          X"$ac_file" : 'X\(//\)[^/]' \| \
28624          X"$ac_file" : 'X\(//\)$' \| \
28625          X"$ac_file" : 'X\(/\)' \| \
28626          .     : '\(.\)' 2>/dev/null ||
28627 echo X"$ac_file" |
28628     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28629           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28630           /^X\(\/\/\)$/{ s//\1/; q; }
28631           /^X\(\/\).*/{ s//\1/; q; }
28632           s/.*/./; q'`
28633       { if $as_mkdir_p; then
28634     mkdir -p "$ac_dir"
28635   else
28636     as_dir="$ac_dir"
28637     as_dirs=
28638     while test ! -d "$as_dir"; do
28639       as_dirs="$as_dir $as_dirs"
28640       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28642          X"$as_dir" : 'X\(//\)[^/]' \| \
28643          X"$as_dir" : 'X\(//\)$' \| \
28644          X"$as_dir" : 'X\(/\)' \| \
28645          .     : '\(.\)' 2>/dev/null ||
28646 echo X"$as_dir" |
28647     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28648           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28649           /^X\(\/\/\)$/{ s//\1/; q; }
28650           /^X\(\/\).*/{ s//\1/; q; }
28651           s/.*/./; q'`
28652     done
28653     test ! -n "$as_dirs" || mkdir $as_dirs
28654   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28655 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28656    { (exit 1); exit 1; }; }; }
28657
28658       rm -f $ac_file
28659       mv $tmp/config.h $ac_file
28660     fi
28661   else
28662     cat $tmp/config.h
28663     rm -f $tmp/config.h
28664   fi
28665 # Compute $ac_file's index in $config_headers.
28666 _am_stamp_count=1
28667 for _am_header in $config_headers :; do
28668   case $_am_header in
28669     $ac_file | $ac_file:* )
28670       break ;;
28671     * )
28672       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28673   esac
28674 done
28675 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28676 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28677          X$ac_file : 'X\(//\)[^/]' \| \
28678          X$ac_file : 'X\(//\)$' \| \
28679          X$ac_file : 'X\(/\)' \| \
28680          .     : '\(.\)' 2>/dev/null ||
28681 echo X$ac_file |
28682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28683           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28684           /^X\(\/\/\)$/{ s//\1/; q; }
28685           /^X\(\/\).*/{ s//\1/; q; }
28686           s/.*/./; q'`/stamp-h$_am_stamp_count
28687 done
28688 _ACEOF
28689 cat >>$CONFIG_STATUS <<\_ACEOF
28690
28691 #
28692 # CONFIG_COMMANDS section.
28693 #
28694 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28695   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28696   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28697   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28698 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28699          X"$ac_dest" : 'X\(//\)[^/]' \| \
28700          X"$ac_dest" : 'X\(//\)$' \| \
28701          X"$ac_dest" : 'X\(/\)' \| \
28702          .     : '\(.\)' 2>/dev/null ||
28703 echo X"$ac_dest" |
28704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28705           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28706           /^X\(\/\/\)$/{ s//\1/; q; }
28707           /^X\(\/\).*/{ s//\1/; q; }
28708           s/.*/./; q'`
28709   { if $as_mkdir_p; then
28710     mkdir -p "$ac_dir"
28711   else
28712     as_dir="$ac_dir"
28713     as_dirs=
28714     while test ! -d "$as_dir"; do
28715       as_dirs="$as_dir $as_dirs"
28716       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28717 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28718          X"$as_dir" : 'X\(//\)[^/]' \| \
28719          X"$as_dir" : 'X\(//\)$' \| \
28720          X"$as_dir" : 'X\(/\)' \| \
28721          .     : '\(.\)' 2>/dev/null ||
28722 echo X"$as_dir" |
28723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28724           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28725           /^X\(\/\/\)$/{ s//\1/; q; }
28726           /^X\(\/\).*/{ s//\1/; q; }
28727           s/.*/./; q'`
28728     done
28729     test ! -n "$as_dirs" || mkdir $as_dirs
28730   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28731 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28732    { (exit 1); exit 1; }; }; }
28733
28734   ac_builddir=.
28735
28736 if test "$ac_dir" != .; then
28737   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28738   # A "../" for each directory in $ac_dir_suffix.
28739   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28740 else
28741   ac_dir_suffix= ac_top_builddir=
28742 fi
28743
28744 case $srcdir in
28745   .)  # No --srcdir option.  We are building in place.
28746     ac_srcdir=.
28747     if test -z "$ac_top_builddir"; then
28748        ac_top_srcdir=.
28749     else
28750        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28751     fi ;;
28752   [\\/]* | ?:[\\/]* )  # Absolute path.
28753     ac_srcdir=$srcdir$ac_dir_suffix;
28754     ac_top_srcdir=$srcdir ;;
28755   *) # Relative path.
28756     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28757     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28758 esac
28759
28760 # Do not use `cd foo && pwd` to compute absolute paths, because
28761 # the directories may not exist.
28762 case `pwd` in
28763 .) ac_abs_builddir="$ac_dir";;
28764 *)
28765   case "$ac_dir" in
28766   .) ac_abs_builddir=`pwd`;;
28767   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28768   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28769   esac;;
28770 esac
28771 case $ac_abs_builddir in
28772 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28773 *)
28774   case ${ac_top_builddir}. in
28775   .) ac_abs_top_builddir=$ac_abs_builddir;;
28776   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28777   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28778   esac;;
28779 esac
28780 case $ac_abs_builddir in
28781 .) ac_abs_srcdir=$ac_srcdir;;
28782 *)
28783   case $ac_srcdir in
28784   .) ac_abs_srcdir=$ac_abs_builddir;;
28785   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28786   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28787   esac;;
28788 esac
28789 case $ac_abs_builddir in
28790 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28791 *)
28792   case $ac_top_srcdir in
28793   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28794   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28795   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28796   esac;;
28797 esac
28798
28799
28800   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28801 echo "$as_me: executing $ac_dest commands" >&6;}
28802   case $ac_dest in
28803     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28804   # Strip MF so we end up with the name of the file.
28805   mf=`echo "$mf" | sed -e 's/:.*$//'`
28806   # Check whether this is an Automake generated Makefile or not.
28807   # We used to match only the files named `Makefile.in', but
28808   # some people rename them; so instead we look at the file content.
28809   # Grep'ing the first line is not enough: some people post-process
28810   # each Makefile.in and add a new line on top of each file to say so.
28811   # So let's grep whole file.
28812   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28813     dirpart=`(dirname "$mf") 2>/dev/null ||
28814 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28815          X"$mf" : 'X\(//\)[^/]' \| \
28816          X"$mf" : 'X\(//\)$' \| \
28817          X"$mf" : 'X\(/\)' \| \
28818          .     : '\(.\)' 2>/dev/null ||
28819 echo X"$mf" |
28820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28821           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28822           /^X\(\/\/\)$/{ s//\1/; q; }
28823           /^X\(\/\).*/{ s//\1/; q; }
28824           s/.*/./; q'`
28825   else
28826     continue
28827   fi
28828   # Extract the definition of DEPDIR, am__include, and am__quote
28829   # from the Makefile without running `make'.
28830   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28831   test -z "$DEPDIR" && continue
28832   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28833   test -z "am__include" && continue
28834   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28835   # When using ansi2knr, U may be empty or an underscore; expand it
28836   U=`sed -n 's/^U = //p' < "$mf"`
28837   # Find all dependency output files, they are included files with
28838   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28839   # simplest approach to changing $(DEPDIR) to its actual value in the
28840   # expansion.
28841   for file in `sed -n "
28842     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28843        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28844     # Make sure the directory exists.
28845     test -f "$dirpart/$file" && continue
28846     fdir=`(dirname "$file") 2>/dev/null ||
28847 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28848          X"$file" : 'X\(//\)[^/]' \| \
28849          X"$file" : 'X\(//\)$' \| \
28850          X"$file" : 'X\(/\)' \| \
28851          .     : '\(.\)' 2>/dev/null ||
28852 echo X"$file" |
28853     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28854           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28855           /^X\(\/\/\)$/{ s//\1/; q; }
28856           /^X\(\/\).*/{ s//\1/; q; }
28857           s/.*/./; q'`
28858     { if $as_mkdir_p; then
28859     mkdir -p $dirpart/$fdir
28860   else
28861     as_dir=$dirpart/$fdir
28862     as_dirs=
28863     while test ! -d "$as_dir"; do
28864       as_dirs="$as_dir $as_dirs"
28865       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28867          X"$as_dir" : 'X\(//\)[^/]' \| \
28868          X"$as_dir" : 'X\(//\)$' \| \
28869          X"$as_dir" : 'X\(/\)' \| \
28870          .     : '\(.\)' 2>/dev/null ||
28871 echo X"$as_dir" |
28872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28874           /^X\(\/\/\)$/{ s//\1/; q; }
28875           /^X\(\/\).*/{ s//\1/; q; }
28876           s/.*/./; q'`
28877     done
28878     test ! -n "$as_dirs" || mkdir $as_dirs
28879   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28880 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28881    { (exit 1); exit 1; }; }; }
28882
28883     # echo "creating $dirpart/$file"
28884     echo '# dummy' > "$dirpart/$file"
28885   done
28886 done
28887  ;;
28888   esac
28889 done
28890 _ACEOF
28891
28892 cat >>$CONFIG_STATUS <<\_ACEOF
28893
28894 { (exit 0); exit 0; }
28895 _ACEOF
28896 chmod +x $CONFIG_STATUS
28897 ac_clean_files=$ac_clean_files_save
28898
28899
28900 # configure is writing to config.log, and then calls config.status.
28901 # config.status does its own redirection, appending to config.log.
28902 # Unfortunately, on DOS this fails, as config.log is still kept open
28903 # by configure, so config.status won't be able to write to it; its
28904 # output is simply discarded.  So we exec the FD to /dev/null,
28905 # effectively closing config.log, so it can be properly (re)opened and
28906 # appended to by config.status.  When coming back to configure, we
28907 # need to make the FD available again.
28908 if test "$no_create" != yes; then
28909   ac_cs_success=:
28910   ac_config_status_args=
28911   test "$silent" = yes &&
28912     ac_config_status_args="$ac_config_status_args --quiet"
28913   exec 5>/dev/null
28914   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28915   exec 5>>config.log
28916   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28917   # would make configure fail if this is the last instruction.
28918   $ac_cs_success || { (exit 1); exit 1; }
28919 fi
28920
28921
28922 { echo "$as_me:$LINENO:
28923
28924 $PACKAGE_STRING
28925
28926 $FEATURES_TXT" >&5
28927 echo "$as_me:
28928
28929 $PACKAGE_STRING
28930
28931 $FEATURES_TXT" >&6;}