3f23f01a5c1b190679e6d38f8de97035727b5189
[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.213.
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.213'
427 PACKAGE_STRING='util-vserver 0.30.213'
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 PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir 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 CPP 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 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 HAVE_GENTOO_INIT_TRUE HAVE_GENTOO_INIT_FALSE HAVE_SYSV_INIT_TRUE HAVE_SYSV_INIT_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_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_DIET_set=${DIET+set}
938 ac_env_DIET_value=$DIET
939 ac_cv_env_DIET_set=${DIET+set}
940 ac_cv_env_DIET_value=$DIET
941 ac_env_DIETFLAGS_set=${DIETFLAGS+set}
942 ac_env_DIETFLAGS_value=$DIETFLAGS
943 ac_cv_env_DIETFLAGS_set=${DIETFLAGS+set}
944 ac_cv_env_DIETFLAGS_value=$DIETFLAGS
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.213 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.213:";;
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-alternative-syscalls
1051                           do not use the alternative _syscallX macros provided
1052                           by Herbert Poetzl (default: use them)
1053   --disable-dietlibc      do not use dietlibc resp. enforce its usage (with
1054                           --enable-dietlibc) (default: autodetect dietlibc)
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-syscall=METHOD   call syscall(2) with the specified METHOD; valid
1075                           values are 'fast', 'traditional' and 'auto'
1076                           (default: auto)
1077   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1078   --with-pic              try to use only PIC/non-PIC objects [default=use
1079                           both]
1080   --with-tags[=TAGS]
1081                           include additional configurations [automatic]
1082   --with-vrootdir=DIR     place vservers under DIR (default: /vservers)
1083   --with-initscripts=TYPE force host initscripts; valid values are 'gentoo'
1084                           and 'sysv' (default: guess)
1085
1086 Some influential environment variables:
1087   CXX         C++ compiler command
1088   CXXFLAGS    C++ compiler flags
1089   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1090               nonstandard directory <lib dir>
1091   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1092               headers in a nonstandard directory <include dir>
1093   CC          C compiler command
1094   CFLAGS      C compiler flags
1095   CPP         C preprocessor
1096   DIET        The 'diet' wrapper (default: diet)
1097   DIETFLAGS   Flags passed to the 'diet' wrapper (default: -O)
1098   CXXCPP      C++ preprocessor
1099   F77         Fortran 77 compiler command
1100   FFLAGS      Fortran 77 compiler flags
1101
1102 Use these variables to override the choices made by `configure' or to help
1103 it to find libraries and programs with nonstandard names/locations.
1104
1105 Report bugs to <vserver@list.linux-vserver.org>.
1106 _ACEOF
1107 fi
1108
1109 if test "$ac_init_help" = "recursive"; then
1110   # If there are subdirs, report their specific --help.
1111   ac_popdir=`pwd`
1112   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113     test -d $ac_dir || continue
1114     ac_builddir=.
1115
1116 if test "$ac_dir" != .; then
1117   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118   # A "../" for each directory in $ac_dir_suffix.
1119   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120 else
1121   ac_dir_suffix= ac_top_builddir=
1122 fi
1123
1124 case $srcdir in
1125   .)  # No --srcdir option.  We are building in place.
1126     ac_srcdir=.
1127     if test -z "$ac_top_builddir"; then
1128        ac_top_srcdir=.
1129     else
1130        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131     fi ;;
1132   [\\/]* | ?:[\\/]* )  # Absolute path.
1133     ac_srcdir=$srcdir$ac_dir_suffix;
1134     ac_top_srcdir=$srcdir ;;
1135   *) # Relative path.
1136     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138 esac
1139
1140 # Do not use `cd foo && pwd` to compute absolute paths, because
1141 # the directories may not exist.
1142 case `pwd` in
1143 .) ac_abs_builddir="$ac_dir";;
1144 *)
1145   case "$ac_dir" in
1146   .) ac_abs_builddir=`pwd`;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149   esac;;
1150 esac
1151 case $ac_abs_builddir in
1152 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1153 *)
1154   case ${ac_top_builddir}. in
1155   .) ac_abs_top_builddir=$ac_abs_builddir;;
1156   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158   esac;;
1159 esac
1160 case $ac_abs_builddir in
1161 .) ac_abs_srcdir=$ac_srcdir;;
1162 *)
1163   case $ac_srcdir in
1164   .) ac_abs_srcdir=$ac_abs_builddir;;
1165   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167   esac;;
1168 esac
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1171 *)
1172   case $ac_top_srcdir in
1173   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176   esac;;
1177 esac
1178
1179     cd $ac_dir
1180     # Check for guested configure; otherwise get Cygnus style configure.
1181     if test -f $ac_srcdir/configure.gnu; then
1182       echo
1183       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1184     elif test -f $ac_srcdir/configure; then
1185       echo
1186       $SHELL $ac_srcdir/configure  --help=recursive
1187     elif test -f $ac_srcdir/configure.ac ||
1188            test -f $ac_srcdir/configure.in; then
1189       echo
1190       $ac_configure --help
1191     else
1192       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193     fi
1194     cd $ac_popdir
1195   done
1196 fi
1197
1198 test -n "$ac_init_help" && exit 0
1199 if $ac_init_version; then
1200   cat <<\_ACEOF
1201 util-vserver configure 0.30.213
1202 generated by GNU Autoconf 2.59
1203
1204 Copyright (C) 2003 Free Software Foundation, Inc.
1205 This configure script is free software; the Free Software Foundation
1206 gives unlimited permission to copy, distribute and modify it.
1207 _ACEOF
1208   exit 0
1209 fi
1210 exec 5>config.log
1211 cat >&5 <<_ACEOF
1212 This file contains any messages produced by compilers while
1213 running configure, to aid debugging if configure makes a mistake.
1214
1215 It was created by util-vserver $as_me 0.30.213, which was
1216 generated by GNU Autoconf 2.59.  Invocation command line was
1217
1218   $ $0 $@
1219
1220 _ACEOF
1221 {
1222 cat <<_ASUNAME
1223 ## --------- ##
1224 ## Platform. ##
1225 ## --------- ##
1226
1227 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1235
1236 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1237 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1238 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1240 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1241 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1242 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1243
1244 _ASUNAME
1245
1246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247 for as_dir in $PATH
1248 do
1249   IFS=$as_save_IFS
1250   test -z "$as_dir" && as_dir=.
1251   echo "PATH: $as_dir"
1252 done
1253
1254 } >&5
1255
1256 cat >&5 <<_ACEOF
1257
1258
1259 ## ----------- ##
1260 ## Core tests. ##
1261 ## ----------- ##
1262
1263 _ACEOF
1264
1265
1266 # Keep a trace of the command line.
1267 # Strip out --no-create and --no-recursion so they do not pile up.
1268 # Strip out --silent because we don't want to record it for future runs.
1269 # Also quote any args containing shell meta-characters.
1270 # Make two passes to allow for proper duplicate-argument suppression.
1271 ac_configure_args=
1272 ac_configure_args0=
1273 ac_configure_args1=
1274 ac_sep=
1275 ac_must_keep_next=false
1276 for ac_pass in 1 2
1277 do
1278   for ac_arg
1279   do
1280     case $ac_arg in
1281     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283     | -silent | --silent | --silen | --sile | --sil)
1284       continue ;;
1285     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287     esac
1288     case $ac_pass in
1289     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290     2)
1291       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292       if test $ac_must_keep_next = true; then
1293         ac_must_keep_next=false # Got value, back to normal.
1294       else
1295         case $ac_arg in
1296           *=* | --config-cache | -C | -disable-* | --disable-* \
1297           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299           | -with-* | --with-* | -without-* | --without-* | --x)
1300             case "$ac_configure_args0 " in
1301               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302             esac
1303             ;;
1304           -* ) ac_must_keep_next=true ;;
1305         esac
1306       fi
1307       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308       # Get rid of the leading space.
1309       ac_sep=" "
1310       ;;
1311     esac
1312   done
1313 done
1314 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317 # When interrupted or exit'd, cleanup temporary files, and complete
1318 # config.log.  We remove comments because anyway the quotes in there
1319 # would cause problems or look ugly.
1320 # WARNING: Be sure not to use single quotes in there, as some shells,
1321 # such as our DU 5.0 friend, will then `close' the trap.
1322 trap 'exit_status=$?
1323   # Save into config.log some information that might help in debugging.
1324   {
1325     echo
1326
1327     cat <<\_ASBOX
1328 ## ---------------- ##
1329 ## Cache variables. ##
1330 ## ---------------- ##
1331 _ASBOX
1332     echo
1333     # The following way of writing the cache mishandles newlines in values,
1334 {
1335   (set) 2>&1 |
1336     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337     *ac_space=\ *)
1338       sed -n \
1339         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1341       ;;
1342     *)
1343       sed -n \
1344         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1345       ;;
1346     esac;
1347 }
1348     echo
1349
1350     cat <<\_ASBOX
1351 ## ----------------- ##
1352 ## Output variables. ##
1353 ## ----------------- ##
1354 _ASBOX
1355     echo
1356     for ac_var in $ac_subst_vars
1357     do
1358       eval ac_val=$`echo $ac_var`
1359       echo "$ac_var='"'"'$ac_val'"'"'"
1360     done | sort
1361     echo
1362
1363     if test -n "$ac_subst_files"; then
1364       cat <<\_ASBOX
1365 ## ------------- ##
1366 ## Output files. ##
1367 ## ------------- ##
1368 _ASBOX
1369       echo
1370       for ac_var in $ac_subst_files
1371       do
1372         eval ac_val=$`echo $ac_var`
1373         echo "$ac_var='"'"'$ac_val'"'"'"
1374       done | sort
1375       echo
1376     fi
1377
1378     if test -s confdefs.h; then
1379       cat <<\_ASBOX
1380 ## ----------- ##
1381 ## confdefs.h. ##
1382 ## ----------- ##
1383 _ASBOX
1384       echo
1385       sed "/^$/d" confdefs.h | sort
1386       echo
1387     fi
1388     test "$ac_signal" != 0 &&
1389       echo "$as_me: caught signal $ac_signal"
1390     echo "$as_me: exit $exit_status"
1391   } >&5
1392   rm -f core *.core &&
1393   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394     exit $exit_status
1395      ' 0
1396 for ac_signal in 1 2 13 15; do
1397   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398 done
1399 ac_signal=0
1400
1401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1402 rm -rf conftest* confdefs.h
1403 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404 echo >confdefs.h
1405
1406 # Predefined preprocessor variables.
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_NAME "$PACKAGE_NAME"
1410 _ACEOF
1411
1412
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415 _ACEOF
1416
1417
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1420 _ACEOF
1421
1422
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_STRING "$PACKAGE_STRING"
1425 _ACEOF
1426
1427
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430 _ACEOF
1431
1432
1433 # Let the site file select an alternate cache file if it wants to.
1434 # Prefer explicitly selected file to automatically selected ones.
1435 if test -z "$CONFIG_SITE"; then
1436   if test "x$prefix" != xNONE; then
1437     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438   else
1439     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440   fi
1441 fi
1442 for ac_site_file in $CONFIG_SITE; do
1443   if test -r "$ac_site_file"; then
1444     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445 echo "$as_me: loading site script $ac_site_file" >&6;}
1446     sed 's/^/| /' "$ac_site_file" >&5
1447     . "$ac_site_file"
1448   fi
1449 done
1450
1451 if test -r "$cache_file"; then
1452   # Some versions of bash will fail to source /dev/null (special
1453   # files actually), so we avoid doing that.
1454   if test -f "$cache_file"; then
1455     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456 echo "$as_me: loading cache $cache_file" >&6;}
1457     case $cache_file in
1458       [\\/]* | ?:[\\/]* ) . $cache_file;;
1459       *)                      . ./$cache_file;;
1460     esac
1461   fi
1462 else
1463   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464 echo "$as_me: creating cache $cache_file" >&6;}
1465   >$cache_file
1466 fi
1467
1468 # Check that the precious variables saved in the cache have kept the same
1469 # value.
1470 ac_cache_corrupted=false
1471 for ac_var in `(set) 2>&1 |
1472                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1473   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474   eval ac_new_set=\$ac_env_${ac_var}_set
1475   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476   eval ac_new_val="\$ac_env_${ac_var}_value"
1477   case $ac_old_set,$ac_new_set in
1478     set,)
1479       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481       ac_cache_corrupted=: ;;
1482     ,set)
1483       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485       ac_cache_corrupted=: ;;
1486     ,);;
1487     *)
1488       if test "x$ac_old_val" != "x$ac_new_val"; then
1489         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1490 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1491         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1492 echo "$as_me:   former value:  $ac_old_val" >&2;}
1493         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1494 echo "$as_me:   current value: $ac_new_val" >&2;}
1495         ac_cache_corrupted=:
1496       fi;;
1497   esac
1498   # Pass precious variables to config.status.
1499   if test "$ac_new_set" = set; then
1500     case $ac_new_val in
1501     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503     *) ac_arg=$ac_var=$ac_new_val ;;
1504     esac
1505     case " $ac_configure_args " in
1506       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1507       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508     esac
1509   fi
1510 done
1511 if $ac_cache_corrupted; then
1512   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516    { (exit 1); exit 1; }; }
1517 fi
1518
1519 ac_ext=c
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1551
1552           ac_config_headers="$ac_config_headers config.h"
1553
1554
1555 am__api_version="1.9"
1556 ac_aux_dir=
1557 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1558   if test -f $ac_dir/install-sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install-sh -c"
1561     break
1562   elif test -f $ac_dir/install.sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install.sh -c"
1565     break
1566   elif test -f $ac_dir/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 # Find a good install program.  We prefer a C program (faster),
1582 # so one script is as good as another.  But avoid the broken or
1583 # incompatible versions:
1584 # SysV /etc/install, /usr/sbin/install
1585 # SunOS /usr/etc/install
1586 # IRIX /sbin/install
1587 # AIX /bin/install
1588 # AmigaOS /C/install, which installs bootblocks on floppy discs
1589 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1590 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1591 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1592 # OS/2's system install, which has a completely different semantic
1593 # ./install, which can be erroneously created by make from ./install.sh.
1594 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1595 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1596 if test -z "$INSTALL"; then
1597 if test "${ac_cv_path_install+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1602 do
1603   IFS=$as_save_IFS
1604   test -z "$as_dir" && as_dir=.
1605   # Account for people who put trailing slashes in PATH elements.
1606 case $as_dir/ in
1607   ./ | .// | /cC/* | \
1608   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1609   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1610   /usr/ucb/* ) ;;
1611   *)
1612     # OSF1 and SCO ODT 3.0 have their own names for install.
1613     # Don't use installbsd from OSF since it installs stuff as root
1614     # by default.
1615     for ac_prog in ginstall scoinst install; do
1616       for ac_exec_ext in '' $ac_executable_extensions; do
1617         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1618           if test $ac_prog = install &&
1619             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1620             # AIX install.  It has an incompatible calling convention.
1621             :
1622           elif test $ac_prog = install &&
1623             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1624             # program-specific install script used by HP pwplus--don't use.
1625             :
1626           else
1627             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1628             break 3
1629           fi
1630         fi
1631       done
1632     done
1633     ;;
1634 esac
1635 done
1636
1637
1638 fi
1639   if test "${ac_cv_path_install+set}" = set; then
1640     INSTALL=$ac_cv_path_install
1641   else
1642     # As a last resort, use the slow shell script.  We don't cache a
1643     # path for INSTALL within a source directory, because that will
1644     # break other packages using the cache if that directory is
1645     # removed, or if the path is relative.
1646     INSTALL=$ac_install_sh
1647   fi
1648 fi
1649 echo "$as_me:$LINENO: result: $INSTALL" >&5
1650 echo "${ECHO_T}$INSTALL" >&6
1651
1652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1653 # It thinks the first close brace ends the variable substitution.
1654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1655
1656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1657
1658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1659
1660 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1661 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1662 # Just in case
1663 sleep 1
1664 echo timestamp > conftest.file
1665 # Do `set' in a subshell so we don't clobber the current shell's
1666 # arguments.  Must try -L first in case configure is actually a
1667 # symlink; some systems play weird games with the mod time of symlinks
1668 # (eg FreeBSD returns the mod time of the symlink's containing
1669 # directory).
1670 if (
1671    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1672    if test "$*" = "X"; then
1673       # -L didn't work.
1674       set X `ls -t $srcdir/configure conftest.file`
1675    fi
1676    rm -f conftest.file
1677    if test "$*" != "X $srcdir/configure conftest.file" \
1678       && test "$*" != "X conftest.file $srcdir/configure"; then
1679
1680       # If neither matched, then we have a broken ls.  This can happen
1681       # if, for instance, CONFIG_SHELL is bash and it inherits a
1682       # broken ls alias from the environment.  This has actually
1683       # happened.  Such a system could not be considered "sane".
1684       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1685 alias in your environment" >&5
1686 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1687 alias in your environment" >&2;}
1688    { (exit 1); exit 1; }; }
1689    fi
1690
1691    test "$2" = conftest.file
1692    )
1693 then
1694    # Ok.
1695    :
1696 else
1697    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1698 Check your system clock" >&5
1699 echo "$as_me: error: newly created file is older than distributed files!
1700 Check your system clock" >&2;}
1701    { (exit 1); exit 1; }; }
1702 fi
1703 echo "$as_me:$LINENO: result: yes" >&5
1704 echo "${ECHO_T}yes" >&6
1705 test "$program_prefix" != NONE &&
1706   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1707 # Use a double $ so make ignores it.
1708 test "$program_suffix" != NONE &&
1709   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1710 # Double any \ or $.  echo might interpret backslashes.
1711 # By default was `s,x,x', remove it if useless.
1712 cat <<\_ACEOF >conftest.sed
1713 s/[\\$]/&&/g;s/;s,x,x,$//
1714 _ACEOF
1715 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1716 rm conftest.sed
1717
1718 # expand $ac_aux_dir to an absolute path
1719 am_aux_dir=`cd $ac_aux_dir && pwd`
1720
1721 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1722 # Use eval to expand $SHELL
1723 if eval "$MISSING --run true"; then
1724   am_missing_run="$MISSING --run "
1725 else
1726   am_missing_run=
1727   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1728 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1729 fi
1730
1731 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1732   # We used to keeping the `.' as first argument, in order to
1733   # allow $(mkdir_p) to be used without argument.  As in
1734   #   $(mkdir_p) $(somedir)
1735   # where $(somedir) is conditionally defined.  However this is wrong
1736   # for two reasons:
1737   #  1. if the package is installed by a user who cannot write `.'
1738   #     make install will fail,
1739   #  2. the above comment should most certainly read
1740   #     $(mkdir_p) $(DESTDIR)$(somedir)
1741   #     so it does not work when $(somedir) is undefined and
1742   #     $(DESTDIR) is not.
1743   #  To support the latter case, we have to write
1744   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1745   #  so the `.' trick is pointless.
1746   mkdir_p='mkdir -p --'
1747 else
1748   # On NextStep and OpenStep, the `mkdir' command does not
1749   # recognize any option.  It will interpret all options as
1750   # directories to create, and then abort because `.' already
1751   # exists.
1752   for d in ./-p ./--version;
1753   do
1754     test -d $d && rmdir $d
1755   done
1756   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1757   if test -f "$ac_aux_dir/mkinstalldirs"; then
1758     mkdir_p='$(mkinstalldirs)'
1759   else
1760     mkdir_p='$(install_sh) -d'
1761   fi
1762 fi
1763
1764 for ac_prog in gawk mawk nawk awk
1765 do
1766   # Extract the first word of "$ac_prog", so it can be a program name with args.
1767 set dummy $ac_prog; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_AWK+set}" = set; then
1771   echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773   if test -n "$AWK"; then
1774   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1775 else
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1778 do
1779   IFS=$as_save_IFS
1780   test -z "$as_dir" && as_dir=.
1781   for ac_exec_ext in '' $ac_executable_extensions; do
1782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783     ac_cv_prog_AWK="$ac_prog"
1784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785     break 2
1786   fi
1787 done
1788 done
1789
1790 fi
1791 fi
1792 AWK=$ac_cv_prog_AWK
1793 if test -n "$AWK"; then
1794   echo "$as_me:$LINENO: result: $AWK" >&5
1795 echo "${ECHO_T}$AWK" >&6
1796 else
1797   echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1799 fi
1800
1801   test -n "$AWK" && break
1802 done
1803
1804 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1806 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1807 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1808   echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810   cat >conftest.make <<\_ACEOF
1811 all:
1812         @echo 'ac_maketemp="$(MAKE)"'
1813 _ACEOF
1814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1815 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1816 if test -n "$ac_maketemp"; then
1817   eval ac_cv_prog_make_${ac_make}_set=yes
1818 else
1819   eval ac_cv_prog_make_${ac_make}_set=no
1820 fi
1821 rm -f conftest.make
1822 fi
1823 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1824   echo "$as_me:$LINENO: result: yes" >&5
1825 echo "${ECHO_T}yes" >&6
1826   SET_MAKE=
1827 else
1828   echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1830   SET_MAKE="MAKE=${MAKE-make}"
1831 fi
1832
1833 rm -rf .tst 2>/dev/null
1834 mkdir .tst 2>/dev/null
1835 if test -d .tst; then
1836   am__leading_dot=.
1837 else
1838   am__leading_dot=_
1839 fi
1840 rmdir .tst 2>/dev/null
1841
1842 # test to see if srcdir already configured
1843 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1844    test -f $srcdir/config.status; then
1845   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1846 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1847    { (exit 1); exit 1; }; }
1848 fi
1849
1850 # test whether we have cygpath
1851 if test -z "$CYGPATH_W"; then
1852   if (cygpath --version) >/dev/null 2>/dev/null; then
1853     CYGPATH_W='cygpath -w'
1854   else
1855     CYGPATH_W=echo
1856   fi
1857 fi
1858
1859
1860 # Define the identity of the package.
1861  PACKAGE='util-vserver'
1862  VERSION='0.30.213'
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE "$PACKAGE"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define VERSION "$VERSION"
1872 _ACEOF
1873
1874 # Some tools Automake needs.
1875
1876 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1877
1878
1879 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1880
1881
1882 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1883
1884
1885 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1886
1887
1888 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1889
1890 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1891
1892 # Installed binaries are usually stripped using `strip' when the user
1893 # run `make install-strip'.  However `strip' might not be the right
1894 # tool to use in cross-compilation environments, therefore Automake
1895 # will honor the `STRIP' environment variable to overrule this program.
1896 if test "$cross_compiling" != no; then
1897   if test -n "$ac_tool_prefix"; then
1898   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1899 set dummy ${ac_tool_prefix}strip; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_STRIP+set}" = set; then
1903   echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905   if test -n "$STRIP"; then
1906   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911   IFS=$as_save_IFS
1912   test -z "$as_dir" && as_dir=.
1913   for ac_exec_ext in '' $ac_executable_extensions; do
1914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917     break 2
1918   fi
1919 done
1920 done
1921
1922 fi
1923 fi
1924 STRIP=$ac_cv_prog_STRIP
1925 if test -n "$STRIP"; then
1926   echo "$as_me:$LINENO: result: $STRIP" >&5
1927 echo "${ECHO_T}$STRIP" >&6
1928 else
1929   echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1931 fi
1932
1933 fi
1934 if test -z "$ac_cv_prog_STRIP"; then
1935   ac_ct_STRIP=$STRIP
1936   # Extract the first word of "strip", so it can be a program name with args.
1937 set dummy strip; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$ac_ct_STRIP"; then
1944   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_ac_ct_STRIP="strip"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1961 fi
1962 fi
1963 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1964 if test -n "$ac_ct_STRIP"; then
1965   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1966 echo "${ECHO_T}$ac_ct_STRIP" >&6
1967 else
1968   echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1970 fi
1971
1972   STRIP=$ac_ct_STRIP
1973 else
1974   STRIP="$ac_cv_prog_STRIP"
1975 fi
1976
1977 fi
1978 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1979
1980 # We need awk for the "check" target.  The system "awk" is bad on
1981 # some platforms.
1982 # Always define AMTAR for backward compatibility.
1983
1984 AMTAR=${AMTAR-"${am_missing_run}tar"}
1985
1986 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1987
1988
1989
1990
1991
1992 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1993 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1994     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1995 if test "${enable_maintainer_mode+set}" = set; then
1996   enableval="$enable_maintainer_mode"
1997   USE_MAINTAINER_MODE=$enableval
1998 else
1999   USE_MAINTAINER_MODE=no
2000 fi;
2001   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2002 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2003
2004
2005 if test $USE_MAINTAINER_MODE = yes; then
2006   MAINTAINER_MODE_TRUE=
2007   MAINTAINER_MODE_FALSE='#'
2008 else
2009   MAINTAINER_MODE_TRUE='#'
2010   MAINTAINER_MODE_FALSE=
2011 fi
2012
2013   MAINT=$MAINTAINER_MODE_TRUE
2014
2015
2016
2017 # Make sure we can run config.sub.
2018 $ac_config_sub sun4 >/dev/null 2>&1 ||
2019   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2020 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2021    { (exit 1); exit 1; }; }
2022
2023 echo "$as_me:$LINENO: checking build system type" >&5
2024 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2025 if test "${ac_cv_build+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   ac_cv_build_alias=$build_alias
2029 test -z "$ac_cv_build_alias" &&
2030   ac_cv_build_alias=`$ac_config_guess`
2031 test -z "$ac_cv_build_alias" &&
2032   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034    { (exit 1); exit 1; }; }
2035 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2036   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2037 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2038    { (exit 1); exit 1; }; }
2039
2040 fi
2041 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042 echo "${ECHO_T}$ac_cv_build" >&6
2043 build=$ac_cv_build
2044 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2045 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2046 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2047
2048
2049 echo "$as_me:$LINENO: checking host system type" >&5
2050 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2051 if test "${ac_cv_host+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   ac_cv_host_alias=$host_alias
2055 test -z "$ac_cv_host_alias" &&
2056   ac_cv_host_alias=$ac_cv_build_alias
2057 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2058   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2059 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2060    { (exit 1); exit 1; }; }
2061
2062 fi
2063 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2064 echo "${ECHO_T}$ac_cv_host" >&6
2065 host=$ac_cv_host
2066 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2067 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2068 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2069
2070
2071
2072 GPG_KEY="0xFFD316AC53ACA43A!"
2073
2074
2075 # Checks for programs.
2076 ac_ext=cc
2077 ac_cpp='$CXXCPP $CPPFLAGS'
2078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2081 if test -n "$ac_tool_prefix"; then
2082   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2083   do
2084     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_CXX+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   if test -n "$CXX"; then
2092   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099   for ac_exec_ext in '' $ac_executable_extensions; do
2100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103     break 2
2104   fi
2105 done
2106 done
2107
2108 fi
2109 fi
2110 CXX=$ac_cv_prog_CXX
2111 if test -n "$CXX"; then
2112   echo "$as_me:$LINENO: result: $CXX" >&5
2113 echo "${ECHO_T}$CXX" >&6
2114 else
2115   echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2117 fi
2118
2119     test -n "$CXX" && break
2120   done
2121 fi
2122 if test -z "$CXX"; then
2123   ac_ct_CXX=$CXX
2124   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2125 do
2126   # Extract the first word of "$ac_prog", so it can be a program name with args.
2127 set dummy $ac_prog; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test -n "$ac_ct_CXX"; then
2134   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143     ac_cv_prog_ac_ct_CXX="$ac_prog"
2144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145     break 2
2146   fi
2147 done
2148 done
2149
2150 fi
2151 fi
2152 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2153 if test -n "$ac_ct_CXX"; then
2154   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2155 echo "${ECHO_T}$ac_ct_CXX" >&6
2156 else
2157   echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2159 fi
2160
2161   test -n "$ac_ct_CXX" && break
2162 done
2163 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2164
2165   CXX=$ac_ct_CXX
2166 fi
2167
2168
2169 # Provide some information about the compiler.
2170 echo "$as_me:$LINENO:" \
2171      "checking for C++ compiler version" >&5
2172 ac_compiler=`set X $ac_compile; echo $2`
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2174   (eval $ac_compiler --version </dev/null >&5) 2>&5
2175   ac_status=$?
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }
2178 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2179   (eval $ac_compiler -v </dev/null >&5) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }
2183 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2184   (eval $ac_compiler -V </dev/null >&5) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }
2188
2189 cat >conftest.$ac_ext <<_ACEOF
2190 /* confdefs.h.  */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h.  */
2195
2196 int
2197 main ()
2198 {
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 ac_clean_files_save=$ac_clean_files
2205 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2206 # Try to create an executable without -o first, disregard a.out.
2207 # It will help us diagnose broken compilers, and finding out an intuition
2208 # of exeext.
2209 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2210 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2211 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2212 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2213   (eval $ac_link_default) 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; then
2217   # Find the output, starting from the most likely.  This scheme is
2218 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2219 # resort.
2220
2221 # Be careful to initialize this variable, since it used to be cached.
2222 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2223 ac_cv_exeext=
2224 # b.out is created by i960 compilers.
2225 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2226 do
2227   test -f "$ac_file" || continue
2228   case $ac_file in
2229     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2230         ;;
2231     conftest.$ac_ext )
2232         # This is the source file.
2233         ;;
2234     [ab].out )
2235         # We found the default executable, but exeext='' is most
2236         # certainly right.
2237         break;;
2238     *.* )
2239         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2240         # FIXME: I believe we export ac_cv_exeext for Libtool,
2241         # but it would be cool to find out if it's true.  Does anybody
2242         # maintain Libtool? --akim.
2243         export ac_cv_exeext
2244         break;;
2245     * )
2246         break;;
2247   esac
2248 done
2249 else
2250   echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C++ compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257    { (exit 77); exit 77; }; }
2258 fi
2259
2260 ac_exeext=$ac_cv_exeext
2261 echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6
2263
2264 # Check the compiler produces executables we can run.  If not, either
2265 # the compiler is broken, or we cross compile.
2266 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2267 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269 # If not cross compiling, check that we can run a simple program.
2270 if test "$cross_compiling" != yes; then
2271   if { ac_try='./$ac_file'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277     cross_compiling=no
2278   else
2279     if test "$cross_compiling" = maybe; then
2280         cross_compiling=yes
2281     else
2282         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2283 If you meant to cross compile, use \`--host'.
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot run C++ compiled programs.
2286 If you meant to cross compile, use \`--host'.
2287 See \`config.log' for more details." >&2;}
2288    { (exit 1); exit 1; }; }
2289     fi
2290   fi
2291 fi
2292 echo "$as_me:$LINENO: result: yes" >&5
2293 echo "${ECHO_T}yes" >&6
2294
2295 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2296 ac_clean_files=$ac_clean_files_save
2297 # Check the compiler produces executables we can run.  If not, either
2298 # the compiler is broken, or we cross compile.
2299 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2300 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2301 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2302 echo "${ECHO_T}$cross_compiling" >&6
2303
2304 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2305 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2307   (eval $ac_link) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; then
2311   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2312 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2313 # work properly (i.e., refer to `conftest.exe'), while it won't with
2314 # `rm'.
2315 for ac_file in conftest.exe conftest conftest.*; do
2316   test -f "$ac_file" || continue
2317   case $ac_file in
2318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2319     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2320           export ac_cv_exeext
2321           break;;
2322     * ) break;;
2323   esac
2324 done
2325 else
2326   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&2;}
2330    { (exit 1); exit 1; }; }
2331 fi
2332
2333 rm -f conftest$ac_cv_exeext
2334 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2335 echo "${ECHO_T}$ac_cv_exeext" >&6
2336
2337 rm -f conftest.$ac_ext
2338 EXEEXT=$ac_cv_exeext
2339 ac_exeext=$EXEEXT
2340 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2341 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2342 if test "${ac_cv_objext+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h.  */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h.  */
2351
2352 int
2353 main ()
2354 {
2355
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 rm -f conftest.o conftest.obj
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362   (eval $ac_compile) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; then
2366   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2367   case $ac_file in
2368     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2369     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2370        break;;
2371   esac
2372 done
2373 else
2374   echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2378 See \`config.log' for more details." >&5
2379 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&2;}
2381    { (exit 1); exit 1; }; }
2382 fi
2383
2384 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2385 fi
2386 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2387 echo "${ECHO_T}$ac_cv_objext" >&6
2388 OBJEXT=$ac_cv_objext
2389 ac_objext=$OBJEXT
2390 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2391 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2392 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h.  */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h.  */
2401
2402 int
2403 main ()
2404 {
2405 #ifndef __GNUC__
2406        choke me
2407 #endif
2408
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415   (eval $ac_compile) 2>conftest.er1
2416   ac_status=$?
2417   grep -v '^ *+' conftest.er1 >conftest.err
2418   rm -f conftest.er1
2419   cat conftest.err >&5
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); } &&
2422          { ac_try='test -z "$ac_cxx_werror_flag"
2423                          || test ! -s conftest.err'
2424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425   (eval $ac_try) 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; }; then
2435   ac_compiler_gnu=yes
2436 else
2437   echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440 ac_compiler_gnu=no
2441 fi
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2444
2445 fi
2446 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2447 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2448 GXX=`test $ac_compiler_gnu = yes && echo yes`
2449 ac_test_CXXFLAGS=${CXXFLAGS+set}
2450 ac_save_CXXFLAGS=$CXXFLAGS
2451 CXXFLAGS="-g"
2452 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2453 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2454 if test "${ac_cv_prog_cxx_g+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463
2464 int
2465 main ()
2466 {
2467
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474   (eval $ac_compile) 2>conftest.er1
2475   ac_status=$?
2476   grep -v '^ *+' conftest.er1 >conftest.err
2477   rm -f conftest.er1
2478   cat conftest.err >&5
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); } &&
2481          { ac_try='test -z "$ac_cxx_werror_flag"
2482                          || test ! -s conftest.err'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; } &&
2488          { ac_try='test -s conftest.$ac_objext'
2489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490   (eval $ac_try) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; }; then
2494   ac_cv_prog_cxx_g=yes
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 ac_cv_prog_cxx_g=no
2500 fi
2501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502 fi
2503 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2504 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2505 if test "$ac_test_CXXFLAGS" = set; then
2506   CXXFLAGS=$ac_save_CXXFLAGS
2507 elif test $ac_cv_prog_cxx_g = yes; then
2508   if test "$GXX" = yes; then
2509     CXXFLAGS="-g -O2"
2510   else
2511     CXXFLAGS="-g"
2512   fi
2513 else
2514   if test "$GXX" = yes; then
2515     CXXFLAGS="-O2"
2516   else
2517     CXXFLAGS=
2518   fi
2519 fi
2520 for ac_declaration in \
2521    '' \
2522    'extern "C" void std::exit (int) throw (); using std::exit;' \
2523    'extern "C" void std::exit (int); using std::exit;' \
2524    'extern "C" void exit (int) throw ();' \
2525    'extern "C" void exit (int);' \
2526    'void exit (int);'
2527 do
2528   cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534 $ac_declaration
2535 #include <stdlib.h>
2536 int
2537 main ()
2538 {
2539 exit (42);
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546   (eval $ac_compile) 2>conftest.er1
2547   ac_status=$?
2548   grep -v '^ *+' conftest.er1 >conftest.err
2549   rm -f conftest.er1
2550   cat conftest.err >&5
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -z "$ac_cxx_werror_flag"
2554                          || test ! -s conftest.err'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   :
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 continue
2572 fi
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574   cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580 $ac_declaration
2581 int
2582 main ()
2583 {
2584 exit (42);
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591   (eval $ac_compile) 2>conftest.er1
2592   ac_status=$?
2593   grep -v '^ *+' conftest.er1 >conftest.err
2594   rm -f conftest.er1
2595   cat conftest.err >&5
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } &&
2598          { ac_try='test -z "$ac_cxx_werror_flag"
2599                          || test ! -s conftest.err'
2600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601   (eval $ac_try) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; } &&
2605          { ac_try='test -s conftest.$ac_objext'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; }; then
2611   break
2612 else
2613   echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 fi
2617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2618 done
2619 rm -f conftest*
2620 if test -n "$ac_declaration"; then
2621   echo '#ifdef __cplusplus' >>confdefs.h
2622   echo $ac_declaration      >>confdefs.h
2623   echo '#endif'             >>confdefs.h
2624 fi
2625
2626 ac_ext=c
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 DEPDIR="${am__leading_dot}deps"
2632
2633           ac_config_commands="$ac_config_commands depfiles"
2634
2635
2636 am_make=${MAKE-make}
2637 cat > confinc << 'END'
2638 am__doit:
2639         @echo done
2640 .PHONY: am__doit
2641 END
2642 # If we don't find an include directive, just comment out the code.
2643 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2644 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2645 am__include="#"
2646 am__quote=
2647 _am_result=none
2648 # First try GNU make style include.
2649 echo "include confinc" > confmf
2650 # We grep out `Entering directory' and `Leaving directory'
2651 # messages which can occur if `w' ends up in MAKEFLAGS.
2652 # In particular we don't look at `^make:' because GNU make might
2653 # be invoked under some other name (usually "gmake"), in which
2654 # case it prints its new name instead of `make'.
2655 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2656    am__include=include
2657    am__quote=
2658    _am_result=GNU
2659 fi
2660 # Now try BSD make style include.
2661 if test "$am__include" = "#"; then
2662    echo '.include "confinc"' > confmf
2663    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2664       am__include=.include
2665       am__quote="\""
2666       _am_result=BSD
2667    fi
2668 fi
2669
2670
2671 echo "$as_me:$LINENO: result: $_am_result" >&5
2672 echo "${ECHO_T}$_am_result" >&6
2673 rm -f confinc confmf
2674
2675 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2676 if test "${enable_dependency_tracking+set}" = set; then
2677   enableval="$enable_dependency_tracking"
2678
2679 fi;
2680 if test "x$enable_dependency_tracking" != xno; then
2681   am_depcomp="$ac_aux_dir/depcomp"
2682   AMDEPBACKSLASH='\'
2683 fi
2684
2685
2686 if test "x$enable_dependency_tracking" != xno; then
2687   AMDEP_TRUE=
2688   AMDEP_FALSE='#'
2689 else
2690   AMDEP_TRUE='#'
2691   AMDEP_FALSE=
2692 fi
2693
2694
2695
2696
2697 depcc="$CXX"  am_compiler_list=
2698
2699 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2700 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2701 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2702   echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2705   # We make a subdir and do the tests there.  Otherwise we can end up
2706   # making bogus files that we don't know about and never remove.  For
2707   # instance it was reported that on HP-UX the gcc test will end up
2708   # making a dummy file named `D' -- because `-MD' means `put the output
2709   # in D'.
2710   mkdir conftest.dir
2711   # Copy depcomp to subdir because otherwise we won't find it if we're
2712   # using a relative directory.
2713   cp "$am_depcomp" conftest.dir
2714   cd conftest.dir
2715   # We will build objects and dependencies in a subdirectory because
2716   # it helps to detect inapplicable dependency modes.  For instance
2717   # both Tru64's cc and ICC support -MD to output dependencies as a
2718   # side effect of compilation, but ICC will put the dependencies in
2719   # the current directory while Tru64 will put them in the object
2720   # directory.
2721   mkdir sub
2722
2723   am_cv_CXX_dependencies_compiler_type=none
2724   if test "$am_compiler_list" = ""; then
2725      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2726   fi
2727   for depmode in $am_compiler_list; do
2728     # Setup a source with many dependencies, because some compilers
2729     # like to wrap large dependency lists on column 80 (with \), and
2730     # we should not choose a depcomp mode which is confused by this.
2731     #
2732     # We need to recreate these files for each test, as the compiler may
2733     # overwrite some of them when testing with obscure command lines.
2734     # This happens at least with the AIX C compiler.
2735     : > sub/conftest.c
2736     for i in 1 2 3 4 5 6; do
2737       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2738       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2739       # Solaris 8's {/usr,}/bin/sh.
2740       touch sub/conftst$i.h
2741     done
2742     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2743
2744     case $depmode in
2745     nosideeffect)
2746       # after this tag, mechanisms are not by side-effect, so they'll
2747       # only be used when explicitly requested
2748       if test "x$enable_dependency_tracking" = xyes; then
2749         continue
2750       else
2751         break
2752       fi
2753       ;;
2754     none) break ;;
2755     esac
2756     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2757     # mode.  It turns out that the SunPro C++ compiler does not properly
2758     # handle `-M -o', and we need to detect this.
2759     if depmode=$depmode \
2760        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2761        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2762        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2763          >/dev/null 2>conftest.err &&
2764        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2765        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2766        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2767       # icc doesn't choke on unknown options, it will just issue warnings
2768       # or remarks (even with -Werror).  So we grep stderr for any message
2769       # that says an option was ignored or not supported.
2770       # When given -MP, icc 7.0 and 7.1 complain thusly:
2771       #   icc: Command line warning: ignoring option '-M'; no argument required
2772       # The diagnosis changed in icc 8.0:
2773       #   icc: Command line remark: option '-MP' not supported
2774       if (grep 'ignoring option' conftest.err ||
2775           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2776         am_cv_CXX_dependencies_compiler_type=$depmode
2777         break
2778       fi
2779     fi
2780   done
2781
2782   cd ..
2783   rm -rf conftest.dir
2784 else
2785   am_cv_CXX_dependencies_compiler_type=none
2786 fi
2787
2788 fi
2789 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2790 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2791 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2792
2793
2794
2795 if
2796   test "x$enable_dependency_tracking" != xno \
2797   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2798   am__fastdepCXX_TRUE=
2799   am__fastdepCXX_FALSE='#'
2800 else
2801   am__fastdepCXX_TRUE='#'
2802   am__fastdepCXX_FALSE=
2803 fi
2804
2805
2806 ac_ext=c
2807 ac_cpp='$CPP $CPPFLAGS'
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811 if test -n "$ac_tool_prefix"; then
2812   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_CC+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819   if test -n "$CC"; then
2820   ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827   for ac_exec_ext in '' $ac_executable_extensions; do
2828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831     break 2
2832   fi
2833 done
2834 done
2835
2836 fi
2837 fi
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840   echo "$as_me:$LINENO: result: $CC" >&5
2841 echo "${ECHO_T}$CC" >&6
2842 else
2843   echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2845 fi
2846
2847 fi
2848 if test -z "$ac_cv_prog_CC"; then
2849   ac_ct_CC=$CC
2850   # Extract the first word of "gcc", so it can be a program name with args.
2851 set dummy gcc; ac_word=$2
2852 echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   if test -n "$ac_ct_CC"; then
2858   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865   for ac_exec_ext in '' $ac_executable_extensions; do
2866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867     ac_cv_prog_ac_ct_CC="gcc"
2868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872 done
2873
2874 fi
2875 fi
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6
2880 else
2881   echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2883 fi
2884
2885   CC=$ac_ct_CC
2886 else
2887   CC="$ac_cv_prog_CC"
2888 fi
2889
2890 if test -z "$CC"; then
2891   if test -n "$ac_tool_prefix"; then
2892   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}cc; ac_word=$2
2894 echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899   if test -n "$CC"; then
2900   ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907   for ac_exec_ext in '' $ac_executable_extensions; do
2908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909     ac_cv_prog_CC="${ac_tool_prefix}cc"
2910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914 done
2915
2916 fi
2917 fi
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920   echo "$as_me:$LINENO: result: $CC" >&5
2921 echo "${ECHO_T}$CC" >&6
2922 else
2923   echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2925 fi
2926
2927 fi
2928 if test -z "$ac_cv_prog_CC"; then
2929   ac_ct_CC=$CC
2930   # Extract the first word of "cc", so it can be a program name with args.
2931 set dummy cc; ac_word=$2
2932 echo "$as_me:$LINENO: checking for $ac_word" >&5
2933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2935   echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937   if test -n "$ac_ct_CC"; then
2938   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943   IFS=$as_save_IFS
2944   test -z "$as_dir" && as_dir=.
2945   for ac_exec_ext in '' $ac_executable_extensions; do
2946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947     ac_cv_prog_ac_ct_CC="cc"
2948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949     break 2
2950   fi
2951 done
2952 done
2953
2954 fi
2955 fi
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2959 echo "${ECHO_T}$ac_ct_CC" >&6
2960 else
2961   echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2963 fi
2964
2965   CC=$ac_ct_CC
2966 else
2967   CC="$ac_cv_prog_CC"
2968 fi
2969
2970 fi
2971 if test -z "$CC"; then
2972   # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_CC+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   if test -n "$CC"; then
2980   ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982   ac_prog_rejected=no
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988   for ac_exec_ext in '' $ac_executable_extensions; do
2989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991        ac_prog_rejected=yes
2992        continue
2993      fi
2994     ac_cv_prog_CC="cc"
2995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999 done
3000
3001 if test $ac_prog_rejected = yes; then
3002   # We found a bogon in the path, so make sure we never use it.
3003   set dummy $ac_cv_prog_CC
3004   shift
3005   if test $# != 0; then
3006     # We chose a different compiler from the bogus one.
3007     # However, it has the same basename, so the bogon will be chosen
3008     # first if we set CC to just the basename; use the full file name.
3009     shift
3010     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3011   fi
3012 fi
3013 fi
3014 fi
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017   echo "$as_me:$LINENO: result: $CC" >&5
3018 echo "${ECHO_T}$CC" >&6
3019 else
3020   echo "$as_me:$LINENO: result: no" >&5
3021 echo "${ECHO_T}no" >&6
3022 fi
3023
3024 fi
3025 if test -z "$CC"; then
3026   if test -n "$ac_tool_prefix"; then
3027   for ac_prog in cl
3028   do
3029     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3033 if test "${ac_cv_prog_CC+set}" = set; then
3034   echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036   if test -n "$CC"; then
3037   ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042   IFS=$as_save_IFS
3043   test -z "$as_dir" && as_dir=.
3044   for ac_exec_ext in '' $ac_executable_extensions; do
3045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048     break 2
3049   fi
3050 done
3051 done
3052
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057   echo "$as_me:$LINENO: result: $CC" >&5
3058 echo "${ECHO_T}$CC" >&6
3059 else
3060   echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6
3062 fi
3063
3064     test -n "$CC" && break
3065   done
3066 fi
3067 if test -z "$CC"; then
3068   ac_ct_CC=$CC
3069   for ac_prog in cl
3070 do
3071   # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3076   echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078   if test -n "$ac_ct_CC"; then
3079   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086   for ac_exec_ext in '' $ac_executable_extensions; do
3087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088     ac_cv_prog_ac_ct_CC="$ac_prog"
3089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093 done
3094
3095 fi
3096 fi
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100 echo "${ECHO_T}$ac_ct_CC" >&6
3101 else
3102   echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3104 fi
3105
3106   test -n "$ac_ct_CC" && break
3107 done
3108
3109   CC=$ac_ct_CC
3110 fi
3111
3112 fi
3113
3114
3115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3116 See \`config.log' for more details." >&5
3117 echo "$as_me: error: no acceptable C compiler found in \$PATH
3118 See \`config.log' for more details." >&2;}
3119    { (exit 1); exit 1; }; }
3120
3121 # Provide some information about the compiler.
3122 echo "$as_me:$LINENO:" \
3123      "checking for C compiler version" >&5
3124 ac_compiler=`set X $ac_compile; echo $2`
3125 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3126   (eval $ac_compiler --version </dev/null >&5) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }
3130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3131   (eval $ac_compiler -v </dev/null >&5) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }
3135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3136   (eval $ac_compiler -V </dev/null >&5) 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }
3140
3141 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156 #ifndef __GNUC__
3157        choke me
3158 #endif
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166   (eval $ac_compile) 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } &&
3173          { ac_try='test -z "$ac_c_werror_flag"
3174                          || test ! -s conftest.err'
3175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176   (eval $ac_try) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; } &&
3180          { ac_try='test -s conftest.$ac_objext'
3181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182   (eval $ac_try) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; }; then
3186   ac_compiler_gnu=yes
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 ac_compiler_gnu=no
3192 fi
3193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3195
3196 fi
3197 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3198 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3199 GCC=`test $ac_compiler_gnu = yes && echo yes`
3200 ac_test_CFLAGS=${CFLAGS+set}
3201 ac_save_CFLAGS=$CFLAGS
3202 CFLAGS="-g"
3203 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3204 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3205 if test "${ac_cv_prog_cc_g+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225   (eval $ac_compile) 2>conftest.er1
3226   ac_status=$?
3227   grep -v '^ *+' conftest.er1 >conftest.err
3228   rm -f conftest.er1
3229   cat conftest.err >&5
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } &&
3232          { ac_try='test -z "$ac_c_werror_flag"
3233                          || test ! -s conftest.err'
3234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235   (eval $ac_try) 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; } &&
3239          { ac_try='test -s conftest.$ac_objext'
3240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241   (eval $ac_try) 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; }; then
3245   ac_cv_prog_cc_g=yes
3246 else
3247   echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250 ac_cv_prog_cc_g=no
3251 fi
3252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3253 fi
3254 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3255 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3256 if test "$ac_test_CFLAGS" = set; then
3257   CFLAGS=$ac_save_CFLAGS
3258 elif test $ac_cv_prog_cc_g = yes; then
3259   if test "$GCC" = yes; then
3260     CFLAGS="-g -O2"
3261   else
3262     CFLAGS="-g"
3263   fi
3264 else
3265   if test "$GCC" = yes; then
3266     CFLAGS="-O2"
3267   else
3268     CFLAGS=
3269   fi
3270 fi
3271 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3272 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3273 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   ac_cv_prog_cc_stdc=no
3277 ac_save_CC=$CC
3278 cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #include <stdarg.h>
3285 #include <stdio.h>
3286 #include <sys/types.h>
3287 #include <sys/stat.h>
3288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3289 struct buf { int x; };
3290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3291 static char *e (p, i)
3292      char **p;
3293      int i;
3294 {
3295   return p[i];
3296 }
3297 static char *f (char * (*g) (char **, int), char **p, ...)
3298 {
3299   char *s;
3300   va_list v;
3301   va_start (v,p);
3302   s = g (p, va_arg (v,int));
3303   va_end (v);
3304   return s;
3305 }
3306
3307 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3308    function prototypes and stuff, but not '\xHH' hex character constants.
3309    These don't provoke an error unfortunately, instead are silently treated
3310    as 'x'.  The following induces an error, until -std1 is added to get
3311    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3312    array size at least.  It's necessary to write '\x00'==0 to get something
3313    that's true only with -std1.  */
3314 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3315
3316 int test (int i, double x);
3317 struct s1 {int (*f) (int a);};
3318 struct s2 {int (*f) (double a);};
3319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3320 int argc;
3321 char **argv;
3322 int
3323 main ()
3324 {
3325 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 # Don't try gcc -ansi; that turns off useful extensions and
3331 # breaks some systems' header files.
3332 # AIX                   -qlanglvl=ansi
3333 # Ultrix and OSF/1      -std1
3334 # HP-UX 10.20 and later -Ae
3335 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3336 # SVR4                  -Xc -D__EXTENSIONS__
3337 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3338 do
3339   CC="$ac_save_CC $ac_arg"
3340   rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342   (eval $ac_compile) 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } &&
3349          { ac_try='test -z "$ac_c_werror_flag"
3350                          || test ! -s conftest.err'
3351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352   (eval $ac_try) 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); }; } &&
3356          { ac_try='test -s conftest.$ac_objext'
3357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358   (eval $ac_try) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; }; then
3362   ac_cv_prog_cc_stdc=$ac_arg
3363 break
3364 else
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 fi
3369 rm -f conftest.err conftest.$ac_objext
3370 done
3371 rm -f conftest.$ac_ext conftest.$ac_objext
3372 CC=$ac_save_CC
3373
3374 fi
3375
3376 case "x$ac_cv_prog_cc_stdc" in
3377   x|xno)
3378     echo "$as_me:$LINENO: result: none needed" >&5
3379 echo "${ECHO_T}none needed" >&6 ;;
3380   *)
3381     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3383     CC="$CC $ac_cv_prog_cc_stdc" ;;
3384 esac
3385
3386 # Some people use a C++ compiler to compile C.  Since we use `exit',
3387 # in C++ we need to declare it.  In case someone uses the same compiler
3388 # for both compiling C and C++ we need to have the C++ compiler decide
3389 # the declaration of exit, since it's the most demanding environment.
3390 cat >conftest.$ac_ext <<_ACEOF
3391 #ifndef __cplusplus
3392   choke me
3393 #endif
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397   (eval $ac_compile) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } &&
3404          { ac_try='test -z "$ac_c_werror_flag"
3405                          || test ! -s conftest.err'
3406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407   (eval $ac_try) 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }; } &&
3411          { ac_try='test -s conftest.$ac_objext'
3412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413   (eval $ac_try) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }; }; then
3417   for ac_declaration in \
3418    '' \
3419    'extern "C" void std::exit (int) throw (); using std::exit;' \
3420    'extern "C" void std::exit (int); using std::exit;' \
3421    'extern "C" void exit (int) throw ();' \
3422    'extern "C" void exit (int);' \
3423    'void exit (int);'
3424 do
3425   cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h.  */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h.  */
3431 $ac_declaration
3432 #include <stdlib.h>
3433 int
3434 main ()
3435 {
3436 exit (42);
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443   (eval $ac_compile) 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } &&
3450          { ac_try='test -z "$ac_c_werror_flag"
3451                          || test ! -s conftest.err'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; } &&
3457          { ac_try='test -s conftest.$ac_objext'
3458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459   (eval $ac_try) 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }; }; then
3463   :
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 continue
3469 fi
3470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471   cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477 $ac_declaration
3478 int
3479 main ()
3480 {
3481 exit (42);
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 rm -f conftest.$ac_objext
3487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488   (eval $ac_compile) 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } &&
3495          { ac_try='test -z "$ac_c_werror_flag"
3496                          || test ! -s conftest.err'
3497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498   (eval $ac_try) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }; } &&
3502          { ac_try='test -s conftest.$ac_objext'
3503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504   (eval $ac_try) 2>&5
3505   ac_status=$?
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); }; }; then
3508   break
3509 else
3510   echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 fi
3514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3515 done
3516 rm -f conftest*
3517 if test -n "$ac_declaration"; then
3518   echo '#ifdef __cplusplus' >>confdefs.h
3519   echo $ac_declaration      >>confdefs.h
3520   echo '#endif'             >>confdefs.h
3521 fi
3522
3523 else
3524   echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 fi
3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534
3535 depcc="$CC"   am_compiler_list=
3536
3537 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3538 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3539 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3543   # We make a subdir and do the tests there.  Otherwise we can end up
3544   # making bogus files that we don't know about and never remove.  For
3545   # instance it was reported that on HP-UX the gcc test will end up
3546   # making a dummy file named `D' -- because `-MD' means `put the output
3547   # in D'.
3548   mkdir conftest.dir
3549   # Copy depcomp to subdir because otherwise we won't find it if we're
3550   # using a relative directory.
3551   cp "$am_depcomp" conftest.dir
3552   cd conftest.dir
3553   # We will build objects and dependencies in a subdirectory because
3554   # it helps to detect inapplicable dependency modes.  For instance
3555   # both Tru64's cc and ICC support -MD to output dependencies as a
3556   # side effect of compilation, but ICC will put the dependencies in
3557   # the current directory while Tru64 will put them in the object
3558   # directory.
3559   mkdir sub
3560
3561   am_cv_CC_dependencies_compiler_type=none
3562   if test "$am_compiler_list" = ""; then
3563      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3564   fi
3565   for depmode in $am_compiler_list; do
3566     # Setup a source with many dependencies, because some compilers
3567     # like to wrap large dependency lists on column 80 (with \), and
3568     # we should not choose a depcomp mode which is confused by this.
3569     #
3570     # We need to recreate these files for each test, as the compiler may
3571     # overwrite some of them when testing with obscure command lines.
3572     # This happens at least with the AIX C compiler.
3573     : > sub/conftest.c
3574     for i in 1 2 3 4 5 6; do
3575       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3576       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3577       # Solaris 8's {/usr,}/bin/sh.
3578       touch sub/conftst$i.h
3579     done
3580     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3581
3582     case $depmode in
3583     nosideeffect)
3584       # after this tag, mechanisms are not by side-effect, so they'll
3585       # only be used when explicitly requested
3586       if test "x$enable_dependency_tracking" = xyes; then
3587         continue
3588       else
3589         break
3590       fi
3591       ;;
3592     none) break ;;
3593     esac
3594     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3595     # mode.  It turns out that the SunPro C++ compiler does not properly
3596     # handle `-M -o', and we need to detect this.
3597     if depmode=$depmode \
3598        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3599        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3600        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3601          >/dev/null 2>conftest.err &&
3602        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3603        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3604        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3605       # icc doesn't choke on unknown options, it will just issue warnings
3606       # or remarks (even with -Werror).  So we grep stderr for any message
3607       # that says an option was ignored or not supported.
3608       # When given -MP, icc 7.0 and 7.1 complain thusly:
3609       #   icc: Command line warning: ignoring option '-M'; no argument required
3610       # The diagnosis changed in icc 8.0:
3611       #   icc: Command line remark: option '-MP' not supported
3612       if (grep 'ignoring option' conftest.err ||
3613           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3614         am_cv_CC_dependencies_compiler_type=$depmode
3615         break
3616       fi
3617     fi
3618   done
3619
3620   cd ..
3621   rm -rf conftest.dir
3622 else
3623   am_cv_CC_dependencies_compiler_type=none
3624 fi
3625
3626 fi
3627 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3628 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3629 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3630
3631
3632
3633 if
3634   test "x$enable_dependency_tracking" != xno \
3635   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3636   am__fastdepCC_TRUE=
3637   am__fastdepCC_FALSE='#'
3638 else
3639   am__fastdepCC_TRUE='#'
3640   am__fastdepCC_FALSE=
3641 fi
3642
3643
3644 # Find a good install program.  We prefer a C program (faster),
3645 # so one script is as good as another.  But avoid the broken or
3646 # incompatible versions:
3647 # SysV /etc/install, /usr/sbin/install
3648 # SunOS /usr/etc/install
3649 # IRIX /sbin/install
3650 # AIX /bin/install
3651 # AmigaOS /C/install, which installs bootblocks on floppy discs
3652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3655 # OS/2's system install, which has a completely different semantic
3656 # ./install, which can be erroneously created by make from ./install.sh.
3657 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3658 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3659 if test -z "$INSTALL"; then
3660 if test "${ac_cv_path_install+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668   # Account for people who put trailing slashes in PATH elements.
3669 case $as_dir/ in
3670   ./ | .// | /cC/* | \
3671   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3672   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3673   /usr/ucb/* ) ;;
3674   *)
3675     # OSF1 and SCO ODT 3.0 have their own names for install.
3676     # Don't use installbsd from OSF since it installs stuff as root
3677     # by default.
3678     for ac_prog in ginstall scoinst install; do
3679       for ac_exec_ext in '' $ac_executable_extensions; do
3680         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3681           if test $ac_prog = install &&
3682             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683             # AIX install.  It has an incompatible calling convention.
3684             :
3685           elif test $ac_prog = install &&
3686             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3687             # program-specific install script used by HP pwplus--don't use.
3688             :
3689           else
3690             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3691             break 3
3692           fi
3693         fi
3694       done
3695     done
3696     ;;
3697 esac
3698 done
3699
3700
3701 fi
3702   if test "${ac_cv_path_install+set}" = set; then
3703     INSTALL=$ac_cv_path_install
3704   else
3705     # As a last resort, use the slow shell script.  We don't cache a
3706     # path for INSTALL within a source directory, because that will
3707     # break other packages using the cache if that directory is
3708     # removed, or if the path is relative.
3709     INSTALL=$ac_install_sh
3710   fi
3711 fi
3712 echo "$as_me:$LINENO: result: $INSTALL" >&5
3713 echo "${ECHO_T}$INSTALL" >&6
3714
3715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3716 # It thinks the first close brace ends the variable substitution.
3717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3718
3719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3720
3721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3722
3723 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3724 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3725 LN_S=$as_ln_s
3726 if test "$LN_S" = "ln -s"; then
3727   echo "$as_me:$LINENO: result: yes" >&5
3728 echo "${ECHO_T}yes" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3731 echo "${ECHO_T}no, using $LN_S" >&6
3732 fi
3733
3734 if test "x$CC" != xcc; then
3735   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3736 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3737 else
3738   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3739 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3740 fi
3741 set dummy $CC; ac_cc=`echo $2 |
3742                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3743 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h.  */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h.  */
3752
3753 int
3754 main ()
3755 {
3756
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 # Make sure it works both with $CC and with simple cc.
3762 # We do the test twice because some compilers refuse to overwrite an
3763 # existing .o file with -o, though they will create one.
3764 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3765 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766   (eval $ac_try) 2>&5
3767   ac_status=$?
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } &&
3770    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); };
3775 then
3776   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3777   if test "x$CC" != xcc; then
3778     # Test first that cc exists at all.
3779     if { ac_try='cc -c conftest.$ac_ext >&5'
3780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781   (eval $ac_try) 2>&5
3782   ac_status=$?
3783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784   (exit $ac_status); }; }; then
3785       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3786       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787   (eval $ac_try) 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } &&
3791          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792   (eval $ac_try) 2>&5
3793   ac_status=$?
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); };
3796       then
3797         # cc works too.
3798         :
3799       else
3800         # cc exists but doesn't like -o.
3801         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3802       fi
3803     fi
3804   fi
3805 else
3806   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3807 fi
3808 rm -f conftest*
3809
3810 fi
3811 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3812   echo "$as_me:$LINENO: result: yes" >&5
3813 echo "${ECHO_T}yes" >&6
3814 else
3815   echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817
3818 cat >>confdefs.h <<\_ACEOF
3819 #define NO_MINUS_C_MINUS_O 1
3820 _ACEOF
3821
3822 fi
3823
3824 # FIXME: we rely on the cache variable name because
3825 # there is no other way.
3826 set dummy $CC
3827 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3829    # Losing compiler, so override with the script.
3830    # FIXME: It is wrong to rewrite CC.
3831    # But if we don't then we get into trouble of one sort or another.
3832    # A longer-term fix would be to have automake use am__CC in this case,
3833    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3834    CC="$am_aux_dir/compile $CC"
3835 fi
3836
3837
3838
3839
3840
3841         if test -n "$PYTHON"; then
3842       # If the user set $PYTHON, use it and don't search something else.
3843       echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
3844 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6
3845       prog="import sys, string
3846 # split strings by '.' and convert to numeric.  Append some zeros
3847 # because we need at least 4 digits for the hex conversion.
3848 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
3849 minverhex = 0
3850 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3851 sys.exit(sys.hexversion < minverhex)"
3852   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3853    ($PYTHON -c "$prog") >&5 2>&5
3854    ac_status=$?
3855    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856    (exit $ac_status); }; then
3857   echo "$as_me:$LINENO: result: yes" >&5
3858 echo "${ECHO_T}yes" >&6
3859 else
3860   { { echo "$as_me:$LINENO: error: too old" >&5
3861 echo "$as_me: error: too old" >&2;}
3862    { (exit 1); exit 1; }; }
3863 fi
3864
3865       am_display_PYTHON=$PYTHON
3866     else
3867       # Otherwise, try each interpreter until we find one that satisfies
3868       # VERSION.
3869       echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
3870 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6
3871 if test "${am_cv_pathless_PYTHON+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874
3875         for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
3876           test "$am_cv_pathless_PYTHON" = none && break
3877           prog="import sys, string
3878 # split strings by '.' and convert to numeric.  Append some zeros
3879 # because we need at least 4 digits for the hex conversion.
3880 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
3881 minverhex = 0
3882 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3883 sys.exit(sys.hexversion < minverhex)"
3884   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3885    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3886    ac_status=$?
3887    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888    (exit $ac_status); }; then
3889   break
3890 fi
3891
3892         done
3893 fi
3894 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
3895 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
3896       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3897       if test "$am_cv_pathless_PYTHON" = none; then
3898         PYTHON=:
3899       else
3900         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3901 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_path_PYTHON+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   case $PYTHON in
3908   [\\/]* | ?:[\\/]*)
3909   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3910   ;;
3911   *)
3912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915   IFS=$as_save_IFS
3916   test -z "$as_dir" && as_dir=.
3917   for ac_exec_ext in '' $ac_executable_extensions; do
3918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921     break 2
3922   fi
3923 done
3924 done
3925
3926   ;;
3927 esac
3928 fi
3929 PYTHON=$ac_cv_path_PYTHON
3930
3931 if test -n "$PYTHON"; then
3932   echo "$as_me:$LINENO: result: $PYTHON" >&5
3933 echo "${ECHO_T}$PYTHON" >&6
3934 else
3935   echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3937 fi
3938
3939       fi
3940       am_display_PYTHON=$am_cv_pathless_PYTHON
3941     fi
3942
3943
3944   if test "$PYTHON" = :; then
3945       { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
3946 echo "$as_me: error: no suitable Python interpreter found" >&2;}
3947    { (exit 1); exit 1; }; }
3948   else
3949
3950
3951   echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
3952 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
3953 if test "${am_cv_python_version+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
3957 fi
3958 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
3959 echo "${ECHO_T}$am_cv_python_version" >&6
3960   PYTHON_VERSION=$am_cv_python_version
3961
3962
3963
3964   PYTHON_PREFIX='${prefix}'
3965
3966   PYTHON_EXEC_PREFIX='${exec_prefix}'
3967
3968
3969
3970   echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
3971 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
3972 if test "${am_cv_python_platform+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
3976 fi
3977 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
3978 echo "${ECHO_T}$am_cv_python_platform" >&6
3979   PYTHON_PLATFORM=$am_cv_python_platform
3980
3981
3982
3983
3984                 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
3985 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
3986 if test "${am_cv_python_pythondir+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
3990      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
3991 fi
3992 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
3993 echo "${ECHO_T}$am_cv_python_pythondir" >&6
3994   pythondir=$am_cv_python_pythondir
3995
3996
3997
3998   pkgpythondir=\${pythondir}/$PACKAGE
3999
4000
4001             echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
4002 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
4003 if test "${am_cv_python_pyexecdir+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
4007      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
4008 fi
4009 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
4010 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
4011   pyexecdir=$am_cv_python_pyexecdir
4012
4013
4014
4015   pkgpyexecdir=\${pyexecdir}/$PACKAGE
4016
4017
4018
4019   fi
4020
4021
4022
4023
4024
4025
4026         echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
4027 echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6
4028 if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031
4032                 ac_ext=cc
4033 ac_cpp='$CXXCPP $CPPFLAGS'
4034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4037
4038                 cat >conftest.$ac_ext <<_ACEOF
4039
4040                     #include <ostream>
4041
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045   (eval $ac_compile) 2>conftest.er1
4046   ac_status=$?
4047   grep -v '^ *+' conftest.er1 >conftest.err
4048   rm -f conftest.er1
4049   cat conftest.err >&5
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } &&
4052          { ac_try='test -z "$ac_cxx_werror_flag"
4053                          || test ! -s conftest.err'
4054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055   (eval $ac_try) 2>&5
4056   ac_status=$?
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); }; } &&
4059          { ac_try='test -s conftest.$ac_objext'
4060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061   (eval $ac_try) 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   ensc_cv_cxx_cxxcompiler=yes
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 ensc_cv_cxx_cxxcompiler=no
4071 fi
4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073                 ac_ext=c
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078
4079
4080 fi
4081 echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
4082 echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6
4083
4084
4085
4086 if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
4087   ENSC_HAVE_CXX_COMPILER_TRUE=
4088   ENSC_HAVE_CXX_COMPILER_FALSE='#'
4089 else
4090   ENSC_HAVE_CXX_COMPILER_TRUE='#'
4091   ENSC_HAVE_CXX_COMPILER_FALSE=
4092 fi
4093
4094
4095         if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
4096                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
4097 echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
4098         fi
4099
4100
4101
4102
4103
4104         echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
4105 echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6
4106 if test "${ensc_cv_c99_c99compiler+set}" = set; then
4107   echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109
4110                 ac_ext=c
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115
4116                 cat >conftest.$ac_ext <<_ACEOF
4117
4118 int main(int argc, char *argv) {
4119   struct { int x; }   a = { .x = argc };
4120   if (0) return 0;
4121   int b;
4122 }
4123
4124 _ACEOF
4125 rm -f conftest.$ac_objext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4127   (eval $ac_compile) 2>conftest.er1
4128   ac_status=$?
4129   grep -v '^ *+' conftest.er1 >conftest.err
4130   rm -f conftest.er1
4131   cat conftest.err >&5
4132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133   (exit $ac_status); } &&
4134          { ac_try='test -z "$ac_c_werror_flag"
4135                          || test ! -s conftest.err'
4136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137   (eval $ac_try) 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); }; } &&
4141          { ac_try='test -s conftest.$ac_objext'
4142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143   (eval $ac_try) 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; }; then
4147   ensc_cv_c99_c99compiler=yes
4148 else
4149   echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 ensc_cv_c99_c99compiler=no
4153 fi
4154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4155                 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160
4161
4162 fi
4163 echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
4164 echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6
4165
4166
4167
4168 if test x"$ensc_cv_c99_c99compiler" = xyes; then
4169   ENSC_HAVE_C99_COMPILER_TRUE=
4170   ENSC_HAVE_C99_COMPILER_FALSE='#'
4171 else
4172   ENSC_HAVE_C99_COMPILER_TRUE='#'
4173   ENSC_HAVE_C99_COMPILER_FALSE=
4174 fi
4175
4176
4177         if test x"$ensc_cv_c99_c99compiler" = xno; then
4178                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
4179 echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
4180         fi
4181
4182
4183
4184         ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
4185
4186
4187         ENSC_PATHPROG_SED=
4188
4189
4190
4191
4192
4193
4194
4195         if test -z ""; then
4196                 rq=true
4197         else
4198                 rq=false
4199         fi
4200
4201         if $rq; then
4202                 ensc_dflt=
4203         else
4204                 ensc_dflt=""
4205         fi
4206
4207         for ac_prog in awk
4208 do
4209   # Extract the first word of "$ac_prog", so it can be a program name with args.
4210 set dummy $ac_prog; ac_word=$2
4211 echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4213 if test "${ac_cv_path_AWK+set}" = set; then
4214   echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216   case $AWK in
4217   [\\/]* | ?:[\\/]*)
4218   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4219   ;;
4220   *)
4221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $ensc_searchpath
4223 do
4224   IFS=$as_save_IFS
4225   test -z "$as_dir" && as_dir=.
4226   for ac_exec_ext in '' $ac_executable_extensions; do
4227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230     break 2
4231   fi
4232 done
4233 done
4234
4235   ;;
4236 esac
4237 fi
4238 AWK=$ac_cv_path_AWK
4239
4240 if test -n "$AWK"; then
4241   echo "$as_me:$LINENO: result: $AWK" >&5
4242 echo "${ECHO_T}$AWK" >&6
4243 else
4244   echo "$as_me:$LINENO: result: no" >&5
4245 echo "${ECHO_T}no" >&6
4246 fi
4247
4248   test -n "$AWK" && break
4249 done
4250 test -n "$AWK" || AWK="$ensc_dflt"
4251
4252
4253         if test -z "${AWK}" && $rq; then
4254                 if test -z ""; then
4255                         { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
4256 echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4257    { (exit 1); exit 1; }; }
4258                 else
4259                         { { echo "$as_me:$LINENO: error:
4260 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4261 " >&5
4262 echo "$as_me: error:
4263 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4264 " >&2;}
4265    { (exit 1); exit 1; }; }
4266                 fi
4267         fi
4268
4269         if test -e "${AWK}"; then
4270                 AWK=`readlink -f "${AWK}"`
4271         fi
4272
4273         test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
4274
4275         test "${AWK}"
4276
4277
4278
4279
4280         if test -z ""; then
4281                 rq=true
4282         else
4283                 rq=false
4284         fi
4285
4286         if $rq; then
4287                 ensc_dflt=
4288         else
4289                 ensc_dflt=""
4290         fi
4291
4292         for ac_prog in cat
4293 do
4294   # Extract the first word of "$ac_prog", so it can be a program name with args.
4295 set dummy $ac_prog; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_path_CAT+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   case $CAT in
4302   [\\/]* | ?:[\\/]*)
4303   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4304   ;;
4305   *)
4306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $ensc_searchpath
4308 do
4309   IFS=$as_save_IFS
4310   test -z "$as_dir" && as_dir=.
4311   for ac_exec_ext in '' $ac_executable_extensions; do
4312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315     break 2
4316   fi
4317 done
4318 done
4319
4320   ;;
4321 esac
4322 fi
4323 CAT=$ac_cv_path_CAT
4324
4325 if test -n "$CAT"; then
4326   echo "$as_me:$LINENO: result: $CAT" >&5
4327 echo "${ECHO_T}$CAT" >&6
4328 else
4329   echo "$as_me:$LINENO: result: no" >&5
4330 echo "${ECHO_T}no" >&6
4331 fi
4332
4333   test -n "$CAT" && break
4334 done
4335 test -n "$CAT" || CAT="$ensc_dflt"
4336
4337
4338         if test -z "${CAT}" && $rq; then
4339                 if test -z ""; then
4340                         { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
4341 echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4342    { (exit 1); exit 1; }; }
4343                 else
4344                         { { echo "$as_me:$LINENO: error:
4345 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4346 " >&5
4347 echo "$as_me: error:
4348 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4349 " >&2;}
4350    { (exit 1); exit 1; }; }
4351                 fi
4352         fi
4353
4354         if test -e "${CAT}"; then
4355                 CAT=`readlink -f "${CAT}"`
4356         fi
4357
4358         test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
4359
4360         test "${CAT}"
4361
4362
4363
4364
4365         if test -z ""; then
4366                 rq=true
4367         else
4368                 rq=false
4369         fi
4370
4371         if $rq; then
4372                 ensc_dflt=
4373         else
4374                 ensc_dflt=""
4375         fi
4376
4377         for ac_prog in chown
4378 do
4379   # Extract the first word of "$ac_prog", so it can be a program name with args.
4380 set dummy $ac_prog; ac_word=$2
4381 echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383 if test "${ac_cv_path_CHOWN+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   case $CHOWN in
4387   [\\/]* | ?:[\\/]*)
4388   ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
4389   ;;
4390   *)
4391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $ensc_searchpath
4393 do
4394   IFS=$as_save_IFS
4395   test -z "$as_dir" && as_dir=.
4396   for ac_exec_ext in '' $ac_executable_extensions; do
4397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398     ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
4399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400     break 2
4401   fi
4402 done
4403 done
4404
4405   ;;
4406 esac
4407 fi
4408 CHOWN=$ac_cv_path_CHOWN
4409
4410 if test -n "$CHOWN"; then
4411   echo "$as_me:$LINENO: result: $CHOWN" >&5
4412 echo "${ECHO_T}$CHOWN" >&6
4413 else
4414   echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4416 fi
4417
4418   test -n "$CHOWN" && break
4419 done
4420 test -n "$CHOWN" || CHOWN="$ensc_dflt"
4421
4422
4423         if test -z "${CHOWN}" && $rq; then
4424                 if test -z ""; then
4425                         { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
4426 echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4427    { (exit 1); exit 1; }; }
4428                 else
4429                         { { echo "$as_me:$LINENO: error:
4430 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4431 " >&5
4432 echo "$as_me: error:
4433 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4434 " >&2;}
4435    { (exit 1); exit 1; }; }
4436                 fi
4437         fi
4438
4439         if test -e "${CHOWN}"; then
4440                 CHOWN=`readlink -f "${CHOWN}"`
4441         fi
4442
4443         test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
4444
4445         test "${CHOWN}"
4446
4447
4448
4449
4450         if test -z ""; then
4451                 rq=true
4452         else
4453                 rq=false
4454         fi
4455
4456         if $rq; then
4457                 ensc_dflt=
4458         else
4459                 ensc_dflt=""
4460         fi
4461
4462         for ac_prog in cmp
4463 do
4464   # Extract the first word of "$ac_prog", so it can be a program name with args.
4465 set dummy $ac_prog; ac_word=$2
4466 echo "$as_me:$LINENO: checking for $ac_word" >&5
4467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4468 if test "${ac_cv_path_CMP+set}" = set; then
4469   echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471   case $CMP in
4472   [\\/]* | ?:[\\/]*)
4473   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4474   ;;
4475   *)
4476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $ensc_searchpath
4478 do
4479   IFS=$as_save_IFS
4480   test -z "$as_dir" && as_dir=.
4481   for ac_exec_ext in '' $ac_executable_extensions; do
4482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485     break 2
4486   fi
4487 done
4488 done
4489
4490   ;;
4491 esac
4492 fi
4493 CMP=$ac_cv_path_CMP
4494
4495 if test -n "$CMP"; then
4496   echo "$as_me:$LINENO: result: $CMP" >&5
4497 echo "${ECHO_T}$CMP" >&6
4498 else
4499   echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4501 fi
4502
4503   test -n "$CMP" && break
4504 done
4505 test -n "$CMP" || CMP="$ensc_dflt"
4506
4507
4508         if test -z "${CMP}" && $rq; then
4509                 if test -z ""; then
4510                         { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
4511 echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4512    { (exit 1); exit 1; }; }
4513                 else
4514                         { { echo "$as_me:$LINENO: error:
4515 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4516 " >&5
4517 echo "$as_me: error:
4518 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4519 " >&2;}
4520    { (exit 1); exit 1; }; }
4521                 fi
4522         fi
4523
4524         if test -e "${CMP}"; then
4525                 CMP=`readlink -f "${CMP}"`
4526         fi
4527
4528         test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
4529
4530         test "${CMP}"
4531
4532
4533
4534
4535         if test -z ""; then
4536                 rq=true
4537         else
4538                 rq=false
4539         fi
4540
4541         if $rq; then
4542                 ensc_dflt=
4543         else
4544                 ensc_dflt=""
4545         fi
4546
4547         for ac_prog in cp
4548 do
4549   # Extract the first word of "$ac_prog", so it can be a program name with args.
4550 set dummy $ac_prog; ac_word=$2
4551 echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553 if test "${ac_cv_path_CP+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   case $CP in
4557   [\\/]* | ?:[\\/]*)
4558   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4559   ;;
4560   *)
4561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $ensc_searchpath
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573 done
4574
4575   ;;
4576 esac
4577 fi
4578 CP=$ac_cv_path_CP
4579
4580 if test -n "$CP"; then
4581   echo "$as_me:$LINENO: result: $CP" >&5
4582 echo "${ECHO_T}$CP" >&6
4583 else
4584   echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4586 fi
4587
4588   test -n "$CP" && break
4589 done
4590 test -n "$CP" || CP="$ensc_dflt"
4591
4592
4593         if test -z "${CP}" && $rq; then
4594                 if test -z ""; then
4595                         { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
4596 echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4597    { (exit 1); exit 1; }; }
4598                 else
4599                         { { echo "$as_me:$LINENO: error:
4600 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4601 " >&5
4602 echo "$as_me: error:
4603 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4604 " >&2;}
4605    { (exit 1); exit 1; }; }
4606                 fi
4607         fi
4608
4609         if test -e "${CP}"; then
4610                 CP=`readlink -f "${CP}"`
4611         fi
4612
4613         test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
4614
4615         test "${CP}"
4616
4617
4618
4619
4620         if test -z ""; then
4621                 rq=true
4622         else
4623                 rq=false
4624         fi
4625
4626         if $rq; then
4627                 ensc_dflt=
4628         else
4629                 ensc_dflt=""
4630         fi
4631
4632         for ac_prog in dirname
4633 do
4634   # Extract the first word of "$ac_prog", so it can be a program name with args.
4635 set dummy $ac_prog; ac_word=$2
4636 echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4638 if test "${ac_cv_path_DIRNAME+set}" = set; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   case $DIRNAME in
4642   [\\/]* | ?:[\\/]*)
4643   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4644   ;;
4645   *)
4646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $ensc_searchpath
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651   for ac_exec_ext in '' $ac_executable_extensions; do
4652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658 done
4659
4660   ;;
4661 esac
4662 fi
4663 DIRNAME=$ac_cv_path_DIRNAME
4664
4665 if test -n "$DIRNAME"; then
4666   echo "$as_me:$LINENO: result: $DIRNAME" >&5
4667 echo "${ECHO_T}$DIRNAME" >&6
4668 else
4669   echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4671 fi
4672
4673   test -n "$DIRNAME" && break
4674 done
4675 test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
4676
4677
4678         if test -z "${DIRNAME}" && $rq; then
4679                 if test -z ""; then
4680                         { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
4681 echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4682    { (exit 1); exit 1; }; }
4683                 else
4684                         { { echo "$as_me:$LINENO: error:
4685 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4686 " >&5
4687 echo "$as_me: error:
4688 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4689 " >&2;}
4690    { (exit 1); exit 1; }; }
4691                 fi
4692         fi
4693
4694         if test -e "${DIRNAME}"; then
4695                 DIRNAME=`readlink -f "${DIRNAME}"`
4696         fi
4697
4698         test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
4699
4700         test "${DIRNAME}"
4701
4702
4703
4704
4705         if test -z ""; then
4706                 rq=true
4707         else
4708                 rq=false
4709         fi
4710
4711         if $rq; then
4712                 ensc_dflt=
4713         else
4714                 ensc_dflt=""
4715         fi
4716
4717         for ac_prog in egrep
4718 do
4719   # Extract the first word of "$ac_prog", so it can be a program name with args.
4720 set dummy $ac_prog; ac_word=$2
4721 echo "$as_me:$LINENO: checking for $ac_word" >&5
4722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4723 if test "${ac_cv_path_EGREP+set}" = set; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   case $EGREP in
4727   [\\/]* | ?:[\\/]*)
4728   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
4729   ;;
4730   *)
4731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $ensc_searchpath
4733 do
4734   IFS=$as_save_IFS
4735   test -z "$as_dir" && as_dir=.
4736   for ac_exec_ext in '' $ac_executable_extensions; do
4737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
4739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740     break 2
4741   fi
4742 done
4743 done
4744
4745   ;;
4746 esac
4747 fi
4748 EGREP=$ac_cv_path_EGREP
4749
4750 if test -n "$EGREP"; then
4751   echo "$as_me:$LINENO: result: $EGREP" >&5
4752 echo "${ECHO_T}$EGREP" >&6
4753 else
4754   echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6
4756 fi
4757
4758   test -n "$EGREP" && break
4759 done
4760 test -n "$EGREP" || EGREP="$ensc_dflt"
4761
4762
4763         if test -z "${EGREP}" && $rq; then
4764                 if test -z ""; then
4765                         { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
4766 echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4767    { (exit 1); exit 1; }; }
4768                 else
4769                         { { echo "$as_me:$LINENO: error:
4770 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4771 " >&5
4772 echo "$as_me: error:
4773 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4774 " >&2;}
4775    { (exit 1); exit 1; }; }
4776                 fi
4777         fi
4778
4779         if test -e "${EGREP}"; then
4780                 EGREP=`readlink -f "${EGREP}"`
4781         fi
4782
4783         test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
4784
4785         test "${EGREP}"
4786
4787
4788
4789
4790         if test -z ""; then
4791                 rq=true
4792         else
4793                 rq=false
4794         fi
4795
4796         if $rq; then
4797                 ensc_dflt=
4798         else
4799                 ensc_dflt=""
4800         fi
4801
4802         for ac_prog in env
4803 do
4804   # Extract the first word of "$ac_prog", so it can be a program name with args.
4805 set dummy $ac_prog; ac_word=$2
4806 echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4808 if test "${ac_cv_path_ENV+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   case $ENV in
4812   [\\/]* | ?:[\\/]*)
4813   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
4814   ;;
4815   *)
4816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $ensc_searchpath
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821   for ac_exec_ext in '' $ac_executable_extensions; do
4822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
4824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828 done
4829
4830   ;;
4831 esac
4832 fi
4833 ENV=$ac_cv_path_ENV
4834
4835 if test -n "$ENV"; then
4836   echo "$as_me:$LINENO: result: $ENV" >&5
4837 echo "${ECHO_T}$ENV" >&6
4838 else
4839   echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6
4841 fi
4842
4843   test -n "$ENV" && break
4844 done
4845 test -n "$ENV" || ENV="$ensc_dflt"
4846
4847
4848         if test -z "${ENV}" && $rq; then
4849                 if test -z ""; then
4850                         { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
4851 echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4852    { (exit 1); exit 1; }; }
4853                 else
4854                         { { echo "$as_me:$LINENO: error:
4855 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4856 " >&5
4857 echo "$as_me: error:
4858 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4859 " >&2;}
4860    { (exit 1); exit 1; }; }
4861                 fi
4862         fi
4863
4864         if test -e "${ENV}"; then
4865                 ENV=`readlink -f "${ENV}"`
4866         fi
4867
4868         test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
4869
4870         test "${ENV}"
4871
4872
4873
4874
4875         if test -z ""; then
4876                 rq=true
4877         else
4878                 rq=false
4879         fi
4880
4881         if $rq; then
4882                 ensc_dflt=
4883         else
4884                 ensc_dflt=""
4885         fi
4886
4887         for ac_prog in grep
4888 do
4889   # Extract the first word of "$ac_prog", so it can be a program name with args.
4890 set dummy $ac_prog; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_GREP+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   case $GREP in
4897   [\\/]* | ?:[\\/]*)
4898   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4899   ;;
4900   *)
4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $ensc_searchpath
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914
4915   ;;
4916 esac
4917 fi
4918 GREP=$ac_cv_path_GREP
4919
4920 if test -n "$GREP"; then
4921   echo "$as_me:$LINENO: result: $GREP" >&5
4922 echo "${ECHO_T}$GREP" >&6
4923 else
4924   echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6
4926 fi
4927
4928   test -n "$GREP" && break
4929 done
4930 test -n "$GREP" || GREP="$ensc_dflt"
4931
4932
4933         if test -z "${GREP}" && $rq; then
4934                 if test -z ""; then
4935                         { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
4936 echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4937    { (exit 1); exit 1; }; }
4938                 else
4939                         { { echo "$as_me:$LINENO: error:
4940 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4941 " >&5
4942 echo "$as_me: error:
4943 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4944 " >&2;}
4945    { (exit 1); exit 1; }; }
4946                 fi
4947         fi
4948
4949         if test -e "${GREP}"; then
4950                 GREP=`readlink -f "${GREP}"`
4951         fi
4952
4953         test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
4954
4955         test "${GREP}"
4956
4957
4958
4959
4960         if test -z ""; then
4961                 rq=true
4962         else
4963                 rq=false
4964         fi
4965
4966         if $rq; then
4967                 ensc_dflt=
4968         else
4969                 ensc_dflt=""
4970         fi
4971
4972         for ac_prog in ln
4973 do
4974   # Extract the first word of "$ac_prog", so it can be a program name with args.
4975 set dummy $ac_prog; ac_word=$2
4976 echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978 if test "${ac_cv_path_LN+set}" = set; then
4979   echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981   case $LN in
4982   [\\/]* | ?:[\\/]*)
4983   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4984   ;;
4985   *)
4986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $ensc_searchpath
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991   for ac_exec_ext in '' $ac_executable_extensions; do
4992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995     break 2
4996   fi
4997 done
4998 done
4999
5000   ;;
5001 esac
5002 fi
5003 LN=$ac_cv_path_LN
5004
5005 if test -n "$LN"; then
5006   echo "$as_me:$LINENO: result: $LN" >&5
5007 echo "${ECHO_T}$LN" >&6
5008 else
5009   echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6
5011 fi
5012
5013   test -n "$LN" && break
5014 done
5015 test -n "$LN" || LN="$ensc_dflt"
5016
5017
5018         if test -z "${LN}" && $rq; then
5019                 if test -z ""; then
5020                         { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
5021 echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5022    { (exit 1); exit 1; }; }
5023                 else
5024                         { { echo "$as_me:$LINENO: error:
5025 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
5026 " >&5
5027 echo "$as_me: error:
5028 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
5029 " >&2;}
5030    { (exit 1); exit 1; }; }
5031                 fi
5032         fi
5033
5034         if test -e "${LN}"; then
5035                 LN=`readlink -f "${LN}"`
5036         fi
5037
5038         test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
5039
5040         test "${LN}"
5041
5042
5043
5044
5045         if test -z ""; then
5046                 rq=true
5047         else
5048                 rq=false
5049         fi
5050
5051         if $rq; then
5052                 ensc_dflt=
5053         else
5054                 ensc_dflt=""
5055         fi
5056
5057         for ac_prog in mkdir
5058 do
5059   # Extract the first word of "$ac_prog", so it can be a program name with args.
5060 set dummy $ac_prog; ac_word=$2
5061 echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063 if test "${ac_cv_path_MKDIR+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   case $MKDIR in
5067   [\\/]* | ?:[\\/]*)
5068   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5069   ;;
5070   *)
5071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $ensc_searchpath
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084
5085   ;;
5086 esac
5087 fi
5088 MKDIR=$ac_cv_path_MKDIR
5089
5090 if test -n "$MKDIR"; then
5091   echo "$as_me:$LINENO: result: $MKDIR" >&5
5092 echo "${ECHO_T}$MKDIR" >&6
5093 else
5094   echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6
5096 fi
5097
5098   test -n "$MKDIR" && break
5099 done
5100 test -n "$MKDIR" || MKDIR="$ensc_dflt"
5101
5102
5103         if test -z "${MKDIR}" && $rq; then
5104                 if test -z ""; then
5105                         { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5106 echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5107    { (exit 1); exit 1; }; }
5108                 else
5109                         { { echo "$as_me:$LINENO: error:
5110 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5111 " >&5
5112 echo "$as_me: error:
5113 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5114 " >&2;}
5115    { (exit 1); exit 1; }; }
5116                 fi
5117         fi
5118
5119         if test -e "${MKDIR}"; then
5120                 MKDIR=`readlink -f "${MKDIR}"`
5121         fi
5122
5123         test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
5124
5125         test "${MKDIR}"
5126
5127
5128
5129
5130         if test -z ""; then
5131                 rq=true
5132         else
5133                 rq=false
5134         fi
5135
5136         if $rq; then
5137                 ensc_dflt=
5138         else
5139                 ensc_dflt=""
5140         fi
5141
5142         for ac_prog in mkfifo
5143 do
5144   # Extract the first word of "$ac_prog", so it can be a program name with args.
5145 set dummy $ac_prog; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_path_MKFIFO+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   case $MKFIFO in
5152   [\\/]* | ?:[\\/]*)
5153   ac_cv_path_MKFIFO="$MKFIFO" # Let the user override the test with a path.
5154   ;;
5155   *)
5156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $ensc_searchpath
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161   for ac_exec_ext in '' $ac_executable_extensions; do
5162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163     ac_cv_path_MKFIFO="$as_dir/$ac_word$ac_exec_ext"
5164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168 done
5169
5170   ;;
5171 esac
5172 fi
5173 MKFIFO=$ac_cv_path_MKFIFO
5174
5175 if test -n "$MKFIFO"; then
5176   echo "$as_me:$LINENO: result: $MKFIFO" >&5
5177 echo "${ECHO_T}$MKFIFO" >&6
5178 else
5179   echo "$as_me:$LINENO: result: no" >&5
5180 echo "${ECHO_T}no" >&6
5181 fi
5182
5183   test -n "$MKFIFO" && break
5184 done
5185 test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
5186
5187
5188         if test -z "${MKFIFO}" && $rq; then
5189                 if test -z ""; then
5190                         { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
5191 echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5192    { (exit 1); exit 1; }; }
5193                 else
5194                         { { echo "$as_me:$LINENO: error:
5195 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5196 " >&5
5197 echo "$as_me: error:
5198 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5199 " >&2;}
5200    { (exit 1); exit 1; }; }
5201                 fi
5202         fi
5203
5204         if test -e "${MKFIFO}"; then
5205                 MKFIFO=`readlink -f "${MKFIFO}"`
5206         fi
5207
5208         test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
5209
5210         test "${MKFIFO}"
5211
5212
5213
5214
5215         if test -z ""; then
5216                 rq=true
5217         else
5218                 rq=false
5219         fi
5220
5221         if $rq; then
5222                 ensc_dflt=
5223         else
5224                 ensc_dflt=""
5225         fi
5226
5227         for ac_prog in mktemp
5228 do
5229   # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5233 if test "${ac_cv_path_MKTEMP+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   case $MKTEMP in
5237   [\\/]* | ?:[\\/]*)
5238   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5239   ;;
5240   *)
5241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $ensc_searchpath
5243 do
5244   IFS=$as_save_IFS
5245   test -z "$as_dir" && as_dir=.
5246   for ac_exec_ext in '' $ac_executable_extensions; do
5247   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5250     break 2
5251   fi
5252 done
5253 done
5254
5255   ;;
5256 esac
5257 fi
5258 MKTEMP=$ac_cv_path_MKTEMP
5259
5260 if test -n "$MKTEMP"; then
5261   echo "$as_me:$LINENO: result: $MKTEMP" >&5
5262 echo "${ECHO_T}$MKTEMP" >&6
5263 else
5264   echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6
5266 fi
5267
5268   test -n "$MKTEMP" && break
5269 done
5270 test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
5271
5272
5273         if test -z "${MKTEMP}" && $rq; then
5274                 if test -z ""; then
5275                         { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
5276 echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5277    { (exit 1); exit 1; }; }
5278                 else
5279                         { { echo "$as_me:$LINENO: error:
5280 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5281 " >&5
5282 echo "$as_me: error:
5283 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5284 " >&2;}
5285    { (exit 1); exit 1; }; }
5286                 fi
5287         fi
5288
5289         if test -e "${MKTEMP}"; then
5290                 MKTEMP=`readlink -f "${MKTEMP}"`
5291         fi
5292
5293         test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
5294
5295         test "${MKTEMP}"
5296
5297
5298
5299
5300         if test -z ""; then
5301                 rq=true
5302         else
5303                 rq=false
5304         fi
5305
5306         if $rq; then
5307                 ensc_dflt=
5308         else
5309                 ensc_dflt=""
5310         fi
5311
5312         for ac_prog in mount
5313 do
5314   # Extract the first word of "$ac_prog", so it can be a program name with args.
5315 set dummy $ac_prog; ac_word=$2
5316 echo "$as_me:$LINENO: checking for $ac_word" >&5
5317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5318 if test "${ac_cv_path_MOUNT+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   case $MOUNT in
5322   [\\/]* | ?:[\\/]*)
5323   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
5324   ;;
5325   *)
5326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $ensc_searchpath
5328 do
5329   IFS=$as_save_IFS
5330   test -z "$as_dir" && as_dir=.
5331   for ac_exec_ext in '' $ac_executable_extensions; do
5332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
5334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335     break 2
5336   fi
5337 done
5338 done
5339
5340   ;;
5341 esac
5342 fi
5343 MOUNT=$ac_cv_path_MOUNT
5344
5345 if test -n "$MOUNT"; then
5346   echo "$as_me:$LINENO: result: $MOUNT" >&5
5347 echo "${ECHO_T}$MOUNT" >&6
5348 else
5349   echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6
5351 fi
5352
5353   test -n "$MOUNT" && break
5354 done
5355 test -n "$MOUNT" || MOUNT="$ensc_dflt"
5356
5357
5358         if test -z "${MOUNT}" && $rq; then
5359                 if test -z ""; then
5360                         { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
5361 echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5362    { (exit 1); exit 1; }; }
5363                 else
5364                         { { echo "$as_me:$LINENO: error:
5365 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5366 " >&5
5367 echo "$as_me: error:
5368 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5369 " >&2;}
5370    { (exit 1); exit 1; }; }
5371                 fi
5372         fi
5373
5374         if test -e "${MOUNT}"; then
5375                 MOUNT=`readlink -f "${MOUNT}"`
5376         fi
5377
5378         test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
5379
5380         test "${MOUNT}"
5381
5382
5383
5384
5385         if test -z ""; then
5386                 rq=true
5387         else
5388                 rq=false
5389         fi
5390
5391         if $rq; then
5392                 ensc_dflt=
5393         else
5394                 ensc_dflt=""
5395         fi
5396
5397         for ac_prog in mv
5398 do
5399   # Extract the first word of "$ac_prog", so it can be a program name with args.
5400 set dummy $ac_prog; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_path_MV+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   case $MV in
5407   [\\/]* | ?:[\\/]*)
5408   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5409   ;;
5410   *)
5411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $ensc_searchpath
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416   for ac_exec_ext in '' $ac_executable_extensions; do
5417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423 done
5424
5425   ;;
5426 esac
5427 fi
5428 MV=$ac_cv_path_MV
5429
5430 if test -n "$MV"; then
5431   echo "$as_me:$LINENO: result: $MV" >&5
5432 echo "${ECHO_T}$MV" >&6
5433 else
5434   echo "$as_me:$LINENO: result: no" >&5
5435 echo "${ECHO_T}no" >&6
5436 fi
5437
5438   test -n "$MV" && break
5439 done
5440 test -n "$MV" || MV="$ensc_dflt"
5441
5442
5443         if test -z "${MV}" && $rq; then
5444                 if test -z ""; then
5445                         { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
5446 echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5447    { (exit 1); exit 1; }; }
5448                 else
5449                         { { echo "$as_me:$LINENO: error:
5450 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5451 " >&5
5452 echo "$as_me: error:
5453 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5454 " >&2;}
5455    { (exit 1); exit 1; }; }
5456                 fi
5457         fi
5458
5459         if test -e "${MV}"; then
5460                 MV=`readlink -f "${MV}"`
5461         fi
5462
5463         test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
5464
5465         test "${MV}"
5466
5467
5468
5469
5470         if test -z ""; then
5471                 rq=true
5472         else
5473                 rq=false
5474         fi
5475
5476         if $rq; then
5477                 ensc_dflt=
5478         else
5479                 ensc_dflt=""
5480         fi
5481
5482         for ac_prog in nice
5483 do
5484   # Extract the first word of "$ac_prog", so it can be a program name with args.
5485 set dummy $ac_prog; ac_word=$2
5486 echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5488 if test "${ac_cv_path_NICE+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   case $NICE in
5492   [\\/]* | ?:[\\/]*)
5493   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
5494   ;;
5495   *)
5496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $ensc_searchpath
5498 do
5499   IFS=$as_save_IFS
5500   test -z "$as_dir" && as_dir=.
5501   for ac_exec_ext in '' $ac_executable_extensions; do
5502   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5503     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
5504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505     break 2
5506   fi
5507 done
5508 done
5509
5510   ;;
5511 esac
5512 fi
5513 NICE=$ac_cv_path_NICE
5514
5515 if test -n "$NICE"; then
5516   echo "$as_me:$LINENO: result: $NICE" >&5
5517 echo "${ECHO_T}$NICE" >&6
5518 else
5519   echo "$as_me:$LINENO: result: no" >&5
5520 echo "${ECHO_T}no" >&6
5521 fi
5522
5523   test -n "$NICE" && break
5524 done
5525 test -n "$NICE" || NICE="$ensc_dflt"
5526
5527
5528         if test -z "${NICE}" && $rq; then
5529                 if test -z ""; then
5530                         { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
5531 echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5532    { (exit 1); exit 1; }; }
5533                 else
5534                         { { echo "$as_me:$LINENO: error:
5535 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5536 " >&5
5537 echo "$as_me: error:
5538 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5539 " >&2;}
5540    { (exit 1); exit 1; }; }
5541                 fi
5542         fi
5543
5544         if test -e "${NICE}"; then
5545                 NICE=`readlink -f "${NICE}"`
5546         fi
5547
5548         test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
5549
5550         test "${NICE}"
5551
5552
5553
5554
5555         if test -z ""; then
5556                 rq=true
5557         else
5558                 rq=false
5559         fi
5560
5561         if $rq; then
5562                 ensc_dflt=
5563         else
5564                 ensc_dflt=""
5565         fi
5566
5567         for ac_prog in ps
5568 do
5569   # Extract the first word of "$ac_prog", so it can be a program name with args.
5570 set dummy $ac_prog; ac_word=$2
5571 echo "$as_me:$LINENO: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_path_PS+set}" = set; then
5574   echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576   case $PS in
5577   [\\/]* | ?:[\\/]*)
5578   ac_cv_path_PS="$PS" # Let the user override the test with a path.
5579   ;;
5580   *)
5581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $ensc_searchpath
5583 do
5584   IFS=$as_save_IFS
5585   test -z "$as_dir" && as_dir=.
5586   for ac_exec_ext in '' $ac_executable_extensions; do
5587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590     break 2
5591   fi
5592 done
5593 done
5594
5595   ;;
5596 esac
5597 fi
5598 PS=$ac_cv_path_PS
5599
5600 if test -n "$PS"; then
5601   echo "$as_me:$LINENO: result: $PS" >&5
5602 echo "${ECHO_T}$PS" >&6
5603 else
5604   echo "$as_me:$LINENO: result: no" >&5
5605 echo "${ECHO_T}no" >&6
5606 fi
5607
5608   test -n "$PS" && break
5609 done
5610 test -n "$PS" || PS="$ensc_dflt"
5611
5612
5613         if test -z "${PS}" && $rq; then
5614                 if test -z ""; then
5615                         { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
5616 echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5617    { (exit 1); exit 1; }; }
5618                 else
5619                         { { echo "$as_me:$LINENO: error:
5620 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5621 " >&5
5622 echo "$as_me: error:
5623 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5624 " >&2;}
5625    { (exit 1); exit 1; }; }
5626                 fi
5627         fi
5628
5629         if test -e "${PS}"; then
5630                 PS=`readlink -f "${PS}"`
5631         fi
5632
5633         test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
5634
5635         test "${PS}"
5636
5637
5638
5639
5640         if test -z ""; then
5641                 rq=true
5642         else
5643                 rq=false
5644         fi
5645
5646         if $rq; then
5647                 ensc_dflt=
5648         else
5649                 ensc_dflt=""
5650         fi
5651
5652         for ac_prog in rm
5653 do
5654   # Extract the first word of "$ac_prog", so it can be a program name with args.
5655 set dummy $ac_prog; ac_word=$2
5656 echo "$as_me:$LINENO: checking for $ac_word" >&5
5657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5658 if test "${ac_cv_path_RM+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661   case $RM in
5662   [\\/]* | ?:[\\/]*)
5663   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5664   ;;
5665   *)
5666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $ensc_searchpath
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671   for ac_exec_ext in '' $ac_executable_extensions; do
5672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678 done
5679
5680   ;;
5681 esac
5682 fi
5683 RM=$ac_cv_path_RM
5684
5685 if test -n "$RM"; then
5686   echo "$as_me:$LINENO: result: $RM" >&5
5687 echo "${ECHO_T}$RM" >&6
5688 else
5689   echo "$as_me:$LINENO: result: no" >&5
5690 echo "${ECHO_T}no" >&6
5691 fi
5692
5693   test -n "$RM" && break
5694 done
5695 test -n "$RM" || RM="$ensc_dflt"
5696
5697
5698         if test -z "${RM}" && $rq; then
5699                 if test -z ""; then
5700                         { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
5701 echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5702    { (exit 1); exit 1; }; }
5703                 else
5704                         { { echo "$as_me:$LINENO: error:
5705 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5706 " >&5
5707 echo "$as_me: error:
5708 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5709 " >&2;}
5710    { (exit 1); exit 1; }; }
5711                 fi
5712         fi
5713
5714         if test -e "${RM}"; then
5715                 RM=`readlink -f "${RM}"`
5716         fi
5717
5718         test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
5719
5720         test "${RM}"
5721
5722
5723
5724
5725         if test -z ""; then
5726                 rq=true
5727         else
5728                 rq=false
5729         fi
5730
5731         if $rq; then
5732                 ensc_dflt=
5733         else
5734                 ensc_dflt=""
5735         fi
5736
5737         for ac_prog in rmdir
5738 do
5739   # Extract the first word of "$ac_prog", so it can be a program name with args.
5740 set dummy $ac_prog; ac_word=$2
5741 echo "$as_me:$LINENO: checking for $ac_word" >&5
5742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743 if test "${ac_cv_path_RMDIR+set}" = set; then
5744   echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746   case $RMDIR in
5747   [\\/]* | ?:[\\/]*)
5748   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
5749   ;;
5750   *)
5751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $ensc_searchpath
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756   for ac_exec_ext in '' $ac_executable_extensions; do
5757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
5759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763 done
5764
5765   ;;
5766 esac
5767 fi
5768 RMDIR=$ac_cv_path_RMDIR
5769
5770 if test -n "$RMDIR"; then
5771   echo "$as_me:$LINENO: result: $RMDIR" >&5
5772 echo "${ECHO_T}$RMDIR" >&6
5773 else
5774   echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5776 fi
5777
5778   test -n "$RMDIR" && break
5779 done
5780 test -n "$RMDIR" || RMDIR="$ensc_dflt"
5781
5782
5783         if test -z "${RMDIR}" && $rq; then
5784                 if test -z ""; then
5785                         { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5786 echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5787    { (exit 1); exit 1; }; }
5788                 else
5789                         { { echo "$as_me:$LINENO: error:
5790 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5791 " >&5
5792 echo "$as_me: error:
5793 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5794 " >&2;}
5795    { (exit 1); exit 1; }; }
5796                 fi
5797         fi
5798
5799         if test -e "${RMDIR}"; then
5800                 RMDIR=`readlink -f "${RMDIR}"`
5801         fi
5802
5803         test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
5804
5805         test "${RMDIR}"
5806
5807
5808
5809
5810         if test -z ""; then
5811                 rq=true
5812         else
5813                 rq=false
5814         fi
5815
5816         if $rq; then
5817                 ensc_dflt=
5818         else
5819                 ensc_dflt=""
5820         fi
5821
5822         for ac_prog in sed
5823 do
5824   # Extract the first word of "$ac_prog", so it can be a program name with args.
5825 set dummy $ac_prog; ac_word=$2
5826 echo "$as_me:$LINENO: checking for $ac_word" >&5
5827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5828 if test "${ac_cv_path_SED+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   case $SED in
5832   [\\/]* | ?:[\\/]*)
5833   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5834   ;;
5835   *)
5836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $ensc_searchpath
5838 do
5839   IFS=$as_save_IFS
5840   test -z "$as_dir" && as_dir=.
5841   for ac_exec_ext in '' $ac_executable_extensions; do
5842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845     break 2
5846   fi
5847 done
5848 done
5849
5850   ;;
5851 esac
5852 fi
5853 SED=$ac_cv_path_SED
5854
5855 if test -n "$SED"; then
5856   echo "$as_me:$LINENO: result: $SED" >&5
5857 echo "${ECHO_T}$SED" >&6
5858 else
5859   echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5861 fi
5862
5863   test -n "$SED" && break
5864 done
5865 test -n "$SED" || SED="$ensc_dflt"
5866
5867
5868         if test -z "${SED}" && $rq; then
5869                 if test -z ""; then
5870                         { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
5871 echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5872    { (exit 1); exit 1; }; }
5873                 else
5874                         { { echo "$as_me:$LINENO: error:
5875 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5876 " >&5
5877 echo "$as_me: error:
5878 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5879 " >&2;}
5880    { (exit 1); exit 1; }; }
5881                 fi
5882         fi
5883
5884         if test -e "${SED}"; then
5885                 SED=`readlink -f "${SED}"`
5886         fi
5887
5888         test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
5889
5890         test "${SED}"
5891
5892
5893
5894
5895         if test -z ""; then
5896                 rq=true
5897         else
5898                 rq=false
5899         fi
5900
5901         if $rq; then
5902                 ensc_dflt=
5903         else
5904                 ensc_dflt=""
5905         fi
5906
5907         for ac_prog in sh
5908 do
5909   # Extract the first word of "$ac_prog", so it can be a program name with args.
5910 set dummy $ac_prog; ac_word=$2
5911 echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5913 if test "${ac_cv_path_SH+set}" = set; then
5914   echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916   case $SH in
5917   [\\/]* | ?:[\\/]*)
5918   ac_cv_path_SH="$SH" # Let the user override the test with a path.
5919   ;;
5920   *)
5921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $ensc_searchpath
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926   for ac_exec_ext in '' $ac_executable_extensions; do
5927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933 done
5934
5935   ;;
5936 esac
5937 fi
5938 SH=$ac_cv_path_SH
5939
5940 if test -n "$SH"; then
5941   echo "$as_me:$LINENO: result: $SH" >&5
5942 echo "${ECHO_T}$SH" >&6
5943 else
5944   echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948   test -n "$SH" && break
5949 done
5950 test -n "$SH" || SH="$ensc_dflt"
5951
5952
5953         if test -z "${SH}" && $rq; then
5954                 if test -z ""; then
5955                         { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
5956 echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5957    { (exit 1); exit 1; }; }
5958                 else
5959                         { { echo "$as_me:$LINENO: error:
5960 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5961 " >&5
5962 echo "$as_me: error:
5963 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5964 " >&2;}
5965    { (exit 1); exit 1; }; }
5966                 fi
5967         fi
5968
5969         if test -e "${SH}"; then
5970                 SH=`readlink -f "${SH}"`
5971         fi
5972
5973         test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
5974
5975         test "${SH}"
5976
5977
5978
5979
5980         if test -z ""; then
5981                 rq=true
5982         else
5983                 rq=false
5984         fi
5985
5986         if $rq; then
5987                 ensc_dflt=
5988         else
5989                 ensc_dflt=""
5990         fi
5991
5992         for ac_prog in tac
5993 do
5994   # Extract the first word of "$ac_prog", so it can be a program name with args.
5995 set dummy $ac_prog; ac_word=$2
5996 echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5998 if test "${ac_cv_path_TAC+set}" = set; then
5999   echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001   case $TAC in
6002   [\\/]* | ?:[\\/]*)
6003   ac_cv_path_TAC="$TAC" # Let the user override the test with a path.
6004   ;;
6005   *)
6006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $ensc_searchpath
6008 do
6009   IFS=$as_save_IFS
6010   test -z "$as_dir" && as_dir=.
6011   for ac_exec_ext in '' $ac_executable_extensions; do
6012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013     ac_cv_path_TAC="$as_dir/$ac_word$ac_exec_ext"
6014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015     break 2
6016   fi
6017 done
6018 done
6019
6020   ;;
6021 esac
6022 fi
6023 TAC=$ac_cv_path_TAC
6024
6025 if test -n "$TAC"; then
6026   echo "$as_me:$LINENO: result: $TAC" >&5
6027 echo "${ECHO_T}$TAC" >&6
6028 else
6029   echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6
6031 fi
6032
6033   test -n "$TAC" && break
6034 done
6035 test -n "$TAC" || TAC="$ensc_dflt"
6036
6037
6038         if test -z "${TAC}" && $rq; then
6039                 if test -z ""; then
6040                         { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
6041 echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6042    { (exit 1); exit 1; }; }
6043                 else
6044                         { { echo "$as_me:$LINENO: error:
6045 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
6046 " >&5
6047 echo "$as_me: error:
6048 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
6049 " >&2;}
6050    { (exit 1); exit 1; }; }
6051                 fi
6052         fi
6053
6054         if test -e "${TAC}"; then
6055                 TAC=`readlink -f "${TAC}"`
6056         fi
6057
6058         test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
6059
6060         test "${TAC}"
6061
6062
6063
6064
6065         if test -z ""; then
6066                 rq=true
6067         else
6068                 rq=false
6069         fi
6070
6071         if $rq; then
6072                 ensc_dflt=
6073         else
6074                 ensc_dflt=""
6075         fi
6076
6077         for ac_prog in tar
6078 do
6079   # Extract the first word of "$ac_prog", so it can be a program name with args.
6080 set dummy $ac_prog; ac_word=$2
6081 echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6083 if test "${ac_cv_path_TAR+set}" = set; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086   case $TAR in
6087   [\\/]* | ?:[\\/]*)
6088   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6089   ;;
6090   *)
6091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $ensc_searchpath
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096   for ac_exec_ext in '' $ac_executable_extensions; do
6097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103 done
6104
6105   ;;
6106 esac
6107 fi
6108 TAR=$ac_cv_path_TAR
6109
6110 if test -n "$TAR"; then
6111   echo "$as_me:$LINENO: result: $TAR" >&5
6112 echo "${ECHO_T}$TAR" >&6
6113 else
6114   echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6116 fi
6117
6118   test -n "$TAR" && break
6119 done
6120 test -n "$TAR" || TAR="$ensc_dflt"
6121
6122
6123         if test -z "${TAR}" && $rq; then
6124                 if test -z ""; then
6125                         { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
6126 echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6127    { (exit 1); exit 1; }; }
6128                 else
6129                         { { echo "$as_me:$LINENO: error:
6130 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6131 " >&5
6132 echo "$as_me: error:
6133 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6134 " >&2;}
6135    { (exit 1); exit 1; }; }
6136                 fi
6137         fi
6138
6139         if test -e "${TAR}"; then
6140                 TAR=`readlink -f "${TAR}"`
6141         fi
6142
6143         test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
6144
6145         test "${TAR}"
6146
6147
6148
6149
6150         if test -z ""; then
6151                 rq=true
6152         else
6153                 rq=false
6154         fi
6155
6156         if $rq; then
6157                 ensc_dflt=
6158         else
6159                 ensc_dflt=""
6160         fi
6161
6162         for ac_prog in touch
6163 do
6164   # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; ac_word=$2
6166 echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6168 if test "${ac_cv_path_TOUCH+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   case $TOUCH in
6172   [\\/]* | ?:[\\/]*)
6173   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
6174   ;;
6175   *)
6176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $ensc_searchpath
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181   for ac_exec_ext in '' $ac_executable_extensions; do
6182   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
6184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188 done
6189
6190   ;;
6191 esac
6192 fi
6193 TOUCH=$ac_cv_path_TOUCH
6194
6195 if test -n "$TOUCH"; then
6196   echo "$as_me:$LINENO: result: $TOUCH" >&5
6197 echo "${ECHO_T}$TOUCH" >&6
6198 else
6199   echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6
6201 fi
6202
6203   test -n "$TOUCH" && break
6204 done
6205 test -n "$TOUCH" || TOUCH="$ensc_dflt"
6206
6207
6208         if test -z "${TOUCH}" && $rq; then
6209                 if test -z ""; then
6210                         { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
6211 echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6212    { (exit 1); exit 1; }; }
6213                 else
6214                         { { echo "$as_me:$LINENO: error:
6215 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6216 " >&5
6217 echo "$as_me: error:
6218 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6219 " >&2;}
6220    { (exit 1); exit 1; }; }
6221                 fi
6222         fi
6223
6224         if test -e "${TOUCH}"; then
6225                 TOUCH=`readlink -f "${TOUCH}"`
6226         fi
6227
6228         test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
6229
6230         test "${TOUCH}"
6231
6232
6233
6234
6235         if test -z ""; then
6236                 rq=true
6237         else
6238                 rq=false
6239         fi
6240
6241         if $rq; then
6242                 ensc_dflt=
6243         else
6244                 ensc_dflt=""
6245         fi
6246
6247         for ac_prog in tty
6248 do
6249   # Extract the first word of "$ac_prog", so it can be a program name with args.
6250 set dummy $ac_prog; ac_word=$2
6251 echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253 if test "${ac_cv_path_TTY+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256   case $TTY in
6257   [\\/]* | ?:[\\/]*)
6258   ac_cv_path_TTY="$TTY" # Let the user override the test with a path.
6259   ;;
6260   *)
6261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $ensc_searchpath
6263 do
6264   IFS=$as_save_IFS
6265   test -z "$as_dir" && as_dir=.
6266   for ac_exec_ext in '' $ac_executable_extensions; do
6267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268     ac_cv_path_TTY="$as_dir/$ac_word$ac_exec_ext"
6269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270     break 2
6271   fi
6272 done
6273 done
6274
6275   ;;
6276 esac
6277 fi
6278 TTY=$ac_cv_path_TTY
6279
6280 if test -n "$TTY"; then
6281   echo "$as_me:$LINENO: result: $TTY" >&5
6282 echo "${ECHO_T}$TTY" >&6
6283 else
6284   echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6
6286 fi
6287
6288   test -n "$TTY" && break
6289 done
6290 test -n "$TTY" || TTY="$ensc_dflt"
6291
6292
6293         if test -z "${TTY}" && $rq; then
6294                 if test -z ""; then
6295                         { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
6296 echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6297    { (exit 1); exit 1; }; }
6298                 else
6299                         { { echo "$as_me:$LINENO: error:
6300 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6301 " >&5
6302 echo "$as_me: error:
6303 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6304 " >&2;}
6305    { (exit 1); exit 1; }; }
6306                 fi
6307         fi
6308
6309         if test -e "${TTY}"; then
6310                 TTY=`readlink -f "${TTY}"`
6311         fi
6312
6313         test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
6314
6315         test "${TTY}"
6316
6317
6318
6319
6320         if test -z ""; then
6321                 rq=true
6322         else
6323                 rq=false
6324         fi
6325
6326         if $rq; then
6327                 ensc_dflt=
6328         else
6329                 ensc_dflt=""
6330         fi
6331
6332         for ac_prog in umount
6333 do
6334   # Extract the first word of "$ac_prog", so it can be a program name with args.
6335 set dummy $ac_prog; ac_word=$2
6336 echo "$as_me:$LINENO: checking for $ac_word" >&5
6337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6338 if test "${ac_cv_path_UMOUNT+set}" = set; then
6339   echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341   case $UMOUNT in
6342   [\\/]* | ?:[\\/]*)
6343   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
6344   ;;
6345   *)
6346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $ensc_searchpath
6348 do
6349   IFS=$as_save_IFS
6350   test -z "$as_dir" && as_dir=.
6351   for ac_exec_ext in '' $ac_executable_extensions; do
6352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
6354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355     break 2
6356   fi
6357 done
6358 done
6359
6360   ;;
6361 esac
6362 fi
6363 UMOUNT=$ac_cv_path_UMOUNT
6364
6365 if test -n "$UMOUNT"; then
6366   echo "$as_me:$LINENO: result: $UMOUNT" >&5
6367 echo "${ECHO_T}$UMOUNT" >&6
6368 else
6369   echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6
6371 fi
6372
6373   test -n "$UMOUNT" && break
6374 done
6375 test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
6376
6377
6378         if test -z "${UMOUNT}" && $rq; then
6379                 if test -z ""; then
6380                         { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
6381 echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6382    { (exit 1); exit 1; }; }
6383                 else
6384                         { { echo "$as_me:$LINENO: error:
6385 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6386 " >&5
6387 echo "$as_me: error:
6388 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6389 " >&2;}
6390    { (exit 1); exit 1; }; }
6391                 fi
6392         fi
6393
6394         if test -e "${UMOUNT}"; then
6395                 UMOUNT=`readlink -f "${UMOUNT}"`
6396         fi
6397
6398         test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
6399
6400         test "${UMOUNT}"
6401
6402
6403
6404
6405         if test -z ""; then
6406                 rq=true
6407         else
6408                 rq=false
6409         fi
6410
6411         if $rq; then
6412                 ensc_dflt=
6413         else
6414                 ensc_dflt=""
6415         fi
6416
6417         for ac_prog in wc
6418 do
6419   # Extract the first word of "$ac_prog", so it can be a program name with args.
6420 set dummy $ac_prog; ac_word=$2
6421 echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6423 if test "${ac_cv_path_WC+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   case $WC in
6427   [\\/]* | ?:[\\/]*)
6428   ac_cv_path_WC="$WC" # Let the user override the test with a path.
6429   ;;
6430   *)
6431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $ensc_searchpath
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436   for ac_exec_ext in '' $ac_executable_extensions; do
6437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
6439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443 done
6444
6445   ;;
6446 esac
6447 fi
6448 WC=$ac_cv_path_WC
6449
6450 if test -n "$WC"; then
6451   echo "$as_me:$LINENO: result: $WC" >&5
6452 echo "${ECHO_T}$WC" >&6
6453 else
6454   echo "$as_me:$LINENO: result: no" >&5
6455 echo "${ECHO_T}no" >&6
6456 fi
6457
6458   test -n "$WC" && break
6459 done
6460 test -n "$WC" || WC="$ensc_dflt"
6461
6462
6463         if test -z "${WC}" && $rq; then
6464                 if test -z ""; then
6465                         { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
6466 echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6467    { (exit 1); exit 1; }; }
6468                 else
6469                         { { echo "$as_me:$LINENO: error:
6470 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6471 " >&5
6472 echo "$as_me: error:
6473 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6474 " >&2;}
6475    { (exit 1); exit 1; }; }
6476                 fi
6477         fi
6478
6479         if test -e "${WC}"; then
6480                 WC=`readlink -f "${WC}"`
6481         fi
6482
6483         test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
6484
6485         test "${WC}"
6486
6487
6488
6489
6490
6491
6492         if test -z ""; then
6493                 rq=true
6494         else
6495                 rq=false
6496         fi
6497
6498         if $rq; then
6499                 ensc_dflt=
6500         else
6501                 ensc_dflt=""
6502         fi
6503
6504         for ac_prog in ip
6505 do
6506   # Extract the first word of "$ac_prog", so it can be a program name with args.
6507 set dummy $ac_prog; ac_word=$2
6508 echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6510 if test "${ac_cv_path_IP+set}" = set; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   case $IP in
6514   [\\/]* | ?:[\\/]*)
6515   ac_cv_path_IP="$IP" # Let the user override the test with a path.
6516   ;;
6517   *)
6518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $ensc_searchpath
6520 do
6521   IFS=$as_save_IFS
6522   test -z "$as_dir" && as_dir=.
6523   for ac_exec_ext in '' $ac_executable_extensions; do
6524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525     ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
6526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527     break 2
6528   fi
6529 done
6530 done
6531
6532   ;;
6533 esac
6534 fi
6535 IP=$ac_cv_path_IP
6536
6537 if test -n "$IP"; then
6538   echo "$as_me:$LINENO: result: $IP" >&5
6539 echo "${ECHO_T}$IP" >&6
6540 else
6541   echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6
6543 fi
6544
6545   test -n "$IP" && break
6546 done
6547 test -n "$IP" || IP="$ensc_dflt"
6548
6549
6550         if test -z "${IP}" && $rq; then
6551                 if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
6552                         { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
6553 echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6554    { (exit 1); exit 1; }; }
6555                 else
6556                         { { echo "$as_me:$LINENO: error:
6557 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6558 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
6559 echo "$as_me: error:
6560 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6561 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
6562    { (exit 1); exit 1; }; }
6563                 fi
6564         fi
6565
6566         if test -e "${IP}"; then
6567                 IP=`readlink -f "${IP}"`
6568         fi
6569
6570         test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
6571
6572         test "${IP}"
6573
6574
6575
6576
6577         if test -z ""; then
6578                 rq=true
6579         else
6580                 rq=false
6581         fi
6582
6583         if $rq; then
6584                 ensc_dflt=
6585         else
6586                 ensc_dflt=""
6587         fi
6588
6589         for ac_prog in iptables
6590 do
6591   # Extract the first word of "$ac_prog", so it can be a program name with args.
6592 set dummy $ac_prog; ac_word=$2
6593 echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6595 if test "${ac_cv_path_IPTABLES+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   case $IPTABLES in
6599   [\\/]* | ?:[\\/]*)
6600   ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
6601   ;;
6602   *)
6603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $ensc_searchpath
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608   for ac_exec_ext in '' $ac_executable_extensions; do
6609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610     ac_cv_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
6611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615 done
6616
6617   ;;
6618 esac
6619 fi
6620 IPTABLES=$ac_cv_path_IPTABLES
6621
6622 if test -n "$IPTABLES"; then
6623   echo "$as_me:$LINENO: result: $IPTABLES" >&5
6624 echo "${ECHO_T}$IPTABLES" >&6
6625 else
6626   echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6
6628 fi
6629
6630   test -n "$IPTABLES" && break
6631 done
6632 test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
6633
6634
6635         if test -z "${IPTABLES}" && $rq; then
6636                 if test -z ""; then
6637                         { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
6638 echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6639    { (exit 1); exit 1; }; }
6640                 else
6641                         { { echo "$as_me:$LINENO: error:
6642 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6643 " >&5
6644 echo "$as_me: error:
6645 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6646 " >&2;}
6647    { (exit 1); exit 1; }; }
6648                 fi
6649         fi
6650
6651         if test -e "${IPTABLES}"; then
6652                 IPTABLES=`readlink -f "${IPTABLES}"`
6653         fi
6654
6655         test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
6656
6657         test "${IPTABLES}"
6658
6659
6660
6661
6662         if test -z ""; then
6663                 rq=true
6664         else
6665                 rq=false
6666         fi
6667
6668         if $rq; then
6669                 ensc_dflt=
6670         else
6671                 ensc_dflt=""
6672         fi
6673
6674         for ac_prog in modprobe
6675 do
6676   # Extract the first word of "$ac_prog", so it can be a program name with args.
6677 set dummy $ac_prog; ac_word=$2
6678 echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6680 if test "${ac_cv_path_MODPROBE+set}" = set; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683   case $MODPROBE in
6684   [\\/]* | ?:[\\/]*)
6685   ac_cv_path_MODPROBE="$MODPROBE" # Let the user override the test with a path.
6686   ;;
6687   *)
6688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $ensc_searchpath
6690 do
6691   IFS=$as_save_IFS
6692   test -z "$as_dir" && as_dir=.
6693   for ac_exec_ext in '' $ac_executable_extensions; do
6694   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695     ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
6696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697     break 2
6698   fi
6699 done
6700 done
6701
6702   ;;
6703 esac
6704 fi
6705 MODPROBE=$ac_cv_path_MODPROBE
6706
6707 if test -n "$MODPROBE"; then
6708   echo "$as_me:$LINENO: result: $MODPROBE" >&5
6709 echo "${ECHO_T}$MODPROBE" >&6
6710 else
6711   echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6
6713 fi
6714
6715   test -n "$MODPROBE" && break
6716 done
6717 test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
6718
6719
6720         if test -z "${MODPROBE}" && $rq; then
6721                 if test -z ""; then
6722                         { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
6723 echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6724    { (exit 1); exit 1; }; }
6725                 else
6726                         { { echo "$as_me:$LINENO: error:
6727 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6728 " >&5
6729 echo "$as_me: error:
6730 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6731 " >&2;}
6732    { (exit 1); exit 1; }; }
6733                 fi
6734         fi
6735
6736         if test -e "${MODPROBE}"; then
6737                 MODPROBE=`readlink -f "${MODPROBE}"`
6738         fi
6739
6740         test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
6741
6742         test "${MODPROBE}"
6743
6744
6745
6746
6747         if test -z ""; then
6748                 rq=true
6749         else
6750                 rq=false
6751         fi
6752
6753         if $rq; then
6754                 ensc_dflt=
6755         else
6756                 ensc_dflt=""
6757         fi
6758
6759         for ac_prog in nameif
6760 do
6761   # Extract the first word of "$ac_prog", so it can be a program name with args.
6762 set dummy $ac_prog; ac_word=$2
6763 echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6765 if test "${ac_cv_path_NAMEIF+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   case $NAMEIF in
6769   [\\/]* | ?:[\\/]*)
6770   ac_cv_path_NAMEIF="$NAMEIF" # Let the user override the test with a path.
6771   ;;
6772   *)
6773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $ensc_searchpath
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778   for ac_exec_ext in '' $ac_executable_extensions; do
6779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780     ac_cv_path_NAMEIF="$as_dir/$ac_word$ac_exec_ext"
6781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785 done
6786
6787   ;;
6788 esac
6789 fi
6790 NAMEIF=$ac_cv_path_NAMEIF
6791
6792 if test -n "$NAMEIF"; then
6793   echo "$as_me:$LINENO: result: $NAMEIF" >&5
6794 echo "${ECHO_T}$NAMEIF" >&6
6795 else
6796   echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6
6798 fi
6799
6800   test -n "$NAMEIF" && break
6801 done
6802 test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
6803
6804
6805         if test -z "${NAMEIF}" && $rq; then
6806                 if test -z ""; then
6807                         { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
6808 echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6809    { (exit 1); exit 1; }; }
6810                 else
6811                         { { echo "$as_me:$LINENO: error:
6812 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6813 " >&5
6814 echo "$as_me: error:
6815 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6816 " >&2;}
6817    { (exit 1); exit 1; }; }
6818                 fi
6819         fi
6820
6821         if test -e "${NAMEIF}"; then
6822                 NAMEIF=`readlink -f "${NAMEIF}"`
6823         fi
6824
6825         test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
6826
6827         test "${NAMEIF}"
6828
6829
6830
6831
6832         if test -z ""; then
6833                 rq=true
6834         else
6835                 rq=false
6836         fi
6837
6838         if $rq; then
6839                 ensc_dflt=
6840         else
6841                 ensc_dflt=""
6842         fi
6843
6844         for ac_prog in nohup
6845 do
6846   # Extract the first word of "$ac_prog", so it can be a program name with args.
6847 set dummy $ac_prog; ac_word=$2
6848 echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6850 if test "${ac_cv_path_NOHUP+set}" = set; then
6851   echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853   case $NOHUP in
6854   [\\/]* | ?:[\\/]*)
6855   ac_cv_path_NOHUP="$NOHUP" # Let the user override the test with a path.
6856   ;;
6857   *)
6858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $ensc_searchpath
6860 do
6861   IFS=$as_save_IFS
6862   test -z "$as_dir" && as_dir=.
6863   for ac_exec_ext in '' $ac_executable_extensions; do
6864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865     ac_cv_path_NOHUP="$as_dir/$ac_word$ac_exec_ext"
6866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867     break 2
6868   fi
6869 done
6870 done
6871
6872   ;;
6873 esac
6874 fi
6875 NOHUP=$ac_cv_path_NOHUP
6876
6877 if test -n "$NOHUP"; then
6878   echo "$as_me:$LINENO: result: $NOHUP" >&5
6879 echo "${ECHO_T}$NOHUP" >&6
6880 else
6881   echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6
6883 fi
6884
6885   test -n "$NOHUP" && break
6886 done
6887 test -n "$NOHUP" || NOHUP="$ensc_dflt"
6888
6889
6890         if test -z "${NOHUP}" && $rq; then
6891                 if test -z ""; then
6892                         { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
6893 echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6894    { (exit 1); exit 1; }; }
6895                 else
6896                         { { echo "$as_me:$LINENO: error:
6897 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6898 " >&5
6899 echo "$as_me: error:
6900 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6901 " >&2;}
6902    { (exit 1); exit 1; }; }
6903                 fi
6904         fi
6905
6906         if test -e "${NOHUP}"; then
6907                 NOHUP=`readlink -f "${NOHUP}"`
6908         fi
6909
6910         test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
6911
6912         test "${NOHUP}"
6913
6914
6915
6916
6917         if test -z ""; then
6918                 rq=true
6919         else
6920                 rq=false
6921         fi
6922
6923         if $rq; then
6924                 ensc_dflt=
6925         else
6926                 ensc_dflt=""
6927         fi
6928
6929         for ac_prog in rmmod
6930 do
6931   # Extract the first word of "$ac_prog", so it can be a program name with args.
6932 set dummy $ac_prog; ac_word=$2
6933 echo "$as_me:$LINENO: checking for $ac_word" >&5
6934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6935 if test "${ac_cv_path_RMMOD+set}" = set; then
6936   echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938   case $RMMOD in
6939   [\\/]* | ?:[\\/]*)
6940   ac_cv_path_RMMOD="$RMMOD" # Let the user override the test with a path.
6941   ;;
6942   *)
6943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $ensc_searchpath
6945 do
6946   IFS=$as_save_IFS
6947   test -z "$as_dir" && as_dir=.
6948   for ac_exec_ext in '' $ac_executable_extensions; do
6949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950     ac_cv_path_RMMOD="$as_dir/$ac_word$ac_exec_ext"
6951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6952     break 2
6953   fi
6954 done
6955 done
6956
6957   ;;
6958 esac
6959 fi
6960 RMMOD=$ac_cv_path_RMMOD
6961
6962 if test -n "$RMMOD"; then
6963   echo "$as_me:$LINENO: result: $RMMOD" >&5
6964 echo "${ECHO_T}$RMMOD" >&6
6965 else
6966   echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6
6968 fi
6969
6970   test -n "$RMMOD" && break
6971 done
6972 test -n "$RMMOD" || RMMOD="$ensc_dflt"
6973
6974
6975         if test -z "${RMMOD}" && $rq; then
6976                 if test -z ""; then
6977                         { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
6978 echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6979    { (exit 1); exit 1; }; }
6980                 else
6981                         { { echo "$as_me:$LINENO: error:
6982 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6983 " >&5
6984 echo "$as_me: error:
6985 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6986 " >&2;}
6987    { (exit 1); exit 1; }; }
6988                 fi
6989         fi
6990
6991         if test -e "${RMMOD}"; then
6992                 RMMOD=`readlink -f "${RMMOD}"`
6993         fi
6994
6995         test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
6996
6997         test "${RMMOD}"
6998
6999
7000
7001
7002         if test -z ""; then
7003                 rq=true
7004         else
7005                 rq=false
7006         fi
7007
7008         if $rq; then
7009                 ensc_dflt=
7010         else
7011                 ensc_dflt=""
7012         fi
7013
7014         for ac_prog in vconfig
7015 do
7016   # Extract the first word of "$ac_prog", so it can be a program name with args.
7017 set dummy $ac_prog; ac_word=$2
7018 echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7020 if test "${ac_cv_path_VCONFIG+set}" = set; then
7021   echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023   case $VCONFIG in
7024   [\\/]* | ?:[\\/]*)
7025   ac_cv_path_VCONFIG="$VCONFIG" # Let the user override the test with a path.
7026   ;;
7027   *)
7028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $ensc_searchpath
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033   for ac_exec_ext in '' $ac_executable_extensions; do
7034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035     ac_cv_path_VCONFIG="$as_dir/$ac_word$ac_exec_ext"
7036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040 done
7041
7042   ;;
7043 esac
7044 fi
7045 VCONFIG=$ac_cv_path_VCONFIG
7046
7047 if test -n "$VCONFIG"; then
7048   echo "$as_me:$LINENO: result: $VCONFIG" >&5
7049 echo "${ECHO_T}$VCONFIG" >&6
7050 else
7051   echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6
7053 fi
7054
7055   test -n "$VCONFIG" && break
7056 done
7057 test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
7058
7059
7060         if test -z "${VCONFIG}" && $rq; then
7061                 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
7062                         { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
7063 echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7064    { (exit 1); exit 1; }; }
7065                 else
7066                         { { echo "$as_me:$LINENO: error:
7067 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
7068 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
7069 echo "$as_me: error:
7070 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
7071 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
7072    { (exit 1); exit 1; }; }
7073                 fi
7074         fi
7075
7076         if test -e "${VCONFIG}"; then
7077                 VCONFIG=`readlink -f "${VCONFIG}"`
7078         fi
7079
7080         test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
7081
7082         test "${VCONFIG}"
7083
7084
7085
7086
7087         if test -z ""; then
7088                 rq=true
7089         else
7090                 rq=false
7091         fi
7092
7093         if $rq; then
7094                 ensc_dflt=
7095         else
7096                 ensc_dflt=""
7097         fi
7098
7099         for ac_prog in wget
7100 do
7101   # Extract the first word of "$ac_prog", so it can be a program name with args.
7102 set dummy $ac_prog; ac_word=$2
7103 echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7105 if test "${ac_cv_path_WGET+set}" = set; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108   case $WGET in
7109   [\\/]* | ?:[\\/]*)
7110   ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7111   ;;
7112   *)
7113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $ensc_searchpath
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118   for ac_exec_ext in '' $ac_executable_extensions; do
7119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120     ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125 done
7126
7127   ;;
7128 esac
7129 fi
7130 WGET=$ac_cv_path_WGET
7131
7132 if test -n "$WGET"; then
7133   echo "$as_me:$LINENO: result: $WGET" >&5
7134 echo "${ECHO_T}$WGET" >&6
7135 else
7136   echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6
7138 fi
7139
7140   test -n "$WGET" && break
7141 done
7142 test -n "$WGET" || WGET="$ensc_dflt"
7143
7144
7145         if test -z "${WGET}" && $rq; then
7146                 if test -z ""; then
7147                         { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
7148 echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7149    { (exit 1); exit 1; }; }
7150                 else
7151                         { { echo "$as_me:$LINENO: error:
7152 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
7153 " >&5
7154 echo "$as_me: error:
7155 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
7156 " >&2;}
7157    { (exit 1); exit 1; }; }
7158                 fi
7159         fi
7160
7161         if test -e "${WGET}"; then
7162                 WGET=`readlink -f "${WGET}"`
7163         fi
7164
7165         test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
7166
7167         test "${WGET}"
7168
7169
7170
7171
7172         if test -z "file"; then
7173                 rq=true
7174         else
7175                 rq=false
7176         fi
7177
7178         if $rq; then
7179                 ensc_dflt=
7180         else
7181                 ensc_dflt="file"
7182         fi
7183
7184         for ac_prog in file
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_FILE+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   case $FILE in
7194   [\\/]* | ?:[\\/]*)
7195   ac_cv_path_FILE="$FILE" # 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_FILE="$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 FILE=$ac_cv_path_FILE
7216
7217 if test -n "$FILE"; then
7218   echo "$as_me:$LINENO: result: $FILE" >&5
7219 echo "${ECHO_T}$FILE" >&6
7220 else
7221   echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6
7223 fi
7224
7225   test -n "$FILE" && break
7226 done
7227 test -n "$FILE" || FILE="$ensc_dflt"
7228
7229
7230         if test -z "${FILE}" && $rq; then
7231                 if test -z ""; then
7232                         { { echo "$as_me:$LINENO: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&5
7233 echo "$as_me: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7234    { (exit 1); exit 1; }; }
7235                 else
7236                         { { echo "$as_me:$LINENO: error:
7237 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7238 " >&5
7239 echo "$as_me: error:
7240 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7241 " >&2;}
7242    { (exit 1); exit 1; }; }
7243                 fi
7244         fi
7245
7246         if test -e "${FILE}"; then
7247                 FILE=`readlink -f "${FILE}"`
7248         fi
7249
7250         test "${FILE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'FILE'@!${FILE}!g;"
7251
7252         test "${FILE}"
7253
7254
7255
7256
7257         if test -z "gzip"; then
7258                 rq=true
7259         else
7260                 rq=false
7261         fi
7262
7263         if $rq; then
7264                 ensc_dflt=
7265         else
7266                 ensc_dflt="gzip"
7267         fi
7268
7269         for ac_prog in gzip
7270 do
7271   # Extract the first word of "$ac_prog", so it can be a program name with args.
7272 set dummy $ac_prog; ac_word=$2
7273 echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7275 if test "${ac_cv_path_GZIP+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   case $GZIP in
7279   [\\/]* | ?:[\\/]*)
7280   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7281   ;;
7282   *)
7283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $ensc_searchpath
7285 do
7286   IFS=$as_save_IFS
7287   test -z "$as_dir" && as_dir=.
7288   for ac_exec_ext in '' $ac_executable_extensions; do
7289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7290     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292     break 2
7293   fi
7294 done
7295 done
7296
7297   ;;
7298 esac
7299 fi
7300 GZIP=$ac_cv_path_GZIP
7301
7302 if test -n "$GZIP"; then
7303   echo "$as_me:$LINENO: result: $GZIP" >&5
7304 echo "${ECHO_T}$GZIP" >&6
7305 else
7306   echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6
7308 fi
7309
7310   test -n "$GZIP" && break
7311 done
7312 test -n "$GZIP" || GZIP="$ensc_dflt"
7313
7314
7315         if test -z "${GZIP}" && $rq; then
7316                 if test -z ""; then
7317                         { { echo "$as_me:$LINENO: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&5
7318 echo "$as_me: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7319    { (exit 1); exit 1; }; }
7320                 else
7321                         { { echo "$as_me:$LINENO: error:
7322 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7323 " >&5
7324 echo "$as_me: error:
7325 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7326 " >&2;}
7327    { (exit 1); exit 1; }; }
7328                 fi
7329         fi
7330
7331         if test -e "${GZIP}"; then
7332                 GZIP=`readlink -f "${GZIP}"`
7333         fi
7334
7335         test "${GZIP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GZIP'@!${GZIP}!g;"
7336
7337         test "${GZIP}"
7338
7339
7340
7341
7342         if test -z "bzip2"; then
7343                 rq=true
7344         else
7345                 rq=false
7346         fi
7347
7348         if $rq; then
7349                 ensc_dflt=
7350         else
7351                 ensc_dflt="bzip2"
7352         fi
7353
7354         for ac_prog in bzip2
7355 do
7356   # Extract the first word of "$ac_prog", so it can be a program name with args.
7357 set dummy $ac_prog; ac_word=$2
7358 echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7360 if test "${ac_cv_path_BZIP2+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   case $BZIP2 in
7364   [\\/]* | ?:[\\/]*)
7365   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7366   ;;
7367   *)
7368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $ensc_searchpath
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373   for ac_exec_ext in '' $ac_executable_extensions; do
7374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380 done
7381
7382   ;;
7383 esac
7384 fi
7385 BZIP2=$ac_cv_path_BZIP2
7386
7387 if test -n "$BZIP2"; then
7388   echo "$as_me:$LINENO: result: $BZIP2" >&5
7389 echo "${ECHO_T}$BZIP2" >&6
7390 else
7391   echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6
7393 fi
7394
7395   test -n "$BZIP2" && break
7396 done
7397 test -n "$BZIP2" || BZIP2="$ensc_dflt"
7398
7399
7400         if test -z "${BZIP2}" && $rq; then
7401                 if test -z ""; then
7402                         { { echo "$as_me:$LINENO: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&5
7403 echo "$as_me: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7404    { (exit 1); exit 1; }; }
7405                 else
7406                         { { echo "$as_me:$LINENO: error:
7407 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7408 " >&5
7409 echo "$as_me: error:
7410 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7411 " >&2;}
7412    { (exit 1); exit 1; }; }
7413                 fi
7414         fi
7415
7416         if test -e "${BZIP2}"; then
7417                 BZIP2=`readlink -f "${BZIP2}"`
7418         fi
7419
7420         test "${BZIP2}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'BZIP2'@!${BZIP2}!g;"
7421
7422         test "${BZIP2}"
7423
7424
7425
7426
7427         if test -z "cpio"; then
7428                 rq=true
7429         else
7430                 rq=false
7431         fi
7432
7433         if $rq; then
7434                 ensc_dflt=
7435         else
7436                 ensc_dflt="cpio"
7437         fi
7438
7439         for ac_prog in cpio
7440 do
7441   # Extract the first word of "$ac_prog", so it can be a program name with args.
7442 set dummy $ac_prog; ac_word=$2
7443 echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7445 if test "${ac_cv_path_CPIO+set}" = set; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448   case $CPIO in
7449   [\\/]* | ?:[\\/]*)
7450   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
7451   ;;
7452   *)
7453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $ensc_searchpath
7455 do
7456   IFS=$as_save_IFS
7457   test -z "$as_dir" && as_dir=.
7458   for ac_exec_ext in '' $ac_executable_extensions; do
7459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
7461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462     break 2
7463   fi
7464 done
7465 done
7466
7467   ;;
7468 esac
7469 fi
7470 CPIO=$ac_cv_path_CPIO
7471
7472 if test -n "$CPIO"; then
7473   echo "$as_me:$LINENO: result: $CPIO" >&5
7474 echo "${ECHO_T}$CPIO" >&6
7475 else
7476   echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6
7478 fi
7479
7480   test -n "$CPIO" && break
7481 done
7482 test -n "$CPIO" || CPIO="$ensc_dflt"
7483
7484
7485         if test -z "${CPIO}" && $rq; then
7486                 if test -z ""; then
7487                         { { echo "$as_me:$LINENO: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&5
7488 echo "$as_me: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7489    { (exit 1); exit 1; }; }
7490                 else
7491                         { { echo "$as_me:$LINENO: error:
7492 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
7493 " >&5
7494 echo "$as_me: error:
7495 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
7496 " >&2;}
7497    { (exit 1); exit 1; }; }
7498                 fi
7499         fi
7500
7501         if test -e "${CPIO}"; then
7502                 CPIO=`readlink -f "${CPIO}"`
7503         fi
7504
7505         test "${CPIO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CPIO'@!${CPIO}!g;"
7506
7507         test "${CPIO}"
7508
7509
7510
7511
7512         if test -z "restore"; then
7513                 rq=true
7514         else
7515                 rq=false
7516         fi
7517
7518         if $rq; then
7519                 ensc_dflt=
7520         else
7521                 ensc_dflt="restore"
7522         fi
7523
7524         for ac_prog in restore
7525 do
7526   # Extract the first word of "$ac_prog", so it can be a program name with args.
7527 set dummy $ac_prog; ac_word=$2
7528 echo "$as_me:$LINENO: checking for $ac_word" >&5
7529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7530 if test "${ac_cv_path_RESTORE+set}" = set; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533   case $RESTORE in
7534   [\\/]* | ?:[\\/]*)
7535   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
7536   ;;
7537   *)
7538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $ensc_searchpath
7540 do
7541   IFS=$as_save_IFS
7542   test -z "$as_dir" && as_dir=.
7543   for ac_exec_ext in '' $ac_executable_extensions; do
7544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
7546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547     break 2
7548   fi
7549 done
7550 done
7551
7552   ;;
7553 esac
7554 fi
7555 RESTORE=$ac_cv_path_RESTORE
7556
7557 if test -n "$RESTORE"; then
7558   echo "$as_me:$LINENO: result: $RESTORE" >&5
7559 echo "${ECHO_T}$RESTORE" >&6
7560 else
7561   echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6
7563 fi
7564
7565   test -n "$RESTORE" && break
7566 done
7567 test -n "$RESTORE" || RESTORE="$ensc_dflt"
7568
7569
7570         if test -z "${RESTORE}" && $rq; then
7571                 if test -z ""; then
7572                         { { echo "$as_me:$LINENO: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&5
7573 echo "$as_me: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7574    { (exit 1); exit 1; }; }
7575                 else
7576                         { { echo "$as_me:$LINENO: error:
7577 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
7578 " >&5
7579 echo "$as_me: error:
7580 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
7581 " >&2;}
7582    { (exit 1); exit 1; }; }
7583                 fi
7584         fi
7585
7586         if test -e "${RESTORE}"; then
7587                 RESTORE=`readlink -f "${RESTORE}"`
7588         fi
7589
7590         test "${RESTORE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RESTORE'@!${RESTORE}!g;"
7591
7592         test "${RESTORE}"
7593
7594
7595
7596
7597         if test -z "rsync"; then
7598                 rq=true
7599         else
7600                 rq=false
7601         fi
7602
7603         if $rq; then
7604                 ensc_dflt=
7605         else
7606                 ensc_dflt="rsync"
7607         fi
7608
7609         for ac_prog in rsync
7610 do
7611   # Extract the first word of "$ac_prog", so it can be a program name with args.
7612 set dummy $ac_prog; ac_word=$2
7613 echo "$as_me:$LINENO: checking for $ac_word" >&5
7614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7615 if test "${ac_cv_path_RSYNC+set}" = set; then
7616   echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618   case $RSYNC in
7619   [\\/]* | ?:[\\/]*)
7620   ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
7621   ;;
7622   *)
7623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $ensc_searchpath
7625 do
7626   IFS=$as_save_IFS
7627   test -z "$as_dir" && as_dir=.
7628   for ac_exec_ext in '' $ac_executable_extensions; do
7629   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630     ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
7631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7632     break 2
7633   fi
7634 done
7635 done
7636
7637   ;;
7638 esac
7639 fi
7640 RSYNC=$ac_cv_path_RSYNC
7641
7642 if test -n "$RSYNC"; then
7643   echo "$as_me:$LINENO: result: $RSYNC" >&5
7644 echo "${ECHO_T}$RSYNC" >&6
7645 else
7646   echo "$as_me:$LINENO: result: no" >&5
7647 echo "${ECHO_T}no" >&6
7648 fi
7649
7650   test -n "$RSYNC" && break
7651 done
7652 test -n "$RSYNC" || RSYNC="$ensc_dflt"
7653
7654
7655         if test -z "${RSYNC}" && $rq; then
7656                 if test -z ""; then
7657                         { { echo "$as_me:$LINENO: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&5
7658 echo "$as_me: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7659    { (exit 1); exit 1; }; }
7660                 else
7661                         { { echo "$as_me:$LINENO: error:
7662 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
7663 " >&5
7664 echo "$as_me: error:
7665 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
7666 " >&2;}
7667    { (exit 1); exit 1; }; }
7668                 fi
7669         fi
7670
7671         if test -e "${RSYNC}"; then
7672                 RSYNC=`readlink -f "${RSYNC}"`
7673         fi
7674
7675         test "${RSYNC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RSYNC'@!${RSYNC}!g;"
7676
7677         test "${RSYNC}"
7678
7679
7680
7681
7682
7683         if test -z ":"; then
7684                 rq=true
7685         else
7686                 rq=false
7687         fi
7688
7689         if $rq; then
7690                 ensc_dflt=
7691         else
7692                 ensc_dflt=":"
7693         fi
7694
7695         for ac_prog in doxygen
7696 do
7697   # Extract the first word of "$ac_prog", so it can be a program name with args.
7698 set dummy $ac_prog; ac_word=$2
7699 echo "$as_me:$LINENO: checking for $ac_word" >&5
7700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7701 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   case $DOXYGEN in
7705   [\\/]* | ?:[\\/]*)
7706   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7707   ;;
7708   *)
7709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $ensc_searchpath
7711 do
7712   IFS=$as_save_IFS
7713   test -z "$as_dir" && as_dir=.
7714   for ac_exec_ext in '' $ac_executable_extensions; do
7715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718     break 2
7719   fi
7720 done
7721 done
7722
7723   ;;
7724 esac
7725 fi
7726 DOXYGEN=$ac_cv_path_DOXYGEN
7727
7728 if test -n "$DOXYGEN"; then
7729   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7730 echo "${ECHO_T}$DOXYGEN" >&6
7731 else
7732   echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6
7734 fi
7735
7736   test -n "$DOXYGEN" && break
7737 done
7738 test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
7739
7740
7741         if test -z "${DOXYGEN}" && $rq; then
7742                 if test -z ""; then
7743                         { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
7744 echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7745    { (exit 1); exit 1; }; }
7746                 else
7747                         { { echo "$as_me:$LINENO: error:
7748 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7749 " >&5
7750 echo "$as_me: error:
7751 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7752 " >&2;}
7753    { (exit 1); exit 1; }; }
7754                 fi
7755         fi
7756
7757         if test -e "${DOXYGEN}"; then
7758                 DOXYGEN=`readlink -f "${DOXYGEN}"`
7759         fi
7760
7761         test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
7762
7763         test "${DOXYGEN}"
7764
7765
7766
7767
7768         if test -z ":"; then
7769                 rq=true
7770         else
7771                 rq=false
7772         fi
7773
7774         if $rq; then
7775                 ensc_dflt=
7776         else
7777                 ensc_dflt=":"
7778         fi
7779
7780         for ac_prog in xsltp
7781 do
7782   # Extract the first word of "$ac_prog", so it can be a program name with args.
7783 set dummy $ac_prog; ac_word=$2
7784 echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7786 if test "${ac_cv_path_XSLTP+set}" = set; then
7787   echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789   case $XSLTP in
7790   [\\/]* | ?:[\\/]*)
7791   ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
7792   ;;
7793   *)
7794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $ensc_searchpath
7796 do
7797   IFS=$as_save_IFS
7798   test -z "$as_dir" && as_dir=.
7799   for ac_exec_ext in '' $ac_executable_extensions; do
7800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7801     ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
7802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803     break 2
7804   fi
7805 done
7806 done
7807
7808   ;;
7809 esac
7810 fi
7811 XSLTP=$ac_cv_path_XSLTP
7812
7813 if test -n "$XSLTP"; then
7814   echo "$as_me:$LINENO: result: $XSLTP" >&5
7815 echo "${ECHO_T}$XSLTP" >&6
7816 else
7817   echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6
7819 fi
7820
7821   test -n "$XSLTP" && break
7822 done
7823 test -n "$XSLTP" || XSLTP="$ensc_dflt"
7824
7825
7826         if test -z "${XSLTP}" && $rq; then
7827                 if test -z ""; then
7828                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
7829 echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7830    { (exit 1); exit 1; }; }
7831                 else
7832                         { { echo "$as_me:$LINENO: error:
7833 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7834 " >&5
7835 echo "$as_me: error:
7836 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7837 " >&2;}
7838    { (exit 1); exit 1; }; }
7839                 fi
7840         fi
7841
7842         if test -e "${XSLTP}"; then
7843                 XSLTP=`readlink -f "${XSLTP}"`
7844         fi
7845
7846         test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
7847
7848         test "${XSLTP}"
7849
7850
7851
7852
7853         if test -z ":"; then
7854                 rq=true
7855         else
7856                 rq=false
7857         fi
7858
7859         if $rq; then
7860                 ensc_dflt=
7861         else
7862                 ensc_dflt=":"
7863         fi
7864
7865         for ac_prog in xsltproc
7866 do
7867   # Extract the first word of "$ac_prog", so it can be a program name with args.
7868 set dummy $ac_prog; ac_word=$2
7869 echo "$as_me:$LINENO: checking for $ac_word" >&5
7870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7871 if test "${ac_cv_path_XSLTPROC+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874   case $XSLTPROC in
7875   [\\/]* | ?:[\\/]*)
7876   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
7877   ;;
7878   *)
7879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $ensc_searchpath
7881 do
7882   IFS=$as_save_IFS
7883   test -z "$as_dir" && as_dir=.
7884   for ac_exec_ext in '' $ac_executable_extensions; do
7885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7886     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
7887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888     break 2
7889   fi
7890 done
7891 done
7892
7893   ;;
7894 esac
7895 fi
7896 XSLTPROC=$ac_cv_path_XSLTPROC
7897
7898 if test -n "$XSLTPROC"; then
7899   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
7900 echo "${ECHO_T}$XSLTPROC" >&6
7901 else
7902   echo "$as_me:$LINENO: result: no" >&5
7903 echo "${ECHO_T}no" >&6
7904 fi
7905
7906   test -n "$XSLTPROC" && break
7907 done
7908 test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
7909
7910
7911         if test -z "${XSLTPROC}" && $rq; then
7912                 if test -z ""; then
7913                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
7914 echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7915    { (exit 1); exit 1; }; }
7916                 else
7917                         { { echo "$as_me:$LINENO: error:
7918 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7919 " >&5
7920 echo "$as_me: error:
7921 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7922 " >&2;}
7923    { (exit 1); exit 1; }; }
7924                 fi
7925         fi
7926
7927         if test -e "${XSLTPROC}"; then
7928                 XSLTPROC=`readlink -f "${XSLTPROC}"`
7929         fi
7930
7931         test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
7932
7933         test "${XSLTPROC}"
7934
7935
7936
7937
7938 if test "$XSLTP"    != ':'; then
7939   HAVE_XSLTP_TRUE=
7940   HAVE_XSLTP_FALSE='#'
7941 else
7942   HAVE_XSLTP_TRUE='#'
7943   HAVE_XSLTP_FALSE=
7944 fi
7945
7946
7947
7948 if test "$XSLTPROC" != ':'; then
7949   HAVE_XSLTPROC_TRUE=
7950   HAVE_XSLTPROC_FALSE='#'
7951 else
7952   HAVE_XSLTPROC_TRUE='#'
7953   HAVE_XSLTPROC_FALSE=
7954 fi
7955
7956
7957 if test x"$prefix" = x/; then
7958         prefix=
7959 fi
7960
7961
7962
7963         warn_flags="-Werror -W"
7964         echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
7965 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6
7966         ac_ext=c
7967 ac_cpp='$CPP $CPPFLAGS'
7968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971
7972         __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
7973         CFLAGS="$warn_flags"
7974         cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h.  */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h.  */
7980 inline static void f(){}
7981 int
7982 main ()
7983 {
7984
7985   ;
7986   return 0;
7987 }
7988 _ACEOF
7989 rm -f conftest.$ac_objext
7990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7991   (eval $ac_compile) 2>conftest.er1
7992   ac_status=$?
7993   grep -v '^ *+' conftest.er1 >conftest.err
7994   rm -f conftest.er1
7995   cat conftest.err >&5
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); } &&
7998          { ac_try='test -z "$ac_c_werror_flag"
7999                          || test ! -s conftest.err'
8000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001   (eval $ac_try) 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); }; } &&
8005          { ac_try='test -s conftest.$ac_objext'
8006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007   (eval $ac_try) 2>&5
8008   ac_status=$?
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); }; }; then
8011   ensc_sys_compilerwarnflags_C=${warn_flags}
8012 else
8013   echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016 ensc_sys_compilerwarnflags_C=
8017 fi
8018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8019         ac_ext=c
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024
8025         CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
8026
8027         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
8028                 echo "$as_me:$LINENO: result: no" >&5
8029 echo "${ECHO_T}no" >&6
8030         else
8031                 echo "$as_me:$LINENO: result: yes" >&5
8032 echo "${ECHO_T}yes" >&6
8033         fi
8034
8035
8036
8037
8038
8039 echo 'void f(){}' > conftest.c
8040   for i in -std=c99 -Wall -pedantic -W
8041   do
8042     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
8043 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
8044     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
8045     then
8046       CFLAGS="${CFLAGS} $i"
8047       echo "$as_me:$LINENO: result: yes" >&5
8048 echo "${ECHO_T}yes" >&6
8049     else
8050       echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6
8052     fi
8053   done
8054   rm -f conftest.c conftest.o
8055
8056
8057
8058         warn_flags="-Werror -W"
8059         echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
8060 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6
8061         ac_ext=cc
8062 ac_cpp='$CXXCPP $CPPFLAGS'
8063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8066
8067         __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
8068         CXXFLAGS="$warn_flags"
8069         cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h.  */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h.  */
8075 inline static void f(){}
8076 int
8077 main ()
8078 {
8079
8080   ;
8081   return 0;
8082 }
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8086   (eval $ac_compile) 2>conftest.er1
8087   ac_status=$?
8088   grep -v '^ *+' conftest.er1 >conftest.err
8089   rm -f conftest.er1
8090   cat conftest.err >&5
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); } &&
8093          { ac_try='test -z "$ac_cxx_werror_flag"
8094                          || test ! -s conftest.err'
8095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096   (eval $ac_try) 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); }; } &&
8100          { ac_try='test -s conftest.$ac_objext'
8101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102   (eval $ac_try) 2>&5
8103   ac_status=$?
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); }; }; then
8106   ensc_sys_compilerwarnflags_CXX=${warn_flags}
8107 else
8108   echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8110
8111 ensc_sys_compilerwarnflags_CXX=
8112 fi
8113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8114         ac_ext=c
8115 ac_cpp='$CPP $CPPFLAGS'
8116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119
8120         CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
8121
8122         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
8123                 echo "$as_me:$LINENO: result: no" >&5
8124 echo "${ECHO_T}no" >&6
8125         else
8126                 echo "$as_me:$LINENO: result: yes" >&5
8127 echo "${ECHO_T}yes" >&6
8128         fi
8129
8130
8131
8132
8133
8134   echo 'void f(){}' > conftest.cc
8135   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
8136   do
8137     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
8138 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
8139     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
8140     then
8141       CXXFLAGS="${CXXFLAGS} $i"
8142       echo "$as_me:$LINENO: result: yes" >&5
8143 echo "${ECHO_T}yes" >&6
8144     else
8145       echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6
8147     fi
8148   done
8149   rm -f conftest.cc conftest.o
8150
8151
8152 echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
8153 echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6
8154 # Check whether --enable-extra-optimizations or --disable-extra-optimizations was given.
8155 if test "${enable_extra_optimizations+set}" = set; then
8156   enableval="$enable_extra_optimizations"
8157   case "$enableval" in
8158                   (yes) use_extra_optimizations=1;;
8159                   (no)  use_extra_optimizations=;;
8160                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
8161 echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
8162    { (exit 1); exit 1; }; };;
8163                esac
8164 else
8165   use_extra_optimizations=1
8166 fi;
8167
8168 if test x"$use_extra_optimizations" = x; then
8169         echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6
8171 else
8172         echo "$as_me:$LINENO: result: yes" >&5
8173 echo "${ECHO_T}yes" >&6
8174
8175
8176
8177 echo 'void f(){}' > conftest.c
8178   for i in -funit-at-a-time
8179   do
8180     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
8181 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
8182     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
8183     then
8184       CFLAGS="${CFLAGS} $i"
8185       echo "$as_me:$LINENO: result: yes" >&5
8186 echo "${ECHO_T}yes" >&6
8187     else
8188       echo "$as_me:$LINENO: result: no" >&5
8189 echo "${ECHO_T}no" >&6
8190     fi
8191   done
8192   rm -f conftest.c conftest.o
8193
8194
8195
8196
8197   echo 'void f(){}' > conftest.cc
8198   for i in -funit-at-a-time
8199   do
8200     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
8201 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
8202     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
8203     then
8204       CXXFLAGS="${CXXFLAGS} $i"
8205       echo "$as_me:$LINENO: result: yes" >&5
8206 echo "${ECHO_T}yes" >&6
8207     else
8208       echo "$as_me:$LINENO: result: no" >&5
8209 echo "${ECHO_T}no" >&6
8210     fi
8211   done
8212   rm -f conftest.cc conftest.o
8213
8214 fi
8215
8216 echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
8217 echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6
8218 # Check whether --enable-lib-debug or --disable-lib-debug was given.
8219 if test "${enable_lib_debug+set}" = set; then
8220   enableval="$enable_lib_debug"
8221   case "$enableval" in
8222                   (yes) use_lib_debug=1;;
8223                   (no)  use_lib_debug=;;
8224                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
8225 echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
8226    { (exit 1); exit 1; }; };;
8227                esac
8228 else
8229    use_lib_debug=
8230 fi;
8231
8232 if test x"$use_lib_debug" = x; then
8233         LIB_DEBUG_CPPFLAGS=-DNDEBUG
8234
8235         echo "$as_me:$LINENO: result: no" >&5
8236 echo "${ECHO_T}no" >&6
8237 else
8238
8239         echo "$as_me:$LINENO: result: yes" >&5
8240 echo "${ECHO_T}yes" >&6
8241 fi
8242
8243 echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
8244 echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6
8245 # Check whether --enable-expensive-tests or --disable-expensive-tests was given.
8246 if test "${enable_expensive_tests+set}" = set; then
8247   enableval="$enable_expensive_tests"
8248   case "$enableval" in
8249                  (yes|no)  use_expensive_tests=$enableval;;
8250                  (*)       { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&5
8251 echo "$as_me: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&2;}
8252    { (exit 1); exit 1; }; };;
8253                esac
8254 else
8255    use_expensive_tests=no
8256 fi;
8257 echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
8258 echo "${ECHO_T}$use_expensive_tests" >&6
8259
8260 ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
8261
8262
8263
8264
8265         echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
8266 echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6
8267         echo "$as_me:$LINENO: result: " >&5
8268 echo "${ECHO_T}" >&6
8269
8270         ac_ext=c
8271 ac_cpp='$CPP $CPPFLAGS'
8272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275
8276         echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
8277 echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6
8278 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
8279   echo $ECHO_N "(cached) $ECHO_C" >&6
8280 else
8281   cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287
8288 #include <linux/personality.h>
8289
8290
8291 int
8292 main ()
8293 {
8294 #ifndef MMAP_PAGE_ZERO
8295   char *p = (char *) MMAP_PAGE_ZERO;
8296 #endif
8297
8298   ;
8299   return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8304   (eval $ac_compile) 2>conftest.er1
8305   ac_status=$?
8306   grep -v '^ *+' conftest.er1 >conftest.err
8307   rm -f conftest.er1
8308   cat conftest.err >&5
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } &&
8311          { ac_try='test -z "$ac_c_werror_flag"
8312                          || test ! -s conftest.err'
8313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314   (eval $ac_try) 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); }; } &&
8318          { ac_try='test -s conftest.$ac_objext'
8319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320   (eval $ac_try) 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; }; then
8324   ac_cv_have_decl_MMAP_PAGE_ZERO=yes
8325 else
8326   echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329 ac_cv_have_decl_MMAP_PAGE_ZERO=no
8330 fi
8331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8332 fi
8333 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
8334 echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6
8335 if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
8336
8337 cat >>confdefs.h <<_ACEOF
8338 #define HAVE_DECL_MMAP_PAGE_ZERO 1
8339 _ACEOF
8340
8341
8342 else
8343   cat >>confdefs.h <<_ACEOF
8344 #define HAVE_DECL_MMAP_PAGE_ZERO 0
8345 _ACEOF
8346
8347
8348 fi
8349 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
8350 echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6
8351 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
8352   echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354   cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h.  */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h.  */
8360
8361 #include <linux/personality.h>
8362
8363
8364 int
8365 main ()
8366 {
8367 #ifndef ADDR_LIMIT_32BIT
8368   char *p = (char *) ADDR_LIMIT_32BIT;
8369 #endif
8370
8371   ;
8372   return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest.$ac_objext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377   (eval $ac_compile) 2>conftest.er1
8378   ac_status=$?
8379   grep -v '^ *+' conftest.er1 >conftest.err
8380   rm -f conftest.er1
8381   cat conftest.err >&5
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); } &&
8384          { ac_try='test -z "$ac_c_werror_flag"
8385                          || test ! -s conftest.err'
8386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387   (eval $ac_try) 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); }; } &&
8391          { ac_try='test -s conftest.$ac_objext'
8392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393   (eval $ac_try) 2>&5
8394   ac_status=$?
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); }; }; then
8397   ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
8398 else
8399   echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8401
8402 ac_cv_have_decl_ADDR_LIMIT_32BIT=no
8403 fi
8404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8405 fi
8406 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
8407 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6
8408 if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
8409
8410 cat >>confdefs.h <<_ACEOF
8411 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
8412 _ACEOF
8413
8414
8415 else
8416   cat >>confdefs.h <<_ACEOF
8417 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
8418 _ACEOF
8419
8420
8421 fi
8422 echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
8423 echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6
8424 if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
8425   echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427   cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h.  */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h.  */
8433
8434 #include <linux/personality.h>
8435
8436
8437 int
8438 main ()
8439 {
8440 #ifndef SHORT_INODE
8441   char *p = (char *) SHORT_INODE;
8442 #endif
8443
8444   ;
8445   return 0;
8446 }
8447 _ACEOF
8448 rm -f conftest.$ac_objext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8450   (eval $ac_compile) 2>conftest.er1
8451   ac_status=$?
8452   grep -v '^ *+' conftest.er1 >conftest.err
8453   rm -f conftest.er1
8454   cat conftest.err >&5
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); } &&
8457          { ac_try='test -z "$ac_c_werror_flag"
8458                          || test ! -s conftest.err'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; } &&
8464          { ac_try='test -s conftest.$ac_objext'
8465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466   (eval $ac_try) 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; }; then
8470   ac_cv_have_decl_SHORT_INODE=yes
8471 else
8472   echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 ac_cv_have_decl_SHORT_INODE=no
8476 fi
8477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8478 fi
8479 echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
8480 echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6
8481 if test $ac_cv_have_decl_SHORT_INODE = yes; then
8482
8483 cat >>confdefs.h <<_ACEOF
8484 #define HAVE_DECL_SHORT_INODE 1
8485 _ACEOF
8486
8487
8488 else
8489   cat >>confdefs.h <<_ACEOF
8490 #define HAVE_DECL_SHORT_INODE 0
8491 _ACEOF
8492
8493
8494 fi
8495 echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
8496 echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6
8497 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
8498   echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500   cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506
8507 #include <linux/personality.h>
8508
8509
8510 int
8511 main ()
8512 {
8513 #ifndef WHOLE_SECONDS
8514   char *p = (char *) WHOLE_SECONDS;
8515 #endif
8516
8517   ;
8518   return 0;
8519 }
8520 _ACEOF
8521 rm -f conftest.$ac_objext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8523   (eval $ac_compile) 2>conftest.er1
8524   ac_status=$?
8525   grep -v '^ *+' conftest.er1 >conftest.err
8526   rm -f conftest.er1
8527   cat conftest.err >&5
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); } &&
8530          { ac_try='test -z "$ac_c_werror_flag"
8531                          || test ! -s conftest.err'
8532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533   (eval $ac_try) 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; } &&
8537          { ac_try='test -s conftest.$ac_objext'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; }; then
8543   ac_cv_have_decl_WHOLE_SECONDS=yes
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548 ac_cv_have_decl_WHOLE_SECONDS=no
8549 fi
8550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8551 fi
8552 echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
8553 echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6
8554 if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
8555
8556 cat >>confdefs.h <<_ACEOF
8557 #define HAVE_DECL_WHOLE_SECONDS 1
8558 _ACEOF
8559
8560
8561 else
8562   cat >>confdefs.h <<_ACEOF
8563 #define HAVE_DECL_WHOLE_SECONDS 0
8564 _ACEOF
8565
8566
8567 fi
8568 echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
8569 echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6
8570 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579
8580 #include <linux/personality.h>
8581
8582
8583 int
8584 main ()
8585 {
8586 #ifndef STICKY_TIMEOUTS
8587   char *p = (char *) STICKY_TIMEOUTS;
8588 #endif
8589
8590   ;
8591   return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8596   (eval $ac_compile) 2>conftest.er1
8597   ac_status=$?
8598   grep -v '^ *+' conftest.er1 >conftest.err
8599   rm -f conftest.er1
8600   cat conftest.err >&5
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); } &&
8603          { ac_try='test -z "$ac_c_werror_flag"
8604                          || test ! -s conftest.err'
8605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606   (eval $ac_try) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; } &&
8610          { ac_try='test -s conftest.$ac_objext'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; }; then
8616   ac_cv_have_decl_STICKY_TIMEOUTS=yes
8617 else
8618   echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8620
8621 ac_cv_have_decl_STICKY_TIMEOUTS=no
8622 fi
8623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8624 fi
8625 echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
8626 echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6
8627 if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
8628
8629 cat >>confdefs.h <<_ACEOF
8630 #define HAVE_DECL_STICKY_TIMEOUTS 1
8631 _ACEOF
8632
8633
8634 else
8635   cat >>confdefs.h <<_ACEOF
8636 #define HAVE_DECL_STICKY_TIMEOUTS 0
8637 _ACEOF
8638
8639
8640 fi
8641 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
8642 echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6
8643 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
8644   echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646   cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h.  */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h.  */
8652
8653 #include <linux/personality.h>
8654
8655
8656 int
8657 main ()
8658 {
8659 #ifndef ADDR_LIMIT_3GB
8660   char *p = (char *) ADDR_LIMIT_3GB;
8661 #endif
8662
8663   ;
8664   return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8669   (eval $ac_compile) 2>conftest.er1
8670   ac_status=$?
8671   grep -v '^ *+' conftest.er1 >conftest.err
8672   rm -f conftest.er1
8673   cat conftest.err >&5
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); } &&
8676          { ac_try='test -z "$ac_c_werror_flag"
8677                          || test ! -s conftest.err'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; } &&
8683          { ac_try='test -s conftest.$ac_objext'
8684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685   (eval $ac_try) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); }; }; then
8689   ac_cv_have_decl_ADDR_LIMIT_3GB=yes
8690 else
8691   echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694 ac_cv_have_decl_ADDR_LIMIT_3GB=no
8695 fi
8696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8697 fi
8698 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
8699 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6
8700 if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
8701
8702 cat >>confdefs.h <<_ACEOF
8703 #define HAVE_DECL_ADDR_LIMIT_3GB 1
8704 _ACEOF
8705
8706
8707 else
8708   cat >>confdefs.h <<_ACEOF
8709 #define HAVE_DECL_ADDR_LIMIT_3GB 0
8710 _ACEOF
8711
8712
8713 fi
8714
8715
8716
8717         echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
8718 echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6
8719 if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
8720   echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722   cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h.  */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h.  */
8728
8729 #include <linux/personality.h>
8730
8731
8732 int
8733 main ()
8734 {
8735 #ifndef PER_LINUX
8736   char *p = (char *) PER_LINUX;
8737 #endif
8738
8739   ;
8740   return 0;
8741 }
8742 _ACEOF
8743 rm -f conftest.$ac_objext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8745   (eval $ac_compile) 2>conftest.er1
8746   ac_status=$?
8747   grep -v '^ *+' conftest.er1 >conftest.err
8748   rm -f conftest.er1
8749   cat conftest.err >&5
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); } &&
8752          { ac_try='test -z "$ac_c_werror_flag"
8753                          || test ! -s conftest.err'
8754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755   (eval $ac_try) 2>&5
8756   ac_status=$?
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); }; } &&
8759          { ac_try='test -s conftest.$ac_objext'
8760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761   (eval $ac_try) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); }; }; then
8765   ac_cv_have_decl_PER_LINUX=yes
8766 else
8767   echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8769
8770 ac_cv_have_decl_PER_LINUX=no
8771 fi
8772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8773 fi
8774 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
8775 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6
8776 if test $ac_cv_have_decl_PER_LINUX = yes; then
8777
8778 cat >>confdefs.h <<_ACEOF
8779 #define HAVE_DECL_PER_LINUX 1
8780 _ACEOF
8781
8782
8783 else
8784   cat >>confdefs.h <<_ACEOF
8785 #define HAVE_DECL_PER_LINUX 0
8786 _ACEOF
8787
8788
8789 fi
8790 echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
8791 echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6
8792 if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
8793   echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795   cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h.  */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h.  */
8801
8802 #include <linux/personality.h>
8803
8804
8805 int
8806 main ()
8807 {
8808 #ifndef PER_LINUX_32BIT
8809   char *p = (char *) PER_LINUX_32BIT;
8810 #endif
8811
8812   ;
8813   return 0;
8814 }
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8818   (eval $ac_compile) 2>conftest.er1
8819   ac_status=$?
8820   grep -v '^ *+' conftest.er1 >conftest.err
8821   rm -f conftest.er1
8822   cat conftest.err >&5
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); } &&
8825          { ac_try='test -z "$ac_c_werror_flag"
8826                          || test ! -s conftest.err'
8827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828   (eval $ac_try) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; } &&
8832          { ac_try='test -s conftest.$ac_objext'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; }; then
8838   ac_cv_have_decl_PER_LINUX_32BIT=yes
8839 else
8840   echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 ac_cv_have_decl_PER_LINUX_32BIT=no
8844 fi
8845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8846 fi
8847 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
8848 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6
8849 if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
8850
8851 cat >>confdefs.h <<_ACEOF
8852 #define HAVE_DECL_PER_LINUX_32BIT 1
8853 _ACEOF
8854
8855
8856 else
8857   cat >>confdefs.h <<_ACEOF
8858 #define HAVE_DECL_PER_LINUX_32BIT 0
8859 _ACEOF
8860
8861
8862 fi
8863 echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
8864 echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6
8865 if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
8866   echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8868   cat >conftest.$ac_ext <<_ACEOF
8869 /* confdefs.h.  */
8870 _ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h.  */
8874
8875 #include <linux/personality.h>
8876
8877
8878 int
8879 main ()
8880 {
8881 #ifndef PER_SVR4
8882   char *p = (char *) PER_SVR4;
8883 #endif
8884
8885   ;
8886   return 0;
8887 }
8888 _ACEOF
8889 rm -f conftest.$ac_objext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8891   (eval $ac_compile) 2>conftest.er1
8892   ac_status=$?
8893   grep -v '^ *+' conftest.er1 >conftest.err
8894   rm -f conftest.er1
8895   cat conftest.err >&5
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } &&
8898          { ac_try='test -z "$ac_c_werror_flag"
8899                          || test ! -s conftest.err'
8900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901   (eval $ac_try) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); }; } &&
8905          { ac_try='test -s conftest.$ac_objext'
8906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907   (eval $ac_try) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; }; then
8911   ac_cv_have_decl_PER_SVR4=yes
8912 else
8913   echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 ac_cv_have_decl_PER_SVR4=no
8917 fi
8918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8919 fi
8920 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
8921 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6
8922 if test $ac_cv_have_decl_PER_SVR4 = yes; then
8923
8924 cat >>confdefs.h <<_ACEOF
8925 #define HAVE_DECL_PER_SVR4 1
8926 _ACEOF
8927
8928
8929 else
8930   cat >>confdefs.h <<_ACEOF
8931 #define HAVE_DECL_PER_SVR4 0
8932 _ACEOF
8933
8934
8935 fi
8936 echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
8937 echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6
8938 if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h.  */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h.  */
8947
8948 #include <linux/personality.h>
8949
8950
8951 int
8952 main ()
8953 {
8954 #ifndef PER_SVR3
8955   char *p = (char *) PER_SVR3;
8956 #endif
8957
8958   ;
8959   return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964   (eval $ac_compile) 2>conftest.er1
8965   ac_status=$?
8966   grep -v '^ *+' conftest.er1 >conftest.err
8967   rm -f conftest.er1
8968   cat conftest.err >&5
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); } &&
8971          { ac_try='test -z "$ac_c_werror_flag"
8972                          || test ! -s conftest.err'
8973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974   (eval $ac_try) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); }; } &&
8978          { ac_try='test -s conftest.$ac_objext'
8979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980   (eval $ac_try) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }; }; then
8984   ac_cv_have_decl_PER_SVR3=yes
8985 else
8986   echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8988
8989 ac_cv_have_decl_PER_SVR3=no
8990 fi
8991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8992 fi
8993 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
8994 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6
8995 if test $ac_cv_have_decl_PER_SVR3 = yes; then
8996
8997 cat >>confdefs.h <<_ACEOF
8998 #define HAVE_DECL_PER_SVR3 1
8999 _ACEOF
9000
9001
9002 else
9003   cat >>confdefs.h <<_ACEOF
9004 #define HAVE_DECL_PER_SVR3 0
9005 _ACEOF
9006
9007
9008 fi
9009 echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
9010 echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6
9011 if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
9012   echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014   cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h.  */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h.  */
9020
9021 #include <linux/personality.h>
9022
9023
9024 int
9025 main ()
9026 {
9027 #ifndef PER_SCOSVR3
9028   char *p = (char *) PER_SCOSVR3;
9029 #endif
9030
9031   ;
9032   return 0;
9033 }
9034 _ACEOF
9035 rm -f conftest.$ac_objext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9037   (eval $ac_compile) 2>conftest.er1
9038   ac_status=$?
9039   grep -v '^ *+' conftest.er1 >conftest.err
9040   rm -f conftest.er1
9041   cat conftest.err >&5
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); } &&
9044          { ac_try='test -z "$ac_c_werror_flag"
9045                          || test ! -s conftest.err'
9046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047   (eval $ac_try) 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); }; } &&
9051          { ac_try='test -s conftest.$ac_objext'
9052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053   (eval $ac_try) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); }; }; then
9057   ac_cv_have_decl_PER_SCOSVR3=yes
9058 else
9059   echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9061
9062 ac_cv_have_decl_PER_SCOSVR3=no
9063 fi
9064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9065 fi
9066 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
9067 echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6
9068 if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
9069
9070 cat >>confdefs.h <<_ACEOF
9071 #define HAVE_DECL_PER_SCOSVR3 1
9072 _ACEOF
9073
9074
9075 else
9076   cat >>confdefs.h <<_ACEOF
9077 #define HAVE_DECL_PER_SCOSVR3 0
9078 _ACEOF
9079
9080
9081 fi
9082 echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
9083 echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6
9084 if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
9085   echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087   cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h.  */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h.  */
9093
9094 #include <linux/personality.h>
9095
9096
9097 int
9098 main ()
9099 {
9100 #ifndef PER_OSR5
9101   char *p = (char *) PER_OSR5;
9102 #endif
9103
9104   ;
9105   return 0;
9106 }
9107 _ACEOF
9108 rm -f conftest.$ac_objext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9110   (eval $ac_compile) 2>conftest.er1
9111   ac_status=$?
9112   grep -v '^ *+' conftest.er1 >conftest.err
9113   rm -f conftest.er1
9114   cat conftest.err >&5
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); } &&
9117          { ac_try='test -z "$ac_c_werror_flag"
9118                          || test ! -s conftest.err'
9119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120   (eval $ac_try) 2>&5
9121   ac_status=$?
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); }; } &&
9124          { ac_try='test -s conftest.$ac_objext'
9125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126   (eval $ac_try) 2>&5
9127   ac_status=$?
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); }; }; then
9130   ac_cv_have_decl_PER_OSR5=yes
9131 else
9132   echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9134
9135 ac_cv_have_decl_PER_OSR5=no
9136 fi
9137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9138 fi
9139 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
9140 echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6
9141 if test $ac_cv_have_decl_PER_OSR5 = yes; then
9142
9143 cat >>confdefs.h <<_ACEOF
9144 #define HAVE_DECL_PER_OSR5 1
9145 _ACEOF
9146
9147
9148 else
9149   cat >>confdefs.h <<_ACEOF
9150 #define HAVE_DECL_PER_OSR5 0
9151 _ACEOF
9152
9153
9154 fi
9155 echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
9156 echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6
9157 if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160   cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h.  */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h.  */
9166
9167 #include <linux/personality.h>
9168
9169
9170 int
9171 main ()
9172 {
9173 #ifndef PER_WYSEV386
9174   char *p = (char *) PER_WYSEV386;
9175 #endif
9176
9177   ;
9178   return 0;
9179 }
9180 _ACEOF
9181 rm -f conftest.$ac_objext
9182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9183   (eval $ac_compile) 2>conftest.er1
9184   ac_status=$?
9185   grep -v '^ *+' conftest.er1 >conftest.err
9186   rm -f conftest.er1
9187   cat conftest.err >&5
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); } &&
9190          { ac_try='test -z "$ac_c_werror_flag"
9191                          || test ! -s conftest.err'
9192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193   (eval $ac_try) 2>&5
9194   ac_status=$?
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   (exit $ac_status); }; } &&
9197          { ac_try='test -s conftest.$ac_objext'
9198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199   (eval $ac_try) 2>&5
9200   ac_status=$?
9201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); }; }; then
9203   ac_cv_have_decl_PER_WYSEV386=yes
9204 else
9205   echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9207
9208 ac_cv_have_decl_PER_WYSEV386=no
9209 fi
9210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9211 fi
9212 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
9213 echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6
9214 if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
9215
9216 cat >>confdefs.h <<_ACEOF
9217 #define HAVE_DECL_PER_WYSEV386 1
9218 _ACEOF
9219
9220
9221 else
9222   cat >>confdefs.h <<_ACEOF
9223 #define HAVE_DECL_PER_WYSEV386 0
9224 _ACEOF
9225
9226
9227 fi
9228 echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
9229 echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6
9230 if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
9231   echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233   cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h.  */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h.  */
9239
9240 #include <linux/personality.h>
9241
9242
9243 int
9244 main ()
9245 {
9246 #ifndef PER_ISCR4
9247   char *p = (char *) PER_ISCR4;
9248 #endif
9249
9250   ;
9251   return 0;
9252 }
9253 _ACEOF
9254 rm -f conftest.$ac_objext
9255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9256   (eval $ac_compile) 2>conftest.er1
9257   ac_status=$?
9258   grep -v '^ *+' conftest.er1 >conftest.err
9259   rm -f conftest.er1
9260   cat conftest.err >&5
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); } &&
9263          { ac_try='test -z "$ac_c_werror_flag"
9264                          || test ! -s conftest.err'
9265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266   (eval $ac_try) 2>&5
9267   ac_status=$?
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); }; } &&
9270          { ac_try='test -s conftest.$ac_objext'
9271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272   (eval $ac_try) 2>&5
9273   ac_status=$?
9274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); }; }; then
9276   ac_cv_have_decl_PER_ISCR4=yes
9277 else
9278   echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9280
9281 ac_cv_have_decl_PER_ISCR4=no
9282 fi
9283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9284 fi
9285 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
9286 echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6
9287 if test $ac_cv_have_decl_PER_ISCR4 = yes; then
9288
9289 cat >>confdefs.h <<_ACEOF
9290 #define HAVE_DECL_PER_ISCR4 1
9291 _ACEOF
9292
9293
9294 else
9295   cat >>confdefs.h <<_ACEOF
9296 #define HAVE_DECL_PER_ISCR4 0
9297 _ACEOF
9298
9299
9300 fi
9301 echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
9302 echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6
9303 if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
9304   echo $ECHO_N "(cached) $ECHO_C" >&6
9305 else
9306   cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h.  */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h.  */
9312
9313 #include <linux/personality.h>
9314
9315
9316 int
9317 main ()
9318 {
9319 #ifndef PER_BSD
9320   char *p = (char *) PER_BSD;
9321 #endif
9322
9323   ;
9324   return 0;
9325 }
9326 _ACEOF
9327 rm -f conftest.$ac_objext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329   (eval $ac_compile) 2>conftest.er1
9330   ac_status=$?
9331   grep -v '^ *+' conftest.er1 >conftest.err
9332   rm -f conftest.er1
9333   cat conftest.err >&5
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); } &&
9336          { ac_try='test -z "$ac_c_werror_flag"
9337                          || test ! -s conftest.err'
9338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339   (eval $ac_try) 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); }; } &&
9343          { ac_try='test -s conftest.$ac_objext'
9344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345   (eval $ac_try) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; }; then
9349   ac_cv_have_decl_PER_BSD=yes
9350 else
9351   echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9353
9354 ac_cv_have_decl_PER_BSD=no
9355 fi
9356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9357 fi
9358 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
9359 echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6
9360 if test $ac_cv_have_decl_PER_BSD = yes; then
9361
9362 cat >>confdefs.h <<_ACEOF
9363 #define HAVE_DECL_PER_BSD 1
9364 _ACEOF
9365
9366
9367 else
9368   cat >>confdefs.h <<_ACEOF
9369 #define HAVE_DECL_PER_BSD 0
9370 _ACEOF
9371
9372
9373 fi
9374 echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
9375 echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6
9376 if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
9377   echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379   cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h.  */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h.  */
9385
9386 #include <linux/personality.h>
9387
9388
9389 int
9390 main ()
9391 {
9392 #ifndef PER_SUNOS
9393   char *p = (char *) PER_SUNOS;
9394 #endif
9395
9396   ;
9397   return 0;
9398 }
9399 _ACEOF
9400 rm -f conftest.$ac_objext
9401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9402   (eval $ac_compile) 2>conftest.er1
9403   ac_status=$?
9404   grep -v '^ *+' conftest.er1 >conftest.err
9405   rm -f conftest.er1
9406   cat conftest.err >&5
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); } &&
9409          { ac_try='test -z "$ac_c_werror_flag"
9410                          || test ! -s conftest.err'
9411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412   (eval $ac_try) 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); }; } &&
9416          { ac_try='test -s conftest.$ac_objext'
9417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418   (eval $ac_try) 2>&5
9419   ac_status=$?
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); }; }; then
9422   ac_cv_have_decl_PER_SUNOS=yes
9423 else
9424   echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9426
9427 ac_cv_have_decl_PER_SUNOS=no
9428 fi
9429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9430 fi
9431 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
9432 echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6
9433 if test $ac_cv_have_decl_PER_SUNOS = yes; then
9434
9435 cat >>confdefs.h <<_ACEOF
9436 #define HAVE_DECL_PER_SUNOS 1
9437 _ACEOF
9438
9439
9440 else
9441   cat >>confdefs.h <<_ACEOF
9442 #define HAVE_DECL_PER_SUNOS 0
9443 _ACEOF
9444
9445
9446 fi
9447 echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
9448 echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6
9449 if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
9450   echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452   cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h.  */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h.  */
9458
9459 #include <linux/personality.h>
9460
9461
9462 int
9463 main ()
9464 {
9465 #ifndef PER_XENIX
9466   char *p = (char *) PER_XENIX;
9467 #endif
9468
9469   ;
9470   return 0;
9471 }
9472 _ACEOF
9473 rm -f conftest.$ac_objext
9474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9475   (eval $ac_compile) 2>conftest.er1
9476   ac_status=$?
9477   grep -v '^ *+' conftest.er1 >conftest.err
9478   rm -f conftest.er1
9479   cat conftest.err >&5
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); } &&
9482          { ac_try='test -z "$ac_c_werror_flag"
9483                          || test ! -s conftest.err'
9484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485   (eval $ac_try) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; } &&
9489          { ac_try='test -s conftest.$ac_objext'
9490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491   (eval $ac_try) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; }; then
9495   ac_cv_have_decl_PER_XENIX=yes
9496 else
9497   echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9499
9500 ac_cv_have_decl_PER_XENIX=no
9501 fi
9502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9503 fi
9504 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
9505 echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6
9506 if test $ac_cv_have_decl_PER_XENIX = yes; then
9507
9508 cat >>confdefs.h <<_ACEOF
9509 #define HAVE_DECL_PER_XENIX 1
9510 _ACEOF
9511
9512
9513 else
9514   cat >>confdefs.h <<_ACEOF
9515 #define HAVE_DECL_PER_XENIX 0
9516 _ACEOF
9517
9518
9519 fi
9520 echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
9521 echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6
9522 if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
9523   echo $ECHO_N "(cached) $ECHO_C" >&6
9524 else
9525   cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h.  */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h.  */
9531
9532 #include <linux/personality.h>
9533
9534
9535 int
9536 main ()
9537 {
9538 #ifndef PER_LINUX32
9539   char *p = (char *) PER_LINUX32;
9540 #endif
9541
9542   ;
9543   return 0;
9544 }
9545 _ACEOF
9546 rm -f conftest.$ac_objext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9548   (eval $ac_compile) 2>conftest.er1
9549   ac_status=$?
9550   grep -v '^ *+' conftest.er1 >conftest.err
9551   rm -f conftest.er1
9552   cat conftest.err >&5
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); } &&
9555          { ac_try='test -z "$ac_c_werror_flag"
9556                          || test ! -s conftest.err'
9557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558   (eval $ac_try) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); }; } &&
9562          { ac_try='test -s conftest.$ac_objext'
9563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564   (eval $ac_try) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); }; }; then
9568   ac_cv_have_decl_PER_LINUX32=yes
9569 else
9570   echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573 ac_cv_have_decl_PER_LINUX32=no
9574 fi
9575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9576 fi
9577 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
9578 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6
9579 if test $ac_cv_have_decl_PER_LINUX32 = yes; then
9580
9581 cat >>confdefs.h <<_ACEOF
9582 #define HAVE_DECL_PER_LINUX32 1
9583 _ACEOF
9584
9585
9586 else
9587   cat >>confdefs.h <<_ACEOF
9588 #define HAVE_DECL_PER_LINUX32 0
9589 _ACEOF
9590
9591
9592 fi
9593 echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
9594 echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6
9595 if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
9596   echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
9598   cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h.  */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h.  */
9604
9605 #include <linux/personality.h>
9606
9607
9608 int
9609 main ()
9610 {
9611 #ifndef PER_LINUX32_3GB
9612   char *p = (char *) PER_LINUX32_3GB;
9613 #endif
9614
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9621   (eval $ac_compile) 2>conftest.er1
9622   ac_status=$?
9623   grep -v '^ *+' conftest.er1 >conftest.err
9624   rm -f conftest.er1
9625   cat conftest.err >&5
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); } &&
9628          { ac_try='test -z "$ac_c_werror_flag"
9629                          || test ! -s conftest.err'
9630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631   (eval $ac_try) 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); }; } &&
9635          { ac_try='test -s conftest.$ac_objext'
9636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; }; then
9641   ac_cv_have_decl_PER_LINUX32_3GB=yes
9642 else
9643   echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9645
9646 ac_cv_have_decl_PER_LINUX32_3GB=no
9647 fi
9648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9649 fi
9650 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
9651 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6
9652 if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
9653
9654 cat >>confdefs.h <<_ACEOF
9655 #define HAVE_DECL_PER_LINUX32_3GB 1
9656 _ACEOF
9657
9658
9659 else
9660   cat >>confdefs.h <<_ACEOF
9661 #define HAVE_DECL_PER_LINUX32_3GB 0
9662 _ACEOF
9663
9664
9665 fi
9666 echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
9667 echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6
9668 if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
9669   echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9671   cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h.  */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h.  */
9677
9678 #include <linux/personality.h>
9679
9680
9681 int
9682 main ()
9683 {
9684 #ifndef PER_IRIX32
9685   char *p = (char *) PER_IRIX32;
9686 #endif
9687
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 rm -f conftest.$ac_objext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694   (eval $ac_compile) 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } &&
9701          { ac_try='test -z "$ac_c_werror_flag"
9702                          || test ! -s conftest.err'
9703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704   (eval $ac_try) 2>&5
9705   ac_status=$?
9706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707   (exit $ac_status); }; } &&
9708          { ac_try='test -s conftest.$ac_objext'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   ac_cv_have_decl_PER_IRIX32=yes
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 ac_cv_have_decl_PER_IRIX32=no
9720 fi
9721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9722 fi
9723 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
9724 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6
9725 if test $ac_cv_have_decl_PER_IRIX32 = yes; then
9726
9727 cat >>confdefs.h <<_ACEOF
9728 #define HAVE_DECL_PER_IRIX32 1
9729 _ACEOF
9730
9731
9732 else
9733   cat >>confdefs.h <<_ACEOF
9734 #define HAVE_DECL_PER_IRIX32 0
9735 _ACEOF
9736
9737
9738 fi
9739 echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
9740 echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6
9741 if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
9742   echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744   cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h.  */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h.  */
9750
9751 #include <linux/personality.h>
9752
9753
9754 int
9755 main ()
9756 {
9757 #ifndef PER_IRIXN32
9758   char *p = (char *) PER_IRIXN32;
9759 #endif
9760
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9767   (eval $ac_compile) 2>conftest.er1
9768   ac_status=$?
9769   grep -v '^ *+' conftest.er1 >conftest.err
9770   rm -f conftest.er1
9771   cat conftest.err >&5
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); } &&
9774          { ac_try='test -z "$ac_c_werror_flag"
9775                          || test ! -s conftest.err'
9776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777   (eval $ac_try) 2>&5
9778   ac_status=$?
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); }; } &&
9781          { ac_try='test -s conftest.$ac_objext'
9782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783   (eval $ac_try) 2>&5
9784   ac_status=$?
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); }; }; then
9787   ac_cv_have_decl_PER_IRIXN32=yes
9788 else
9789   echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9791
9792 ac_cv_have_decl_PER_IRIXN32=no
9793 fi
9794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9795 fi
9796 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
9797 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6
9798 if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
9799
9800 cat >>confdefs.h <<_ACEOF
9801 #define HAVE_DECL_PER_IRIXN32 1
9802 _ACEOF
9803
9804
9805 else
9806   cat >>confdefs.h <<_ACEOF
9807 #define HAVE_DECL_PER_IRIXN32 0
9808 _ACEOF
9809
9810
9811 fi
9812 echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
9813 echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6
9814 if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
9815   echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817   cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h.  */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h.  */
9823
9824 #include <linux/personality.h>
9825
9826
9827 int
9828 main ()
9829 {
9830 #ifndef PER_IRIX64
9831   char *p = (char *) PER_IRIX64;
9832 #endif
9833
9834   ;
9835   return 0;
9836 }
9837 _ACEOF
9838 rm -f conftest.$ac_objext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9840   (eval $ac_compile) 2>conftest.er1
9841   ac_status=$?
9842   grep -v '^ *+' conftest.er1 >conftest.err
9843   rm -f conftest.er1
9844   cat conftest.err >&5
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); } &&
9847          { ac_try='test -z "$ac_c_werror_flag"
9848                          || test ! -s conftest.err'
9849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850   (eval $ac_try) 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; } &&
9854          { ac_try='test -s conftest.$ac_objext'
9855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856   (eval $ac_try) 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; }; then
9860   ac_cv_have_decl_PER_IRIX64=yes
9861 else
9862   echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9864
9865 ac_cv_have_decl_PER_IRIX64=no
9866 fi
9867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9868 fi
9869 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
9870 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6
9871 if test $ac_cv_have_decl_PER_IRIX64 = yes; then
9872
9873 cat >>confdefs.h <<_ACEOF
9874 #define HAVE_DECL_PER_IRIX64 1
9875 _ACEOF
9876
9877
9878 else
9879   cat >>confdefs.h <<_ACEOF
9880 #define HAVE_DECL_PER_IRIX64 0
9881 _ACEOF
9882
9883
9884 fi
9885 echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
9886 echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6
9887 if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
9888   echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890   cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h.  */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h.  */
9896
9897 #include <linux/personality.h>
9898
9899
9900 int
9901 main ()
9902 {
9903 #ifndef PER_RISCOS
9904   char *p = (char *) PER_RISCOS;
9905 #endif
9906
9907   ;
9908   return 0;
9909 }
9910 _ACEOF
9911 rm -f conftest.$ac_objext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9913   (eval $ac_compile) 2>conftest.er1
9914   ac_status=$?
9915   grep -v '^ *+' conftest.er1 >conftest.err
9916   rm -f conftest.er1
9917   cat conftest.err >&5
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); } &&
9920          { ac_try='test -z "$ac_c_werror_flag"
9921                          || test ! -s conftest.err'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; } &&
9927          { ac_try='test -s conftest.$ac_objext'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; }; then
9933   ac_cv_have_decl_PER_RISCOS=yes
9934 else
9935   echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 ac_cv_have_decl_PER_RISCOS=no
9939 fi
9940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9941 fi
9942 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
9943 echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6
9944 if test $ac_cv_have_decl_PER_RISCOS = yes; then
9945
9946 cat >>confdefs.h <<_ACEOF
9947 #define HAVE_DECL_PER_RISCOS 1
9948 _ACEOF
9949
9950
9951 else
9952   cat >>confdefs.h <<_ACEOF
9953 #define HAVE_DECL_PER_RISCOS 0
9954 _ACEOF
9955
9956
9957 fi
9958 echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
9959 echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6
9960 if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h.  */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h.  */
9969
9970 #include <linux/personality.h>
9971
9972
9973 int
9974 main ()
9975 {
9976 #ifndef PER_SOLARIS
9977   char *p = (char *) PER_SOLARIS;
9978 #endif
9979
9980   ;
9981   return 0;
9982 }
9983 _ACEOF
9984 rm -f conftest.$ac_objext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9986   (eval $ac_compile) 2>conftest.er1
9987   ac_status=$?
9988   grep -v '^ *+' conftest.er1 >conftest.err
9989   rm -f conftest.er1
9990   cat conftest.err >&5
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); } &&
9993          { ac_try='test -z "$ac_c_werror_flag"
9994                          || test ! -s conftest.err'
9995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996   (eval $ac_try) 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; } &&
10000          { ac_try='test -s conftest.$ac_objext'
10001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002   (eval $ac_try) 2>&5
10003   ac_status=$?
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); }; }; then
10006   ac_cv_have_decl_PER_SOLARIS=yes
10007 else
10008   echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10010
10011 ac_cv_have_decl_PER_SOLARIS=no
10012 fi
10013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10014 fi
10015 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
10016 echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6
10017 if test $ac_cv_have_decl_PER_SOLARIS = yes; then
10018
10019 cat >>confdefs.h <<_ACEOF
10020 #define HAVE_DECL_PER_SOLARIS 1
10021 _ACEOF
10022
10023
10024 else
10025   cat >>confdefs.h <<_ACEOF
10026 #define HAVE_DECL_PER_SOLARIS 0
10027 _ACEOF
10028
10029
10030 fi
10031 echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
10032 echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6
10033 if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
10034   echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036   cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h.  */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h.  */
10042
10043 #include <linux/personality.h>
10044
10045
10046 int
10047 main ()
10048 {
10049 #ifndef PER_UW7
10050   char *p = (char *) PER_UW7;
10051 #endif
10052
10053   ;
10054   return 0;
10055 }
10056 _ACEOF
10057 rm -f conftest.$ac_objext
10058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10059   (eval $ac_compile) 2>conftest.er1
10060   ac_status=$?
10061   grep -v '^ *+' conftest.er1 >conftest.err
10062   rm -f conftest.er1
10063   cat conftest.err >&5
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); } &&
10066          { ac_try='test -z "$ac_c_werror_flag"
10067                          || test ! -s conftest.err'
10068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069   (eval $ac_try) 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; } &&
10073          { ac_try='test -s conftest.$ac_objext'
10074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075   (eval $ac_try) 2>&5
10076   ac_status=$?
10077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); }; }; then
10079   ac_cv_have_decl_PER_UW7=yes
10080 else
10081   echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10083
10084 ac_cv_have_decl_PER_UW7=no
10085 fi
10086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10087 fi
10088 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
10089 echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6
10090 if test $ac_cv_have_decl_PER_UW7 = yes; then
10091
10092 cat >>confdefs.h <<_ACEOF
10093 #define HAVE_DECL_PER_UW7 1
10094 _ACEOF
10095
10096
10097 else
10098   cat >>confdefs.h <<_ACEOF
10099 #define HAVE_DECL_PER_UW7 0
10100 _ACEOF
10101
10102
10103 fi
10104 echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
10105 echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6
10106 if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
10107   echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109   cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h.  */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h.  */
10115
10116 #include <linux/personality.h>
10117
10118
10119 int
10120 main ()
10121 {
10122 #ifndef PER_HPUX
10123   char *p = (char *) PER_HPUX;
10124 #endif
10125
10126   ;
10127   return 0;
10128 }
10129 _ACEOF
10130 rm -f conftest.$ac_objext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10132   (eval $ac_compile) 2>conftest.er1
10133   ac_status=$?
10134   grep -v '^ *+' conftest.er1 >conftest.err
10135   rm -f conftest.er1
10136   cat conftest.err >&5
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } &&
10139          { ac_try='test -z "$ac_c_werror_flag"
10140                          || test ! -s conftest.err'
10141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142   (eval $ac_try) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }; } &&
10146          { ac_try='test -s conftest.$ac_objext'
10147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148   (eval $ac_try) 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); }; }; then
10152   ac_cv_have_decl_PER_HPUX=yes
10153 else
10154   echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157 ac_cv_have_decl_PER_HPUX=no
10158 fi
10159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10160 fi
10161 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
10162 echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6
10163 if test $ac_cv_have_decl_PER_HPUX = yes; then
10164
10165 cat >>confdefs.h <<_ACEOF
10166 #define HAVE_DECL_PER_HPUX 1
10167 _ACEOF
10168
10169
10170 else
10171   cat >>confdefs.h <<_ACEOF
10172 #define HAVE_DECL_PER_HPUX 0
10173 _ACEOF
10174
10175
10176 fi
10177 echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
10178 echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6
10179 if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
10180   echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182   cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h.  */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h.  */
10188
10189 #include <linux/personality.h>
10190
10191
10192 int
10193 main ()
10194 {
10195 #ifndef PER_OSF4
10196   char *p = (char *) PER_OSF4;
10197 #endif
10198
10199   ;
10200   return 0;
10201 }
10202 _ACEOF
10203 rm -f conftest.$ac_objext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10205   (eval $ac_compile) 2>conftest.er1
10206   ac_status=$?
10207   grep -v '^ *+' conftest.er1 >conftest.err
10208   rm -f conftest.er1
10209   cat conftest.err >&5
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } &&
10212          { ac_try='test -z "$ac_c_werror_flag"
10213                          || test ! -s conftest.err'
10214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215   (eval $ac_try) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; } &&
10219          { ac_try='test -s conftest.$ac_objext'
10220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221   (eval $ac_try) 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; }; then
10225   ac_cv_have_decl_PER_OSF4=yes
10226 else
10227   echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_cv_have_decl_PER_OSF4=no
10231 fi
10232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
10235 echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6
10236 if test $ac_cv_have_decl_PER_OSF4 = yes; then
10237
10238 cat >>confdefs.h <<_ACEOF
10239 #define HAVE_DECL_PER_OSF4 1
10240 _ACEOF
10241
10242
10243 else
10244   cat >>confdefs.h <<_ACEOF
10245 #define HAVE_DECL_PER_OSF4 0
10246 _ACEOF
10247
10248
10249 fi
10250
10251
10252         ac_ext=c
10253 ac_cpp='$CPP $CPPFLAGS'
10254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10257
10258
10259
10260
10261
10262
10263         echo "$as_me:$LINENO: checking for initrddir" >&5
10264 echo $ECHO_N "checking for initrddir... $ECHO_C" >&6
10265
10266 # Check whether --with-initrddir or --without-initrddir was given.
10267 if test "${with_initrddir+set}" = set; then
10268   withval="$with_initrddir"
10269   case "$withval" in
10270                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
10271 echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
10272    { (exit 1); exit 1; }; };;
10273                         *)      ensc_initrddir=$withval;;
10274                      esac
10275 else
10276   ensc_initrddir='$(sysconfdir)/init.d'
10277 fi;
10278
10279         if test "initrddir"; then
10280                 initrddir=$ensc_initrddir
10281
10282         fi
10283
10284         echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
10285 echo "${ECHO_T}$ensc_initrddir" >&6
10286
10287
10288         echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
10289 echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6
10290         # Check whether --enable-release or --disable-release was given.
10291 if test "${enable_release+set}" = set; then
10292   enableval="$enable_release"
10293   case "$enableval" in
10294                           yes)  ensc_release_mode=yes;;
10295                           no)   ensc_release_mode=no;;
10296                           *)    { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
10297 echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
10298    { (exit 1); exit 1; }; };;
10299                        esac
10300 else
10301    ensc_release_mode=no
10302 fi;
10303
10304         if test x"$ensc_release_mode" = xno; then
10305                 RELEASE_CPPFLAGS=
10306         else
10307                 RELEASE_CPPFLAGS='-DNDEBUG'
10308         fi
10309
10310
10311         echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
10312 echo "${ECHO_T}$ensc_release_mode" >&6
10313
10314
10315 # HACK: This needs to be before ENSC_DIETLIBC_NEED_COMPAT, or the alternative
10316 # syscalls will never be enabled for glibc.
10317 ac_ext=c
10318 ac_cpp='$CPP $CPPFLAGS'
10319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10322 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10323 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10324 # On Suns, sometimes $CPP names a directory.
10325 if test -n "$CPP" && test -d "$CPP"; then
10326   CPP=
10327 fi
10328 if test -z "$CPP"; then
10329   if test "${ac_cv_prog_CPP+set}" = set; then
10330   echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332       # Double quotes because CPP needs to be expanded
10333     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10334     do
10335       ac_preproc_ok=false
10336 for ac_c_preproc_warn_flag in '' yes
10337 do
10338   # Use a header file that comes with gcc, so configuring glibc
10339   # with a fresh cross-compiler works.
10340   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10341   # <limits.h> exists even on freestanding compilers.
10342   # On the NeXT, cc -E runs the code through the compiler's parser,
10343   # not just through cpp. "Syntax error" is here to catch this case.
10344   cat >conftest.$ac_ext <<_ACEOF
10345 /* confdefs.h.  */
10346 _ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h.  */
10350 #ifdef __STDC__
10351 # include <limits.h>
10352 #else
10353 # include <assert.h>
10354 #endif
10355                      Syntax error
10356 _ACEOF
10357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10359   ac_status=$?
10360   grep -v '^ *+' conftest.er1 >conftest.err
10361   rm -f conftest.er1
10362   cat conftest.err >&5
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } >/dev/null; then
10365   if test -s conftest.err; then
10366     ac_cpp_err=$ac_c_preproc_warn_flag
10367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10368   else
10369     ac_cpp_err=
10370   fi
10371 else
10372   ac_cpp_err=yes
10373 fi
10374 if test -z "$ac_cpp_err"; then
10375   :
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380   # Broken: fails on valid input.
10381 continue
10382 fi
10383 rm -f conftest.err conftest.$ac_ext
10384
10385   # OK, works on sane cases.  Now check whether non-existent headers
10386   # can be detected and how.
10387   cat >conftest.$ac_ext <<_ACEOF
10388 /* confdefs.h.  */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h.  */
10393 #include <ac_nonexistent.h>
10394 _ACEOF
10395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10397   ac_status=$?
10398   grep -v '^ *+' conftest.er1 >conftest.err
10399   rm -f conftest.er1
10400   cat conftest.err >&5
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } >/dev/null; then
10403   if test -s conftest.err; then
10404     ac_cpp_err=$ac_c_preproc_warn_flag
10405     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10406   else
10407     ac_cpp_err=
10408   fi
10409 else
10410   ac_cpp_err=yes
10411 fi
10412 if test -z "$ac_cpp_err"; then
10413   # Broken: success on invalid input.
10414 continue
10415 else
10416   echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419   # Passes both tests.
10420 ac_preproc_ok=:
10421 break
10422 fi
10423 rm -f conftest.err conftest.$ac_ext
10424
10425 done
10426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10427 rm -f conftest.err conftest.$ac_ext
10428 if $ac_preproc_ok; then
10429   break
10430 fi
10431
10432     done
10433     ac_cv_prog_CPP=$CPP
10434
10435 fi
10436   CPP=$ac_cv_prog_CPP
10437 else
10438   ac_cv_prog_CPP=$CPP
10439 fi
10440 echo "$as_me:$LINENO: result: $CPP" >&5
10441 echo "${ECHO_T}$CPP" >&6
10442 ac_preproc_ok=false
10443 for ac_c_preproc_warn_flag in '' yes
10444 do
10445   # Use a header file that comes with gcc, so configuring glibc
10446   # with a fresh cross-compiler works.
10447   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10448   # <limits.h> exists even on freestanding compilers.
10449   # On the NeXT, cc -E runs the code through the compiler's parser,
10450   # not just through cpp. "Syntax error" is here to catch this case.
10451   cat >conftest.$ac_ext <<_ACEOF
10452 /* confdefs.h.  */
10453 _ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h.  */
10457 #ifdef __STDC__
10458 # include <limits.h>
10459 #else
10460 # include <assert.h>
10461 #endif
10462                      Syntax error
10463 _ACEOF
10464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10466   ac_status=$?
10467   grep -v '^ *+' conftest.er1 >conftest.err
10468   rm -f conftest.er1
10469   cat conftest.err >&5
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); } >/dev/null; then
10472   if test -s conftest.err; then
10473     ac_cpp_err=$ac_c_preproc_warn_flag
10474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10475   else
10476     ac_cpp_err=
10477   fi
10478 else
10479   ac_cpp_err=yes
10480 fi
10481 if test -z "$ac_cpp_err"; then
10482   :
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487   # Broken: fails on valid input.
10488 continue
10489 fi
10490 rm -f conftest.err conftest.$ac_ext
10491
10492   # OK, works on sane cases.  Now check whether non-existent headers
10493   # can be detected and how.
10494   cat >conftest.$ac_ext <<_ACEOF
10495 /* confdefs.h.  */
10496 _ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h.  */
10500 #include <ac_nonexistent.h>
10501 _ACEOF
10502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10503   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10504   ac_status=$?
10505   grep -v '^ *+' conftest.er1 >conftest.err
10506   rm -f conftest.er1
10507   cat conftest.err >&5
10508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509   (exit $ac_status); } >/dev/null; then
10510   if test -s conftest.err; then
10511     ac_cpp_err=$ac_c_preproc_warn_flag
10512     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10513   else
10514     ac_cpp_err=
10515   fi
10516 else
10517   ac_cpp_err=yes
10518 fi
10519 if test -z "$ac_cpp_err"; then
10520   # Broken: success on invalid input.
10521 continue
10522 else
10523   echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526   # Passes both tests.
10527 ac_preproc_ok=:
10528 break
10529 fi
10530 rm -f conftest.err conftest.$ac_ext
10531
10532 done
10533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10534 rm -f conftest.err conftest.$ac_ext
10535 if $ac_preproc_ok; then
10536   :
10537 else
10538   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10539 See \`config.log' for more details." >&5
10540 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10541 See \`config.log' for more details." >&2;}
10542    { (exit 1); exit 1; }; }
10543 fi
10544
10545 ac_ext=c
10546 ac_cpp='$CPP $CPPFLAGS'
10547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10550
10551 echo "$as_me:$LINENO: checking for egrep" >&5
10552 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10553 if test "${ac_cv_prog_egrep+set}" = set; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10557     then ac_cv_prog_egrep='grep -E'
10558     else ac_cv_prog_egrep='egrep'
10559     fi
10560 fi
10561 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10562 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10563  EGREP=$ac_cv_prog_egrep
10564
10565
10566
10567
10568
10569
10570         echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
10571 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6
10572 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
10573   echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575
10576                 ac_ext=c
10577 ac_cpp='$CPP $CPPFLAGS'
10578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10581
10582                 cat >conftest.$ac_ext <<_ACEOF
10583
10584 #ifdef ENSC_SYSCALL_FALLBACK
10585 #  include ENSC_SYSCALL_FALLBACK
10586 #else
10587 #  include <asm/unistd.h>
10588 #endif
10589 #ifdef __NR_vserver
10590 ensc_syscall_tmp_nr=__NR_vserver;
10591 ensc_syscall_tmp_src=ENSC_MARK
10592 #endif
10593
10594 _ACEOF
10595                 ensc_syscall_tmp_nr=
10596                 ensc_syscall_tmp_src=
10597                 test x"$ensc_syscall_tmp_nr" != x || \
10598                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                    conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
10599                 test x"$ensc_syscall_tmp_nr" != x -o x'lib/syscall-fallback.h' = x || \
10600                         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=.*)$')
10601                 test "$ensc_syscall_tmp_nr" || {
10602                         ensc_syscall_tmp_nr=273
10603                         ensc_syscall_tmp_src=default
10604                 }
10605
10606                 if test x"$ensc_syscall_tmp_nr" = x; then
10607                         { { 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
10608 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;}
10609    { (exit 1); exit 1; }; }
10610                 fi
10611                 ac_ext=c
10612 ac_cpp='$CPP $CPPFLAGS'
10613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10616
10617
10618                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
10619
10620 fi
10621 echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
10622 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6
10623
10624         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
10625         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
10626
10627         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
10628
10629 cat >>confdefs.h <<_ACEOF
10630 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
10631 _ACEOF
10632
10633         fi
10634
10635
10636         echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
10637 echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6
10638         # Check whether --enable-alternative-syscalls or --disable-alternative-syscalls was given.
10639 if test "${enable_alternative_syscalls+set}" = set; then
10640   enableval="$enable_alternative_syscalls"
10641   case $enableval in
10642                            (yes|no)   ensc_use_alternative_syscall_macros=$enableval;;
10643                            (*)        { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
10644 echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
10645    { (exit 1); exit 1; }; };;
10646                        esac
10647 else
10648   ensc_use_alternative_syscall_macros=yes
10649 fi;
10650
10651         case $ensc_use_alternative_syscall_macros in
10652                 (yes)
10653 cat >>confdefs.h <<\_ACEOF
10654 #define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
10655 _ACEOF
10656 ;;
10657         esac
10658
10659         echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
10660 echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6
10661
10662
10663
10664
10665         echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
10666 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6
10667
10668 # Check whether --with-syscall or --without-syscall was given.
10669 if test "${with_syscall+set}" = set; then
10670   withval="$with_syscall"
10671
10672 else
10673   with_syscall=auto
10674 fi;
10675         echo "$as_me:$LINENO: result: $with_syscall" >&5
10676 echo "${ECHO_T}$with_syscall" >&6
10677
10678         case x"$with_syscall" in
10679             (xauto)
10680                 echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
10681 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6
10682 if test "${ensc_cv_test_syscall+set}" = set; then
10683   echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685
10686                                 ac_ext=c
10687 ac_cpp='$CPP $CPPFLAGS'
10688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10691
10692                                 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h.  */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h.  */
10698
10699 #include "$srcdir/lib/syscall-wrap.h"
10700 #include <errno.h>
10701
10702 #define __NR_foo0       300
10703 #define __NR_foo1       301
10704 #define __NR_foo2       302
10705 #define __NR_foo3       303
10706 #define __NR_foo4       304
10707 #define __NR_foo5       305
10708 inline static _syscall0(int, foo0)
10709 inline static _syscall1(int, foo1, int, a)
10710 inline static _syscall2(int, foo2, int, a, int, b)
10711 inline static _syscall3(int, foo3, int, a, int, b, int, c)
10712 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
10713 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
10714
10715 int main() {
10716   return foo0() || \
10717          foo1(1) || \
10718          foo2(1,2) || \
10719          foo3(1,2,3) || \
10720          foo4(1,2,3,4) || \
10721          foo5(1,2,3,4,5);
10722 }
10723
10724 _ACEOF
10725 rm -f conftest.$ac_objext
10726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10727   (eval $ac_compile) 2>conftest.er1
10728   ac_status=$?
10729   grep -v '^ *+' conftest.er1 >conftest.err
10730   rm -f conftest.er1
10731   cat conftest.err >&5
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); } &&
10734          { ac_try='test -z "$ac_c_werror_flag"
10735                          || test ! -s conftest.err'
10736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737   (eval $ac_try) 2>&5
10738   ac_status=$?
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); }; } &&
10741          { ac_try='test -s conftest.$ac_objext'
10742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743   (eval $ac_try) 2>&5
10744   ac_status=$?
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); }; }; then
10747   ensc_cv_test_syscall=fast
10748 else
10749   echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10751
10752 ensc_cv_test_syscall=traditional
10753 fi
10754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10755
10756                                 ac_ext=c
10757 ac_cpp='$CPP $CPPFLAGS'
10758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10761
10762
10763 fi
10764 echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
10765 echo "${ECHO_T}$ensc_cv_test_syscall" >&6
10766                 with_syscall=$ensc_cv_test_syscall
10767                 ;;
10768             (xfast|xtraditional)
10769                 ;;
10770             *)
10771                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
10772 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
10773    { (exit 1); exit 1; }; }
10774                 ;;
10775         esac
10776
10777         if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
10778             with_syscall='alternative'
10779         fi
10780
10781         if test x"$with_syscall" = xtraditional; then
10782
10783 cat >>confdefs.h <<\_ACEOF
10784 #define ENSC_SYSCALL_TRADITIONAL 1
10785 _ACEOF
10786
10787         fi
10788
10789
10790
10791
10792
10793
10794 case $host_cpu in
10795         (i*86|athlon)   min_diet_ver=0.25;;
10796         (ia64|hppa*)    min_diet_ver=0.29;;
10797         (sparc*)        min_diet_ver=0.30;;
10798         (x86_64)        min_diet_ver=0.27;;
10799         (*)             min_diet_ver=0.28;;
10800 esac
10801
10802
10803         echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
10804 echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6
10805
10806
10807
10808
10809         : ${DIET:=diet}
10810         : ${DIETFLAGS=-Os}
10811
10812         # Check whether --enable-dietlibc or --disable-dietlibc was given.
10813 if test "${enable_dietlibc+set}" = set; then
10814   enableval="$enable_dietlibc"
10815   case "$enableval" in
10816                           (yes) use_dietlibc=forced;;
10817                           (no)  use_dietlibc=forced_no;;
10818                           (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
10819 echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
10820    { (exit 1); exit 1; }; };;
10821                        esac
10822 else
10823   which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
10824 fi;
10825
10826         if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
10827             _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
10828             _dietlibc_ver=${_dietlibc_ver##*diet version }
10829             _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
10830             _dietlibc_ver_maj=${_dietlibc_ver%%.*}
10831             _dietlibc_ver_min=${_dietlibc_ver##*.}
10832             _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
10833             _dietlibc_cmp="$min_diet_ver"
10834             _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
10835             _dietlibc_cmp_min=${_dietlibc_cmp##*.}
10836
10837             ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
10838
10839             let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
10840             let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
10841
10842             test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
10843         else
10844             ENSC_VERSION_DIETLIBC=
10845             _dietlibc_ver=-1
10846         fi
10847
10848         ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
10849         ensc_have_dietlibc=no
10850
10851         case x"$use_dietlibc" in
10852             xdetected)
10853
10854
10855 if true; then
10856   USE_DIETLIBC_TRUE=
10857   USE_DIETLIBC_FALSE='#'
10858 else
10859   USE_DIETLIBC_TRUE='#'
10860   USE_DIETLIBC_FALSE=
10861 fi
10862
10863                 echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
10864 echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6
10865                 ensc_have_dietlibc=yes
10866                 ;;
10867             xforced)
10868
10869
10870 if true; then
10871   USE_DIETLIBC_TRUE=
10872   USE_DIETLIBC_FALSE='#'
10873 else
10874   USE_DIETLIBC_TRUE='#'
10875   USE_DIETLIBC_FALSE=
10876 fi
10877
10878                 echo "$as_me:$LINENO: result: yes (forced)" >&5
10879 echo "${ECHO_T}yes (forced)" >&6
10880                 ensc_have_dietlibc=yes
10881                 ;;
10882             xdetected_no)
10883
10884
10885 if false; then
10886   USE_DIETLIBC_TRUE=
10887   USE_DIETLIBC_FALSE='#'
10888 else
10889   USE_DIETLIBC_TRUE='#'
10890   USE_DIETLIBC_FALSE=
10891 fi
10892
10893                 echo "$as_me:$LINENO: result: no (detected)" >&5
10894 echo "${ECHO_T}no (detected)" >&6
10895                 ;;
10896             xdetected_old)
10897
10898
10899 if false; then
10900   USE_DIETLIBC_TRUE=
10901   USE_DIETLIBC_FALSE='#'
10902 else
10903   USE_DIETLIBC_TRUE='#'
10904   USE_DIETLIBC_FALSE=
10905 fi
10906
10907                 echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
10908 echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6
10909                 ;;
10910             xforced_no)
10911
10912
10913 if false; then
10914   USE_DIETLIBC_TRUE=
10915   USE_DIETLIBC_FALSE='#'
10916 else
10917   USE_DIETLIBC_TRUE='#'
10918   USE_DIETLIBC_FALSE=
10919 fi
10920
10921                 echo "$as_me:$LINENO: result: no (forced)" >&5
10922 echo "${ECHO_T}no (forced)" >&6
10923                 ;;
10924             *)
10925                 { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
10926 echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
10927    { (exit 1); exit 1; }; }
10928                 ;;
10929         esac
10930
10931         if test x"$ensc_have_dietlibc" != xno; then
10932
10933
10934
10935
10936         echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
10937 echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6
10938 if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941
10942                 _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
10943                 _ensc_dietlibc_c99_old_CC=$CC
10944
10945                 CFLAGS="-std=c99"
10946                 CC="${DIET:-diet} $CC"
10947
10948                 ac_ext=c
10949 ac_cpp='$CPP $CPPFLAGS'
10950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10953
10954                 cat >conftest.$ac_ext <<_ACEOF
10955 /* */
10956 _ACEOF
10957 rm -f conftest.$ac_objext
10958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10959   (eval $ac_compile) 2>conftest.er1
10960   ac_status=$?
10961   grep -v '^ *+' conftest.er1 >conftest.err
10962   rm -f conftest.er1
10963   cat conftest.err >&5
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); } &&
10966          { ac_try='test -z "$ac_c_werror_flag"
10967                          || test ! -s conftest.err'
10968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969   (eval $ac_try) 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); }; } &&
10973          { ac_try='test -s conftest.$ac_objext'
10974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975   (eval $ac_try) 2>&5
10976   ac_status=$?
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); }; }; then
10979
10980                         cat >conftest.$ac_ext <<_ACEOF
10981
10982                                 #include <stdint.h>
10983                                 #include <sys/cdefs.h>
10984                                 #if defined(inline)
10985                                 #  error 'inline' badly defined
10986                                 #endif
10987                                 volatile uint64_t       a;
10988
10989 _ACEOF
10990 rm -f conftest.$ac_objext
10991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10992   (eval $ac_compile) 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } &&
10999          { ac_try='test -z "$ac_c_werror_flag"
11000                          || test ! -s conftest.err'
11001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002   (eval $ac_try) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; } &&
11006          { ac_try='test -s conftest.$ac_objext'
11007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008   (eval $ac_try) 2>&5
11009   ac_status=$?
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); }; }; then
11012   ensc_cv_c_dietlibc_c99=yes
11013 else
11014   echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11016
11017 ensc_cv_c_dietlibc_c99=no
11018 fi
11019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11020 else
11021   echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024 ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
11025 fi
11026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11027                 ac_ext=c
11028 ac_cpp='$CPP $CPPFLAGS'
11029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11032
11033
11034                 CC=$_ensc_dietlibc_c99_old_CC
11035                 CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
11036
11037 fi
11038 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
11039 echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6
11040
11041         if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
11042                 cat >>confdefs.h <<\_ACEOF
11043 #define ENSC_DIETLIBC_C99 1
11044 _ACEOF
11045
11046         fi
11047
11048
11049
11050
11051
11052         echo "$as_me:$LINENO: checking whether dietlibc declares syscall" >&5
11053 echo $ECHO_N "checking whether dietlibc declares syscall... $ECHO_C" >&6
11054 if test "${ensc_cv_c_dietlibc_syscall+set}" = set; then
11055   echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057
11058                 _ensc_dietlibc_syscall_old_CC="$CC"
11059                 CC="${DIET:-diet} $CC"
11060
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
11069                         #include <sys/syscall.h>
11070                         long int syscall(long int __sysno, ...);
11071
11072 _ACEOF
11073 rm -f conftest.$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075   (eval $ac_compile) 2>conftest.er1
11076   ac_status=$?
11077   grep -v '^ *+' conftest.er1 >conftest.err
11078   rm -f conftest.er1
11079   cat conftest.err >&5
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); } &&
11082          { ac_try='test -z "$ac_c_werror_flag"
11083                          || test ! -s conftest.err'
11084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085   (eval $ac_try) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }; } &&
11089          { ac_try='test -s conftest.$ac_objext'
11090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091   (eval $ac_try) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; }; then
11095   ensc_cv_c_dietlibc_syscall=no
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100 ensc_cv_c_dietlibc_syscall=yes
11101 fi
11102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11103                 ac_ext=c
11104 ac_cpp='$CPP $CPPFLAGS'
11105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11108
11109
11110                 CC="$_ensc_dietlibc_syscall_old_CC"
11111
11112 fi
11113 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_syscall" >&5
11114 echo "${ECHO_T}$ensc_cv_c_dietlibc_syscall" >&6
11115
11116         if test x"$ensc_cv_c_dietlibc_syscall" = xyes; then
11117                 cat >>confdefs.h <<\_ACEOF
11118 #define ENSC_DIETLIBC_HAS_SYSCALL 1
11119 _ACEOF
11120
11121         fi
11122
11123         fi
11124
11125
11126 if test x"$ensc_have_dietlibc" = xno; then
11127         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
11128 echo "$as_me: WARNING: ***                                                         ***" >&2;}
11129         { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
11130 echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
11131         { echo "$as_me:$LINENO: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&5
11132 echo "$as_me: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&2;}
11133         { echo "$as_me:$LINENO: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&5
11134 echo "$as_me: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&2;}
11135         { echo "$as_me:$LINENO: WARNING: *** there.                                                  ***" >&5
11136 echo "$as_me: WARNING: *** there.                                                  ***" >&2;}
11137         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
11138 echo "$as_me: WARNING: ***                                                         ***" >&2;}
11139
11140
11141 if false; then
11142   USE_DIETLIBC_COMPAT_TRUE=
11143   USE_DIETLIBC_COMPAT_FALSE='#'
11144 else
11145   USE_DIETLIBC_COMPAT_TRUE='#'
11146   USE_DIETLIBC_COMPAT_FALSE=
11147 fi
11148
11149 else
11150         # HACK: libtool does not have cmdline options to build only
11151         # dynamic libraries; this can be done with the
11152         # '--disable-static' ./configure option only.  As our static
11153         # libraries will be build with dietlibc, we have to do set
11154         # this option which is evaluated by 'AC_PROG_LIBTOOL'
11155         # below.  Therefore, this macro must not be called earlier.
11156         enable_static=no
11157
11158
11159
11160
11161         echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
11162 echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6
11163 if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
11164   echo $ECHO_N "(cached) $ECHO_C" >&6
11165 else
11166
11167                 ac_ext=c
11168 ac_cpp='$CPP $CPPFLAGS'
11169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11172
11173                 ensc_dietlibc_need_compat_old_CC=$CC
11174                 CC="${DIET:-diet} $CC"
11175                 cat >conftest.$ac_ext <<_ACEOF
11176
11177                         /* confdefs.h.  */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h.  */
11182
11183 #include "$srcdir/lib/syscall-wrap.h"
11184 #include <errno.h>
11185
11186 #define __NR_foo0               42
11187 #define __NR_foo1               42
11188 #define __NR_foo2               42
11189 #define __NR_foo3               42
11190 #define __NR_foo4               42
11191 #define __NR_foo5               42
11192 inline static _syscall0(int, foo0)
11193 inline static _syscall1(int, foo1, int, a)
11194 inline static _syscall2(int, foo2, int, a, int, b)
11195 inline static _syscall3(int, foo3, int, a, int, b, int, c)
11196 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
11197 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
11198
11199 int
11200 main ()
11201 {
11202 foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
11203   ;
11204   return 0;
11205 }
11206 _ACEOF
11207 rm -f conftest.$ac_objext conftest$ac_exeext
11208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11209   (eval $ac_link) 2>conftest.er1
11210   ac_status=$?
11211   grep -v '^ *+' conftest.er1 >conftest.err
11212   rm -f conftest.er1
11213   cat conftest.err >&5
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); } &&
11216          { ac_try='test -z "$ac_c_werror_flag"
11217                          || test ! -s conftest.err'
11218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11219   (eval $ac_try) 2>&5
11220   ac_status=$?
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); }; } &&
11223          { ac_try='test -s conftest$ac_exeext'
11224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225   (eval $ac_try) 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); }; }; then
11229   ensc_cv_c_dietlibc_compat=no
11230 else
11231   echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11233
11234 ensc_cv_c_dietlibc_compat=yes
11235 fi
11236 rm -f conftest.err conftest.$ac_objext \
11237       conftest$ac_exeext conftest.$ac_ext
11238                 CC=$ensc_dietlibc_need_compat_old_CC
11239                 ac_ext=c
11240 ac_cpp='$CPP $CPPFLAGS'
11241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11244
11245
11246 fi
11247 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
11248 echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6
11249
11250         if test x"USE_DIETLIBC_COMPAT" != x; then
11251
11252
11253 if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
11254   USE_DIETLIBC_COMPAT_TRUE=
11255   USE_DIETLIBC_COMPAT_FALSE='#'
11256 else
11257   USE_DIETLIBC_COMPAT_TRUE='#'
11258   USE_DIETLIBC_COMPAT_FALSE=
11259 fi
11260
11261         fi
11262
11263 fi
11264
11265
11266
11267 if test x"$ensc_have_dietlibc" = xyes; then
11268   ENSC_USE_DIETLIBC_TRUE=
11269   ENSC_USE_DIETLIBC_FALSE='#'
11270 else
11271   ENSC_USE_DIETLIBC_TRUE='#'
11272   ENSC_USE_DIETLIBC_FALSE=
11273 fi
11274
11275
11276
11277 if true; then
11278   ENSC_USE_GLIBC_TRUE=
11279   ENSC_USE_GLIBC_FALSE='#'
11280 else
11281   ENSC_USE_GLIBC_TRUE='#'
11282   ENSC_USE_GLIBC_FALSE=
11283 fi
11284
11285
11286 # HACK: see comments at 'enable_static' above
11287 # Check whether --enable-shared or --disable-shared was given.
11288 if test "${enable_shared+set}" = set; then
11289   enableval="$enable_shared"
11290   p=${PACKAGE-default}
11291     case $enableval in
11292     yes) enable_shared=yes ;;
11293     no) enable_shared=no ;;
11294     *)
11295       enable_shared=no
11296       # Look at the argument we got.  We use all the common list separators.
11297       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11298       for pkg in $enableval; do
11299         IFS="$lt_save_ifs"
11300         if test "X$pkg" = "X$p"; then
11301           enable_shared=yes
11302         fi
11303       done
11304       IFS="$lt_save_ifs"
11305       ;;
11306     esac
11307 else
11308   enable_shared=yes
11309 fi;
11310
11311 # Check whether --enable-static or --disable-static was given.
11312 if test "${enable_static+set}" = set; then
11313   enableval="$enable_static"
11314   p=${PACKAGE-default}
11315     case $enableval in
11316     yes) enable_static=yes ;;
11317     no) enable_static=no ;;
11318     *)
11319      enable_static=no
11320       # Look at the argument we got.  We use all the common list separators.
11321       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11322       for pkg in $enableval; do
11323         IFS="$lt_save_ifs"
11324         if test "X$pkg" = "X$p"; then
11325           enable_static=yes
11326         fi
11327       done
11328       IFS="$lt_save_ifs"
11329       ;;
11330     esac
11331 else
11332   enable_static=yes
11333 fi;
11334
11335 # Check whether --enable-fast-install or --disable-fast-install was given.
11336 if test "${enable_fast_install+set}" = set; then
11337   enableval="$enable_fast_install"
11338   p=${PACKAGE-default}
11339     case $enableval in
11340     yes) enable_fast_install=yes ;;
11341     no) enable_fast_install=no ;;
11342     *)
11343       enable_fast_install=no
11344       # Look at the argument we got.  We use all the common list separators.
11345       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11346       for pkg in $enableval; do
11347         IFS="$lt_save_ifs"
11348         if test "X$pkg" = "X$p"; then
11349           enable_fast_install=yes
11350         fi
11351       done
11352       IFS="$lt_save_ifs"
11353       ;;
11354     esac
11355 else
11356   enable_fast_install=yes
11357 fi;
11358
11359 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11360 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
11361 if test "${lt_cv_path_SED+set}" = set; then
11362   echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364   # Loop through the user's path and test for sed and gsed.
11365 # Then use that list of sed's as ones to test for truncation.
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in $PATH
11368 do
11369   IFS=$as_save_IFS
11370   test -z "$as_dir" && as_dir=.
11371   for lt_ac_prog in sed gsed; do
11372     for ac_exec_ext in '' $ac_executable_extensions; do
11373       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11374         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11375       fi
11376     done
11377   done
11378 done
11379 IFS=$as_save_IFS
11380 lt_ac_max=0
11381 lt_ac_count=0
11382 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11383 # along with /bin/sed that truncates output.
11384 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11385   test ! -f $lt_ac_sed && continue
11386   cat /dev/null > conftest.in
11387   lt_ac_count=0
11388   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11389   # Check for GNU sed and select it if it is found.
11390   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11391     lt_cv_path_SED=$lt_ac_sed
11392     break
11393   fi
11394   while true; do
11395     cat conftest.in conftest.in >conftest.tmp
11396     mv conftest.tmp conftest.in
11397     cp conftest.in conftest.nl
11398     echo >>conftest.nl
11399     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11400     cmp -s conftest.out conftest.nl || break
11401     # 10000 chars as input seems more than enough
11402     test $lt_ac_count -gt 10 && break
11403     lt_ac_count=`expr $lt_ac_count + 1`
11404     if test $lt_ac_count -gt $lt_ac_max; then
11405       lt_ac_max=$lt_ac_count
11406       lt_cv_path_SED=$lt_ac_sed
11407     fi
11408   done
11409 done
11410
11411 fi
11412
11413 SED=$lt_cv_path_SED
11414
11415 echo "$as_me:$LINENO: result: $SED" >&5
11416 echo "${ECHO_T}$SED" >&6
11417
11418
11419 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11420 if test "${with_gnu_ld+set}" = set; then
11421   withval="$with_gnu_ld"
11422   test "$withval" = no || with_gnu_ld=yes
11423 else
11424   with_gnu_ld=no
11425 fi;
11426 ac_prog=ld
11427 if test "$GCC" = yes; then
11428   # Check if gcc -print-prog-name=ld gives a path.
11429   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11430 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11431   case $host in
11432   *-*-mingw*)
11433     # gcc leaves a trailing carriage return which upsets mingw
11434     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11435   *)
11436     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11437   esac
11438   case $ac_prog in
11439     # Accept absolute paths.
11440     [\\/]* | ?:[\\/]*)
11441       re_direlt='/[^/][^/]*/\.\./'
11442       # Canonicalize the pathname of ld
11443       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11444       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11445         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11446       done
11447       test -z "$LD" && LD="$ac_prog"
11448       ;;
11449   "")
11450     # If it fails, then pretend we aren't using GCC.
11451     ac_prog=ld
11452     ;;
11453   *)
11454     # If it is relative, then search for the first ld in PATH.
11455     with_gnu_ld=unknown
11456     ;;
11457   esac
11458 elif test "$with_gnu_ld" = yes; then
11459   echo "$as_me:$LINENO: checking for GNU ld" >&5
11460 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11461 else
11462   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11463 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11464 fi
11465 if test "${lt_cv_path_LD+set}" = set; then
11466   echo $ECHO_N "(cached) $ECHO_C" >&6
11467 else
11468   if test -z "$LD"; then
11469   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11470   for ac_dir in $PATH; do
11471     IFS="$lt_save_ifs"
11472     test -z "$ac_dir" && ac_dir=.
11473     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11474       lt_cv_path_LD="$ac_dir/$ac_prog"
11475       # Check to see if the program is GNU ld.  I'd rather use --version,
11476       # but apparently some variants of GNU ld only accept -v.
11477       # Break only if it was the GNU/non-GNU ld that we prefer.
11478       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11479       *GNU* | *'with BFD'*)
11480         test "$with_gnu_ld" != no && break
11481         ;;
11482       *)
11483         test "$with_gnu_ld" != yes && break
11484         ;;
11485       esac
11486     fi
11487   done
11488   IFS="$lt_save_ifs"
11489 else
11490   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11491 fi
11492 fi
11493
11494 LD="$lt_cv_path_LD"
11495 if test -n "$LD"; then
11496   echo "$as_me:$LINENO: result: $LD" >&5
11497 echo "${ECHO_T}$LD" >&6
11498 else
11499   echo "$as_me:$LINENO: result: no" >&5
11500 echo "${ECHO_T}no" >&6
11501 fi
11502 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11503 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11504    { (exit 1); exit 1; }; }
11505 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11506 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11507 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11508   echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11511 case `$LD -v 2>&1 </dev/null` in
11512 *GNU* | *'with BFD'*)
11513   lt_cv_prog_gnu_ld=yes
11514   ;;
11515 *)
11516   lt_cv_prog_gnu_ld=no
11517   ;;
11518 esac
11519 fi
11520 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11521 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11522 with_gnu_ld=$lt_cv_prog_gnu_ld
11523
11524
11525 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11526 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
11527 if test "${lt_cv_ld_reload_flag+set}" = set; then
11528   echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530   lt_cv_ld_reload_flag='-r'
11531 fi
11532 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11533 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
11534 reload_flag=$lt_cv_ld_reload_flag
11535 case $reload_flag in
11536 "" | " "*) ;;
11537 *) reload_flag=" $reload_flag" ;;
11538 esac
11539 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11540 case $host_os in
11541   darwin*)
11542     if test "$GCC" = yes; then
11543       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11544     else
11545       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11546     fi
11547     ;;
11548 esac
11549
11550 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
11551 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
11552 if test "${lt_cv_path_NM+set}" = set; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555   if test -n "$NM"; then
11556   # Let the user override the test.
11557   lt_cv_path_NM="$NM"
11558 else
11559   lt_nm_to_check="${ac_tool_prefix}nm"
11560   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11561     lt_nm_to_check="$lt_nm_to_check nm"
11562   fi
11563   for lt_tmp_nm in $lt_nm_to_check; do
11564     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11565     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11566       IFS="$lt_save_ifs"
11567       test -z "$ac_dir" && ac_dir=.
11568       tmp_nm="$ac_dir/$lt_tmp_nm"
11569       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11570         # Check to see if the nm accepts a BSD-compat flag.
11571         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11572         #   nm: unknown option "B" ignored
11573         # Tru64's nm complains that /dev/null is an invalid object file
11574         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11575         */dev/null* | *'Invalid file or object type'*)
11576           lt_cv_path_NM="$tmp_nm -B"
11577           break
11578           ;;
11579         *)
11580           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11581           */dev/null*)
11582             lt_cv_path_NM="$tmp_nm -p"
11583             break
11584             ;;
11585           *)
11586             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11587             continue # so that we can try to find one that supports BSD flags
11588             ;;
11589           esac
11590           ;;
11591         esac
11592       fi
11593     done
11594     IFS="$lt_save_ifs"
11595   done
11596   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
11597 fi
11598 fi
11599 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
11600 echo "${ECHO_T}$lt_cv_path_NM" >&6
11601 NM="$lt_cv_path_NM"
11602
11603 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11604 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
11605 if test "${lt_cv_deplibs_check_method+set}" = set; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   lt_cv_file_magic_cmd='$MAGIC_CMD'
11609 lt_cv_file_magic_test_file=
11610 lt_cv_deplibs_check_method='unknown'
11611 # Need to set the preceding variable on all platforms that support
11612 # interlibrary dependencies.
11613 # 'none' -- dependencies not supported.
11614 # `unknown' -- same as none, but documents that we really don't know.
11615 # 'pass_all' -- all dependencies passed with no checks.
11616 # 'test_compile' -- check by making test program.
11617 # 'file_magic [[regex]]' -- check by looking for files in library path
11618 # which responds to the $file_magic_cmd with a given extended regex.
11619 # If you have `file' or equivalent on your system and you're not sure
11620 # whether `pass_all' will *always* work, you probably want this one.
11621
11622 case $host_os in
11623 aix4* | aix5*)
11624   lt_cv_deplibs_check_method=pass_all
11625   ;;
11626
11627 beos*)
11628   lt_cv_deplibs_check_method=pass_all
11629   ;;
11630
11631 bsdi[45]*)
11632   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11633   lt_cv_file_magic_cmd='/usr/bin/file -L'
11634   lt_cv_file_magic_test_file=/shlib/libc.so
11635   ;;
11636
11637 cygwin*)
11638   # func_win32_libid is a shell function defined in ltmain.sh
11639   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11640   lt_cv_file_magic_cmd='func_win32_libid'
11641   ;;
11642
11643 mingw* | pw32*)
11644   # Base MSYS/MinGW do not provide the 'file' command needed by
11645   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11646   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11647   lt_cv_file_magic_cmd='$OBJDUMP -f'
11648   ;;
11649
11650 darwin* | rhapsody*)
11651   lt_cv_deplibs_check_method=pass_all
11652   ;;
11653
11654 freebsd* | kfreebsd*-gnu | dragonfly*)
11655   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11656     case $host_cpu in
11657     i*86 )
11658       # Not sure whether the presence of OpenBSD here was a mistake.
11659       # Let's accept both of them until this is cleared up.
11660       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11661       lt_cv_file_magic_cmd=/usr/bin/file
11662       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11663       ;;
11664     esac
11665   else
11666     lt_cv_deplibs_check_method=pass_all
11667   fi
11668   ;;
11669
11670 gnu*)
11671   lt_cv_deplibs_check_method=pass_all
11672   ;;
11673
11674 hpux10.20* | hpux11*)
11675   lt_cv_file_magic_cmd=/usr/bin/file
11676   case $host_cpu in
11677   ia64*)
11678     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11679     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11680     ;;
11681   hppa*64*)
11682     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]'
11683     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11684     ;;
11685   *)
11686     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11687     lt_cv_file_magic_test_file=/usr/lib/libc.sl
11688     ;;
11689   esac
11690   ;;
11691
11692 interix3*)
11693   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11694   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11695   ;;
11696
11697 irix5* | irix6* | nonstopux*)
11698   case $LD in
11699   *-32|*"-32 ") libmagic=32-bit;;
11700   *-n32|*"-n32 ") libmagic=N32;;
11701   *-64|*"-64 ") libmagic=64-bit;;
11702   *) libmagic=never-match;;
11703   esac
11704   lt_cv_deplibs_check_method=pass_all
11705   ;;
11706
11707 # This must be Linux ELF.
11708 linux*)
11709   lt_cv_deplibs_check_method=pass_all
11710   ;;
11711
11712 netbsd*)
11713   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11714     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11715   else
11716     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11717   fi
11718   ;;
11719
11720 newos6*)
11721   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11722   lt_cv_file_magic_cmd=/usr/bin/file
11723   lt_cv_file_magic_test_file=/usr/lib/libnls.so
11724   ;;
11725
11726 nto-qnx*)
11727   lt_cv_deplibs_check_method=unknown
11728   ;;
11729
11730 openbsd*)
11731   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11732     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11733   else
11734     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11735   fi
11736   ;;
11737
11738 osf3* | osf4* | osf5*)
11739   lt_cv_deplibs_check_method=pass_all
11740   ;;
11741
11742 solaris*)
11743   lt_cv_deplibs_check_method=pass_all
11744   ;;
11745
11746 sysv4 | sysv4.3*)
11747   case $host_vendor in
11748   motorola)
11749     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]'
11750     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11751     ;;
11752   ncr)
11753     lt_cv_deplibs_check_method=pass_all
11754     ;;
11755   sequent)
11756     lt_cv_file_magic_cmd='/bin/file'
11757     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11758     ;;
11759   sni)
11760     lt_cv_file_magic_cmd='/bin/file'
11761     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11762     lt_cv_file_magic_test_file=/lib/libc.so
11763     ;;
11764   siemens)
11765     lt_cv_deplibs_check_method=pass_all
11766     ;;
11767   pc)
11768     lt_cv_deplibs_check_method=pass_all
11769     ;;
11770   esac
11771   ;;
11772
11773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11774   lt_cv_deplibs_check_method=pass_all
11775   ;;
11776 esac
11777
11778 fi
11779 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11780 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
11781 file_magic_cmd=$lt_cv_file_magic_cmd
11782 deplibs_check_method=$lt_cv_deplibs_check_method
11783 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11784
11785
11786
11787
11788 # If no C compiler was specified, use CC.
11789 LTCC=${LTCC-"$CC"}
11790
11791 # If no C compiler flags were specified, use CFLAGS.
11792 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11793
11794 # Allow CC to be a program name with arguments.
11795 compiler=$CC
11796
11797 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11798 if test "${enable_libtool_lock+set}" = set; then
11799   enableval="$enable_libtool_lock"
11800
11801 fi;
11802 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11803
11804 # Some flags need to be propagated to the compiler or linker for good
11805 # libtool support.
11806 case $host in
11807 ia64-*-hpux*)
11808   # Find out which ABI we are using.
11809   echo 'int i;' > conftest.$ac_ext
11810   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811   (eval $ac_compile) 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); }; then
11815     case `/usr/bin/file conftest.$ac_objext` in
11816     *ELF-32*)
11817       HPUX_IA64_MODE="32"
11818       ;;
11819     *ELF-64*)
11820       HPUX_IA64_MODE="64"
11821       ;;
11822     esac
11823   fi
11824   rm -rf conftest*
11825   ;;
11826 *-*-irix6*)
11827   # Find out which ABI we are using.
11828   echo '#line 11828 "configure"' > conftest.$ac_ext
11829   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830   (eval $ac_compile) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; then
11834    if test "$lt_cv_prog_gnu_ld" = yes; then
11835     case `/usr/bin/file conftest.$ac_objext` in
11836     *32-bit*)
11837       LD="${LD-ld} -melf32bsmip"
11838       ;;
11839     *N32*)
11840       LD="${LD-ld} -melf32bmipn32"
11841       ;;
11842     *64-bit*)
11843       LD="${LD-ld} -melf64bmip"
11844       ;;
11845     esac
11846    else
11847     case `/usr/bin/file conftest.$ac_objext` in
11848     *32-bit*)
11849       LD="${LD-ld} -32"
11850       ;;
11851     *N32*)
11852       LD="${LD-ld} -n32"
11853       ;;
11854     *64-bit*)
11855       LD="${LD-ld} -64"
11856       ;;
11857     esac
11858    fi
11859   fi
11860   rm -rf conftest*
11861   ;;
11862
11863 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11864   # Find out which ABI we are using.
11865   echo 'int i;' > conftest.$ac_ext
11866   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11867   (eval $ac_compile) 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); }; then
11871     case `/usr/bin/file conftest.o` in
11872     *32-bit*)
11873       case $host in
11874         x86_64-*linux*)
11875           LD="${LD-ld} -m elf_i386"
11876           ;;
11877         ppc64-*linux*|powerpc64-*linux*)
11878           LD="${LD-ld} -m elf32ppclinux"
11879           ;;
11880         s390x-*linux*)
11881           LD="${LD-ld} -m elf_s390"
11882           ;;
11883         sparc64-*linux*)
11884           LD="${LD-ld} -m elf32_sparc"
11885           ;;
11886       esac
11887       ;;
11888     *64-bit*)
11889       case $host in
11890         x86_64-*linux*)
11891           LD="${LD-ld} -m elf_x86_64"
11892           ;;
11893         ppc*-*linux*|powerpc*-*linux*)
11894           LD="${LD-ld} -m elf64ppc"
11895           ;;
11896         s390*-*linux*)
11897           LD="${LD-ld} -m elf64_s390"
11898           ;;
11899         sparc*-*linux*)
11900           LD="${LD-ld} -m elf64_sparc"
11901           ;;
11902       esac
11903       ;;
11904     esac
11905   fi
11906   rm -rf conftest*
11907   ;;
11908
11909 *-*-sco3.2v5*)
11910   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11911   SAVE_CFLAGS="$CFLAGS"
11912   CFLAGS="$CFLAGS -belf"
11913   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11914 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
11915 if test "${lt_cv_cc_needs_belf+set}" = set; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918   ac_ext=c
11919 ac_cpp='$CPP $CPPFLAGS'
11920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11923
11924      cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h.  */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h.  */
11930
11931 int
11932 main ()
11933 {
11934
11935   ;
11936   return 0;
11937 }
11938 _ACEOF
11939 rm -f conftest.$ac_objext conftest$ac_exeext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11941   (eval $ac_link) 2>conftest.er1
11942   ac_status=$?
11943   grep -v '^ *+' conftest.er1 >conftest.err
11944   rm -f conftest.er1
11945   cat conftest.err >&5
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); } &&
11948          { ac_try='test -z "$ac_c_werror_flag"
11949                          || test ! -s conftest.err'
11950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951   (eval $ac_try) 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); }; } &&
11955          { ac_try='test -s conftest$ac_exeext'
11956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957   (eval $ac_try) 2>&5
11958   ac_status=$?
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); }; }; then
11961   lt_cv_cc_needs_belf=yes
11962 else
11963   echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 lt_cv_cc_needs_belf=no
11967 fi
11968 rm -f conftest.err conftest.$ac_objext \
11969       conftest$ac_exeext conftest.$ac_ext
11970      ac_ext=c
11971 ac_cpp='$CPP $CPPFLAGS'
11972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11975
11976 fi
11977 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11978 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
11979   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11980     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11981     CFLAGS="$SAVE_CFLAGS"
11982   fi
11983   ;;
11984 sparc*-*solaris*)
11985   # Find out which ABI we are using.
11986   echo 'int i;' > conftest.$ac_ext
11987   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11988   (eval $ac_compile) 2>&5
11989   ac_status=$?
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); }; then
11992     case `/usr/bin/file conftest.o` in
11993     *64-bit*)
11994       case $lt_cv_prog_gnu_ld in
11995       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11996       *)    LD="${LD-ld} -64" ;;
11997       esac
11998       ;;
11999     esac
12000   fi
12001   rm -rf conftest*
12002   ;;
12003
12004
12005 esac
12006
12007 need_locks="$enable_libtool_lock"
12008
12009
12010
12011 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12012 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12013 if test "${ac_cv_header_stdc+set}" = set; then
12014   echo $ECHO_N "(cached) $ECHO_C" >&6
12015 else
12016   cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h.  */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h.  */
12022 #include <stdlib.h>
12023 #include <stdarg.h>
12024 #include <string.h>
12025 #include <float.h>
12026
12027 int
12028 main ()
12029 {
12030
12031   ;
12032   return 0;
12033 }
12034 _ACEOF
12035 rm -f conftest.$ac_objext
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037   (eval $ac_compile) 2>conftest.er1
12038   ac_status=$?
12039   grep -v '^ *+' conftest.er1 >conftest.err
12040   rm -f conftest.er1
12041   cat conftest.err >&5
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); } &&
12044          { ac_try='test -z "$ac_c_werror_flag"
12045                          || test ! -s conftest.err'
12046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047   (eval $ac_try) 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); }; } &&
12051          { ac_try='test -s conftest.$ac_objext'
12052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053   (eval $ac_try) 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); }; }; then
12057   ac_cv_header_stdc=yes
12058 else
12059   echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12061
12062 ac_cv_header_stdc=no
12063 fi
12064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065
12066 if test $ac_cv_header_stdc = yes; then
12067   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12068   cat >conftest.$ac_ext <<_ACEOF
12069 /* confdefs.h.  */
12070 _ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h.  */
12074 #include <string.h>
12075
12076 _ACEOF
12077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12078   $EGREP "memchr" >/dev/null 2>&1; then
12079   :
12080 else
12081   ac_cv_header_stdc=no
12082 fi
12083 rm -f conftest*
12084
12085 fi
12086
12087 if test $ac_cv_header_stdc = yes; then
12088   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12089   cat >conftest.$ac_ext <<_ACEOF
12090 /* confdefs.h.  */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h.  */
12095 #include <stdlib.h>
12096
12097 _ACEOF
12098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12099   $EGREP "free" >/dev/null 2>&1; then
12100   :
12101 else
12102   ac_cv_header_stdc=no
12103 fi
12104 rm -f conftest*
12105
12106 fi
12107
12108 if test $ac_cv_header_stdc = yes; then
12109   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12110   if test "$cross_compiling" = yes; then
12111   :
12112 else
12113   cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h.  */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h.  */
12119 #include <ctype.h>
12120 #if ((' ' & 0x0FF) == 0x020)
12121 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12122 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12123 #else
12124 # define ISLOWER(c) \
12125                    (('a' <= (c) && (c) <= 'i') \
12126                      || ('j' <= (c) && (c) <= 'r') \
12127                      || ('s' <= (c) && (c) <= 'z'))
12128 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12129 #endif
12130
12131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12132 int
12133 main ()
12134 {
12135   int i;
12136   for (i = 0; i < 256; i++)
12137     if (XOR (islower (i), ISLOWER (i))
12138         || toupper (i) != TOUPPER (i))
12139       exit(2);
12140   exit (0);
12141 }
12142 _ACEOF
12143 rm -f conftest$ac_exeext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12145   (eval $ac_link) 2>&5
12146   ac_status=$?
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150   (eval $ac_try) 2>&5
12151   ac_status=$?
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); }; }; then
12154   :
12155 else
12156   echo "$as_me: program exited with status $ac_status" >&5
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12159
12160 ( exit $ac_status )
12161 ac_cv_header_stdc=no
12162 fi
12163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12164 fi
12165 fi
12166 fi
12167 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12168 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12169 if test $ac_cv_header_stdc = yes; then
12170
12171 cat >>confdefs.h <<\_ACEOF
12172 #define STDC_HEADERS 1
12173 _ACEOF
12174
12175 fi
12176
12177 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12188                   inttypes.h stdint.h unistd.h
12189 do
12190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12191 echo "$as_me:$LINENO: checking for $ac_header" >&5
12192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12194   echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196   cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h.  */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h.  */
12202 $ac_includes_default
12203
12204 #include <$ac_header>
12205 _ACEOF
12206 rm -f conftest.$ac_objext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12208   (eval $ac_compile) 2>conftest.er1
12209   ac_status=$?
12210   grep -v '^ *+' conftest.er1 >conftest.err
12211   rm -f conftest.er1
12212   cat conftest.err >&5
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); } &&
12215          { ac_try='test -z "$ac_c_werror_flag"
12216                          || test ! -s conftest.err'
12217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218   (eval $ac_try) 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); }; } &&
12222          { ac_try='test -s conftest.$ac_objext'
12223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224   (eval $ac_try) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; }; then
12228   eval "$as_ac_Header=yes"
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 eval "$as_ac_Header=no"
12234 fi
12235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12236 fi
12237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12240   cat >>confdefs.h <<_ACEOF
12241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12242 _ACEOF
12243
12244 fi
12245
12246 done
12247
12248
12249
12250 for ac_header in dlfcn.h
12251 do
12252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12254   echo "$as_me:$LINENO: checking for $ac_header" >&5
12255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12257   echo $ECHO_N "(cached) $ECHO_C" >&6
12258 fi
12259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12261 else
12262   # Is the header compilable?
12263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12265 cat >conftest.$ac_ext <<_ACEOF
12266 /* confdefs.h.  */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h.  */
12271 $ac_includes_default
12272 #include <$ac_header>
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276   (eval $ac_compile) 2>conftest.er1
12277   ac_status=$?
12278   grep -v '^ *+' conftest.er1 >conftest.err
12279   rm -f conftest.er1
12280   cat conftest.err >&5
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); } &&
12283          { ac_try='test -z "$ac_c_werror_flag"
12284                          || test ! -s conftest.err'
12285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286   (eval $ac_try) 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; } &&
12290          { ac_try='test -s conftest.$ac_objext'
12291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292   (eval $ac_try) 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; }; then
12296   ac_header_compiler=yes
12297 else
12298   echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 ac_header_compiler=no
12302 fi
12303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12305 echo "${ECHO_T}$ac_header_compiler" >&6
12306
12307 # Is the header present?
12308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h.  */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h.  */
12316 #include <$ac_header>
12317 _ACEOF
12318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12320   ac_status=$?
12321   grep -v '^ *+' conftest.er1 >conftest.err
12322   rm -f conftest.er1
12323   cat conftest.err >&5
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); } >/dev/null; then
12326   if test -s conftest.err; then
12327     ac_cpp_err=$ac_c_preproc_warn_flag
12328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12329   else
12330     ac_cpp_err=
12331   fi
12332 else
12333   ac_cpp_err=yes
12334 fi
12335 if test -z "$ac_cpp_err"; then
12336   ac_header_preproc=yes
12337 else
12338   echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12340
12341   ac_header_preproc=no
12342 fi
12343 rm -f conftest.err conftest.$ac_ext
12344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12345 echo "${ECHO_T}$ac_header_preproc" >&6
12346
12347 # So?  What about this header?
12348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12349   yes:no: )
12350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12354     ac_header_preproc=yes
12355     ;;
12356   no:yes:* )
12357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12369     (
12370       cat <<\_ASBOX
12371 ## --------------------------------------------- ##
12372 ## Report this to vserver@list.linux-vserver.org ##
12373 ## --------------------------------------------- ##
12374 _ASBOX
12375     ) |
12376       sed "s/^/$as_me: WARNING:     /" >&2
12377     ;;
12378 esac
12379 echo "$as_me:$LINENO: checking for $ac_header" >&5
12380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382   echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384   eval "$as_ac_Header=\$ac_header_preproc"
12385 fi
12386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12388
12389 fi
12390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12391   cat >>confdefs.h <<_ACEOF
12392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12393 _ACEOF
12394
12395 fi
12396
12397 done
12398
12399
12400
12401 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12402     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12403     (test "X$CXX" != "Xg++"))) ; then
12404   ac_ext=cc
12405 ac_cpp='$CXXCPP $CPPFLAGS'
12406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12409 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12410 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
12411 if test -z "$CXXCPP"; then
12412   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12413   echo $ECHO_N "(cached) $ECHO_C" >&6
12414 else
12415       # Double quotes because CXXCPP needs to be expanded
12416     for CXXCPP in "$CXX -E" "/lib/cpp"
12417     do
12418       ac_preproc_ok=false
12419 for ac_cxx_preproc_warn_flag in '' yes
12420 do
12421   # Use a header file that comes with gcc, so configuring glibc
12422   # with a fresh cross-compiler works.
12423   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12424   # <limits.h> exists even on freestanding compilers.
12425   # On the NeXT, cc -E runs the code through the compiler's parser,
12426   # not just through cpp. "Syntax error" is here to catch this case.
12427   cat >conftest.$ac_ext <<_ACEOF
12428 /* confdefs.h.  */
12429 _ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h.  */
12433 #ifdef __STDC__
12434 # include <limits.h>
12435 #else
12436 # include <assert.h>
12437 #endif
12438                      Syntax error
12439 _ACEOF
12440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12442   ac_status=$?
12443   grep -v '^ *+' conftest.er1 >conftest.err
12444   rm -f conftest.er1
12445   cat conftest.err >&5
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); } >/dev/null; then
12448   if test -s conftest.err; then
12449     ac_cpp_err=$ac_cxx_preproc_warn_flag
12450     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12451   else
12452     ac_cpp_err=
12453   fi
12454 else
12455   ac_cpp_err=yes
12456 fi
12457 if test -z "$ac_cpp_err"; then
12458   :
12459 else
12460   echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12462
12463   # Broken: fails on valid input.
12464 continue
12465 fi
12466 rm -f conftest.err conftest.$ac_ext
12467
12468   # OK, works on sane cases.  Now check whether non-existent headers
12469   # can be detected and how.
12470   cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h.  */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h.  */
12476 #include <ac_nonexistent.h>
12477 _ACEOF
12478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12480   ac_status=$?
12481   grep -v '^ *+' conftest.er1 >conftest.err
12482   rm -f conftest.er1
12483   cat conftest.err >&5
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); } >/dev/null; then
12486   if test -s conftest.err; then
12487     ac_cpp_err=$ac_cxx_preproc_warn_flag
12488     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12489   else
12490     ac_cpp_err=
12491   fi
12492 else
12493   ac_cpp_err=yes
12494 fi
12495 if test -z "$ac_cpp_err"; then
12496   # Broken: success on invalid input.
12497 continue
12498 else
12499   echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12501
12502   # Passes both tests.
12503 ac_preproc_ok=:
12504 break
12505 fi
12506 rm -f conftest.err conftest.$ac_ext
12507
12508 done
12509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12510 rm -f conftest.err conftest.$ac_ext
12511 if $ac_preproc_ok; then
12512   break
12513 fi
12514
12515     done
12516     ac_cv_prog_CXXCPP=$CXXCPP
12517
12518 fi
12519   CXXCPP=$ac_cv_prog_CXXCPP
12520 else
12521   ac_cv_prog_CXXCPP=$CXXCPP
12522 fi
12523 echo "$as_me:$LINENO: result: $CXXCPP" >&5
12524 echo "${ECHO_T}$CXXCPP" >&6
12525 ac_preproc_ok=false
12526 for ac_cxx_preproc_warn_flag in '' yes
12527 do
12528   # Use a header file that comes with gcc, so configuring glibc
12529   # with a fresh cross-compiler works.
12530   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12531   # <limits.h> exists even on freestanding compilers.
12532   # On the NeXT, cc -E runs the code through the compiler's parser,
12533   # not just through cpp. "Syntax error" is here to catch this case.
12534   cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h.  */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h.  */
12540 #ifdef __STDC__
12541 # include <limits.h>
12542 #else
12543 # include <assert.h>
12544 #endif
12545                      Syntax error
12546 _ACEOF
12547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12548   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12549   ac_status=$?
12550   grep -v '^ *+' conftest.er1 >conftest.err
12551   rm -f conftest.er1
12552   cat conftest.err >&5
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); } >/dev/null; then
12555   if test -s conftest.err; then
12556     ac_cpp_err=$ac_cxx_preproc_warn_flag
12557     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12558   else
12559     ac_cpp_err=
12560   fi
12561 else
12562   ac_cpp_err=yes
12563 fi
12564 if test -z "$ac_cpp_err"; then
12565   :
12566 else
12567   echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12569
12570   # Broken: fails on valid input.
12571 continue
12572 fi
12573 rm -f conftest.err conftest.$ac_ext
12574
12575   # OK, works on sane cases.  Now check whether non-existent headers
12576   # can be detected and how.
12577   cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583 #include <ac_nonexistent.h>
12584 _ACEOF
12585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12587   ac_status=$?
12588   grep -v '^ *+' conftest.er1 >conftest.err
12589   rm -f conftest.er1
12590   cat conftest.err >&5
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); } >/dev/null; then
12593   if test -s conftest.err; then
12594     ac_cpp_err=$ac_cxx_preproc_warn_flag
12595     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12596   else
12597     ac_cpp_err=
12598   fi
12599 else
12600   ac_cpp_err=yes
12601 fi
12602 if test -z "$ac_cpp_err"; then
12603   # Broken: success on invalid input.
12604 continue
12605 else
12606   echo "$as_me: failed program was:" >&5
12607 sed 's/^/| /' conftest.$ac_ext >&5
12608
12609   # Passes both tests.
12610 ac_preproc_ok=:
12611 break
12612 fi
12613 rm -f conftest.err conftest.$ac_ext
12614
12615 done
12616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12617 rm -f conftest.err conftest.$ac_ext
12618 if $ac_preproc_ok; then
12619   :
12620 else
12621   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12622 See \`config.log' for more details." >&5
12623 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12624 See \`config.log' for more details." >&2;}
12625    { (exit 1); exit 1; }; }
12626 fi
12627
12628 ac_ext=cc
12629 ac_cpp='$CXXCPP $CPPFLAGS'
12630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12633
12634 fi
12635
12636 ac_ext=f
12637 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12638 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12639 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12640 if test -n "$ac_tool_prefix"; then
12641   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
12642   do
12643     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12645 echo "$as_me:$LINENO: checking for $ac_word" >&5
12646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12647 if test "${ac_cv_prog_F77+set}" = set; then
12648   echo $ECHO_N "(cached) $ECHO_C" >&6
12649 else
12650   if test -n "$F77"; then
12651   ac_cv_prog_F77="$F77" # Let the user override the test.
12652 else
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12655 do
12656   IFS=$as_save_IFS
12657   test -z "$as_dir" && as_dir=.
12658   for ac_exec_ext in '' $ac_executable_extensions; do
12659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12660     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12662     break 2
12663   fi
12664 done
12665 done
12666
12667 fi
12668 fi
12669 F77=$ac_cv_prog_F77
12670 if test -n "$F77"; then
12671   echo "$as_me:$LINENO: result: $F77" >&5
12672 echo "${ECHO_T}$F77" >&6
12673 else
12674   echo "$as_me:$LINENO: result: no" >&5
12675 echo "${ECHO_T}no" >&6
12676 fi
12677
12678     test -n "$F77" && break
12679   done
12680 fi
12681 if test -z "$F77"; then
12682   ac_ct_F77=$F77
12683   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
12684 do
12685   # Extract the first word of "$ac_prog", so it can be a program name with args.
12686 set dummy $ac_prog; ac_word=$2
12687 echo "$as_me:$LINENO: checking for $ac_word" >&5
12688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12689 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692   if test -n "$ac_ct_F77"; then
12693   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12694 else
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in $PATH
12697 do
12698   IFS=$as_save_IFS
12699   test -z "$as_dir" && as_dir=.
12700   for ac_exec_ext in '' $ac_executable_extensions; do
12701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12702     ac_cv_prog_ac_ct_F77="$ac_prog"
12703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12704     break 2
12705   fi
12706 done
12707 done
12708
12709 fi
12710 fi
12711 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12712 if test -n "$ac_ct_F77"; then
12713   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12714 echo "${ECHO_T}$ac_ct_F77" >&6
12715 else
12716   echo "$as_me:$LINENO: result: no" >&5
12717 echo "${ECHO_T}no" >&6
12718 fi
12719
12720   test -n "$ac_ct_F77" && break
12721 done
12722
12723   F77=$ac_ct_F77
12724 fi
12725
12726
12727 # Provide some information about the compiler.
12728 echo "$as_me:12728:" \
12729      "checking for Fortran 77 compiler version" >&5
12730 ac_compiler=`set X $ac_compile; echo $2`
12731 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12732   (eval $ac_compiler --version </dev/null >&5) 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); }
12736 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12737   (eval $ac_compiler -v </dev/null >&5) 2>&5
12738   ac_status=$?
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); }
12741 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12742   (eval $ac_compiler -V </dev/null >&5) 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); }
12746 rm -f a.out
12747
12748 # If we don't use `.F' as extension, the preprocessor is not run on the
12749 # input file.  (Note that this only needs to work for GNU compilers.)
12750 ac_save_ext=$ac_ext
12751 ac_ext=F
12752 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12753 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
12754 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12755   echo $ECHO_N "(cached) $ECHO_C" >&6
12756 else
12757   cat >conftest.$ac_ext <<_ACEOF
12758       program main
12759 #ifndef __GNUC__
12760        choke me
12761 #endif
12762
12763       end
12764 _ACEOF
12765 rm -f conftest.$ac_objext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12767   (eval $ac_compile) 2>conftest.er1
12768   ac_status=$?
12769   grep -v '^ *+' conftest.er1 >conftest.err
12770   rm -f conftest.er1
12771   cat conftest.err >&5
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); } &&
12774          { ac_try='test -z "$ac_f77_werror_flag"
12775                          || test ! -s conftest.err'
12776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777   (eval $ac_try) 2>&5
12778   ac_status=$?
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); }; } &&
12781          { ac_try='test -s conftest.$ac_objext'
12782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783   (eval $ac_try) 2>&5
12784   ac_status=$?
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); }; }; then
12787   ac_compiler_gnu=yes
12788 else
12789   echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12791
12792 ac_compiler_gnu=no
12793 fi
12794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12795 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12796
12797 fi
12798 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12799 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
12800 ac_ext=$ac_save_ext
12801 ac_test_FFLAGS=${FFLAGS+set}
12802 ac_save_FFLAGS=$FFLAGS
12803 FFLAGS=
12804 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12805 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
12806 if test "${ac_cv_prog_f77_g+set}" = set; then
12807   echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809   FFLAGS=-g
12810 cat >conftest.$ac_ext <<_ACEOF
12811       program main
12812
12813       end
12814 _ACEOF
12815 rm -f conftest.$ac_objext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12817   (eval $ac_compile) 2>conftest.er1
12818   ac_status=$?
12819   grep -v '^ *+' conftest.er1 >conftest.err
12820   rm -f conftest.er1
12821   cat conftest.err >&5
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); } &&
12824          { ac_try='test -z "$ac_f77_werror_flag"
12825                          || test ! -s conftest.err'
12826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827   (eval $ac_try) 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; } &&
12831          { ac_try='test -s conftest.$ac_objext'
12832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833   (eval $ac_try) 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); }; }; then
12837   ac_cv_prog_f77_g=yes
12838 else
12839   echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12841
12842 ac_cv_prog_f77_g=no
12843 fi
12844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12845
12846 fi
12847 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12848 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
12849 if test "$ac_test_FFLAGS" = set; then
12850   FFLAGS=$ac_save_FFLAGS
12851 elif test $ac_cv_prog_f77_g = yes; then
12852   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12853     FFLAGS="-g -O2"
12854   else
12855     FFLAGS="-g"
12856   fi
12857 else
12858   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12859     FFLAGS="-O2"
12860   else
12861     FFLAGS=
12862   fi
12863 fi
12864
12865 G77=`test $ac_compiler_gnu = yes && echo yes`
12866 ac_ext=c
12867 ac_cpp='$CPP $CPPFLAGS'
12868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871
12872
12873
12874 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12875
12876 # find the maximum length of command line arguments
12877 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12878 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
12879 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12880   echo $ECHO_N "(cached) $ECHO_C" >&6
12881 else
12882     i=0
12883   teststring="ABCD"
12884
12885   case $build_os in
12886   msdosdjgpp*)
12887     # On DJGPP, this test can blow up pretty badly due to problems in libc
12888     # (any single argument exceeding 2000 bytes causes a buffer overrun
12889     # during glob expansion).  Even if it were fixed, the result of this
12890     # check would be larger than it should be.
12891     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12892     ;;
12893
12894   gnu*)
12895     # Under GNU Hurd, this test is not required because there is
12896     # no limit to the length of command line arguments.
12897     # Libtool will interpret -1 as no limit whatsoever
12898     lt_cv_sys_max_cmd_len=-1;
12899     ;;
12900
12901   cygwin* | mingw*)
12902     # On Win9x/ME, this test blows up -- it succeeds, but takes
12903     # about 5 minutes as the teststring grows exponentially.
12904     # Worse, since 9x/ME are not pre-emptively multitasking,
12905     # you end up with a "frozen" computer, even though with patience
12906     # the test eventually succeeds (with a max line length of 256k).
12907     # Instead, let's just punt: use the minimum linelength reported by
12908     # all of the supported platforms: 8192 (on NT/2K/XP).
12909     lt_cv_sys_max_cmd_len=8192;
12910     ;;
12911
12912   amigaos*)
12913     # On AmigaOS with pdksh, this test takes hours, literally.
12914     # So we just punt and use a minimum line length of 8192.
12915     lt_cv_sys_max_cmd_len=8192;
12916     ;;
12917
12918   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12919     # This has been around since 386BSD, at least.  Likely further.
12920     if test -x /sbin/sysctl; then
12921       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12922     elif test -x /usr/sbin/sysctl; then
12923       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12924     else
12925       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12926     fi
12927     # And add a safety zone
12928     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12929     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12930     ;;
12931
12932   interix*)
12933     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12934     lt_cv_sys_max_cmd_len=196608
12935     ;;
12936
12937   osf*)
12938     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12939     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12940     # nice to cause kernel panics so lets avoid the loop below.
12941     # First set a reasonable default.
12942     lt_cv_sys_max_cmd_len=16384
12943     #
12944     if test -x /sbin/sysconfig; then
12945       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12946         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12947       esac
12948     fi
12949     ;;
12950   sco3.2v5*)
12951     lt_cv_sys_max_cmd_len=102400
12952     ;;
12953   sysv5* | sco5v6* | sysv4.2uw2*)
12954     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12955     if test -n "$kargmax"; then
12956       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
12957     else
12958       lt_cv_sys_max_cmd_len=32768
12959     fi
12960     ;;
12961   *)
12962     # If test is not a shell built-in, we'll probably end up computing a
12963     # maximum length that is only half of the actual maximum length, but
12964     # we can't tell.
12965     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12966     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12967                = "XX$teststring") >/dev/null 2>&1 &&
12968             new_result=`expr "X$teststring" : ".*" 2>&1` &&
12969             lt_cv_sys_max_cmd_len=$new_result &&
12970             test $i != 17 # 1/2 MB should be enough
12971     do
12972       i=`expr $i + 1`
12973       teststring=$teststring$teststring
12974     done
12975     teststring=
12976     # Add a significant safety factor because C++ compilers can tack on massive
12977     # amounts of additional arguments before passing them to the linker.
12978     # It appears as though 1/2 is a usable value.
12979     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12980     ;;
12981   esac
12982
12983 fi
12984
12985 if test -n $lt_cv_sys_max_cmd_len ; then
12986   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12987 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
12988 else
12989   echo "$as_me:$LINENO: result: none" >&5
12990 echo "${ECHO_T}none" >&6
12991 fi
12992
12993
12994
12995
12996 # Check for command to grab the raw symbol name followed by C symbol from nm.
12997 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12998 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
12999 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13000   echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002
13003 # These are sane defaults that work on at least a few old systems.
13004 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13005
13006 # Character class describing NM global symbol codes.
13007 symcode='[BCDEGRST]'
13008
13009 # Regexp to match symbols that can be accessed directly from C.
13010 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13011
13012 # Transform an extracted symbol line into a proper C declaration
13013 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13014
13015 # Transform an extracted symbol line into symbol name and symbol address
13016 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'"
13017
13018 # Define system-specific variables.
13019 case $host_os in
13020 aix*)
13021   symcode='[BCDT]'
13022   ;;
13023 cygwin* | mingw* | pw32*)
13024   symcode='[ABCDGISTW]'
13025   ;;
13026 hpux*) # Its linker distinguishes data from code symbols
13027   if test "$host_cpu" = ia64; then
13028     symcode='[ABCDEGRST]'
13029   fi
13030   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13031   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'"
13032   ;;
13033 linux*)
13034   if test "$host_cpu" = ia64; then
13035     symcode='[ABCDGIRSTW]'
13036     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13037     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'"
13038   fi
13039   ;;
13040 irix* | nonstopux*)
13041   symcode='[BCDEGRST]'
13042   ;;
13043 osf*)
13044   symcode='[BCDEGQRST]'
13045   ;;
13046 solaris*)
13047   symcode='[BDRT]'
13048   ;;
13049 sco3.2v5*)
13050   symcode='[DT]'
13051   ;;
13052 sysv4.2uw2*)
13053   symcode='[DT]'
13054   ;;
13055 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13056   symcode='[ABDT]'
13057   ;;
13058 sysv4)
13059   symcode='[DFNSTU]'
13060   ;;
13061 esac
13062
13063 # Handle CRLF in mingw tool chain
13064 opt_cr=
13065 case $build_os in
13066 mingw*)
13067   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13068   ;;
13069 esac
13070
13071 # If we're using GNU nm, then use its standard symbol codes.
13072 case `$NM -V 2>&1` in
13073 *GNU* | *'with BFD'*)
13074   symcode='[ABCDGIRSTW]' ;;
13075 esac
13076
13077 # Try without a prefix undercore, then with it.
13078 for ac_symprfx in "" "_"; do
13079
13080   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13081   symxfrm="\\1 $ac_symprfx\\2 \\2"
13082
13083   # Write the raw and C identifiers.
13084   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13085
13086   # Check to see that the pipe works correctly.
13087   pipe_works=no
13088
13089   rm -f conftest*
13090   cat > conftest.$ac_ext <<EOF
13091 #ifdef __cplusplus
13092 extern "C" {
13093 #endif
13094 char nm_test_var;
13095 void nm_test_func(){}
13096 #ifdef __cplusplus
13097 }
13098 #endif
13099 int main(){nm_test_var='a';nm_test_func();return(0);}
13100 EOF
13101
13102   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13103   (eval $ac_compile) 2>&5
13104   ac_status=$?
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); }; then
13107     # Now try to grab the symbols.
13108     nlist=conftest.nm
13109     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13110   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13111   ac_status=$?
13112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113   (exit $ac_status); } && test -s "$nlist"; then
13114       # Try sorting and uniquifying the output.
13115       if sort "$nlist" | uniq > "$nlist"T; then
13116         mv -f "$nlist"T "$nlist"
13117       else
13118         rm -f "$nlist"T
13119       fi
13120
13121       # Make sure that we snagged all the symbols we need.
13122       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13123         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13124           cat <<EOF > conftest.$ac_ext
13125 #ifdef __cplusplus
13126 extern "C" {
13127 #endif
13128
13129 EOF
13130           # Now generate the symbol file.
13131           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13132
13133           cat <<EOF >> conftest.$ac_ext
13134 #if defined (__STDC__) && __STDC__
13135 # define lt_ptr_t void *
13136 #else
13137 # define lt_ptr_t char *
13138 # define const
13139 #endif
13140
13141 /* The mapping between symbol names and symbols. */
13142 const struct {
13143   const char *name;
13144   lt_ptr_t address;
13145 }
13146 lt_preloaded_symbols[] =
13147 {
13148 EOF
13149           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13150           cat <<\EOF >> conftest.$ac_ext
13151   {0, (lt_ptr_t) 0}
13152 };
13153
13154 #ifdef __cplusplus
13155 }
13156 #endif
13157 EOF
13158           # Now try linking the two files.
13159           mv conftest.$ac_objext conftstm.$ac_objext
13160           lt_save_LIBS="$LIBS"
13161           lt_save_CFLAGS="$CFLAGS"
13162           LIBS="conftstm.$ac_objext"
13163           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13164           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165   (eval $ac_link) 2>&5
13166   ac_status=$?
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13169             pipe_works=yes
13170           fi
13171           LIBS="$lt_save_LIBS"
13172           CFLAGS="$lt_save_CFLAGS"
13173         else
13174           echo "cannot find nm_test_func in $nlist" >&5
13175         fi
13176       else
13177         echo "cannot find nm_test_var in $nlist" >&5
13178       fi
13179     else
13180       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13181     fi
13182   else
13183     echo "$progname: failed program was:" >&5
13184     cat conftest.$ac_ext >&5
13185   fi
13186   rm -f conftest* conftst*
13187
13188   # Do not use the global_symbol_pipe unless it works.
13189   if test "$pipe_works" = yes; then
13190     break
13191   else
13192     lt_cv_sys_global_symbol_pipe=
13193   fi
13194 done
13195
13196 fi
13197
13198 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13199   lt_cv_sys_global_symbol_to_cdecl=
13200 fi
13201 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13202   echo "$as_me:$LINENO: result: failed" >&5
13203 echo "${ECHO_T}failed" >&6
13204 else
13205   echo "$as_me:$LINENO: result: ok" >&5
13206 echo "${ECHO_T}ok" >&6
13207 fi
13208
13209 echo "$as_me:$LINENO: checking for objdir" >&5
13210 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
13211 if test "${lt_cv_objdir+set}" = set; then
13212   echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214   rm -f .libs 2>/dev/null
13215 mkdir .libs 2>/dev/null
13216 if test -d .libs; then
13217   lt_cv_objdir=.libs
13218 else
13219   # MS-DOS does not allow filenames that begin with a dot.
13220   lt_cv_objdir=_libs
13221 fi
13222 rmdir .libs 2>/dev/null
13223 fi
13224 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13225 echo "${ECHO_T}$lt_cv_objdir" >&6
13226 objdir=$lt_cv_objdir
13227
13228
13229
13230
13231
13232 case $host_os in
13233 aix3*)
13234   # AIX sometimes has problems with the GCC collect2 program.  For some
13235   # reason, if we set the COLLECT_NAMES environment variable, the problems
13236   # vanish in a puff of smoke.
13237   if test "X${COLLECT_NAMES+set}" != Xset; then
13238     COLLECT_NAMES=
13239     export COLLECT_NAMES
13240   fi
13241   ;;
13242 esac
13243
13244 # Sed substitution that helps us do robust quoting.  It backslashifies
13245 # metacharacters that are still active within double-quoted strings.
13246 Xsed='sed -e 1s/^X//'
13247 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13248
13249 # Same as above, but do not quote variable references.
13250 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13251
13252 # Sed substitution to delay expansion of an escaped shell variable in a
13253 # double_quote_subst'ed string.
13254 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13255
13256 # Sed substitution to avoid accidental globbing in evaled expressions
13257 no_glob_subst='s/\*/\\\*/g'
13258
13259 # Constants:
13260 rm="rm -f"
13261
13262 # Global variables:
13263 default_ofile=libtool
13264 can_build_shared=yes
13265
13266 # All known linkers require a `.a' archive for static linking (except MSVC,
13267 # which needs '.lib').
13268 libext=a
13269 ltmain="$ac_aux_dir/ltmain.sh"
13270 ofile="$default_ofile"
13271 with_gnu_ld="$lt_cv_prog_gnu_ld"
13272
13273 if test -n "$ac_tool_prefix"; then
13274   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13275 set dummy ${ac_tool_prefix}ar; ac_word=$2
13276 echo "$as_me:$LINENO: checking for $ac_word" >&5
13277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13278 if test "${ac_cv_prog_AR+set}" = set; then
13279   echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281   if test -n "$AR"; then
13282   ac_cv_prog_AR="$AR" # Let the user override the test.
13283 else
13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13286 do
13287   IFS=$as_save_IFS
13288   test -z "$as_dir" && as_dir=.
13289   for ac_exec_ext in '' $ac_executable_extensions; do
13290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13291     ac_cv_prog_AR="${ac_tool_prefix}ar"
13292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13293     break 2
13294   fi
13295 done
13296 done
13297
13298 fi
13299 fi
13300 AR=$ac_cv_prog_AR
13301 if test -n "$AR"; then
13302   echo "$as_me:$LINENO: result: $AR" >&5
13303 echo "${ECHO_T}$AR" >&6
13304 else
13305   echo "$as_me:$LINENO: result: no" >&5
13306 echo "${ECHO_T}no" >&6
13307 fi
13308
13309 fi
13310 if test -z "$ac_cv_prog_AR"; then
13311   ac_ct_AR=$AR
13312   # Extract the first word of "ar", so it can be a program name with args.
13313 set dummy ar; ac_word=$2
13314 echo "$as_me:$LINENO: checking for $ac_word" >&5
13315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13316 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13317   echo $ECHO_N "(cached) $ECHO_C" >&6
13318 else
13319   if test -n "$ac_ct_AR"; then
13320   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13321 else
13322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323 for as_dir in $PATH
13324 do
13325   IFS=$as_save_IFS
13326   test -z "$as_dir" && as_dir=.
13327   for ac_exec_ext in '' $ac_executable_extensions; do
13328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13329     ac_cv_prog_ac_ct_AR="ar"
13330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13331     break 2
13332   fi
13333 done
13334 done
13335
13336   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
13337 fi
13338 fi
13339 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13340 if test -n "$ac_ct_AR"; then
13341   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13342 echo "${ECHO_T}$ac_ct_AR" >&6
13343 else
13344   echo "$as_me:$LINENO: result: no" >&5
13345 echo "${ECHO_T}no" >&6
13346 fi
13347
13348   AR=$ac_ct_AR
13349 else
13350   AR="$ac_cv_prog_AR"
13351 fi
13352
13353 if test -n "$ac_tool_prefix"; then
13354   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13355 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13356 echo "$as_me:$LINENO: checking for $ac_word" >&5
13357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13358 if test "${ac_cv_prog_RANLIB+set}" = set; then
13359   echo $ECHO_N "(cached) $ECHO_C" >&6
13360 else
13361   if test -n "$RANLIB"; then
13362   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13363 else
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13366 do
13367   IFS=$as_save_IFS
13368   test -z "$as_dir" && as_dir=.
13369   for ac_exec_ext in '' $ac_executable_extensions; do
13370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13371     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13373     break 2
13374   fi
13375 done
13376 done
13377
13378 fi
13379 fi
13380 RANLIB=$ac_cv_prog_RANLIB
13381 if test -n "$RANLIB"; then
13382   echo "$as_me:$LINENO: result: $RANLIB" >&5
13383 echo "${ECHO_T}$RANLIB" >&6
13384 else
13385   echo "$as_me:$LINENO: result: no" >&5
13386 echo "${ECHO_T}no" >&6
13387 fi
13388
13389 fi
13390 if test -z "$ac_cv_prog_RANLIB"; then
13391   ac_ct_RANLIB=$RANLIB
13392   # Extract the first word of "ranlib", so it can be a program name with args.
13393 set dummy ranlib; ac_word=$2
13394 echo "$as_me:$LINENO: checking for $ac_word" >&5
13395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13396 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13397   echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399   if test -n "$ac_ct_RANLIB"; then
13400   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13401 else
13402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13403 for as_dir in $PATH
13404 do
13405   IFS=$as_save_IFS
13406   test -z "$as_dir" && as_dir=.
13407   for ac_exec_ext in '' $ac_executable_extensions; do
13408   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13409     ac_cv_prog_ac_ct_RANLIB="ranlib"
13410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13411     break 2
13412   fi
13413 done
13414 done
13415
13416   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13417 fi
13418 fi
13419 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13420 if test -n "$ac_ct_RANLIB"; then
13421   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13422 echo "${ECHO_T}$ac_ct_RANLIB" >&6
13423 else
13424   echo "$as_me:$LINENO: result: no" >&5
13425 echo "${ECHO_T}no" >&6
13426 fi
13427
13428   RANLIB=$ac_ct_RANLIB
13429 else
13430   RANLIB="$ac_cv_prog_RANLIB"
13431 fi
13432
13433 if test -n "$ac_tool_prefix"; then
13434   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13435 set dummy ${ac_tool_prefix}strip; ac_word=$2
13436 echo "$as_me:$LINENO: checking for $ac_word" >&5
13437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13438 if test "${ac_cv_prog_STRIP+set}" = set; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441   if test -n "$STRIP"; then
13442   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13443 else
13444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445 for as_dir in $PATH
13446 do
13447   IFS=$as_save_IFS
13448   test -z "$as_dir" && as_dir=.
13449   for ac_exec_ext in '' $ac_executable_extensions; do
13450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13451     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13453     break 2
13454   fi
13455 done
13456 done
13457
13458 fi
13459 fi
13460 STRIP=$ac_cv_prog_STRIP
13461 if test -n "$STRIP"; then
13462   echo "$as_me:$LINENO: result: $STRIP" >&5
13463 echo "${ECHO_T}$STRIP" >&6
13464 else
13465   echo "$as_me:$LINENO: result: no" >&5
13466 echo "${ECHO_T}no" >&6
13467 fi
13468
13469 fi
13470 if test -z "$ac_cv_prog_STRIP"; then
13471   ac_ct_STRIP=$STRIP
13472   # Extract the first word of "strip", so it can be a program name with args.
13473 set dummy strip; ac_word=$2
13474 echo "$as_me:$LINENO: checking for $ac_word" >&5
13475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13476 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13477   echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479   if test -n "$ac_ct_STRIP"; then
13480   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13481 else
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13484 do
13485   IFS=$as_save_IFS
13486   test -z "$as_dir" && as_dir=.
13487   for ac_exec_ext in '' $ac_executable_extensions; do
13488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13489     ac_cv_prog_ac_ct_STRIP="strip"
13490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13491     break 2
13492   fi
13493 done
13494 done
13495
13496   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
13497 fi
13498 fi
13499 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13500 if test -n "$ac_ct_STRIP"; then
13501   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13502 echo "${ECHO_T}$ac_ct_STRIP" >&6
13503 else
13504   echo "$as_me:$LINENO: result: no" >&5
13505 echo "${ECHO_T}no" >&6
13506 fi
13507
13508   STRIP=$ac_ct_STRIP
13509 else
13510   STRIP="$ac_cv_prog_STRIP"
13511 fi
13512
13513
13514 old_CC="$CC"
13515 old_CFLAGS="$CFLAGS"
13516
13517 # Set sane defaults for various variables
13518 test -z "$AR" && AR=ar
13519 test -z "$AR_FLAGS" && AR_FLAGS=cru
13520 test -z "$AS" && AS=as
13521 test -z "$CC" && CC=cc
13522 test -z "$LTCC" && LTCC=$CC
13523 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13524 test -z "$DLLTOOL" && DLLTOOL=dlltool
13525 test -z "$LD" && LD=ld
13526 test -z "$LN_S" && LN_S="ln -s"
13527 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13528 test -z "$NM" && NM=nm
13529 test -z "$SED" && SED=sed
13530 test -z "$OBJDUMP" && OBJDUMP=objdump
13531 test -z "$RANLIB" && RANLIB=:
13532 test -z "$STRIP" && STRIP=:
13533 test -z "$ac_objext" && ac_objext=o
13534
13535 # Determine commands to create old-style static archives.
13536 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13537 old_postinstall_cmds='chmod 644 $oldlib'
13538 old_postuninstall_cmds=
13539
13540 if test -n "$RANLIB"; then
13541   case $host_os in
13542   openbsd*)
13543     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13544     ;;
13545   *)
13546     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13547     ;;
13548   esac
13549   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13550 fi
13551
13552 for cc_temp in $compiler""; do
13553   case $cc_temp in
13554     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13555     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13556     \-*) ;;
13557     *) break;;
13558   esac
13559 done
13560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13561
13562
13563 # Only perform the check for file, if the check method requires it
13564 case $deplibs_check_method in
13565 file_magic*)
13566   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13567     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13568 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
13569 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13570   echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572   case $MAGIC_CMD in
13573 [\\/*] |  ?:[\\/]*)
13574   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13575   ;;
13576 *)
13577   lt_save_MAGIC_CMD="$MAGIC_CMD"
13578   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13579   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13580   for ac_dir in $ac_dummy; do
13581     IFS="$lt_save_ifs"
13582     test -z "$ac_dir" && ac_dir=.
13583     if test -f $ac_dir/${ac_tool_prefix}file; then
13584       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13585       if test -n "$file_magic_test_file"; then
13586         case $deplibs_check_method in
13587         "file_magic "*)
13588           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13589           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13590           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13591             $EGREP "$file_magic_regex" > /dev/null; then
13592             :
13593           else
13594             cat <<EOF 1>&2
13595
13596 *** Warning: the command libtool uses to detect shared libraries,
13597 *** $file_magic_cmd, produces output that libtool cannot recognize.
13598 *** The result is that libtool may fail to recognize shared libraries
13599 *** as such.  This will affect the creation of libtool libraries that
13600 *** depend on shared libraries, but programs linked with such libtool
13601 *** libraries will work regardless of this problem.  Nevertheless, you
13602 *** may want to report the problem to your system manager and/or to
13603 *** bug-libtool@gnu.org
13604
13605 EOF
13606           fi ;;
13607         esac
13608       fi
13609       break
13610     fi
13611   done
13612   IFS="$lt_save_ifs"
13613   MAGIC_CMD="$lt_save_MAGIC_CMD"
13614   ;;
13615 esac
13616 fi
13617
13618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13619 if test -n "$MAGIC_CMD"; then
13620   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13621 echo "${ECHO_T}$MAGIC_CMD" >&6
13622 else
13623   echo "$as_me:$LINENO: result: no" >&5
13624 echo "${ECHO_T}no" >&6
13625 fi
13626
13627 if test -z "$lt_cv_path_MAGIC_CMD"; then
13628   if test -n "$ac_tool_prefix"; then
13629     echo "$as_me:$LINENO: checking for file" >&5
13630 echo $ECHO_N "checking for file... $ECHO_C" >&6
13631 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13632   echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634   case $MAGIC_CMD in
13635 [\\/*] |  ?:[\\/]*)
13636   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13637   ;;
13638 *)
13639   lt_save_MAGIC_CMD="$MAGIC_CMD"
13640   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13641   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13642   for ac_dir in $ac_dummy; do
13643     IFS="$lt_save_ifs"
13644     test -z "$ac_dir" && ac_dir=.
13645     if test -f $ac_dir/file; then
13646       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13647       if test -n "$file_magic_test_file"; then
13648         case $deplibs_check_method in
13649         "file_magic "*)
13650           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13651           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13652           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13653             $EGREP "$file_magic_regex" > /dev/null; then
13654             :
13655           else
13656             cat <<EOF 1>&2
13657
13658 *** Warning: the command libtool uses to detect shared libraries,
13659 *** $file_magic_cmd, produces output that libtool cannot recognize.
13660 *** The result is that libtool may fail to recognize shared libraries
13661 *** as such.  This will affect the creation of libtool libraries that
13662 *** depend on shared libraries, but programs linked with such libtool
13663 *** libraries will work regardless of this problem.  Nevertheless, you
13664 *** may want to report the problem to your system manager and/or to
13665 *** bug-libtool@gnu.org
13666
13667 EOF
13668           fi ;;
13669         esac
13670       fi
13671       break
13672     fi
13673   done
13674   IFS="$lt_save_ifs"
13675   MAGIC_CMD="$lt_save_MAGIC_CMD"
13676   ;;
13677 esac
13678 fi
13679
13680 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13681 if test -n "$MAGIC_CMD"; then
13682   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13683 echo "${ECHO_T}$MAGIC_CMD" >&6
13684 else
13685   echo "$as_me:$LINENO: result: no" >&5
13686 echo "${ECHO_T}no" >&6
13687 fi
13688
13689   else
13690     MAGIC_CMD=:
13691   fi
13692 fi
13693
13694   fi
13695   ;;
13696 esac
13697
13698 enable_dlopen=no
13699 enable_win32_dll=no
13700
13701 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
13702 if test "${enable_libtool_lock+set}" = set; then
13703   enableval="$enable_libtool_lock"
13704
13705 fi;
13706 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13707
13708
13709 # Check whether --with-pic or --without-pic was given.
13710 if test "${with_pic+set}" = set; then
13711   withval="$with_pic"
13712   pic_mode="$withval"
13713 else
13714   pic_mode=default
13715 fi;
13716 test -z "$pic_mode" && pic_mode=default
13717
13718 # Use C for the default configuration in the libtool script
13719 tagname=
13720 lt_save_CC="$CC"
13721 ac_ext=c
13722 ac_cpp='$CPP $CPPFLAGS'
13723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13726
13727
13728 # Source file extension for C test sources.
13729 ac_ext=c
13730
13731 # Object file extension for compiled C test sources.
13732 objext=o
13733 objext=$objext
13734
13735 # Code to be used in simple compile tests
13736 lt_simple_compile_test_code="int some_variable = 0;\n"
13737
13738 # Code to be used in simple link tests
13739 lt_simple_link_test_code='int main(){return(0);}\n'
13740
13741
13742 # If no C compiler was specified, use CC.
13743 LTCC=${LTCC-"$CC"}
13744
13745 # If no C compiler flags were specified, use CFLAGS.
13746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13747
13748 # Allow CC to be a program name with arguments.
13749 compiler=$CC
13750
13751
13752 # save warnings/boilerplate of simple test code
13753 ac_outfile=conftest.$ac_objext
13754 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13755 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13756 _lt_compiler_boilerplate=`cat conftest.err`
13757 $rm conftest*
13758
13759 ac_outfile=conftest.$ac_objext
13760 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13761 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13762 _lt_linker_boilerplate=`cat conftest.err`
13763 $rm conftest*
13764
13765
13766
13767 lt_prog_compiler_no_builtin_flag=
13768
13769 if test "$GCC" = yes; then
13770   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13771
13772
13773 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13774 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
13775 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13776   echo $ECHO_N "(cached) $ECHO_C" >&6
13777 else
13778   lt_cv_prog_compiler_rtti_exceptions=no
13779   ac_outfile=conftest.$ac_objext
13780    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13781    lt_compiler_flag="-fno-rtti -fno-exceptions"
13782    # Insert the option either (1) after the last *FLAGS variable, or
13783    # (2) before a word containing "conftest.", or (3) at the end.
13784    # Note that $ac_compile itself does not contain backslashes and begins
13785    # with a dollar sign (not a hyphen), so the echo should work correctly.
13786    # The option is referenced via a variable to avoid confusing sed.
13787    lt_compile=`echo "$ac_compile" | $SED \
13788    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13789    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13790    -e 's:$: $lt_compiler_flag:'`
13791    (eval echo "\"\$as_me:13791: $lt_compile\"" >&5)
13792    (eval "$lt_compile" 2>conftest.err)
13793    ac_status=$?
13794    cat conftest.err >&5
13795    echo "$as_me:13795: \$? = $ac_status" >&5
13796    if (exit $ac_status) && test -s "$ac_outfile"; then
13797      # The compiler can only warn and ignore the option if not recognized
13798      # So say no if there are warnings other than the usual output.
13799      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13800      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13801      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13802        lt_cv_prog_compiler_rtti_exceptions=yes
13803      fi
13804    fi
13805    $rm conftest*
13806
13807 fi
13808 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13809 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
13810
13811 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13812     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13813 else
13814     :
13815 fi
13816
13817 fi
13818
13819 lt_prog_compiler_wl=
13820 lt_prog_compiler_pic=
13821 lt_prog_compiler_static=
13822
13823 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13824 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13825
13826   if test "$GCC" = yes; then
13827     lt_prog_compiler_wl='-Wl,'
13828     lt_prog_compiler_static='-static'
13829
13830     case $host_os in
13831       aix*)
13832       # All AIX code is PIC.
13833       if test "$host_cpu" = ia64; then
13834         # AIX 5 now supports IA64 processor
13835         lt_prog_compiler_static='-Bstatic'
13836       fi
13837       ;;
13838
13839     amigaos*)
13840       # FIXME: we need at least 68020 code to build shared libraries, but
13841       # adding the `-m68020' flag to GCC prevents building anything better,
13842       # like `-m68040'.
13843       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13844       ;;
13845
13846     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13847       # PIC is the default for these OSes.
13848       ;;
13849
13850     mingw* | pw32* | os2*)
13851       # This hack is so that the source file can tell whether it is being
13852       # built for inclusion in a dll (and should export symbols for example).
13853       lt_prog_compiler_pic='-DDLL_EXPORT'
13854       ;;
13855
13856     darwin* | rhapsody*)
13857       # PIC is the default on this platform
13858       # Common symbols not allowed in MH_DYLIB files
13859       lt_prog_compiler_pic='-fno-common'
13860       ;;
13861
13862     interix3*)
13863       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13864       # Instead, we relocate shared libraries at runtime.
13865       ;;
13866
13867     msdosdjgpp*)
13868       # Just because we use GCC doesn't mean we suddenly get shared libraries
13869       # on systems that don't support them.
13870       lt_prog_compiler_can_build_shared=no
13871       enable_shared=no
13872       ;;
13873
13874     sysv4*MP*)
13875       if test -d /usr/nec; then
13876         lt_prog_compiler_pic=-Kconform_pic
13877       fi
13878       ;;
13879
13880     hpux*)
13881       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13882       # not for PA HP-UX.
13883       case $host_cpu in
13884       hppa*64*|ia64*)
13885         # +Z the default
13886         ;;
13887       *)
13888         lt_prog_compiler_pic='-fPIC'
13889         ;;
13890       esac
13891       ;;
13892
13893     *)
13894       lt_prog_compiler_pic='-fPIC'
13895       ;;
13896     esac
13897   else
13898     # PORTME Check for flag to pass linker flags through the system compiler.
13899     case $host_os in
13900     aix*)
13901       lt_prog_compiler_wl='-Wl,'
13902       if test "$host_cpu" = ia64; then
13903         # AIX 5 now supports IA64 processor
13904         lt_prog_compiler_static='-Bstatic'
13905       else
13906         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13907       fi
13908       ;;
13909       darwin*)
13910         # PIC is the default on this platform
13911         # Common symbols not allowed in MH_DYLIB files
13912        case $cc_basename in
13913          xlc*)
13914          lt_prog_compiler_pic='-qnocommon'
13915          lt_prog_compiler_wl='-Wl,'
13916          ;;
13917        esac
13918        ;;
13919
13920     mingw* | pw32* | os2*)
13921       # This hack is so that the source file can tell whether it is being
13922       # built for inclusion in a dll (and should export symbols for example).
13923       lt_prog_compiler_pic='-DDLL_EXPORT'
13924       ;;
13925
13926     hpux9* | hpux10* | hpux11*)
13927       lt_prog_compiler_wl='-Wl,'
13928       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13929       # not for PA HP-UX.
13930       case $host_cpu in
13931       hppa*64*|ia64*)
13932         # +Z the default
13933         ;;
13934       *)
13935         lt_prog_compiler_pic='+Z'
13936         ;;
13937       esac
13938       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13939       lt_prog_compiler_static='${wl}-a ${wl}archive'
13940       ;;
13941
13942     irix5* | irix6* | nonstopux*)
13943       lt_prog_compiler_wl='-Wl,'
13944       # PIC (with -KPIC) is the default.
13945       lt_prog_compiler_static='-non_shared'
13946       ;;
13947
13948     newsos6)
13949       lt_prog_compiler_pic='-KPIC'
13950       lt_prog_compiler_static='-Bstatic'
13951       ;;
13952
13953     linux*)
13954       case $cc_basename in
13955       icc* | ecc*)
13956         lt_prog_compiler_wl='-Wl,'
13957         lt_prog_compiler_pic='-KPIC'
13958         lt_prog_compiler_static='-static'
13959         ;;
13960       pgcc* | pgf77* | pgf90* | pgf95*)
13961         # Portland Group compilers (*not* the Pentium gcc compiler,
13962         # which looks to be a dead project)
13963         lt_prog_compiler_wl='-Wl,'
13964         lt_prog_compiler_pic='-fpic'
13965         lt_prog_compiler_static='-Bstatic'
13966         ;;
13967       ccc*)
13968         lt_prog_compiler_wl='-Wl,'
13969         # All Alpha code is PIC.
13970         lt_prog_compiler_static='-non_shared'
13971         ;;
13972       esac
13973       ;;
13974
13975     osf3* | osf4* | osf5*)
13976       lt_prog_compiler_wl='-Wl,'
13977       # All OSF/1 code is PIC.
13978       lt_prog_compiler_static='-non_shared'
13979       ;;
13980
13981     solaris*)
13982       lt_prog_compiler_pic='-KPIC'
13983       lt_prog_compiler_static='-Bstatic'
13984       case $cc_basename in
13985       f77* | f90* | f95*)
13986         lt_prog_compiler_wl='-Qoption ld ';;
13987       *)
13988         lt_prog_compiler_wl='-Wl,';;
13989       esac
13990       ;;
13991
13992     sunos4*)
13993       lt_prog_compiler_wl='-Qoption ld '
13994       lt_prog_compiler_pic='-PIC'
13995       lt_prog_compiler_static='-Bstatic'
13996       ;;
13997
13998     sysv4 | sysv4.2uw2* | sysv4.3*)
13999       lt_prog_compiler_wl='-Wl,'
14000       lt_prog_compiler_pic='-KPIC'
14001       lt_prog_compiler_static='-Bstatic'
14002       ;;
14003
14004     sysv4*MP*)
14005       if test -d /usr/nec ;then
14006         lt_prog_compiler_pic='-Kconform_pic'
14007         lt_prog_compiler_static='-Bstatic'
14008       fi
14009       ;;
14010
14011     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14012       lt_prog_compiler_wl='-Wl,'
14013       lt_prog_compiler_pic='-KPIC'
14014       lt_prog_compiler_static='-Bstatic'
14015       ;;
14016
14017     unicos*)
14018       lt_prog_compiler_wl='-Wl,'
14019       lt_prog_compiler_can_build_shared=no
14020       ;;
14021
14022     uts4*)
14023       lt_prog_compiler_pic='-pic'
14024       lt_prog_compiler_static='-Bstatic'
14025       ;;
14026
14027     *)
14028       lt_prog_compiler_can_build_shared=no
14029       ;;
14030     esac
14031   fi
14032
14033 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14034 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
14035
14036 #
14037 # Check to make sure the PIC flag actually works.
14038 #
14039 if test -n "$lt_prog_compiler_pic"; then
14040
14041 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14042 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
14043 if test "${lt_prog_compiler_pic_works+set}" = set; then
14044   echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046   lt_prog_compiler_pic_works=no
14047   ac_outfile=conftest.$ac_objext
14048    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14049    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14050    # Insert the option either (1) after the last *FLAGS variable, or
14051    # (2) before a word containing "conftest.", or (3) at the end.
14052    # Note that $ac_compile itself does not contain backslashes and begins
14053    # with a dollar sign (not a hyphen), so the echo should work correctly.
14054    # The option is referenced via a variable to avoid confusing sed.
14055    lt_compile=`echo "$ac_compile" | $SED \
14056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14058    -e 's:$: $lt_compiler_flag:'`
14059    (eval echo "\"\$as_me:14059: $lt_compile\"" >&5)
14060    (eval "$lt_compile" 2>conftest.err)
14061    ac_status=$?
14062    cat conftest.err >&5
14063    echo "$as_me:14063: \$? = $ac_status" >&5
14064    if (exit $ac_status) && test -s "$ac_outfile"; then
14065      # The compiler can only warn and ignore the option if not recognized
14066      # So say no if there are warnings other than the usual output.
14067      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14068      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14069      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14070        lt_prog_compiler_pic_works=yes
14071      fi
14072    fi
14073    $rm conftest*
14074
14075 fi
14076 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14077 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
14078
14079 if test x"$lt_prog_compiler_pic_works" = xyes; then
14080     case $lt_prog_compiler_pic in
14081      "" | " "*) ;;
14082      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14083      esac
14084 else
14085     lt_prog_compiler_pic=
14086      lt_prog_compiler_can_build_shared=no
14087 fi
14088
14089 fi
14090 case $host_os in
14091   # For platforms which do not support PIC, -DPIC is meaningless:
14092   *djgpp*)
14093     lt_prog_compiler_pic=
14094     ;;
14095   *)
14096     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14097     ;;
14098 esac
14099
14100 #
14101 # Check to make sure the static flag actually works.
14102 #
14103 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14104 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14105 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14106 if test "${lt_prog_compiler_static_works+set}" = set; then
14107   echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109   lt_prog_compiler_static_works=no
14110    save_LDFLAGS="$LDFLAGS"
14111    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14112    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14113    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14114      # The linker can only warn and ignore the option if not recognized
14115      # So say no if there are warnings
14116      if test -s conftest.err; then
14117        # Append any errors to the config.log.
14118        cat conftest.err 1>&5
14119        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14120        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14121        if diff conftest.exp conftest.er2 >/dev/null; then
14122          lt_prog_compiler_static_works=yes
14123        fi
14124      else
14125        lt_prog_compiler_static_works=yes
14126      fi
14127    fi
14128    $rm conftest*
14129    LDFLAGS="$save_LDFLAGS"
14130
14131 fi
14132 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14133 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
14134
14135 if test x"$lt_prog_compiler_static_works" = xyes; then
14136     :
14137 else
14138     lt_prog_compiler_static=
14139 fi
14140
14141
14142 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14143 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14144 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14145   echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147   lt_cv_prog_compiler_c_o=no
14148    $rm -r conftest 2>/dev/null
14149    mkdir conftest
14150    cd conftest
14151    mkdir out
14152    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14153
14154    lt_compiler_flag="-o out/conftest2.$ac_objext"
14155    # Insert the option either (1) after the last *FLAGS variable, or
14156    # (2) before a word containing "conftest.", or (3) at the end.
14157    # Note that $ac_compile itself does not contain backslashes and begins
14158    # with a dollar sign (not a hyphen), so the echo should work correctly.
14159    lt_compile=`echo "$ac_compile" | $SED \
14160    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14161    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14162    -e 's:$: $lt_compiler_flag:'`
14163    (eval echo "\"\$as_me:14163: $lt_compile\"" >&5)
14164    (eval "$lt_compile" 2>out/conftest.err)
14165    ac_status=$?
14166    cat out/conftest.err >&5
14167    echo "$as_me:14167: \$? = $ac_status" >&5
14168    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14169    then
14170      # The compiler can only warn and ignore the option if not recognized
14171      # So say no if there are warnings
14172      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14173      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14174      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14175        lt_cv_prog_compiler_c_o=yes
14176      fi
14177    fi
14178    chmod u+w . 2>&5
14179    $rm conftest*
14180    # SGI C++ compiler will create directory out/ii_files/ for
14181    # template instantiation
14182    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14183    $rm out/* && rmdir out
14184    cd ..
14185    rmdir conftest
14186    $rm conftest*
14187
14188 fi
14189 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14190 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
14191
14192
14193 hard_links="nottested"
14194 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14195   # do not overwrite the value of need_locks provided by the user
14196   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14197 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14198   hard_links=yes
14199   $rm conftest*
14200   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14201   touch conftest.a
14202   ln conftest.a conftest.b 2>&5 || hard_links=no
14203   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14204   echo "$as_me:$LINENO: result: $hard_links" >&5
14205 echo "${ECHO_T}$hard_links" >&6
14206   if test "$hard_links" = no; then
14207     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14208 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14209     need_locks=warn
14210   fi
14211 else
14212   need_locks=no
14213 fi
14214
14215 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14217
14218   runpath_var=
14219   allow_undefined_flag=
14220   enable_shared_with_static_runtimes=no
14221   archive_cmds=
14222   archive_expsym_cmds=
14223   old_archive_From_new_cmds=
14224   old_archive_from_expsyms_cmds=
14225   export_dynamic_flag_spec=
14226   whole_archive_flag_spec=
14227   thread_safe_flag_spec=
14228   hardcode_libdir_flag_spec=
14229   hardcode_libdir_flag_spec_ld=
14230   hardcode_libdir_separator=
14231   hardcode_direct=no
14232   hardcode_minus_L=no
14233   hardcode_shlibpath_var=unsupported
14234   link_all_deplibs=unknown
14235   hardcode_automatic=no
14236   module_cmds=
14237   module_expsym_cmds=
14238   always_export_symbols=no
14239   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14240   # include_expsyms should be a list of space-separated symbols to be *always*
14241   # included in the symbol list
14242   include_expsyms=
14243   # exclude_expsyms can be an extended regexp of symbols to exclude
14244   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14245   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14246   # as well as any symbol that contains `d'.
14247   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14248   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14249   # platforms (ab)use it in PIC code, but their linkers get confused if
14250   # the symbol is explicitly referenced.  Since portable code cannot
14251   # rely on this symbol name, it's probably fine to never include it in
14252   # preloaded symbol tables.
14253   extract_expsyms_cmds=
14254   # Just being paranoid about ensuring that cc_basename is set.
14255   for cc_temp in $compiler""; do
14256   case $cc_temp in
14257     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14258     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14259     \-*) ;;
14260     *) break;;
14261   esac
14262 done
14263 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14264
14265   case $host_os in
14266   cygwin* | mingw* | pw32*)
14267     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14268     # When not using gcc, we currently assume that we are using
14269     # Microsoft Visual C++.
14270     if test "$GCC" != yes; then
14271       with_gnu_ld=no
14272     fi
14273     ;;
14274   interix*)
14275     # we just hope/assume this is gcc and not c89 (= MSVC++)
14276     with_gnu_ld=yes
14277     ;;
14278   openbsd*)
14279     with_gnu_ld=no
14280     ;;
14281   esac
14282
14283   ld_shlibs=yes
14284   if test "$with_gnu_ld" = yes; then
14285     # If archive_cmds runs LD, not CC, wlarc should be empty
14286     wlarc='${wl}'
14287
14288     # Set some defaults for GNU ld with shared library support. These
14289     # are reset later if shared libraries are not supported. Putting them
14290     # here allows them to be overridden if necessary.
14291     runpath_var=LD_RUN_PATH
14292     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14293     export_dynamic_flag_spec='${wl}--export-dynamic'
14294     # ancient GNU ld didn't support --whole-archive et. al.
14295     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14296         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14297       else
14298         whole_archive_flag_spec=
14299     fi
14300     supports_anon_versioning=no
14301     case `$LD -v 2>/dev/null` in
14302       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14303       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14304       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14305       *\ 2.11.*) ;; # other 2.11 versions
14306       *) supports_anon_versioning=yes ;;
14307     esac
14308
14309     # See if GNU ld supports shared libraries.
14310     case $host_os in
14311     aix3* | aix4* | aix5*)
14312       # On AIX/PPC, the GNU linker is very broken
14313       if test "$host_cpu" != ia64; then
14314         ld_shlibs=no
14315         cat <<EOF 1>&2
14316
14317 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14318 *** to be unable to reliably create shared libraries on AIX.
14319 *** Therefore, libtool is disabling shared libraries support.  If you
14320 *** really care for shared libraries, you may want to modify your PATH
14321 *** so that a non-GNU linker is found, and then restart.
14322
14323 EOF
14324       fi
14325       ;;
14326
14327     amigaos*)
14328       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)'
14329       hardcode_libdir_flag_spec='-L$libdir'
14330       hardcode_minus_L=yes
14331
14332       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14333       # that the semantics of dynamic libraries on AmigaOS, at least up
14334       # to version 4, is to share data among multiple programs linked
14335       # with the same dynamic library.  Since this doesn't match the
14336       # behavior of shared libraries on other platforms, we can't use
14337       # them.
14338       ld_shlibs=no
14339       ;;
14340
14341     beos*)
14342       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14343         allow_undefined_flag=unsupported
14344         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14345         # support --undefined.  This deserves some investigation.  FIXME
14346         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14347       else
14348         ld_shlibs=no
14349       fi
14350       ;;
14351
14352     cygwin* | mingw* | pw32*)
14353       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14354       # as there is no search path for DLLs.
14355       hardcode_libdir_flag_spec='-L$libdir'
14356       allow_undefined_flag=unsupported
14357       always_export_symbols=no
14358       enable_shared_with_static_runtimes=yes
14359       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14360
14361       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14362         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14363         # If the export-symbols file already is a .def file (1st line
14364         # is EXPORTS), use it as is; otherwise, prepend...
14365         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14366           cp $export_symbols $output_objdir/$soname.def;
14367         else
14368           echo EXPORTS > $output_objdir/$soname.def;
14369           cat $export_symbols >> $output_objdir/$soname.def;
14370         fi~
14371         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14372       else
14373         ld_shlibs=no
14374       fi
14375       ;;
14376
14377     interix3*)
14378       hardcode_direct=no
14379       hardcode_shlibpath_var=no
14380       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14381       export_dynamic_flag_spec='${wl}-E'
14382       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14383       # Instead, shared libraries are loaded at an image base (0x10000000 by
14384       # default) and relocated if they conflict, which is a slow very memory
14385       # consuming and fragmenting process.  To avoid this, we pick a random,
14386       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14387       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14388       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14389       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'
14390       ;;
14391
14392     linux*)
14393       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14394         tmp_addflag=
14395         case $cc_basename,$host_cpu in
14396         pgcc*)                          # Portland Group C compiler
14397           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'
14398           tmp_addflag=' $pic_flag'
14399           ;;
14400         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14401           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'
14402           tmp_addflag=' $pic_flag -Mnomain' ;;
14403         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14404           tmp_addflag=' -i_dynamic' ;;
14405         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14406           tmp_addflag=' -i_dynamic -nofor_main' ;;
14407         ifc* | ifort*)                  # Intel Fortran compiler
14408           tmp_addflag=' -nofor_main' ;;
14409         esac
14410         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14411
14412         if test $supports_anon_versioning = yes; then
14413           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14414   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14415   $echo "local: *; };" >> $output_objdir/$libname.ver~
14416           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14417         fi
14418       else
14419         ld_shlibs=no
14420       fi
14421       ;;
14422
14423     netbsd*)
14424       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14425         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14426         wlarc=
14427       else
14428         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14429         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14430       fi
14431       ;;
14432
14433     solaris*)
14434       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14435         ld_shlibs=no
14436         cat <<EOF 1>&2
14437
14438 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14439 *** create shared libraries on Solaris systems.  Therefore, libtool
14440 *** is disabling shared libraries support.  We urge you to upgrade GNU
14441 *** binutils to release 2.9.1 or newer.  Another option is to modify
14442 *** your PATH or compiler configuration so that the native linker is
14443 *** used, and then restart.
14444
14445 EOF
14446       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14447         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14448         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14449       else
14450         ld_shlibs=no
14451       fi
14452       ;;
14453
14454     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14455       case `$LD -v 2>&1` in
14456         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14457         ld_shlibs=no
14458         cat <<_LT_EOF 1>&2
14459
14460 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14461 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14462 *** is disabling shared libraries support.  We urge you to upgrade GNU
14463 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14464 *** your PATH or compiler configuration so that the native linker is
14465 *** used, and then restart.
14466
14467 _LT_EOF
14468         ;;
14469         *)
14470           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14471             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14472             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14473             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14474           else
14475             ld_shlibs=no
14476           fi
14477         ;;
14478       esac
14479       ;;
14480
14481     sunos4*)
14482       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14483       wlarc=
14484       hardcode_direct=yes
14485       hardcode_shlibpath_var=no
14486       ;;
14487
14488     *)
14489       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14490         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14491         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14492       else
14493         ld_shlibs=no
14494       fi
14495       ;;
14496     esac
14497
14498     if test "$ld_shlibs" = no; then
14499       runpath_var=
14500       hardcode_libdir_flag_spec=
14501       export_dynamic_flag_spec=
14502       whole_archive_flag_spec=
14503     fi
14504   else
14505     # PORTME fill in a description of your system's linker (not GNU ld)
14506     case $host_os in
14507     aix3*)
14508       allow_undefined_flag=unsupported
14509       always_export_symbols=yes
14510       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'
14511       # Note: this linker hardcodes the directories in LIBPATH if there
14512       # are no directories specified by -L.
14513       hardcode_minus_L=yes
14514       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14515         # Neither direct hardcoding nor static linking is supported with a
14516         # broken collect2.
14517         hardcode_direct=unsupported
14518       fi
14519       ;;
14520
14521     aix4* | aix5*)
14522       if test "$host_cpu" = ia64; then
14523         # On IA64, the linker does run time linking by default, so we don't
14524         # have to do anything special.
14525         aix_use_runtimelinking=no
14526         exp_sym_flag='-Bexport'
14527         no_entry_flag=""
14528       else
14529         # If we're using GNU nm, then we don't want the "-C" option.
14530         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14531         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14532           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'
14533         else
14534           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'
14535         fi
14536         aix_use_runtimelinking=no
14537
14538         # Test if we are trying to use run time linking or normal
14539         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14540         # need to do runtime linking.
14541         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14542           for ld_flag in $LDFLAGS; do
14543           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14544             aix_use_runtimelinking=yes
14545             break
14546           fi
14547           done
14548           ;;
14549         esac
14550
14551         exp_sym_flag='-bexport'
14552         no_entry_flag='-bnoentry'
14553       fi
14554
14555       # When large executables or shared objects are built, AIX ld can
14556       # have problems creating the table of contents.  If linking a library
14557       # or program results in "error TOC overflow" add -mminimal-toc to
14558       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14559       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14560
14561       archive_cmds=''
14562       hardcode_direct=yes
14563       hardcode_libdir_separator=':'
14564       link_all_deplibs=yes
14565
14566       if test "$GCC" = yes; then
14567         case $host_os in aix4.[012]|aix4.[012].*)
14568         # We only want to do this on AIX 4.2 and lower, the check
14569         # below for broken collect2 doesn't work under 4.3+
14570           collect2name=`${CC} -print-prog-name=collect2`
14571           if test -f "$collect2name" && \
14572            strings "$collect2name" | grep resolve_lib_name >/dev/null
14573           then
14574           # We have reworked collect2
14575           hardcode_direct=yes
14576           else
14577           # We have old collect2
14578           hardcode_direct=unsupported
14579           # It fails to find uninstalled libraries when the uninstalled
14580           # path is not listed in the libpath.  Setting hardcode_minus_L
14581           # to unsupported forces relinking
14582           hardcode_minus_L=yes
14583           hardcode_libdir_flag_spec='-L$libdir'
14584           hardcode_libdir_separator=
14585           fi
14586           ;;
14587         esac
14588         shared_flag='-shared'
14589         if test "$aix_use_runtimelinking" = yes; then
14590           shared_flag="$shared_flag "'${wl}-G'
14591         fi
14592       else
14593         # not using gcc
14594         if test "$host_cpu" = ia64; then
14595         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14596         # chokes on -Wl,-G. The following line is correct:
14597           shared_flag='-G'
14598         else
14599           if test "$aix_use_runtimelinking" = yes; then
14600             shared_flag='${wl}-G'
14601           else
14602             shared_flag='${wl}-bM:SRE'
14603           fi
14604         fi
14605       fi
14606
14607       # It seems that -bexpall does not export symbols beginning with
14608       # underscore (_), so it is better to generate a list of symbols to export.
14609       always_export_symbols=yes
14610       if test "$aix_use_runtimelinking" = yes; then
14611         # Warning - without using the other runtime loading flags (-brtl),
14612         # -berok will link without error, but may produce a broken library.
14613         allow_undefined_flag='-berok'
14614        # Determine the default libpath from the value encoded in an empty executable.
14615        cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h.  */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h.  */
14621
14622 int
14623 main ()
14624 {
14625
14626   ;
14627   return 0;
14628 }
14629 _ACEOF
14630 rm -f conftest.$ac_objext conftest$ac_exeext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14632   (eval $ac_link) 2>conftest.er1
14633   ac_status=$?
14634   grep -v '^ *+' conftest.er1 >conftest.err
14635   rm -f conftest.er1
14636   cat conftest.err >&5
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); } &&
14639          { ac_try='test -z "$ac_c_werror_flag"
14640                          || test ! -s conftest.err'
14641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642   (eval $ac_try) 2>&5
14643   ac_status=$?
14644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); }; } &&
14646          { ac_try='test -s conftest$ac_exeext'
14647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648   (eval $ac_try) 2>&5
14649   ac_status=$?
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; }; then
14652
14653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14654 }'`
14655 # Check for a 64-bit object if we didn't find anything.
14656 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; }
14657 }'`; fi
14658 else
14659   echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14661
14662 fi
14663 rm -f conftest.err conftest.$ac_objext \
14664       conftest$ac_exeext conftest.$ac_ext
14665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14666
14667        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14668         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"
14669        else
14670         if test "$host_cpu" = ia64; then
14671           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14672           allow_undefined_flag="-z nodefs"
14673           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"
14674         else
14675          # Determine the default libpath from the value encoded in an empty executable.
14676          cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h.  */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h.  */
14682
14683 int
14684 main ()
14685 {
14686
14687   ;
14688   return 0;
14689 }
14690 _ACEOF
14691 rm -f conftest.$ac_objext conftest$ac_exeext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14693   (eval $ac_link) 2>conftest.er1
14694   ac_status=$?
14695   grep -v '^ *+' conftest.er1 >conftest.err
14696   rm -f conftest.er1
14697   cat conftest.err >&5
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); } &&
14700          { ac_try='test -z "$ac_c_werror_flag"
14701                          || test ! -s conftest.err'
14702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703   (eval $ac_try) 2>&5
14704   ac_status=$?
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); }; } &&
14707          { ac_try='test -s conftest$ac_exeext'
14708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709   (eval $ac_try) 2>&5
14710   ac_status=$?
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); }; }; then
14713
14714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14715 }'`
14716 # Check for a 64-bit object if we didn't find anything.
14717 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; }
14718 }'`; fi
14719 else
14720   echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14722
14723 fi
14724 rm -f conftest.err conftest.$ac_objext \
14725       conftest$ac_exeext conftest.$ac_ext
14726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14727
14728          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14729           # Warning - without using the other run time loading flags,
14730           # -berok will link without error, but may produce a broken library.
14731           no_undefined_flag=' ${wl}-bernotok'
14732           allow_undefined_flag=' ${wl}-berok'
14733           # Exported symbols can be pulled into shared objects from archives
14734           whole_archive_flag_spec='$convenience'
14735           archive_cmds_need_lc=yes
14736           # This is similar to how AIX traditionally builds its shared libraries.
14737           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'
14738         fi
14739       fi
14740       ;;
14741
14742     amigaos*)
14743       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)'
14744       hardcode_libdir_flag_spec='-L$libdir'
14745       hardcode_minus_L=yes
14746       # see comment about different semantics on the GNU ld section
14747       ld_shlibs=no
14748       ;;
14749
14750     bsdi[45]*)
14751       export_dynamic_flag_spec=-rdynamic
14752       ;;
14753
14754     cygwin* | mingw* | pw32*)
14755       # When not using gcc, we currently assume that we are using
14756       # Microsoft Visual C++.
14757       # hardcode_libdir_flag_spec is actually meaningless, as there is
14758       # no search path for DLLs.
14759       hardcode_libdir_flag_spec=' '
14760       allow_undefined_flag=unsupported
14761       # Tell ltmain to make .lib files, not .a files.
14762       libext=lib
14763       # Tell ltmain to make .dll files, not .so files.
14764       shrext_cmds=".dll"
14765       # FIXME: Setting linknames here is a bad hack.
14766       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14767       # The linker will automatically build a .lib file if we build a DLL.
14768       old_archive_From_new_cmds='true'
14769       # FIXME: Should let the user specify the lib program.
14770       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14771       fix_srcfile_path='`cygpath -w "$srcfile"`'
14772       enable_shared_with_static_runtimes=yes
14773       ;;
14774
14775     darwin* | rhapsody*)
14776       case $host_os in
14777         rhapsody* | darwin1.[012])
14778          allow_undefined_flag='${wl}-undefined ${wl}suppress'
14779          ;;
14780        *) # Darwin 1.3 on
14781          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14782            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14783          else
14784            case ${MACOSX_DEPLOYMENT_TARGET} in
14785              10.[012])
14786                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14787                ;;
14788              10.*)
14789                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14790                ;;
14791            esac
14792          fi
14793          ;;
14794       esac
14795       archive_cmds_need_lc=no
14796       hardcode_direct=no
14797       hardcode_automatic=yes
14798       hardcode_shlibpath_var=unsupported
14799       whole_archive_flag_spec=''
14800       link_all_deplibs=yes
14801     if test "$GCC" = yes ; then
14802         output_verbose_link_cmd='echo'
14803         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14804       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14805       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14806       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}'
14807       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}'
14808     else
14809       case $cc_basename in
14810         xlc*)
14811          output_verbose_link_cmd='echo'
14812          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14813          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14814           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14815          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}'
14816           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}'
14817           ;;
14818        *)
14819          ld_shlibs=no
14820           ;;
14821       esac
14822     fi
14823       ;;
14824
14825     dgux*)
14826       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14827       hardcode_libdir_flag_spec='-L$libdir'
14828       hardcode_shlibpath_var=no
14829       ;;
14830
14831     freebsd1*)
14832       ld_shlibs=no
14833       ;;
14834
14835     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14836     # support.  Future versions do this automatically, but an explicit c++rt0.o
14837     # does not break anything, and helps significantly (at the cost of a little
14838     # extra space).
14839     freebsd2.2*)
14840       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14841       hardcode_libdir_flag_spec='-R$libdir'
14842       hardcode_direct=yes
14843       hardcode_shlibpath_var=no
14844       ;;
14845
14846     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14847     freebsd2*)
14848       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14849       hardcode_direct=yes
14850       hardcode_minus_L=yes
14851       hardcode_shlibpath_var=no
14852       ;;
14853
14854     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14855     freebsd* | kfreebsd*-gnu | dragonfly*)
14856       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14857       hardcode_libdir_flag_spec='-R$libdir'
14858       hardcode_direct=yes
14859       hardcode_shlibpath_var=no
14860       ;;
14861
14862     hpux9*)
14863       if test "$GCC" = yes; then
14864         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'
14865       else
14866         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'
14867       fi
14868       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14869       hardcode_libdir_separator=:
14870       hardcode_direct=yes
14871
14872       # hardcode_minus_L: Not really in the search PATH,
14873       # but as the default location of the library.
14874       hardcode_minus_L=yes
14875       export_dynamic_flag_spec='${wl}-E'
14876       ;;
14877
14878     hpux10*)
14879       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14880         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14881       else
14882         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14883       fi
14884       if test "$with_gnu_ld" = no; then
14885         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14886         hardcode_libdir_separator=:
14887
14888         hardcode_direct=yes
14889         export_dynamic_flag_spec='${wl}-E'
14890
14891         # hardcode_minus_L: Not really in the search PATH,
14892         # but as the default location of the library.
14893         hardcode_minus_L=yes
14894       fi
14895       ;;
14896
14897     hpux11*)
14898       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14899         case $host_cpu in
14900         hppa*64*)
14901           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14902           ;;
14903         ia64*)
14904           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14905           ;;
14906         *)
14907           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14908           ;;
14909         esac
14910       else
14911         case $host_cpu in
14912         hppa*64*)
14913           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14914           ;;
14915         ia64*)
14916           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14917           ;;
14918         *)
14919           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14920           ;;
14921         esac
14922       fi
14923       if test "$with_gnu_ld" = no; then
14924         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14925         hardcode_libdir_separator=:
14926
14927         case $host_cpu in
14928         hppa*64*|ia64*)
14929           hardcode_libdir_flag_spec_ld='+b $libdir'
14930           hardcode_direct=no
14931           hardcode_shlibpath_var=no
14932           ;;
14933         *)
14934           hardcode_direct=yes
14935           export_dynamic_flag_spec='${wl}-E'
14936
14937           # hardcode_minus_L: Not really in the search PATH,
14938           # but as the default location of the library.
14939           hardcode_minus_L=yes
14940           ;;
14941         esac
14942       fi
14943       ;;
14944
14945     irix5* | irix6* | nonstopux*)
14946       if test "$GCC" = yes; then
14947         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'
14948       else
14949         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'
14950         hardcode_libdir_flag_spec_ld='-rpath $libdir'
14951       fi
14952       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14953       hardcode_libdir_separator=:
14954       link_all_deplibs=yes
14955       ;;
14956
14957     netbsd*)
14958       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14959         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14960       else
14961         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14962       fi
14963       hardcode_libdir_flag_spec='-R$libdir'
14964       hardcode_direct=yes
14965       hardcode_shlibpath_var=no
14966       ;;
14967
14968     newsos6)
14969       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14970       hardcode_direct=yes
14971       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14972       hardcode_libdir_separator=:
14973       hardcode_shlibpath_var=no
14974       ;;
14975
14976     openbsd*)
14977       hardcode_direct=yes
14978       hardcode_shlibpath_var=no
14979       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14980         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14981         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14982         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14983         export_dynamic_flag_spec='${wl}-E'
14984       else
14985        case $host_os in
14986          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14987            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14988            hardcode_libdir_flag_spec='-R$libdir'
14989            ;;
14990          *)
14991            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14992            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14993            ;;
14994        esac
14995       fi
14996       ;;
14997
14998     os2*)
14999       hardcode_libdir_flag_spec='-L$libdir'
15000       hardcode_minus_L=yes
15001       allow_undefined_flag=unsupported
15002       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'
15003       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15004       ;;
15005
15006     osf3*)
15007       if test "$GCC" = yes; then
15008         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15009         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'
15010       else
15011         allow_undefined_flag=' -expect_unresolved \*'
15012         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'
15013       fi
15014       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15015       hardcode_libdir_separator=:
15016       ;;
15017
15018     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15019       if test "$GCC" = yes; then
15020         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15021         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'
15022         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15023       else
15024         allow_undefined_flag=' -expect_unresolved \*'
15025         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'
15026         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15027         $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'
15028
15029         # Both c and cxx compiler support -rpath directly
15030         hardcode_libdir_flag_spec='-rpath $libdir'
15031       fi
15032       hardcode_libdir_separator=:
15033       ;;
15034
15035     solaris*)
15036       no_undefined_flag=' -z text'
15037       if test "$GCC" = yes; then
15038         wlarc='${wl}'
15039         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15040         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15041           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15042       else
15043         wlarc=''
15044         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15045         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15046         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15047       fi
15048       hardcode_libdir_flag_spec='-R$libdir'
15049       hardcode_shlibpath_var=no
15050       case $host_os in
15051       solaris2.[0-5] | solaris2.[0-5].*) ;;
15052       *)
15053         # The compiler driver will combine linker options so we
15054         # cannot just pass the convience library names through
15055         # without $wl, iff we do not link with $LD.
15056         # Luckily, gcc supports the same syntax we need for Sun Studio.
15057         # Supported since Solaris 2.6 (maybe 2.5.1?)
15058         case $wlarc in
15059         '')
15060           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15061         *)
15062           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' ;;
15063         esac ;;
15064       esac
15065       link_all_deplibs=yes
15066       ;;
15067
15068     sunos4*)
15069       if test "x$host_vendor" = xsequent; then
15070         # Use $CC to link under sequent, because it throws in some extra .o
15071         # files that make .init and .fini sections work.
15072         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15073       else
15074         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15075       fi
15076       hardcode_libdir_flag_spec='-L$libdir'
15077       hardcode_direct=yes
15078       hardcode_minus_L=yes
15079       hardcode_shlibpath_var=no
15080       ;;
15081
15082     sysv4)
15083       case $host_vendor in
15084         sni)
15085           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15086           hardcode_direct=yes # is this really true???
15087         ;;
15088         siemens)
15089           ## LD is ld it makes a PLAMLIB
15090           ## CC just makes a GrossModule.
15091           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15092           reload_cmds='$CC -r -o $output$reload_objs'
15093           hardcode_direct=no
15094         ;;
15095         motorola)
15096           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15097           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15098         ;;
15099       esac
15100       runpath_var='LD_RUN_PATH'
15101       hardcode_shlibpath_var=no
15102       ;;
15103
15104     sysv4.3*)
15105       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15106       hardcode_shlibpath_var=no
15107       export_dynamic_flag_spec='-Bexport'
15108       ;;
15109
15110     sysv4*MP*)
15111       if test -d /usr/nec; then
15112         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15113         hardcode_shlibpath_var=no
15114         runpath_var=LD_RUN_PATH
15115         hardcode_runpath_var=yes
15116         ld_shlibs=yes
15117       fi
15118       ;;
15119
15120     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15121       no_undefined_flag='${wl}-z,text'
15122       archive_cmds_need_lc=no
15123       hardcode_shlibpath_var=no
15124       runpath_var='LD_RUN_PATH'
15125
15126       if test "$GCC" = yes; then
15127         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15128         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15129       else
15130         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15131         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15132       fi
15133       ;;
15134
15135     sysv5* | sco3.2v5* | sco5v6*)
15136       # Note: We can NOT use -z defs as we might desire, because we do not
15137       # link with -lc, and that would cause any symbols used from libc to
15138       # always be unresolved, which means just about no library would
15139       # ever link correctly.  If we're not using GNU ld we use -z text
15140       # though, which does catch some bad symbols but isn't as heavy-handed
15141       # as -z defs.
15142       no_undefined_flag='${wl}-z,text'
15143       allow_undefined_flag='${wl}-z,nodefs'
15144       archive_cmds_need_lc=no
15145       hardcode_shlibpath_var=no
15146       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15147       hardcode_libdir_separator=':'
15148       link_all_deplibs=yes
15149       export_dynamic_flag_spec='${wl}-Bexport'
15150       runpath_var='LD_RUN_PATH'
15151
15152       if test "$GCC" = yes; then
15153         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15154         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15155       else
15156         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15157         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15158       fi
15159       ;;
15160
15161     uts4*)
15162       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15163       hardcode_libdir_flag_spec='-L$libdir'
15164       hardcode_shlibpath_var=no
15165       ;;
15166
15167     *)
15168       ld_shlibs=no
15169       ;;
15170     esac
15171   fi
15172
15173 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15174 echo "${ECHO_T}$ld_shlibs" >&6
15175 test "$ld_shlibs" = no && can_build_shared=no
15176
15177 #
15178 # Do we need to explicitly link libc?
15179 #
15180 case "x$archive_cmds_need_lc" in
15181 x|xyes)
15182   # Assume -lc should be added
15183   archive_cmds_need_lc=yes
15184
15185   if test "$enable_shared" = yes && test "$GCC" = yes; then
15186     case $archive_cmds in
15187     *'~'*)
15188       # FIXME: we may have to deal with multi-command sequences.
15189       ;;
15190     '$CC '*)
15191       # Test whether the compiler implicitly links with -lc since on some
15192       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15193       # to ld, don't add -lc before -lgcc.
15194       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15195 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15196       $rm conftest*
15197       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15198
15199       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15200   (eval $ac_compile) 2>&5
15201   ac_status=$?
15202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203   (exit $ac_status); } 2>conftest.err; then
15204         soname=conftest
15205         lib=conftest
15206         libobjs=conftest.$ac_objext
15207         deplibs=
15208         wl=$lt_prog_compiler_wl
15209         pic_flag=$lt_prog_compiler_pic
15210         compiler_flags=-v
15211         linker_flags=-v
15212         verstring=
15213         output_objdir=.
15214         libname=conftest
15215         lt_save_allow_undefined_flag=$allow_undefined_flag
15216         allow_undefined_flag=
15217         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15218   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15219   ac_status=$?
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); }
15222         then
15223           archive_cmds_need_lc=no
15224         else
15225           archive_cmds_need_lc=yes
15226         fi
15227         allow_undefined_flag=$lt_save_allow_undefined_flag
15228       else
15229         cat conftest.err 1>&5
15230       fi
15231       $rm conftest*
15232       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15233 echo "${ECHO_T}$archive_cmds_need_lc" >&6
15234       ;;
15235     esac
15236   fi
15237   ;;
15238 esac
15239
15240 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15241 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15242 library_names_spec=
15243 libname_spec='lib$name'
15244 soname_spec=
15245 shrext_cmds=".so"
15246 postinstall_cmds=
15247 postuninstall_cmds=
15248 finish_cmds=
15249 finish_eval=
15250 shlibpath_var=
15251 shlibpath_overrides_runpath=unknown
15252 version_type=none
15253 dynamic_linker="$host_os ld.so"
15254 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15255 if test "$GCC" = yes; then
15256   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15257   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15258     # if the path contains ";" then we assume it to be the separator
15259     # otherwise default to the standard path separator (i.e. ":") - it is
15260     # assumed that no part of a normal pathname contains ";" but that should
15261     # okay in the real world where ";" in dirpaths is itself problematic.
15262     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15263   else
15264     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15265   fi
15266 else
15267   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15268 fi
15269 need_lib_prefix=unknown
15270 hardcode_into_libs=no
15271
15272 # when you set need_version to no, make sure it does not cause -set_version
15273 # flags to be left without arguments
15274 need_version=unknown
15275
15276 case $host_os in
15277 aix3*)
15278   version_type=linux
15279   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15280   shlibpath_var=LIBPATH
15281
15282   # AIX 3 has no versioning support, so we append a major version to the name.
15283   soname_spec='${libname}${release}${shared_ext}$major'
15284   ;;
15285
15286 aix4* | aix5*)
15287   version_type=linux
15288   need_lib_prefix=no
15289   need_version=no
15290   hardcode_into_libs=yes
15291   if test "$host_cpu" = ia64; then
15292     # AIX 5 supports IA64
15293     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15294     shlibpath_var=LD_LIBRARY_PATH
15295   else
15296     # With GCC up to 2.95.x, collect2 would create an import file
15297     # for dependence libraries.  The import file would start with
15298     # the line `#! .'.  This would cause the generated library to
15299     # depend on `.', always an invalid library.  This was fixed in
15300     # development snapshots of GCC prior to 3.0.
15301     case $host_os in
15302       aix4 | aix4.[01] | aix4.[01].*)
15303       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15304            echo ' yes '
15305            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15306         :
15307       else
15308         can_build_shared=no
15309       fi
15310       ;;
15311     esac
15312     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15313     # soname into executable. Probably we can add versioning support to
15314     # collect2, so additional links can be useful in future.
15315     if test "$aix_use_runtimelinking" = yes; then
15316       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15317       # instead of lib<name>.a to let people know that these are not
15318       # typical AIX shared libraries.
15319       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15320     else
15321       # We preserve .a as extension for shared libraries through AIX4.2
15322       # and later when we are not doing run time linking.
15323       library_names_spec='${libname}${release}.a $libname.a'
15324       soname_spec='${libname}${release}${shared_ext}$major'
15325     fi
15326     shlibpath_var=LIBPATH
15327   fi
15328   ;;
15329
15330 amigaos*)
15331   library_names_spec='$libname.ixlibrary $libname.a'
15332   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15333   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'
15334   ;;
15335
15336 beos*)
15337   library_names_spec='${libname}${shared_ext}'
15338   dynamic_linker="$host_os ld.so"
15339   shlibpath_var=LIBRARY_PATH
15340   ;;
15341
15342 bsdi[45]*)
15343   version_type=linux
15344   need_version=no
15345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15346   soname_spec='${libname}${release}${shared_ext}$major'
15347   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15348   shlibpath_var=LD_LIBRARY_PATH
15349   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15350   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15351   # the default ld.so.conf also contains /usr/contrib/lib and
15352   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15353   # libtool to hard-code these into programs
15354   ;;
15355
15356 cygwin* | mingw* | pw32*)
15357   version_type=windows
15358   shrext_cmds=".dll"
15359   need_version=no
15360   need_lib_prefix=no
15361
15362   case $GCC,$host_os in
15363   yes,cygwin* | yes,mingw* | yes,pw32*)
15364     library_names_spec='$libname.dll.a'
15365     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15366     postinstall_cmds='base_file=`basename \${file}`~
15367       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15368       dldir=$destdir/`dirname \$dlpath`~
15369       test -d \$dldir || mkdir -p \$dldir~
15370       $install_prog $dir/$dlname \$dldir/$dlname~
15371       chmod a+x \$dldir/$dlname'
15372     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15373       dlpath=$dir/\$dldll~
15374        $rm \$dlpath'
15375     shlibpath_overrides_runpath=yes
15376
15377     case $host_os in
15378     cygwin*)
15379       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15380       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15381       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15382       ;;
15383     mingw*)
15384       # MinGW DLLs use traditional 'lib' prefix
15385       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15386       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15387       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15388         # It is most probably a Windows format PATH printed by
15389         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15390         # path with ; separators, and with drive letters. We can handle the
15391         # drive letters (cygwin fileutils understands them), so leave them,
15392         # especially as we might pass files found there to a mingw objdump,
15393         # which wouldn't understand a cygwinified path. Ahh.
15394         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15395       else
15396         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15397       fi
15398       ;;
15399     pw32*)
15400       # pw32 DLLs use 'pw' prefix rather than 'lib'
15401       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15402       ;;
15403     esac
15404     ;;
15405
15406   *)
15407     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15408     ;;
15409   esac
15410   dynamic_linker='Win32 ld.exe'
15411   # FIXME: first we should search . and the directory the executable is in
15412   shlibpath_var=PATH
15413   ;;
15414
15415 darwin* | rhapsody*)
15416   dynamic_linker="$host_os dyld"
15417   version_type=darwin
15418   need_lib_prefix=no
15419   need_version=no
15420   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15421   soname_spec='${libname}${release}${major}$shared_ext'
15422   shlibpath_overrides_runpath=yes
15423   shlibpath_var=DYLD_LIBRARY_PATH
15424   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15425   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15426   if test "$GCC" = yes; then
15427     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"`
15428   else
15429     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15430   fi
15431   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15432   ;;
15433
15434 dgux*)
15435   version_type=linux
15436   need_lib_prefix=no
15437   need_version=no
15438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15439   soname_spec='${libname}${release}${shared_ext}$major'
15440   shlibpath_var=LD_LIBRARY_PATH
15441   ;;
15442
15443 freebsd1*)
15444   dynamic_linker=no
15445   ;;
15446
15447 kfreebsd*-gnu)
15448   version_type=linux
15449   need_lib_prefix=no
15450   need_version=no
15451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15452   soname_spec='${libname}${release}${shared_ext}$major'
15453   shlibpath_var=LD_LIBRARY_PATH
15454   shlibpath_overrides_runpath=no
15455   hardcode_into_libs=yes
15456   dynamic_linker='GNU ld.so'
15457   ;;
15458
15459 freebsd* | dragonfly*)
15460   # DragonFly does not have aout.  When/if they implement a new
15461   # versioning mechanism, adjust this.
15462   if test -x /usr/bin/objformat; then
15463     objformat=`/usr/bin/objformat`
15464   else
15465     case $host_os in
15466     freebsd[123]*) objformat=aout ;;
15467     *) objformat=elf ;;
15468     esac
15469   fi
15470   version_type=freebsd-$objformat
15471   case $version_type in
15472     freebsd-elf*)
15473       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15474       need_version=no
15475       need_lib_prefix=no
15476       ;;
15477     freebsd-*)
15478       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15479       need_version=yes
15480       ;;
15481   esac
15482   shlibpath_var=LD_LIBRARY_PATH
15483   case $host_os in
15484   freebsd2*)
15485     shlibpath_overrides_runpath=yes
15486     ;;
15487   freebsd3.[01]* | freebsdelf3.[01]*)
15488     shlibpath_overrides_runpath=yes
15489     hardcode_into_libs=yes
15490     ;;
15491   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15492   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15493     shlibpath_overrides_runpath=no
15494     hardcode_into_libs=yes
15495     ;;
15496   freebsd*) # from 4.6 on
15497     shlibpath_overrides_runpath=yes
15498     hardcode_into_libs=yes
15499     ;;
15500   esac
15501   ;;
15502
15503 gnu*)
15504   version_type=linux
15505   need_lib_prefix=no
15506   need_version=no
15507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15508   soname_spec='${libname}${release}${shared_ext}$major'
15509   shlibpath_var=LD_LIBRARY_PATH
15510   hardcode_into_libs=yes
15511   ;;
15512
15513 hpux9* | hpux10* | hpux11*)
15514   # Give a soname corresponding to the major version so that dld.sl refuses to
15515   # link against other versions.
15516   version_type=sunos
15517   need_lib_prefix=no
15518   need_version=no
15519   case $host_cpu in
15520   ia64*)
15521     shrext_cmds='.so'
15522     hardcode_into_libs=yes
15523     dynamic_linker="$host_os dld.so"
15524     shlibpath_var=LD_LIBRARY_PATH
15525     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15527     soname_spec='${libname}${release}${shared_ext}$major'
15528     if test "X$HPUX_IA64_MODE" = X32; then
15529       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15530     else
15531       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15532     fi
15533     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15534     ;;
15535    hppa*64*)
15536      shrext_cmds='.sl'
15537      hardcode_into_libs=yes
15538      dynamic_linker="$host_os dld.sl"
15539      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15540      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15541      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15542      soname_spec='${libname}${release}${shared_ext}$major'
15543      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15544      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15545      ;;
15546    *)
15547     shrext_cmds='.sl'
15548     dynamic_linker="$host_os dld.sl"
15549     shlibpath_var=SHLIB_PATH
15550     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15552     soname_spec='${libname}${release}${shared_ext}$major'
15553     ;;
15554   esac
15555   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15556   postinstall_cmds='chmod 555 $lib'
15557   ;;
15558
15559 interix3*)
15560   version_type=linux
15561   need_lib_prefix=no
15562   need_version=no
15563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15564   soname_spec='${libname}${release}${shared_ext}$major'
15565   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15566   shlibpath_var=LD_LIBRARY_PATH
15567   shlibpath_overrides_runpath=no
15568   hardcode_into_libs=yes
15569   ;;
15570
15571 irix5* | irix6* | nonstopux*)
15572   case $host_os in
15573     nonstopux*) version_type=nonstopux ;;
15574     *)
15575         if test "$lt_cv_prog_gnu_ld" = yes; then
15576                 version_type=linux
15577         else
15578                 version_type=irix
15579         fi ;;
15580   esac
15581   need_lib_prefix=no
15582   need_version=no
15583   soname_spec='${libname}${release}${shared_ext}$major'
15584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15585   case $host_os in
15586   irix5* | nonstopux*)
15587     libsuff= shlibsuff=
15588     ;;
15589   *)
15590     case $LD in # libtool.m4 will add one of these switches to LD
15591     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15592       libsuff= shlibsuff= libmagic=32-bit;;
15593     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15594       libsuff=32 shlibsuff=N32 libmagic=N32;;
15595     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15596       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15597     *) libsuff= shlibsuff= libmagic=never-match;;
15598     esac
15599     ;;
15600   esac
15601   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15602   shlibpath_overrides_runpath=no
15603   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15604   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15605   hardcode_into_libs=yes
15606   ;;
15607
15608 # No shared lib support for Linux oldld, aout, or coff.
15609 linux*oldld* | linux*aout* | linux*coff*)
15610   dynamic_linker=no
15611   ;;
15612
15613 # This must be Linux ELF.
15614 linux*)
15615   version_type=linux
15616   need_lib_prefix=no
15617   need_version=no
15618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619   soname_spec='${libname}${release}${shared_ext}$major'
15620   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15621   shlibpath_var=LD_LIBRARY_PATH
15622   shlibpath_overrides_runpath=no
15623   # This implies no fast_install, which is unacceptable.
15624   # Some rework will be needed to allow for fast_install
15625   # before this can be enabled.
15626   hardcode_into_libs=yes
15627
15628   # find out which ABI we are using
15629   libsuff=
15630   case "$host_cpu" in
15631   x86_64*|s390x*|powerpc64*)
15632     echo '#line 15632 "configure"' > conftest.$ac_ext
15633     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15634   (eval $ac_compile) 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); }; then
15638       case `/usr/bin/file conftest.$ac_objext` in
15639       *64-bit*)
15640         libsuff=64
15641         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15642         ;;
15643       esac
15644     fi
15645     rm -rf conftest*
15646     ;;
15647   esac
15648
15649   # Append ld.so.conf contents to the search path
15650   if test -f /etc/ld.so.conf; then
15651     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15652     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15653   fi
15654
15655   # We used to test for /lib/ld.so.1 and disable shared libraries on
15656   # powerpc, because MkLinux only supported shared libraries with the
15657   # GNU dynamic linker.  Since this was broken with cross compilers,
15658   # most powerpc-linux boxes support dynamic linking these days and
15659   # people can always --disable-shared, the test was removed, and we
15660   # assume the GNU/Linux dynamic linker is in use.
15661   dynamic_linker='GNU/Linux ld.so'
15662   ;;
15663
15664 knetbsd*-gnu)
15665   version_type=linux
15666   need_lib_prefix=no
15667   need_version=no
15668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15669   soname_spec='${libname}${release}${shared_ext}$major'
15670   shlibpath_var=LD_LIBRARY_PATH
15671   shlibpath_overrides_runpath=no
15672   hardcode_into_libs=yes
15673   dynamic_linker='GNU ld.so'
15674   ;;
15675
15676 netbsd*)
15677   version_type=sunos
15678   need_lib_prefix=no
15679   need_version=no
15680   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15682     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15683     dynamic_linker='NetBSD (a.out) ld.so'
15684   else
15685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15686     soname_spec='${libname}${release}${shared_ext}$major'
15687     dynamic_linker='NetBSD ld.elf_so'
15688   fi
15689   shlibpath_var=LD_LIBRARY_PATH
15690   shlibpath_overrides_runpath=yes
15691   hardcode_into_libs=yes
15692   ;;
15693
15694 newsos6)
15695   version_type=linux
15696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697   shlibpath_var=LD_LIBRARY_PATH
15698   shlibpath_overrides_runpath=yes
15699   ;;
15700
15701 nto-qnx*)
15702   version_type=linux
15703   need_lib_prefix=no
15704   need_version=no
15705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706   soname_spec='${libname}${release}${shared_ext}$major'
15707   shlibpath_var=LD_LIBRARY_PATH
15708   shlibpath_overrides_runpath=yes
15709   ;;
15710
15711 openbsd*)
15712   version_type=sunos
15713   sys_lib_dlsearch_path_spec="/usr/lib"
15714   need_lib_prefix=no
15715   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15716   case $host_os in
15717     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15718     *)                         need_version=no  ;;
15719   esac
15720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15721   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15722   shlibpath_var=LD_LIBRARY_PATH
15723   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15724     case $host_os in
15725       openbsd2.[89] | openbsd2.[89].*)
15726         shlibpath_overrides_runpath=no
15727         ;;
15728       *)
15729         shlibpath_overrides_runpath=yes
15730         ;;
15731       esac
15732   else
15733     shlibpath_overrides_runpath=yes
15734   fi
15735   ;;
15736
15737 os2*)
15738   libname_spec='$name'
15739   shrext_cmds=".dll"
15740   need_lib_prefix=no
15741   library_names_spec='$libname${shared_ext} $libname.a'
15742   dynamic_linker='OS/2 ld.exe'
15743   shlibpath_var=LIBPATH
15744   ;;
15745
15746 osf3* | osf4* | osf5*)
15747   version_type=osf
15748   need_lib_prefix=no
15749   need_version=no
15750   soname_spec='${libname}${release}${shared_ext}$major'
15751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15752   shlibpath_var=LD_LIBRARY_PATH
15753   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15754   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15755   ;;
15756
15757 solaris*)
15758   version_type=linux
15759   need_lib_prefix=no
15760   need_version=no
15761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762   soname_spec='${libname}${release}${shared_ext}$major'
15763   shlibpath_var=LD_LIBRARY_PATH
15764   shlibpath_overrides_runpath=yes
15765   hardcode_into_libs=yes
15766   # ldd complains unless libraries are executable
15767   postinstall_cmds='chmod +x $lib'
15768   ;;
15769
15770 sunos4*)
15771   version_type=sunos
15772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15773   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15774   shlibpath_var=LD_LIBRARY_PATH
15775   shlibpath_overrides_runpath=yes
15776   if test "$with_gnu_ld" = yes; then
15777     need_lib_prefix=no
15778   fi
15779   need_version=yes
15780   ;;
15781
15782 sysv4 | sysv4.3*)
15783   version_type=linux
15784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785   soname_spec='${libname}${release}${shared_ext}$major'
15786   shlibpath_var=LD_LIBRARY_PATH
15787   case $host_vendor in
15788     sni)
15789       shlibpath_overrides_runpath=no
15790       need_lib_prefix=no
15791       export_dynamic_flag_spec='${wl}-Blargedynsym'
15792       runpath_var=LD_RUN_PATH
15793       ;;
15794     siemens)
15795       need_lib_prefix=no
15796       ;;
15797     motorola)
15798       need_lib_prefix=no
15799       need_version=no
15800       shlibpath_overrides_runpath=no
15801       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15802       ;;
15803   esac
15804   ;;
15805
15806 sysv4*MP*)
15807   if test -d /usr/nec ;then
15808     version_type=linux
15809     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15810     soname_spec='$libname${shared_ext}.$major'
15811     shlibpath_var=LD_LIBRARY_PATH
15812   fi
15813   ;;
15814
15815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15816   version_type=freebsd-elf
15817   need_lib_prefix=no
15818   need_version=no
15819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15820   soname_spec='${libname}${release}${shared_ext}$major'
15821   shlibpath_var=LD_LIBRARY_PATH
15822   hardcode_into_libs=yes
15823   if test "$with_gnu_ld" = yes; then
15824     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15825     shlibpath_overrides_runpath=no
15826   else
15827     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15828     shlibpath_overrides_runpath=yes
15829     case $host_os in
15830       sco3.2v5*)
15831         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15832         ;;
15833     esac
15834   fi
15835   sys_lib_dlsearch_path_spec='/usr/lib'
15836   ;;
15837
15838 uts4*)
15839   version_type=linux
15840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15841   soname_spec='${libname}${release}${shared_ext}$major'
15842   shlibpath_var=LD_LIBRARY_PATH
15843   ;;
15844
15845 *)
15846   dynamic_linker=no
15847   ;;
15848 esac
15849 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15850 echo "${ECHO_T}$dynamic_linker" >&6
15851 test "$dynamic_linker" = no && can_build_shared=no
15852
15853 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15854 if test "$GCC" = yes; then
15855   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15856 fi
15857
15858 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15859 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15860 hardcode_action=
15861 if test -n "$hardcode_libdir_flag_spec" || \
15862    test -n "$runpath_var" || \
15863    test "X$hardcode_automatic" = "Xyes" ; then
15864
15865   # We can hardcode non-existant directories.
15866   if test "$hardcode_direct" != no &&
15867      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15868      # have to relink, otherwise we might link with an installed library
15869      # when we should be linking with a yet-to-be-installed one
15870      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15871      test "$hardcode_minus_L" != no; then
15872     # Linking always hardcodes the temporary library directory.
15873     hardcode_action=relink
15874   else
15875     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15876     hardcode_action=immediate
15877   fi
15878 else
15879   # We cannot hardcode anything, or else we can only hardcode existing
15880   # directories.
15881   hardcode_action=unsupported
15882 fi
15883 echo "$as_me:$LINENO: result: $hardcode_action" >&5
15884 echo "${ECHO_T}$hardcode_action" >&6
15885
15886 if test "$hardcode_action" = relink; then
15887   # Fast installation is not supported
15888   enable_fast_install=no
15889 elif test "$shlibpath_overrides_runpath" = yes ||
15890      test "$enable_shared" = no; then
15891   # Fast installation is not necessary
15892   enable_fast_install=needless
15893 fi
15894
15895 striplib=
15896 old_striplib=
15897 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15898 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15899 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15900   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15901   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15902   echo "$as_me:$LINENO: result: yes" >&5
15903 echo "${ECHO_T}yes" >&6
15904 else
15905 # FIXME - insert some real tests, host_os isn't really good enough
15906   case $host_os in
15907    darwin*)
15908        if test -n "$STRIP" ; then
15909          striplib="$STRIP -x"
15910          echo "$as_me:$LINENO: result: yes" >&5
15911 echo "${ECHO_T}yes" >&6
15912        else
15913   echo "$as_me:$LINENO: result: no" >&5
15914 echo "${ECHO_T}no" >&6
15915 fi
15916        ;;
15917    *)
15918   echo "$as_me:$LINENO: result: no" >&5
15919 echo "${ECHO_T}no" >&6
15920     ;;
15921   esac
15922 fi
15923
15924 if test "x$enable_dlopen" != xyes; then
15925   enable_dlopen=unknown
15926   enable_dlopen_self=unknown
15927   enable_dlopen_self_static=unknown
15928 else
15929   lt_cv_dlopen=no
15930   lt_cv_dlopen_libs=
15931
15932   case $host_os in
15933   beos*)
15934     lt_cv_dlopen="load_add_on"
15935     lt_cv_dlopen_libs=
15936     lt_cv_dlopen_self=yes
15937     ;;
15938
15939   mingw* | pw32*)
15940     lt_cv_dlopen="LoadLibrary"
15941     lt_cv_dlopen_libs=
15942    ;;
15943
15944   cygwin*)
15945     lt_cv_dlopen="dlopen"
15946     lt_cv_dlopen_libs=
15947    ;;
15948
15949   darwin*)
15950   # if libdl is installed we need to link against it
15951     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15952 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15954   echo $ECHO_N "(cached) $ECHO_C" >&6
15955 else
15956   ac_check_lib_save_LIBS=$LIBS
15957 LIBS="-ldl  $LIBS"
15958 cat >conftest.$ac_ext <<_ACEOF
15959 /* confdefs.h.  */
15960 _ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h.  */
15964
15965 /* Override any gcc2 internal prototype to avoid an error.  */
15966 #ifdef __cplusplus
15967 extern "C"
15968 #endif
15969 /* We use char because int might match the return type of a gcc2
15970    builtin and then its argument prototype would still apply.  */
15971 char dlopen ();
15972 int
15973 main ()
15974 {
15975 dlopen ();
15976   ;
15977   return 0;
15978 }
15979 _ACEOF
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15982   (eval $ac_link) 2>conftest.er1
15983   ac_status=$?
15984   grep -v '^ *+' conftest.er1 >conftest.err
15985   rm -f conftest.er1
15986   cat conftest.err >&5
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); } &&
15989          { ac_try='test -z "$ac_c_werror_flag"
15990                          || test ! -s conftest.err'
15991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992   (eval $ac_try) 2>&5
15993   ac_status=$?
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); }; } &&
15996          { ac_try='test -s conftest$ac_exeext'
15997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998   (eval $ac_try) 2>&5
15999   ac_status=$?
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); }; }; then
16002   ac_cv_lib_dl_dlopen=yes
16003 else
16004   echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16006
16007 ac_cv_lib_dl_dlopen=no
16008 fi
16009 rm -f conftest.err conftest.$ac_objext \
16010       conftest$ac_exeext conftest.$ac_ext
16011 LIBS=$ac_check_lib_save_LIBS
16012 fi
16013 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16014 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16015 if test $ac_cv_lib_dl_dlopen = yes; then
16016   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16017 else
16018
16019     lt_cv_dlopen="dyld"
16020     lt_cv_dlopen_libs=
16021     lt_cv_dlopen_self=yes
16022
16023 fi
16024
16025    ;;
16026
16027   *)
16028     echo "$as_me:$LINENO: checking for shl_load" >&5
16029 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16030 if test "${ac_cv_func_shl_load+set}" = set; then
16031   echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033   cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h.  */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h.  */
16039 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16041 #define shl_load innocuous_shl_load
16042
16043 /* System header to define __stub macros and hopefully few prototypes,
16044     which can conflict with char shl_load (); below.
16045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16046     <limits.h> exists even on freestanding compilers.  */
16047
16048 #ifdef __STDC__
16049 # include <limits.h>
16050 #else
16051 # include <assert.h>
16052 #endif
16053
16054 #undef shl_load
16055
16056 /* Override any gcc2 internal prototype to avoid an error.  */
16057 #ifdef __cplusplus
16058 extern "C"
16059 {
16060 #endif
16061 /* We use char because int might match the return type of a gcc2
16062    builtin and then its argument prototype would still apply.  */
16063 char shl_load ();
16064 /* The GNU C library defines this for functions which it implements
16065     to always fail with ENOSYS.  Some functions are actually named
16066     something starting with __ and the normal name is an alias.  */
16067 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16068 choke me
16069 #else
16070 char (*f) () = shl_load;
16071 #endif
16072 #ifdef __cplusplus
16073 }
16074 #endif
16075
16076 int
16077 main ()
16078 {
16079 return f != shl_load;
16080   ;
16081   return 0;
16082 }
16083 _ACEOF
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16086   (eval $ac_link) 2>conftest.er1
16087   ac_status=$?
16088   grep -v '^ *+' conftest.er1 >conftest.err
16089   rm -f conftest.er1
16090   cat conftest.err >&5
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } &&
16093          { ac_try='test -z "$ac_c_werror_flag"
16094                          || test ! -s conftest.err'
16095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096   (eval $ac_try) 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); }; } &&
16100          { ac_try='test -s conftest$ac_exeext'
16101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102   (eval $ac_try) 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); }; }; then
16106   ac_cv_func_shl_load=yes
16107 else
16108   echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16110
16111 ac_cv_func_shl_load=no
16112 fi
16113 rm -f conftest.err conftest.$ac_objext \
16114       conftest$ac_exeext conftest.$ac_ext
16115 fi
16116 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16117 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16118 if test $ac_cv_func_shl_load = yes; then
16119   lt_cv_dlopen="shl_load"
16120 else
16121   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16122 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16123 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16124   echo $ECHO_N "(cached) $ECHO_C" >&6
16125 else
16126   ac_check_lib_save_LIBS=$LIBS
16127 LIBS="-ldld  $LIBS"
16128 cat >conftest.$ac_ext <<_ACEOF
16129 /* confdefs.h.  */
16130 _ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h.  */
16134
16135 /* Override any gcc2 internal prototype to avoid an error.  */
16136 #ifdef __cplusplus
16137 extern "C"
16138 #endif
16139 /* We use char because int might match the return type of a gcc2
16140    builtin and then its argument prototype would still apply.  */
16141 char shl_load ();
16142 int
16143 main ()
16144 {
16145 shl_load ();
16146   ;
16147   return 0;
16148 }
16149 _ACEOF
16150 rm -f conftest.$ac_objext conftest$ac_exeext
16151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16152   (eval $ac_link) 2>conftest.er1
16153   ac_status=$?
16154   grep -v '^ *+' conftest.er1 >conftest.err
16155   rm -f conftest.er1
16156   cat conftest.err >&5
16157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); } &&
16159          { ac_try='test -z "$ac_c_werror_flag"
16160                          || test ! -s conftest.err'
16161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162   (eval $ac_try) 2>&5
16163   ac_status=$?
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); }; } &&
16166          { ac_try='test -s conftest$ac_exeext'
16167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168   (eval $ac_try) 2>&5
16169   ac_status=$?
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); }; }; then
16172   ac_cv_lib_dld_shl_load=yes
16173 else
16174   echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16176
16177 ac_cv_lib_dld_shl_load=no
16178 fi
16179 rm -f conftest.err conftest.$ac_objext \
16180       conftest$ac_exeext conftest.$ac_ext
16181 LIBS=$ac_check_lib_save_LIBS
16182 fi
16183 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16184 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16185 if test $ac_cv_lib_dld_shl_load = yes; then
16186   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16187 else
16188   echo "$as_me:$LINENO: checking for dlopen" >&5
16189 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16190 if test "${ac_cv_func_dlopen+set}" = set; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193   cat >conftest.$ac_ext <<_ACEOF
16194 /* confdefs.h.  */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h.  */
16199 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16201 #define dlopen innocuous_dlopen
16202
16203 /* System header to define __stub macros and hopefully few prototypes,
16204     which can conflict with char dlopen (); below.
16205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16206     <limits.h> exists even on freestanding compilers.  */
16207
16208 #ifdef __STDC__
16209 # include <limits.h>
16210 #else
16211 # include <assert.h>
16212 #endif
16213
16214 #undef dlopen
16215
16216 /* Override any gcc2 internal prototype to avoid an error.  */
16217 #ifdef __cplusplus
16218 extern "C"
16219 {
16220 #endif
16221 /* We use char because int might match the return type of a gcc2
16222    builtin and then its argument prototype would still apply.  */
16223 char dlopen ();
16224 /* The GNU C library defines this for functions which it implements
16225     to always fail with ENOSYS.  Some functions are actually named
16226     something starting with __ and the normal name is an alias.  */
16227 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16228 choke me
16229 #else
16230 char (*f) () = dlopen;
16231 #endif
16232 #ifdef __cplusplus
16233 }
16234 #endif
16235
16236 int
16237 main ()
16238 {
16239 return f != dlopen;
16240   ;
16241   return 0;
16242 }
16243 _ACEOF
16244 rm -f conftest.$ac_objext conftest$ac_exeext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16246   (eval $ac_link) 2>conftest.er1
16247   ac_status=$?
16248   grep -v '^ *+' conftest.er1 >conftest.err
16249   rm -f conftest.er1
16250   cat conftest.err >&5
16251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252   (exit $ac_status); } &&
16253          { ac_try='test -z "$ac_c_werror_flag"
16254                          || test ! -s conftest.err'
16255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256   (eval $ac_try) 2>&5
16257   ac_status=$?
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); }; } &&
16260          { ac_try='test -s conftest$ac_exeext'
16261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262   (eval $ac_try) 2>&5
16263   ac_status=$?
16264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265   (exit $ac_status); }; }; then
16266   ac_cv_func_dlopen=yes
16267 else
16268   echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16270
16271 ac_cv_func_dlopen=no
16272 fi
16273 rm -f conftest.err conftest.$ac_objext \
16274       conftest$ac_exeext conftest.$ac_ext
16275 fi
16276 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16277 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16278 if test $ac_cv_func_dlopen = yes; then
16279   lt_cv_dlopen="dlopen"
16280 else
16281   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16282 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16283 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16284   echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286   ac_check_lib_save_LIBS=$LIBS
16287 LIBS="-ldl  $LIBS"
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h.  */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h.  */
16294
16295 /* Override any gcc2 internal prototype to avoid an error.  */
16296 #ifdef __cplusplus
16297 extern "C"
16298 #endif
16299 /* We use char because int might match the return type of a gcc2
16300    builtin and then its argument prototype would still apply.  */
16301 char dlopen ();
16302 int
16303 main ()
16304 {
16305 dlopen ();
16306   ;
16307   return 0;
16308 }
16309 _ACEOF
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16312   (eval $ac_link) 2>conftest.er1
16313   ac_status=$?
16314   grep -v '^ *+' conftest.er1 >conftest.err
16315   rm -f conftest.er1
16316   cat conftest.err >&5
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); } &&
16319          { ac_try='test -z "$ac_c_werror_flag"
16320                          || test ! -s conftest.err'
16321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322   (eval $ac_try) 2>&5
16323   ac_status=$?
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); }; } &&
16326          { ac_try='test -s conftest$ac_exeext'
16327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328   (eval $ac_try) 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); }; }; then
16332   ac_cv_lib_dl_dlopen=yes
16333 else
16334   echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16336
16337 ac_cv_lib_dl_dlopen=no
16338 fi
16339 rm -f conftest.err conftest.$ac_objext \
16340       conftest$ac_exeext conftest.$ac_ext
16341 LIBS=$ac_check_lib_save_LIBS
16342 fi
16343 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16344 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16345 if test $ac_cv_lib_dl_dlopen = yes; then
16346   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16347 else
16348   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16349 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16350 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16351   echo $ECHO_N "(cached) $ECHO_C" >&6
16352 else
16353   ac_check_lib_save_LIBS=$LIBS
16354 LIBS="-lsvld  $LIBS"
16355 cat >conftest.$ac_ext <<_ACEOF
16356 /* confdefs.h.  */
16357 _ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h.  */
16361
16362 /* Override any gcc2 internal prototype to avoid an error.  */
16363 #ifdef __cplusplus
16364 extern "C"
16365 #endif
16366 /* We use char because int might match the return type of a gcc2
16367    builtin and then its argument prototype would still apply.  */
16368 char dlopen ();
16369 int
16370 main ()
16371 {
16372 dlopen ();
16373   ;
16374   return 0;
16375 }
16376 _ACEOF
16377 rm -f conftest.$ac_objext conftest$ac_exeext
16378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16379   (eval $ac_link) 2>conftest.er1
16380   ac_status=$?
16381   grep -v '^ *+' conftest.er1 >conftest.err
16382   rm -f conftest.er1
16383   cat conftest.err >&5
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); } &&
16386          { ac_try='test -z "$ac_c_werror_flag"
16387                          || test ! -s conftest.err'
16388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389   (eval $ac_try) 2>&5
16390   ac_status=$?
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); }; } &&
16393          { ac_try='test -s conftest$ac_exeext'
16394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395   (eval $ac_try) 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); }; }; then
16399   ac_cv_lib_svld_dlopen=yes
16400 else
16401   echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16403
16404 ac_cv_lib_svld_dlopen=no
16405 fi
16406 rm -f conftest.err conftest.$ac_objext \
16407       conftest$ac_exeext conftest.$ac_ext
16408 LIBS=$ac_check_lib_save_LIBS
16409 fi
16410 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16411 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16412 if test $ac_cv_lib_svld_dlopen = yes; then
16413   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16414 else
16415   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16416 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16417 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16418   echo $ECHO_N "(cached) $ECHO_C" >&6
16419 else
16420   ac_check_lib_save_LIBS=$LIBS
16421 LIBS="-ldld  $LIBS"
16422 cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h.  */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h.  */
16428
16429 /* Override any gcc2 internal prototype to avoid an error.  */
16430 #ifdef __cplusplus
16431 extern "C"
16432 #endif
16433 /* We use char because int might match the return type of a gcc2
16434    builtin and then its argument prototype would still apply.  */
16435 char dld_link ();
16436 int
16437 main ()
16438 {
16439 dld_link ();
16440   ;
16441   return 0;
16442 }
16443 _ACEOF
16444 rm -f conftest.$ac_objext conftest$ac_exeext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16446   (eval $ac_link) 2>conftest.er1
16447   ac_status=$?
16448   grep -v '^ *+' conftest.er1 >conftest.err
16449   rm -f conftest.er1
16450   cat conftest.err >&5
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); } &&
16453          { ac_try='test -z "$ac_c_werror_flag"
16454                          || test ! -s conftest.err'
16455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456   (eval $ac_try) 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); }; } &&
16460          { ac_try='test -s conftest$ac_exeext'
16461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462   (eval $ac_try) 2>&5
16463   ac_status=$?
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); }; }; then
16466   ac_cv_lib_dld_dld_link=yes
16467 else
16468   echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16470
16471 ac_cv_lib_dld_dld_link=no
16472 fi
16473 rm -f conftest.err conftest.$ac_objext \
16474       conftest$ac_exeext conftest.$ac_ext
16475 LIBS=$ac_check_lib_save_LIBS
16476 fi
16477 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16478 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16479 if test $ac_cv_lib_dld_dld_link = yes; then
16480   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16481 fi
16482
16483
16484 fi
16485
16486
16487 fi
16488
16489
16490 fi
16491
16492
16493 fi
16494
16495
16496 fi
16497
16498     ;;
16499   esac
16500
16501   if test "x$lt_cv_dlopen" != xno; then
16502     enable_dlopen=yes
16503   else
16504     enable_dlopen=no
16505   fi
16506
16507   case $lt_cv_dlopen in
16508   dlopen)
16509     save_CPPFLAGS="$CPPFLAGS"
16510     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16511
16512     save_LDFLAGS="$LDFLAGS"
16513     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16514
16515     save_LIBS="$LIBS"
16516     LIBS="$lt_cv_dlopen_libs $LIBS"
16517
16518     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16519 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16520 if test "${lt_cv_dlopen_self+set}" = set; then
16521   echo $ECHO_N "(cached) $ECHO_C" >&6
16522 else
16523           if test "$cross_compiling" = yes; then :
16524   lt_cv_dlopen_self=cross
16525 else
16526   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16527   lt_status=$lt_dlunknown
16528   cat > conftest.$ac_ext <<EOF
16529 #line 16529 "configure"
16530 #include "confdefs.h"
16531
16532 #if HAVE_DLFCN_H
16533 #include <dlfcn.h>
16534 #endif
16535
16536 #include <stdio.h>
16537
16538 #ifdef RTLD_GLOBAL
16539 #  define LT_DLGLOBAL           RTLD_GLOBAL
16540 #else
16541 #  ifdef DL_GLOBAL
16542 #    define LT_DLGLOBAL         DL_GLOBAL
16543 #  else
16544 #    define LT_DLGLOBAL         0
16545 #  endif
16546 #endif
16547
16548 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16549    find out it does not work in some platform. */
16550 #ifndef LT_DLLAZY_OR_NOW
16551 #  ifdef RTLD_LAZY
16552 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16553 #  else
16554 #    ifdef DL_LAZY
16555 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16556 #    else
16557 #      ifdef RTLD_NOW
16558 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16559 #      else
16560 #        ifdef DL_NOW
16561 #          define LT_DLLAZY_OR_NOW      DL_NOW
16562 #        else
16563 #          define LT_DLLAZY_OR_NOW      0
16564 #        endif
16565 #      endif
16566 #    endif
16567 #  endif
16568 #endif
16569
16570 #ifdef __cplusplus
16571 extern "C" void exit (int);
16572 #endif
16573
16574 void fnord() { int i=42;}
16575 int main ()
16576 {
16577   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16578   int status = $lt_dlunknown;
16579
16580   if (self)
16581     {
16582       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16583       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16584       /* dlclose (self); */
16585     }
16586   else
16587     puts (dlerror ());
16588
16589     exit (status);
16590 }
16591 EOF
16592   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16593   (eval $ac_link) 2>&5
16594   ac_status=$?
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16597     (./conftest; exit; ) >&5 2>/dev/null
16598     lt_status=$?
16599     case x$lt_status in
16600       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16601       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16602       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16603     esac
16604   else :
16605     # compilation failed
16606     lt_cv_dlopen_self=no
16607   fi
16608 fi
16609 rm -fr conftest*
16610
16611
16612 fi
16613 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16614 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16615
16616     if test "x$lt_cv_dlopen_self" = xyes; then
16617       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16618       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16619 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16620 if test "${lt_cv_dlopen_self_static+set}" = set; then
16621   echo $ECHO_N "(cached) $ECHO_C" >&6
16622 else
16623           if test "$cross_compiling" = yes; then :
16624   lt_cv_dlopen_self_static=cross
16625 else
16626   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16627   lt_status=$lt_dlunknown
16628   cat > conftest.$ac_ext <<EOF
16629 #line 16629 "configure"
16630 #include "confdefs.h"
16631
16632 #if HAVE_DLFCN_H
16633 #include <dlfcn.h>
16634 #endif
16635
16636 #include <stdio.h>
16637
16638 #ifdef RTLD_GLOBAL
16639 #  define LT_DLGLOBAL           RTLD_GLOBAL
16640 #else
16641 #  ifdef DL_GLOBAL
16642 #    define LT_DLGLOBAL         DL_GLOBAL
16643 #  else
16644 #    define LT_DLGLOBAL         0
16645 #  endif
16646 #endif
16647
16648 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16649    find out it does not work in some platform. */
16650 #ifndef LT_DLLAZY_OR_NOW
16651 #  ifdef RTLD_LAZY
16652 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16653 #  else
16654 #    ifdef DL_LAZY
16655 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16656 #    else
16657 #      ifdef RTLD_NOW
16658 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16659 #      else
16660 #        ifdef DL_NOW
16661 #          define LT_DLLAZY_OR_NOW      DL_NOW
16662 #        else
16663 #          define LT_DLLAZY_OR_NOW      0
16664 #        endif
16665 #      endif
16666 #    endif
16667 #  endif
16668 #endif
16669
16670 #ifdef __cplusplus
16671 extern "C" void exit (int);
16672 #endif
16673
16674 void fnord() { int i=42;}
16675 int main ()
16676 {
16677   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16678   int status = $lt_dlunknown;
16679
16680   if (self)
16681     {
16682       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16683       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16684       /* dlclose (self); */
16685     }
16686   else
16687     puts (dlerror ());
16688
16689     exit (status);
16690 }
16691 EOF
16692   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16693   (eval $ac_link) 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16697     (./conftest; exit; ) >&5 2>/dev/null
16698     lt_status=$?
16699     case x$lt_status in
16700       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16701       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16702       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16703     esac
16704   else :
16705     # compilation failed
16706     lt_cv_dlopen_self_static=no
16707   fi
16708 fi
16709 rm -fr conftest*
16710
16711
16712 fi
16713 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16714 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16715     fi
16716
16717     CPPFLAGS="$save_CPPFLAGS"
16718     LDFLAGS="$save_LDFLAGS"
16719     LIBS="$save_LIBS"
16720     ;;
16721   esac
16722
16723   case $lt_cv_dlopen_self in
16724   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16725   *) enable_dlopen_self=unknown ;;
16726   esac
16727
16728   case $lt_cv_dlopen_self_static in
16729   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16730   *) enable_dlopen_self_static=unknown ;;
16731   esac
16732 fi
16733
16734
16735 # Report which library types will actually be built
16736 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16737 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16738 echo "$as_me:$LINENO: result: $can_build_shared" >&5
16739 echo "${ECHO_T}$can_build_shared" >&6
16740
16741 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16742 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16743 test "$can_build_shared" = "no" && enable_shared=no
16744
16745 # On AIX, shared libraries and static libraries use the same namespace, and
16746 # are all built from PIC.
16747 case $host_os in
16748 aix3*)
16749   test "$enable_shared" = yes && enable_static=no
16750   if test -n "$RANLIB"; then
16751     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16752     postinstall_cmds='$RANLIB $lib'
16753   fi
16754   ;;
16755
16756 aix4* | aix5*)
16757   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16758     test "$enable_shared" = yes && enable_static=no
16759   fi
16760     ;;
16761 esac
16762 echo "$as_me:$LINENO: result: $enable_shared" >&5
16763 echo "${ECHO_T}$enable_shared" >&6
16764
16765 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16766 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16767 # Make sure either enable_shared or enable_static is yes.
16768 test "$enable_shared" = yes || enable_static=yes
16769 echo "$as_me:$LINENO: result: $enable_static" >&5
16770 echo "${ECHO_T}$enable_static" >&6
16771
16772 # The else clause should only fire when bootstrapping the
16773 # libtool distribution, otherwise you forgot to ship ltmain.sh
16774 # with your package, and you will get complaints that there are
16775 # no rules to generate ltmain.sh.
16776 if test -f "$ltmain"; then
16777   # See if we are running on zsh, and set the options which allow our commands through
16778   # without removal of \ escapes.
16779   if test -n "${ZSH_VERSION+set}" ; then
16780     setopt NO_GLOB_SUBST
16781   fi
16782   # Now quote all the things that may contain metacharacters while being
16783   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16784   # variables and quote the copies for generation of the libtool script.
16785   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16786     SED SHELL STRIP \
16787     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16788     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16789     deplibs_check_method reload_flag reload_cmds need_locks \
16790     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16791     lt_cv_sys_global_symbol_to_c_name_address \
16792     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16793     old_postinstall_cmds old_postuninstall_cmds \
16794     compiler \
16795     CC \
16796     LD \
16797     lt_prog_compiler_wl \
16798     lt_prog_compiler_pic \
16799     lt_prog_compiler_static \
16800     lt_prog_compiler_no_builtin_flag \
16801     export_dynamic_flag_spec \
16802     thread_safe_flag_spec \
16803     whole_archive_flag_spec \
16804     enable_shared_with_static_runtimes \
16805     old_archive_cmds \
16806     old_archive_from_new_cmds \
16807     predep_objects \
16808     postdep_objects \
16809     predeps \
16810     postdeps \
16811     compiler_lib_search_path \
16812     archive_cmds \
16813     archive_expsym_cmds \
16814     postinstall_cmds \
16815     postuninstall_cmds \
16816     old_archive_from_expsyms_cmds \
16817     allow_undefined_flag \
16818     no_undefined_flag \
16819     export_symbols_cmds \
16820     hardcode_libdir_flag_spec \
16821     hardcode_libdir_flag_spec_ld \
16822     hardcode_libdir_separator \
16823     hardcode_automatic \
16824     module_cmds \
16825     module_expsym_cmds \
16826     lt_cv_prog_compiler_c_o \
16827     exclude_expsyms \
16828     include_expsyms; do
16829
16830     case $var in
16831     old_archive_cmds | \
16832     old_archive_from_new_cmds | \
16833     archive_cmds | \
16834     archive_expsym_cmds | \
16835     module_cmds | \
16836     module_expsym_cmds | \
16837     old_archive_from_expsyms_cmds | \
16838     export_symbols_cmds | \
16839     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16840     postinstall_cmds | postuninstall_cmds | \
16841     old_postinstall_cmds | old_postuninstall_cmds | \
16842     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16843       # Double-quote double-evaled strings.
16844       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16845       ;;
16846     *)
16847       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16848       ;;
16849     esac
16850   done
16851
16852   case $lt_echo in
16853   *'\$0 --fallback-echo"')
16854     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16855     ;;
16856   esac
16857
16858 cfgfile="${ofile}T"
16859   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16860   $rm -f "$cfgfile"
16861   { echo "$as_me:$LINENO: creating $ofile" >&5
16862 echo "$as_me: creating $ofile" >&6;}
16863
16864   cat <<__EOF__ >> "$cfgfile"
16865 #! $SHELL
16866
16867 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16868 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16869 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16870 #
16871 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16872 # Free Software Foundation, Inc.
16873 #
16874 # This file is part of GNU Libtool:
16875 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16876 #
16877 # This program is free software; you can redistribute it and/or modify
16878 # it under the terms of the GNU General Public License as published by
16879 # the Free Software Foundation; either version 2 of the License, or
16880 # (at your option) any later version.
16881 #
16882 # This program is distributed in the hope that it will be useful, but
16883 # WITHOUT ANY WARRANTY; without even the implied warranty of
16884 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16885 # General Public License for more details.
16886 #
16887 # You should have received a copy of the GNU General Public License
16888 # along with this program; if not, write to the Free Software
16889 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16890 #
16891 # As a special exception to the GNU General Public License, if you
16892 # distribute this file as part of a program that contains a
16893 # configuration script generated by Autoconf, you may include it under
16894 # the same distribution terms that you use for the rest of that program.
16895
16896 # A sed program that does not truncate output.
16897 SED=$lt_SED
16898
16899 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16900 Xsed="$SED -e 1s/^X//"
16901
16902 # The HP-UX ksh and POSIX shell print the target directory to stdout
16903 # if CDPATH is set.
16904 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16905
16906 # The names of the tagged configurations supported by this script.
16907 available_tags=
16908
16909 # ### BEGIN LIBTOOL CONFIG
16910
16911 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16912
16913 # Shell to use when invoking shell scripts.
16914 SHELL=$lt_SHELL
16915
16916 # Whether or not to build shared libraries.
16917 build_libtool_libs=$enable_shared
16918
16919 # Whether or not to build static libraries.
16920 build_old_libs=$enable_static
16921
16922 # Whether or not to add -lc for building shared libraries.
16923 build_libtool_need_lc=$archive_cmds_need_lc
16924
16925 # Whether or not to disallow shared libs when runtime libs are static
16926 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16927
16928 # Whether or not to optimize for fast installation.
16929 fast_install=$enable_fast_install
16930
16931 # The host system.
16932 host_alias=$host_alias
16933 host=$host
16934 host_os=$host_os
16935
16936 # The build system.
16937 build_alias=$build_alias
16938 build=$build
16939 build_os=$build_os
16940
16941 # An echo program that does not interpret backslashes.
16942 echo=$lt_echo
16943
16944 # The archiver.
16945 AR=$lt_AR
16946 AR_FLAGS=$lt_AR_FLAGS
16947
16948 # A C compiler.
16949 LTCC=$lt_LTCC
16950
16951 # LTCC compiler flags.
16952 LTCFLAGS=$lt_LTCFLAGS
16953
16954 # A language-specific compiler.
16955 CC=$lt_compiler
16956
16957 # Is the compiler the GNU C compiler?
16958 with_gcc=$GCC
16959
16960 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
16961 gcc_ver=\`gcc -dumpversion\`
16962
16963 # An ERE matcher.
16964 EGREP=$lt_EGREP
16965
16966 # The linker used to build libraries.
16967 LD=$lt_LD
16968
16969 # Whether we need hard or soft links.
16970 LN_S=$lt_LN_S
16971
16972 # A BSD-compatible nm program.
16973 NM=$lt_NM
16974
16975 # A symbol stripping program
16976 STRIP=$lt_STRIP
16977
16978 # Used to examine libraries when file_magic_cmd begins "file"
16979 MAGIC_CMD=$MAGIC_CMD
16980
16981 # Used on cygwin: DLL creation program.
16982 DLLTOOL="$DLLTOOL"
16983
16984 # Used on cygwin: object dumper.
16985 OBJDUMP="$OBJDUMP"
16986
16987 # Used on cygwin: assembler.
16988 AS="$AS"
16989
16990 # The name of the directory that contains temporary libtool files.
16991 objdir=$objdir
16992
16993 # How to create reloadable object files.
16994 reload_flag=$lt_reload_flag
16995 reload_cmds=$lt_reload_cmds
16996
16997 # How to pass a linker flag through the compiler.
16998 wl=$lt_lt_prog_compiler_wl
16999
17000 # Object file suffix (normally "o").
17001 objext="$ac_objext"
17002
17003 # Old archive suffix (normally "a").
17004 libext="$libext"
17005
17006 # Shared library suffix (normally ".so").
17007 shrext_cmds='$shrext_cmds'
17008
17009 # Executable file suffix (normally "").
17010 exeext="$exeext"
17011
17012 # Additional compiler flags for building library objects.
17013 pic_flag=$lt_lt_prog_compiler_pic
17014 pic_mode=$pic_mode
17015
17016 # What is the maximum length of a command?
17017 max_cmd_len=$lt_cv_sys_max_cmd_len
17018
17019 # Does compiler simultaneously support -c and -o options?
17020 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17021
17022 # Must we lock files when doing compilation?
17023 need_locks=$lt_need_locks
17024
17025 # Do we need the lib prefix for modules?
17026 need_lib_prefix=$need_lib_prefix
17027
17028 # Do we need a version for libraries?
17029 need_version=$need_version
17030
17031 # Whether dlopen is supported.
17032 dlopen_support=$enable_dlopen
17033
17034 # Whether dlopen of programs is supported.
17035 dlopen_self=$enable_dlopen_self
17036
17037 # Whether dlopen of statically linked programs is supported.
17038 dlopen_self_static=$enable_dlopen_self_static
17039
17040 # Compiler flag to prevent dynamic linking.
17041 link_static_flag=$lt_lt_prog_compiler_static
17042
17043 # Compiler flag to turn off builtin functions.
17044 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17045
17046 # Compiler flag to allow reflexive dlopens.
17047 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17048
17049 # Compiler flag to generate shared objects directly from archives.
17050 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17051
17052 # Compiler flag to generate thread-safe objects.
17053 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17054
17055 # Library versioning type.
17056 version_type=$version_type
17057
17058 # Format of library name prefix.
17059 libname_spec=$lt_libname_spec
17060
17061 # List of archive names.  First name is the real one, the rest are links.
17062 # The last name is the one that the linker finds with -lNAME.
17063 library_names_spec=$lt_library_names_spec
17064
17065 # The coded name of the library, if different from the real name.
17066 soname_spec=$lt_soname_spec
17067
17068 # Commands used to build and install an old-style archive.
17069 RANLIB=$lt_RANLIB
17070 old_archive_cmds=$lt_old_archive_cmds
17071 old_postinstall_cmds=$lt_old_postinstall_cmds
17072 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17073
17074 # Create an old-style archive from a shared archive.
17075 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17076
17077 # Create a temporary old-style archive to link instead of a shared archive.
17078 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17079
17080 # Commands used to build and install a shared archive.
17081 archive_cmds=$lt_archive_cmds
17082 archive_expsym_cmds=$lt_archive_expsym_cmds
17083 postinstall_cmds=$lt_postinstall_cmds
17084 postuninstall_cmds=$lt_postuninstall_cmds
17085
17086 # Commands used to build a loadable module (assumed same as above if empty)
17087 module_cmds=$lt_module_cmds
17088 module_expsym_cmds=$lt_module_expsym_cmds
17089
17090 # Commands to strip libraries.
17091 old_striplib=$lt_old_striplib
17092 striplib=$lt_striplib
17093
17094 # Dependencies to place before the objects being linked to create a
17095 # shared library.
17096 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17097
17098 # Dependencies to place after the objects being linked to create a
17099 # shared library.
17100 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17101
17102 # Dependencies to place before the objects being linked to create a
17103 # shared library.
17104 predeps=$lt_predeps
17105
17106 # Dependencies to place after the objects being linked to create a
17107 # shared library.
17108 postdeps=$lt_postdeps
17109
17110 # The library search path used internally by the compiler when linking
17111 # a shared library.
17112 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17113
17114 # Method to check whether dependent libraries are shared objects.
17115 deplibs_check_method=$lt_deplibs_check_method
17116
17117 # Command to use when deplibs_check_method == file_magic.
17118 file_magic_cmd=$lt_file_magic_cmd
17119
17120 # Flag that allows shared libraries with undefined symbols to be built.
17121 allow_undefined_flag=$lt_allow_undefined_flag
17122
17123 # Flag that forces no undefined symbols.
17124 no_undefined_flag=$lt_no_undefined_flag
17125
17126 # Commands used to finish a libtool library installation in a directory.
17127 finish_cmds=$lt_finish_cmds
17128
17129 # Same as above, but a single script fragment to be evaled but not shown.
17130 finish_eval=$lt_finish_eval
17131
17132 # Take the output of nm and produce a listing of raw symbols and C names.
17133 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17134
17135 # Transform the output of nm in a proper C declaration
17136 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17137
17138 # Transform the output of nm in a C name address pair
17139 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17140
17141 # This is the shared library runtime path variable.
17142 runpath_var=$runpath_var
17143
17144 # This is the shared library path variable.
17145 shlibpath_var=$shlibpath_var
17146
17147 # Is shlibpath searched before the hard-coded library search path?
17148 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17149
17150 # How to hardcode a shared library path into an executable.
17151 hardcode_action=$hardcode_action
17152
17153 # Whether we should hardcode library paths into libraries.
17154 hardcode_into_libs=$hardcode_into_libs
17155
17156 # Flag to hardcode \$libdir into a binary during linking.
17157 # This must work even if \$libdir does not exist.
17158 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17159
17160 # If ld is used when linking, flag to hardcode \$libdir into
17161 # a binary during linking. This must work even if \$libdir does
17162 # not exist.
17163 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17164
17165 # Whether we need a single -rpath flag with a separated argument.
17166 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17167
17168 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17169 # resulting binary.
17170 hardcode_direct=$hardcode_direct
17171
17172 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17173 # resulting binary.
17174 hardcode_minus_L=$hardcode_minus_L
17175
17176 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17177 # the resulting binary.
17178 hardcode_shlibpath_var=$hardcode_shlibpath_var
17179
17180 # Set to yes if building a shared library automatically hardcodes DIR into the library
17181 # and all subsequent libraries and executables linked against it.
17182 hardcode_automatic=$hardcode_automatic
17183
17184 # Variables whose values should be saved in libtool wrapper scripts and
17185 # restored at relink time.
17186 variables_saved_for_relink="$variables_saved_for_relink"
17187
17188 # Whether libtool must link a program against all its dependency libraries.
17189 link_all_deplibs=$link_all_deplibs
17190
17191 # Compile-time system search path for libraries
17192 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17193
17194 # Run-time system search path for libraries
17195 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17196
17197 # Fix the shell variable \$srcfile for the compiler.
17198 fix_srcfile_path="$fix_srcfile_path"
17199
17200 # Set to yes if exported symbols are required.
17201 always_export_symbols=$always_export_symbols
17202
17203 # The commands to list exported symbols.
17204 export_symbols_cmds=$lt_export_symbols_cmds
17205
17206 # The commands to extract the exported symbol list from a shared archive.
17207 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17208
17209 # Symbols that should not be listed in the preloaded symbols.
17210 exclude_expsyms=$lt_exclude_expsyms
17211
17212 # Symbols that must always be exported.
17213 include_expsyms=$lt_include_expsyms
17214
17215 # ### END LIBTOOL CONFIG
17216
17217 __EOF__
17218
17219
17220   case $host_os in
17221   aix3*)
17222     cat <<\EOF >> "$cfgfile"
17223
17224 # AIX sometimes has problems with the GCC collect2 program.  For some
17225 # reason, if we set the COLLECT_NAMES environment variable, the problems
17226 # vanish in a puff of smoke.
17227 if test "X${COLLECT_NAMES+set}" != Xset; then
17228   COLLECT_NAMES=
17229   export COLLECT_NAMES
17230 fi
17231 EOF
17232     ;;
17233   esac
17234
17235   # We use sed instead of cat because bash on DJGPP gets confused if
17236   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17237   # text mode, it properly converts lines to CR/LF.  This bash problem
17238   # is reportedly fixed, but why not run on old versions too?
17239   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17240
17241   mv -f "$cfgfile" "$ofile" || \
17242     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17243   chmod +x "$ofile"
17244
17245 else
17246   # If there is no Makefile yet, we rely on a make rule to execute
17247   # `config.status --recheck' to rerun these tests and create the
17248   # libtool script then.
17249   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17250   if test -f "$ltmain_in"; then
17251     test -f Makefile && make "$ltmain"
17252   fi
17253 fi
17254
17255
17256 ac_ext=c
17257 ac_cpp='$CPP $CPPFLAGS'
17258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17261
17262 CC="$lt_save_CC"
17263
17264
17265 # Check whether --with-tags or --without-tags was given.
17266 if test "${with_tags+set}" = set; then
17267   withval="$with_tags"
17268   tagnames="$withval"
17269 fi;
17270
17271 if test -f "$ltmain" && test -n "$tagnames"; then
17272   if test ! -f "${ofile}"; then
17273     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17274 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17275   fi
17276
17277   if test -z "$LTCC"; then
17278     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17279     if test -z "$LTCC"; then
17280       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17281 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17282     else
17283       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17284 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17285     fi
17286   fi
17287   if test -z "$LTCFLAGS"; then
17288     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17289   fi
17290
17291   # Extract list of available tagged configurations in $ofile.
17292   # Note that this assumes the entire list is on one line.
17293   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17294
17295   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17296   for tagname in $tagnames; do
17297     IFS="$lt_save_ifs"
17298     # Check whether tagname contains only valid characters
17299     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17300     "") ;;
17301     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17302 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17303    { (exit 1); exit 1; }; }
17304         ;;
17305     esac
17306
17307     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17308     then
17309       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17310 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17311    { (exit 1); exit 1; }; }
17312     fi
17313
17314     # Update the list of available tags.
17315     if test -n "$tagname"; then
17316       echo appending configuration tag \"$tagname\" to $ofile
17317
17318       case $tagname in
17319       CXX)
17320         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17321             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17322             (test "X$CXX" != "Xg++"))) ; then
17323           ac_ext=cc
17324 ac_cpp='$CXXCPP $CPPFLAGS'
17325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17328
17329
17330
17331
17332 archive_cmds_need_lc_CXX=no
17333 allow_undefined_flag_CXX=
17334 always_export_symbols_CXX=no
17335 archive_expsym_cmds_CXX=
17336 export_dynamic_flag_spec_CXX=
17337 hardcode_direct_CXX=no
17338 hardcode_libdir_flag_spec_CXX=
17339 hardcode_libdir_flag_spec_ld_CXX=
17340 hardcode_libdir_separator_CXX=
17341 hardcode_minus_L_CXX=no
17342 hardcode_shlibpath_var_CXX=unsupported
17343 hardcode_automatic_CXX=no
17344 module_cmds_CXX=
17345 module_expsym_cmds_CXX=
17346 link_all_deplibs_CXX=unknown
17347 old_archive_cmds_CXX=$old_archive_cmds
17348 no_undefined_flag_CXX=
17349 whole_archive_flag_spec_CXX=
17350 enable_shared_with_static_runtimes_CXX=no
17351
17352 # Dependencies to place before and after the object being linked:
17353 predep_objects_CXX=
17354 postdep_objects_CXX=
17355 predeps_CXX=
17356 postdeps_CXX=
17357 compiler_lib_search_path_CXX=
17358
17359 # Source file extension for C++ test sources.
17360 ac_ext=cpp
17361
17362 # Object file extension for compiled C++ test sources.
17363 objext=o
17364 objext_CXX=$objext
17365
17366 # Code to be used in simple compile tests
17367 lt_simple_compile_test_code="int some_variable = 0;\n"
17368
17369 # Code to be used in simple link tests
17370 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17371
17372 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17373
17374 # If no C compiler was specified, use CC.
17375 LTCC=${LTCC-"$CC"}
17376
17377 # If no C compiler flags were specified, use CFLAGS.
17378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17379
17380 # Allow CC to be a program name with arguments.
17381 compiler=$CC
17382
17383
17384 # save warnings/boilerplate of simple test code
17385 ac_outfile=conftest.$ac_objext
17386 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17388 _lt_compiler_boilerplate=`cat conftest.err`
17389 $rm conftest*
17390
17391 ac_outfile=conftest.$ac_objext
17392 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17394 _lt_linker_boilerplate=`cat conftest.err`
17395 $rm conftest*
17396
17397
17398 # Allow CC to be a program name with arguments.
17399 lt_save_CC=$CC
17400 lt_save_LD=$LD
17401 lt_save_GCC=$GCC
17402 GCC=$GXX
17403 lt_save_with_gnu_ld=$with_gnu_ld
17404 lt_save_path_LD=$lt_cv_path_LD
17405 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17406   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17407 else
17408   $as_unset lt_cv_prog_gnu_ld
17409 fi
17410 if test -n "${lt_cv_path_LDCXX+set}"; then
17411   lt_cv_path_LD=$lt_cv_path_LDCXX
17412 else
17413   $as_unset lt_cv_path_LD
17414 fi
17415 test -z "${LDCXX+set}" || LD=$LDCXX
17416 CC=${CXX-"c++"}
17417 compiler=$CC
17418 compiler_CXX=$CC
17419 for cc_temp in $compiler""; do
17420   case $cc_temp in
17421     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17422     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17423     \-*) ;;
17424     *) break;;
17425   esac
17426 done
17427 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17428
17429
17430 # We don't want -fno-exception wen compiling C++ code, so set the
17431 # no_builtin_flag separately
17432 if test "$GXX" = yes; then
17433   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17434 else
17435   lt_prog_compiler_no_builtin_flag_CXX=
17436 fi
17437
17438 if test "$GXX" = yes; then
17439   # Set up default GNU C++ configuration
17440
17441
17442 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17443 if test "${with_gnu_ld+set}" = set; then
17444   withval="$with_gnu_ld"
17445   test "$withval" = no || with_gnu_ld=yes
17446 else
17447   with_gnu_ld=no
17448 fi;
17449 ac_prog=ld
17450 if test "$GCC" = yes; then
17451   # Check if gcc -print-prog-name=ld gives a path.
17452   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17453 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17454   case $host in
17455   *-*-mingw*)
17456     # gcc leaves a trailing carriage return which upsets mingw
17457     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17458   *)
17459     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17460   esac
17461   case $ac_prog in
17462     # Accept absolute paths.
17463     [\\/]* | ?:[\\/]*)
17464       re_direlt='/[^/][^/]*/\.\./'
17465       # Canonicalize the pathname of ld
17466       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17467       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17468         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17469       done
17470       test -z "$LD" && LD="$ac_prog"
17471       ;;
17472   "")
17473     # If it fails, then pretend we aren't using GCC.
17474     ac_prog=ld
17475     ;;
17476   *)
17477     # If it is relative, then search for the first ld in PATH.
17478     with_gnu_ld=unknown
17479     ;;
17480   esac
17481 elif test "$with_gnu_ld" = yes; then
17482   echo "$as_me:$LINENO: checking for GNU ld" >&5
17483 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17484 else
17485   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17486 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17487 fi
17488 if test "${lt_cv_path_LD+set}" = set; then
17489   echo $ECHO_N "(cached) $ECHO_C" >&6
17490 else
17491   if test -z "$LD"; then
17492   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17493   for ac_dir in $PATH; do
17494     IFS="$lt_save_ifs"
17495     test -z "$ac_dir" && ac_dir=.
17496     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17497       lt_cv_path_LD="$ac_dir/$ac_prog"
17498       # Check to see if the program is GNU ld.  I'd rather use --version,
17499       # but apparently some variants of GNU ld only accept -v.
17500       # Break only if it was the GNU/non-GNU ld that we prefer.
17501       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17502       *GNU* | *'with BFD'*)
17503         test "$with_gnu_ld" != no && break
17504         ;;
17505       *)
17506         test "$with_gnu_ld" != yes && break
17507         ;;
17508       esac
17509     fi
17510   done
17511   IFS="$lt_save_ifs"
17512 else
17513   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17514 fi
17515 fi
17516
17517 LD="$lt_cv_path_LD"
17518 if test -n "$LD"; then
17519   echo "$as_me:$LINENO: result: $LD" >&5
17520 echo "${ECHO_T}$LD" >&6
17521 else
17522   echo "$as_me:$LINENO: result: no" >&5
17523 echo "${ECHO_T}no" >&6
17524 fi
17525 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17526 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17527    { (exit 1); exit 1; }; }
17528 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17529 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17530 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17531   echo $ECHO_N "(cached) $ECHO_C" >&6
17532 else
17533   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17534 case `$LD -v 2>&1 </dev/null` in
17535 *GNU* | *'with BFD'*)
17536   lt_cv_prog_gnu_ld=yes
17537   ;;
17538 *)
17539   lt_cv_prog_gnu_ld=no
17540   ;;
17541 esac
17542 fi
17543 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17544 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17545 with_gnu_ld=$lt_cv_prog_gnu_ld
17546
17547
17548
17549   # Check if GNU C++ uses GNU ld as the underlying linker, since the
17550   # archiving commands below assume that GNU ld is being used.
17551   if test "$with_gnu_ld" = yes; then
17552     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17553     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'
17554
17555     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17556     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17557
17558     # If archive_cmds runs LD, not CC, wlarc should be empty
17559     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17560     #     investigate it a little bit more. (MM)
17561     wlarc='${wl}'
17562
17563     # ancient GNU ld didn't support --whole-archive et. al.
17564     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17565         grep 'no-whole-archive' > /dev/null; then
17566       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17567     else
17568       whole_archive_flag_spec_CXX=
17569     fi
17570   else
17571     with_gnu_ld=no
17572     wlarc=
17573
17574     # A generic and very simple default shared library creation
17575     # command for GNU C++ for the case where it uses the native
17576     # linker, instead of GNU ld.  If possible, this setting should
17577     # overridden to take advantage of the native linker features on
17578     # the platform it is being used on.
17579     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17580   fi
17581
17582   # Commands to make compiler produce verbose output that lists
17583   # what "hidden" libraries, object files and flags are used when
17584   # linking a shared library.
17585   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17586
17587 else
17588   GXX=no
17589   with_gnu_ld=no
17590   wlarc=
17591 fi
17592
17593 # PORTME: fill in a description of your system's C++ link characteristics
17594 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17595 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17596 ld_shlibs_CXX=yes
17597 case $host_os in
17598   aix3*)
17599     # FIXME: insert proper C++ library support
17600     ld_shlibs_CXX=no
17601     ;;
17602   aix4* | aix5*)
17603     if test "$host_cpu" = ia64; then
17604       # On IA64, the linker does run time linking by default, so we don't
17605       # have to do anything special.
17606       aix_use_runtimelinking=no
17607       exp_sym_flag='-Bexport'
17608       no_entry_flag=""
17609     else
17610       aix_use_runtimelinking=no
17611
17612       # Test if we are trying to use run time linking or normal
17613       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17614       # need to do runtime linking.
17615       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17616         for ld_flag in $LDFLAGS; do
17617           case $ld_flag in
17618           *-brtl*)
17619             aix_use_runtimelinking=yes
17620             break
17621             ;;
17622           esac
17623         done
17624         ;;
17625       esac
17626
17627       exp_sym_flag='-bexport'
17628       no_entry_flag='-bnoentry'
17629     fi
17630
17631     # When large executables or shared objects are built, AIX ld can
17632     # have problems creating the table of contents.  If linking a library
17633     # or program results in "error TOC overflow" add -mminimal-toc to
17634     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17635     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17636
17637     archive_cmds_CXX=''
17638     hardcode_direct_CXX=yes
17639     hardcode_libdir_separator_CXX=':'
17640     link_all_deplibs_CXX=yes
17641
17642     if test "$GXX" = yes; then
17643       case $host_os in aix4.[012]|aix4.[012].*)
17644       # We only want to do this on AIX 4.2 and lower, the check
17645       # below for broken collect2 doesn't work under 4.3+
17646         collect2name=`${CC} -print-prog-name=collect2`
17647         if test -f "$collect2name" && \
17648            strings "$collect2name" | grep resolve_lib_name >/dev/null
17649         then
17650           # We have reworked collect2
17651           hardcode_direct_CXX=yes
17652         else
17653           # We have old collect2
17654           hardcode_direct_CXX=unsupported
17655           # It fails to find uninstalled libraries when the uninstalled
17656           # path is not listed in the libpath.  Setting hardcode_minus_L
17657           # to unsupported forces relinking
17658           hardcode_minus_L_CXX=yes
17659           hardcode_libdir_flag_spec_CXX='-L$libdir'
17660           hardcode_libdir_separator_CXX=
17661         fi
17662         ;;
17663       esac
17664       shared_flag='-shared'
17665       if test "$aix_use_runtimelinking" = yes; then
17666         shared_flag="$shared_flag "'${wl}-G'
17667       fi
17668     else
17669       # not using gcc
17670       if test "$host_cpu" = ia64; then
17671         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17672         # chokes on -Wl,-G. The following line is correct:
17673         shared_flag='-G'
17674       else
17675         if test "$aix_use_runtimelinking" = yes; then
17676           shared_flag='${wl}-G'
17677         else
17678           shared_flag='${wl}-bM:SRE'
17679         fi
17680       fi
17681     fi
17682
17683     # It seems that -bexpall does not export symbols beginning with
17684     # underscore (_), so it is better to generate a list of symbols to export.
17685     always_export_symbols_CXX=yes
17686     if test "$aix_use_runtimelinking" = yes; then
17687       # Warning - without using the other runtime loading flags (-brtl),
17688       # -berok will link without error, but may produce a broken library.
17689       allow_undefined_flag_CXX='-berok'
17690       # Determine the default libpath from the value encoded in an empty executable.
17691       cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h.  */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h.  */
17697
17698 int
17699 main ()
17700 {
17701
17702   ;
17703   return 0;
17704 }
17705 _ACEOF
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17708   (eval $ac_link) 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_cxx_werror_flag"
17716                          || test ! -s conftest.err'
17717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718   (eval $ac_try) 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); }; } &&
17722          { ac_try='test -s conftest$ac_exeext'
17723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724   (eval $ac_try) 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); }; }; then
17728
17729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17730 }'`
17731 # Check for a 64-bit object if we didn't find anything.
17732 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; }
17733 }'`; fi
17734 else
17735   echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738 fi
17739 rm -f conftest.err conftest.$ac_objext \
17740       conftest$ac_exeext conftest.$ac_ext
17741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17742
17743       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17744
17745       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"
17746      else
17747       if test "$host_cpu" = ia64; then
17748         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17749         allow_undefined_flag_CXX="-z nodefs"
17750         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"
17751       else
17752         # Determine the default libpath from the value encoded in an empty executable.
17753         cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759
17760 int
17761 main ()
17762 {
17763
17764   ;
17765   return 0;
17766 }
17767 _ACEOF
17768 rm -f conftest.$ac_objext conftest$ac_exeext
17769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17770   (eval $ac_link) 2>conftest.er1
17771   ac_status=$?
17772   grep -v '^ *+' conftest.er1 >conftest.err
17773   rm -f conftest.er1
17774   cat conftest.err >&5
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); } &&
17777          { ac_try='test -z "$ac_cxx_werror_flag"
17778                          || test ! -s conftest.err'
17779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780   (eval $ac_try) 2>&5
17781   ac_status=$?
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); }; } &&
17784          { ac_try='test -s conftest$ac_exeext'
17785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786   (eval $ac_try) 2>&5
17787   ac_status=$?
17788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); }; }; then
17790
17791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17792 }'`
17793 # Check for a 64-bit object if we didn't find anything.
17794 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; }
17795 }'`; fi
17796 else
17797   echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 fi
17801 rm -f conftest.err conftest.$ac_objext \
17802       conftest$ac_exeext conftest.$ac_ext
17803 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17804
17805         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17806         # Warning - without using the other run time loading flags,
17807         # -berok will link without error, but may produce a broken library.
17808         no_undefined_flag_CXX=' ${wl}-bernotok'
17809         allow_undefined_flag_CXX=' ${wl}-berok'
17810         # Exported symbols can be pulled into shared objects from archives
17811         whole_archive_flag_spec_CXX='$convenience'
17812         archive_cmds_need_lc_CXX=yes
17813         # This is similar to how AIX traditionally builds its shared libraries.
17814         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'
17815       fi
17816     fi
17817     ;;
17818
17819   beos*)
17820     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17821       allow_undefined_flag_CXX=unsupported
17822       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17823       # support --undefined.  This deserves some investigation.  FIXME
17824       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17825     else
17826       ld_shlibs_CXX=no
17827     fi
17828     ;;
17829
17830   chorus*)
17831     case $cc_basename in
17832       *)
17833         # FIXME: insert proper C++ library support
17834         ld_shlibs_CXX=no
17835         ;;
17836     esac
17837     ;;
17838
17839   cygwin* | mingw* | pw32*)
17840     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17841     # as there is no search path for DLLs.
17842     hardcode_libdir_flag_spec_CXX='-L$libdir'
17843     allow_undefined_flag_CXX=unsupported
17844     always_export_symbols_CXX=no
17845     enable_shared_with_static_runtimes_CXX=yes
17846
17847     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17848       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'
17849       # If the export-symbols file already is a .def file (1st line
17850       # is EXPORTS), use it as is; otherwise, prepend...
17851       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17852         cp $export_symbols $output_objdir/$soname.def;
17853       else
17854         echo EXPORTS > $output_objdir/$soname.def;
17855         cat $export_symbols >> $output_objdir/$soname.def;
17856       fi~
17857       $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'
17858     else
17859       ld_shlibs_CXX=no
17860     fi
17861   ;;
17862       darwin* | rhapsody*)
17863         case $host_os in
17864         rhapsody* | darwin1.[012])
17865          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17866          ;;
17867        *) # Darwin 1.3 on
17868          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17869            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17870          else
17871            case ${MACOSX_DEPLOYMENT_TARGET} in
17872              10.[012])
17873                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17874                ;;
17875              10.*)
17876                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17877                ;;
17878            esac
17879          fi
17880          ;;
17881         esac
17882       archive_cmds_need_lc_CXX=no
17883       hardcode_direct_CXX=no
17884       hardcode_automatic_CXX=yes
17885       hardcode_shlibpath_var_CXX=unsupported
17886       whole_archive_flag_spec_CXX=''
17887       link_all_deplibs_CXX=yes
17888
17889     if test "$GXX" = yes ; then
17890       lt_int_apple_cc_single_mod=no
17891       output_verbose_link_cmd='echo'
17892       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17893        lt_int_apple_cc_single_mod=yes
17894       fi
17895       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17896        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17897       else
17898           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'
17899         fi
17900         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17901         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17902           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17903             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}'
17904           else
17905             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}'
17906           fi
17907             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}'
17908       else
17909       case $cc_basename in
17910         xlc*)
17911          output_verbose_link_cmd='echo'
17912           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'
17913           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17914           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17915           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}'
17916           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}'
17917           ;;
17918        *)
17919          ld_shlibs_CXX=no
17920           ;;
17921       esac
17922       fi
17923         ;;
17924
17925   dgux*)
17926     case $cc_basename in
17927       ec++*)
17928         # FIXME: insert proper C++ library support
17929         ld_shlibs_CXX=no
17930         ;;
17931       ghcx*)
17932         # Green Hills C++ Compiler
17933         # FIXME: insert proper C++ library support
17934         ld_shlibs_CXX=no
17935         ;;
17936       *)
17937         # FIXME: insert proper C++ library support
17938         ld_shlibs_CXX=no
17939         ;;
17940     esac
17941     ;;
17942   freebsd[12]*)
17943     # C++ shared libraries reported to be fairly broken before switch to ELF
17944     ld_shlibs_CXX=no
17945     ;;
17946   freebsd-elf*)
17947     archive_cmds_need_lc_CXX=no
17948     ;;
17949   freebsd* | kfreebsd*-gnu | dragonfly*)
17950     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17951     # conventions
17952     ld_shlibs_CXX=yes
17953     ;;
17954   gnu*)
17955     ;;
17956   hpux9*)
17957     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17958     hardcode_libdir_separator_CXX=:
17959     export_dynamic_flag_spec_CXX='${wl}-E'
17960     hardcode_direct_CXX=yes
17961     hardcode_minus_L_CXX=yes # Not in the search PATH,
17962                                 # but as the default
17963                                 # location of the library.
17964
17965     case $cc_basename in
17966     CC*)
17967       # FIXME: insert proper C++ library support
17968       ld_shlibs_CXX=no
17969       ;;
17970     aCC*)
17971       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'
17972       # Commands to make compiler produce verbose output that lists
17973       # what "hidden" libraries, object files and flags are used when
17974       # linking a shared library.
17975       #
17976       # There doesn't appear to be a way to prevent this compiler from
17977       # explicitly linking system object files so we need to strip them
17978       # from the output so that they don't get included in the library
17979       # dependencies.
17980       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'
17981       ;;
17982     *)
17983       if test "$GXX" = yes; then
17984         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'
17985       else
17986         # FIXME: insert proper C++ library support
17987         ld_shlibs_CXX=no
17988       fi
17989       ;;
17990     esac
17991     ;;
17992   hpux10*|hpux11*)
17993     if test $with_gnu_ld = no; then
17994       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17995       hardcode_libdir_separator_CXX=:
17996
17997       case $host_cpu in
17998       hppa*64*|ia64*)
17999         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18000         ;;
18001       *)
18002         export_dynamic_flag_spec_CXX='${wl}-E'
18003         ;;
18004       esac
18005     fi
18006     case $host_cpu in
18007     hppa*64*|ia64*)
18008       hardcode_direct_CXX=no
18009       hardcode_shlibpath_var_CXX=no
18010       ;;
18011     *)
18012       hardcode_direct_CXX=yes
18013       hardcode_minus_L_CXX=yes # Not in the search PATH,
18014                                               # but as the default
18015                                               # location of the library.
18016       ;;
18017     esac
18018
18019     case $cc_basename in
18020       CC*)
18021         # FIXME: insert proper C++ library support
18022         ld_shlibs_CXX=no
18023         ;;
18024       aCC*)
18025         case $host_cpu in
18026         hppa*64*)
18027           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18028           ;;
18029         ia64*)
18030           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18031           ;;
18032         *)
18033           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18034           ;;
18035         esac
18036         # Commands to make compiler produce verbose output that lists
18037         # what "hidden" libraries, object files and flags are used when
18038         # linking a shared library.
18039         #
18040         # There doesn't appear to be a way to prevent this compiler from
18041         # explicitly linking system object files so we need to strip them
18042         # from the output so that they don't get included in the library
18043         # dependencies.
18044         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'
18045         ;;
18046       *)
18047         if test "$GXX" = yes; then
18048           if test $with_gnu_ld = no; then
18049             case $host_cpu in
18050             hppa*64*)
18051               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18052               ;;
18053             ia64*)
18054               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18055               ;;
18056             *)
18057               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'
18058               ;;
18059             esac
18060           fi
18061         else
18062           # FIXME: insert proper C++ library support
18063           ld_shlibs_CXX=no
18064         fi
18065         ;;
18066     esac
18067     ;;
18068   interix3*)
18069     hardcode_direct_CXX=no
18070     hardcode_shlibpath_var_CXX=no
18071     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18072     export_dynamic_flag_spec_CXX='${wl}-E'
18073     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18074     # Instead, shared libraries are loaded at an image base (0x10000000 by
18075     # default) and relocated if they conflict, which is a slow very memory
18076     # consuming and fragmenting process.  To avoid this, we pick a random,
18077     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18078     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18079     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'
18080     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'
18081     ;;
18082   irix5* | irix6*)
18083     case $cc_basename in
18084       CC*)
18085         # SGI C++
18086         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'
18087
18088         # Archives containing C++ object files must be created using
18089         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18090         # necessary to make sure instantiated templates are included
18091         # in the archive.
18092         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18093         ;;
18094       *)
18095         if test "$GXX" = yes; then
18096           if test "$with_gnu_ld" = no; then
18097             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'
18098           else
18099             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'
18100           fi
18101         fi
18102         link_all_deplibs_CXX=yes
18103         ;;
18104     esac
18105     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18106     hardcode_libdir_separator_CXX=:
18107     ;;
18108   linux*)
18109     case $cc_basename in
18110       KCC*)
18111         # Kuck and Associates, Inc. (KAI) C++ Compiler
18112
18113         # KCC will only create a shared library if the output file
18114         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18115         # to its proper name (with version) after linking.
18116         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'
18117         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'
18118         # Commands to make compiler produce verbose output that lists
18119         # what "hidden" libraries, object files and flags are used when
18120         # linking a shared library.
18121         #
18122         # There doesn't appear to be a way to prevent this compiler from
18123         # explicitly linking system object files so we need to strip them
18124         # from the output so that they don't get included in the library
18125         # dependencies.
18126         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'
18127
18128         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18129         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18130
18131         # Archives containing C++ object files must be created using
18132         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18133         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18134         ;;
18135       icpc*)
18136         # Intel C++
18137         with_gnu_ld=yes
18138         # version 8.0 and above of icpc choke on multiply defined symbols
18139         # if we add $predep_objects and $postdep_objects, however 7.1 and
18140         # earlier do not add the objects themselves.
18141         case `$CC -V 2>&1` in
18142         *"Version 7."*)
18143           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18144           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'
18145           ;;
18146         *)  # Version 8.0 or newer
18147           tmp_idyn=
18148           case $host_cpu in
18149             ia64*) tmp_idyn=' -i_dynamic';;
18150           esac
18151           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18152           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'
18153           ;;
18154         esac
18155         archive_cmds_need_lc_CXX=no
18156         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18157         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18158         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18159         ;;
18160       pgCC*)
18161         # Portland Group C++ compiler
18162         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18163         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'
18164
18165         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18166         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18167         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'
18168         ;;
18169       cxx*)
18170         # Compaq C++
18171         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18172         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'
18173
18174         runpath_var=LD_RUN_PATH
18175         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18176         hardcode_libdir_separator_CXX=:
18177
18178         # Commands to make compiler produce verbose output that lists
18179         # what "hidden" libraries, object files and flags are used when
18180         # linking a shared library.
18181         #
18182         # There doesn't appear to be a way to prevent this compiler from
18183         # explicitly linking system object files so we need to strip them
18184         # from the output so that they don't get included in the library
18185         # dependencies.
18186         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'
18187         ;;
18188     esac
18189     ;;
18190   lynxos*)
18191     # FIXME: insert proper C++ library support
18192     ld_shlibs_CXX=no
18193     ;;
18194   m88k*)
18195     # FIXME: insert proper C++ library support
18196     ld_shlibs_CXX=no
18197     ;;
18198   mvs*)
18199     case $cc_basename in
18200       cxx*)
18201         # FIXME: insert proper C++ library support
18202         ld_shlibs_CXX=no
18203         ;;
18204       *)
18205         # FIXME: insert proper C++ library support
18206         ld_shlibs_CXX=no
18207         ;;
18208     esac
18209     ;;
18210   netbsd*)
18211     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18212       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18213       wlarc=
18214       hardcode_libdir_flag_spec_CXX='-R$libdir'
18215       hardcode_direct_CXX=yes
18216       hardcode_shlibpath_var_CXX=no
18217     fi
18218     # Workaround some broken pre-1.5 toolchains
18219     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18220     ;;
18221   openbsd2*)
18222     # C++ shared libraries are fairly broken
18223     ld_shlibs_CXX=no
18224     ;;
18225   openbsd*)
18226     hardcode_direct_CXX=yes
18227     hardcode_shlibpath_var_CXX=no
18228     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18229     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18230     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18231       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18232       export_dynamic_flag_spec_CXX='${wl}-E'
18233       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18234     fi
18235     output_verbose_link_cmd='echo'
18236     ;;
18237   osf3*)
18238     case $cc_basename in
18239       KCC*)
18240         # Kuck and Associates, Inc. (KAI) C++ Compiler
18241
18242         # KCC will only create a shared library if the output file
18243         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18244         # to its proper name (with version) after linking.
18245         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'
18246
18247         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18248         hardcode_libdir_separator_CXX=:
18249
18250         # Archives containing C++ object files must be created using
18251         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18252         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18253
18254         ;;
18255       RCC*)
18256         # Rational C++ 2.4.1
18257         # FIXME: insert proper C++ library support
18258         ld_shlibs_CXX=no
18259         ;;
18260       cxx*)
18261         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18262         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'
18263
18264         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18265         hardcode_libdir_separator_CXX=:
18266
18267         # Commands to make compiler produce verbose output that lists
18268         # what "hidden" libraries, object files and flags are used when
18269         # linking a shared library.
18270         #
18271         # There doesn't appear to be a way to prevent this compiler from
18272         # explicitly linking system object files so we need to strip them
18273         # from the output so that they don't get included in the library
18274         # dependencies.
18275         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'
18276         ;;
18277       *)
18278         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18279           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18280           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'
18281
18282           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18283           hardcode_libdir_separator_CXX=:
18284
18285           # Commands to make compiler produce verbose output that lists
18286           # what "hidden" libraries, object files and flags are used when
18287           # linking a shared library.
18288           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18289
18290         else
18291           # FIXME: insert proper C++ library support
18292           ld_shlibs_CXX=no
18293         fi
18294         ;;
18295     esac
18296     ;;
18297   osf4* | osf5*)
18298     case $cc_basename in
18299       KCC*)
18300         # Kuck and Associates, Inc. (KAI) C++ Compiler
18301
18302         # KCC will only create a shared library if the output file
18303         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18304         # to its proper name (with version) after linking.
18305         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'
18306
18307         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18308         hardcode_libdir_separator_CXX=:
18309
18310         # Archives containing C++ object files must be created using
18311         # the KAI C++ compiler.
18312         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18313         ;;
18314       RCC*)
18315         # Rational C++ 2.4.1
18316         # FIXME: insert proper C++ library support
18317         ld_shlibs_CXX=no
18318         ;;
18319       cxx*)
18320         allow_undefined_flag_CXX=' -expect_unresolved \*'
18321         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'
18322         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18323           echo "-hidden">> $lib.exp~
18324           $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~
18325           $rm $lib.exp'
18326
18327         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18328         hardcode_libdir_separator_CXX=:
18329
18330         # Commands to make compiler produce verbose output that lists
18331         # what "hidden" libraries, object files and flags are used when
18332         # linking a shared library.
18333         #
18334         # There doesn't appear to be a way to prevent this compiler from
18335         # explicitly linking system object files so we need to strip them
18336         # from the output so that they don't get included in the library
18337         # dependencies.
18338         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'
18339         ;;
18340       *)
18341         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18342           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18343          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'
18344
18345           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18346           hardcode_libdir_separator_CXX=:
18347
18348           # Commands to make compiler produce verbose output that lists
18349           # what "hidden" libraries, object files and flags are used when
18350           # linking a shared library.
18351           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18352
18353         else
18354           # FIXME: insert proper C++ library support
18355           ld_shlibs_CXX=no
18356         fi
18357         ;;
18358     esac
18359     ;;
18360   psos*)
18361     # FIXME: insert proper C++ library support
18362     ld_shlibs_CXX=no
18363     ;;
18364   sunos4*)
18365     case $cc_basename in
18366       CC*)
18367         # Sun C++ 4.x
18368         # FIXME: insert proper C++ library support
18369         ld_shlibs_CXX=no
18370         ;;
18371       lcc*)
18372         # Lucid
18373         # FIXME: insert proper C++ library support
18374         ld_shlibs_CXX=no
18375         ;;
18376       *)
18377         # FIXME: insert proper C++ library support
18378         ld_shlibs_CXX=no
18379         ;;
18380     esac
18381     ;;
18382   solaris*)
18383     case $cc_basename in
18384       CC*)
18385         # Sun C++ 4.2, 5.x and Centerline C++
18386         archive_cmds_need_lc_CXX=yes
18387         no_undefined_flag_CXX=' -zdefs'
18388         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18389         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18390         $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'
18391
18392         hardcode_libdir_flag_spec_CXX='-R$libdir'
18393         hardcode_shlibpath_var_CXX=no
18394         case $host_os in
18395           solaris2.[0-5] | solaris2.[0-5].*) ;;
18396           *)
18397             # The C++ compiler is used as linker so we must use $wl
18398             # flag to pass the commands to the underlying system
18399             # linker. We must also pass each convience library through
18400             # to the system linker between allextract/defaultextract.
18401             # The C++ compiler will combine linker options so we
18402             # cannot just pass the convience library names through
18403             # without $wl.
18404             # Supported since Solaris 2.6 (maybe 2.5.1?)
18405             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'
18406             ;;
18407         esac
18408         link_all_deplibs_CXX=yes
18409
18410         output_verbose_link_cmd='echo'
18411
18412         # Archives containing C++ object files must be created using
18413         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18414         # necessary to make sure instantiated templates are included
18415         # in the archive.
18416         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18417         ;;
18418       gcx*)
18419         # Green Hills C++ Compiler
18420         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18421
18422         # The C++ compiler must be used to create the archive.
18423         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18424         ;;
18425       *)
18426         # GNU C++ compiler with Solaris linker
18427         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18428           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18429           if $CC --version | grep -v '^2\.7' > /dev/null; then
18430             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18431             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18432                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18433
18434             # Commands to make compiler produce verbose output that lists
18435             # what "hidden" libraries, object files and flags are used when
18436             # linking a shared library.
18437             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18438           else
18439             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18440             # platform.
18441             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18442             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18443                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18444
18445             # Commands to make compiler produce verbose output that lists
18446             # what "hidden" libraries, object files and flags are used when
18447             # linking a shared library.
18448             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18449           fi
18450
18451           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18452         fi
18453         ;;
18454     esac
18455     ;;
18456   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18457     no_undefined_flag_CXX='${wl}-z,text'
18458     archive_cmds_need_lc_CXX=no
18459     hardcode_shlibpath_var_CXX=no
18460     runpath_var='LD_RUN_PATH'
18461
18462     case $cc_basename in
18463       CC*)
18464         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18465         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18466         ;;
18467       *)
18468         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18469         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18470         ;;
18471     esac
18472     ;;
18473   sysv5* | sco3.2v5* | sco5v6*)
18474     # Note: We can NOT use -z defs as we might desire, because we do not
18475     # link with -lc, and that would cause any symbols used from libc to
18476     # always be unresolved, which means just about no library would
18477     # ever link correctly.  If we're not using GNU ld we use -z text
18478     # though, which does catch some bad symbols but isn't as heavy-handed
18479     # as -z defs.
18480     # For security reasons, it is highly recommended that you always
18481     # use absolute paths for naming shared libraries, and exclude the
18482     # DT_RUNPATH tag from executables and libraries.  But doing so
18483     # requires that you compile everything twice, which is a pain.
18484     # So that behaviour is only enabled if SCOABSPATH is set to a
18485     # non-empty value in the environment.  Most likely only useful for
18486     # creating official distributions of packages.
18487     # This is a hack until libtool officially supports absolute path
18488     # names for shared libraries.
18489     no_undefined_flag_CXX='${wl}-z,text'
18490     allow_undefined_flag_CXX='${wl}-z,nodefs'
18491     archive_cmds_need_lc_CXX=no
18492     hardcode_shlibpath_var_CXX=no
18493     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18494     hardcode_libdir_separator_CXX=':'
18495     link_all_deplibs_CXX=yes
18496     export_dynamic_flag_spec_CXX='${wl}-Bexport'
18497     runpath_var='LD_RUN_PATH'
18498
18499     case $cc_basename in
18500       CC*)
18501         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18502         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18503         ;;
18504       *)
18505         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18506         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18507         ;;
18508     esac
18509     ;;
18510   tandem*)
18511     case $cc_basename in
18512       NCC*)
18513         # NonStop-UX NCC 3.20
18514         # FIXME: insert proper C++ library support
18515         ld_shlibs_CXX=no
18516         ;;
18517       *)
18518         # FIXME: insert proper C++ library support
18519         ld_shlibs_CXX=no
18520         ;;
18521     esac
18522     ;;
18523   vxworks*)
18524     # FIXME: insert proper C++ library support
18525     ld_shlibs_CXX=no
18526     ;;
18527   *)
18528     # FIXME: insert proper C++ library support
18529     ld_shlibs_CXX=no
18530     ;;
18531 esac
18532 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18533 echo "${ECHO_T}$ld_shlibs_CXX" >&6
18534 test "$ld_shlibs_CXX" = no && can_build_shared=no
18535
18536 GCC_CXX="$GXX"
18537 LD_CXX="$LD"
18538
18539
18540 cat > conftest.$ac_ext <<EOF
18541 class Foo
18542 {
18543 public:
18544   Foo (void) { a = 0; }
18545 private:
18546   int a;
18547 };
18548 EOF
18549
18550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18551   (eval $ac_compile) 2>&5
18552   ac_status=$?
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); }; then
18555   # Parse the compiler output and extract the necessary
18556   # objects, libraries and library flags.
18557
18558   # Sentinel used to keep track of whether or not we are before
18559   # the conftest object file.
18560   pre_test_object_deps_done=no
18561
18562   # The `*' in the case matches for architectures that use `case' in
18563   # $output_verbose_cmd can trigger glob expansion during the loop
18564   # eval without this substitution.
18565   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18566
18567   for p in `eval $output_verbose_link_cmd`; do
18568     case $p in
18569
18570     -L* | -R* | -l*)
18571        # Some compilers place space between "-{L,R}" and the path.
18572        # Remove the space.
18573        if test $p = "-L" \
18574           || test $p = "-R"; then
18575          prev=$p
18576          continue
18577        else
18578          prev=
18579        fi
18580
18581        if test "$pre_test_object_deps_done" = no; then
18582          case $p in
18583          -L* | -R*)
18584            # Internal compiler library paths should come after those
18585            # provided the user.  The postdeps already come after the
18586            # user supplied libs so there is no need to process them.
18587            if test -z "$compiler_lib_search_path_CXX"; then
18588              compiler_lib_search_path_CXX="${prev}${p}"
18589            else
18590              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18591            fi
18592            ;;
18593          # The "-l" case would never come before the object being
18594          # linked, so don't bother handling this case.
18595          esac
18596        else
18597          if test -z "$postdeps_CXX"; then
18598            postdeps_CXX="${prev}${p}"
18599          else
18600            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18601          fi
18602        fi
18603        ;;
18604
18605     *.$objext)
18606        # This assumes that the test object file only shows up
18607        # once in the compiler output.
18608        if test "$p" = "conftest.$objext"; then
18609          pre_test_object_deps_done=yes
18610          continue
18611        fi
18612
18613        if test "$pre_test_object_deps_done" = no; then
18614          if test -z "$predep_objects_CXX"; then
18615            predep_objects_CXX="$p"
18616          else
18617            predep_objects_CXX="$predep_objects_CXX $p"
18618          fi
18619        else
18620          if test -z "$postdep_objects_CXX"; then
18621            postdep_objects_CXX="$p"
18622          else
18623            postdep_objects_CXX="$postdep_objects_CXX $p"
18624          fi
18625        fi
18626        ;;
18627
18628     *) ;; # Ignore the rest.
18629
18630     esac
18631   done
18632
18633   # Clean up.
18634   rm -f a.out a.exe
18635 else
18636   echo "libtool.m4: error: problem compiling CXX test program"
18637 fi
18638
18639 $rm -f confest.$objext
18640
18641 # PORTME: override above test on systems where it is broken
18642 case $host_os in
18643 interix3*)
18644   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18645   # hack all around it, let's just trust "g++" to DTRT.
18646   predep_objects_CXX=
18647   postdep_objects_CXX=
18648   postdeps_CXX=
18649   ;;
18650
18651 solaris*)
18652   case $cc_basename in
18653   CC*)
18654     # Adding this requires a known-good setup of shared libraries for
18655     # Sun compiler versions before 5.6, else PIC objects from an old
18656     # archive will be linked into the output, leading to subtle bugs.
18657     postdeps_CXX='-lCstd -lCrun'
18658     ;;
18659   esac
18660   ;;
18661 esac
18662
18663
18664 case " $postdeps_CXX " in
18665 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18666 esac
18667
18668 lt_prog_compiler_wl_CXX=
18669 lt_prog_compiler_pic_CXX=
18670 lt_prog_compiler_static_CXX=
18671
18672 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18673 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18674
18675   # C++ specific cases for pic, static, wl, etc.
18676   if test "$GXX" = yes; then
18677     lt_prog_compiler_wl_CXX='-Wl,'
18678     lt_prog_compiler_static_CXX='-static'
18679
18680     case $host_os in
18681     aix*)
18682       # All AIX code is PIC.
18683       if test "$host_cpu" = ia64; then
18684         # AIX 5 now supports IA64 processor
18685         lt_prog_compiler_static_CXX='-Bstatic'
18686       fi
18687       ;;
18688     amigaos*)
18689       # FIXME: we need at least 68020 code to build shared libraries, but
18690       # adding the `-m68020' flag to GCC prevents building anything better,
18691       # like `-m68040'.
18692       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18693       ;;
18694     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18695       # PIC is the default for these OSes.
18696       ;;
18697     mingw* | os2* | pw32*)
18698       # This hack is so that the source file can tell whether it is being
18699       # built for inclusion in a dll (and should export symbols for example).
18700       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18701       ;;
18702     darwin* | rhapsody*)
18703       # PIC is the default on this platform
18704       # Common symbols not allowed in MH_DYLIB files
18705       lt_prog_compiler_pic_CXX='-fno-common'
18706       ;;
18707     *djgpp*)
18708       # DJGPP does not support shared libraries at all
18709       lt_prog_compiler_pic_CXX=
18710       ;;
18711     interix3*)
18712       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18713       # Instead, we relocate shared libraries at runtime.
18714       ;;
18715     sysv4*MP*)
18716       if test -d /usr/nec; then
18717         lt_prog_compiler_pic_CXX=-Kconform_pic
18718       fi
18719       ;;
18720     hpux*)
18721       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18722       # not for PA HP-UX.
18723       case $host_cpu in
18724       hppa*64*|ia64*)
18725         ;;
18726       *)
18727         lt_prog_compiler_pic_CXX='-fPIC'
18728         ;;
18729       esac
18730       ;;
18731     *)
18732       lt_prog_compiler_pic_CXX='-fPIC'
18733       ;;
18734     esac
18735   else
18736     case $host_os in
18737       aix4* | aix5*)
18738         # All AIX code is PIC.
18739         if test "$host_cpu" = ia64; then
18740           # AIX 5 now supports IA64 processor
18741           lt_prog_compiler_static_CXX='-Bstatic'
18742         else
18743           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18744         fi
18745         ;;
18746       chorus*)
18747         case $cc_basename in
18748         cxch68*)
18749           # Green Hills C++ Compiler
18750           # _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"
18751           ;;
18752         esac
18753         ;;
18754        darwin*)
18755          # PIC is the default on this platform
18756          # Common symbols not allowed in MH_DYLIB files
18757          case $cc_basename in
18758            xlc*)
18759            lt_prog_compiler_pic_CXX='-qnocommon'
18760            lt_prog_compiler_wl_CXX='-Wl,'
18761            ;;
18762          esac
18763        ;;
18764       dgux*)
18765         case $cc_basename in
18766           ec++*)
18767             lt_prog_compiler_pic_CXX='-KPIC'
18768             ;;
18769           ghcx*)
18770             # Green Hills C++ Compiler
18771             lt_prog_compiler_pic_CXX='-pic'
18772             ;;
18773           *)
18774             ;;
18775         esac
18776         ;;
18777       freebsd* | kfreebsd*-gnu | dragonfly*)
18778         # FreeBSD uses GNU C++
18779         ;;
18780       hpux9* | hpux10* | hpux11*)
18781         case $cc_basename in
18782           CC*)
18783             lt_prog_compiler_wl_CXX='-Wl,'
18784             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18785             if test "$host_cpu" != ia64; then
18786               lt_prog_compiler_pic_CXX='+Z'
18787             fi
18788             ;;
18789           aCC*)
18790             lt_prog_compiler_wl_CXX='-Wl,'
18791             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18792             case $host_cpu in
18793             hppa*64*|ia64*)
18794               # +Z the default
18795               ;;
18796             *)
18797               lt_prog_compiler_pic_CXX='+Z'
18798               ;;
18799             esac
18800             ;;
18801           *)
18802             ;;
18803         esac
18804         ;;
18805       interix*)
18806         # This is c89, which is MS Visual C++ (no shared libs)
18807         # Anyone wants to do a port?
18808         ;;
18809       irix5* | irix6* | nonstopux*)
18810         case $cc_basename in
18811           CC*)
18812             lt_prog_compiler_wl_CXX='-Wl,'
18813             lt_prog_compiler_static_CXX='-non_shared'
18814             # CC pic flag -KPIC is the default.
18815             ;;
18816           *)
18817             ;;
18818         esac
18819         ;;
18820       linux*)
18821         case $cc_basename in
18822           KCC*)
18823             # KAI C++ Compiler
18824             lt_prog_compiler_wl_CXX='--backend -Wl,'
18825             lt_prog_compiler_pic_CXX='-fPIC'
18826             ;;
18827           icpc* | ecpc*)
18828             # Intel C++
18829             lt_prog_compiler_wl_CXX='-Wl,'
18830             lt_prog_compiler_pic_CXX='-KPIC'
18831             lt_prog_compiler_static_CXX='-static'
18832             ;;
18833           pgCC*)
18834             # Portland Group C++ compiler.
18835             lt_prog_compiler_wl_CXX='-Wl,'
18836             lt_prog_compiler_pic_CXX='-fpic'
18837             lt_prog_compiler_static_CXX='-Bstatic'
18838             ;;
18839           cxx*)
18840             # Compaq C++
18841             # Make sure the PIC flag is empty.  It appears that all Alpha
18842             # Linux and Compaq Tru64 Unix objects are PIC.
18843             lt_prog_compiler_pic_CXX=
18844             lt_prog_compiler_static_CXX='-non_shared'
18845             ;;
18846           *)
18847             ;;
18848         esac
18849         ;;
18850       lynxos*)
18851         ;;
18852       m88k*)
18853         ;;
18854       mvs*)
18855         case $cc_basename in
18856           cxx*)
18857             lt_prog_compiler_pic_CXX='-W c,exportall'
18858             ;;
18859           *)
18860             ;;
18861         esac
18862         ;;
18863       netbsd*)
18864         ;;
18865       osf3* | osf4* | osf5*)
18866         case $cc_basename in
18867           KCC*)
18868             lt_prog_compiler_wl_CXX='--backend -Wl,'
18869             ;;
18870           RCC*)
18871             # Rational C++ 2.4.1
18872             lt_prog_compiler_pic_CXX='-pic'
18873             ;;
18874           cxx*)
18875             # Digital/Compaq C++
18876             lt_prog_compiler_wl_CXX='-Wl,'
18877             # Make sure the PIC flag is empty.  It appears that all Alpha
18878             # Linux and Compaq Tru64 Unix objects are PIC.
18879             lt_prog_compiler_pic_CXX=
18880             lt_prog_compiler_static_CXX='-non_shared'
18881             ;;
18882           *)
18883             ;;
18884         esac
18885         ;;
18886       psos*)
18887         ;;
18888       solaris*)
18889         case $cc_basename in
18890           CC*)
18891             # Sun C++ 4.2, 5.x and Centerline C++
18892             lt_prog_compiler_pic_CXX='-KPIC'
18893             lt_prog_compiler_static_CXX='-Bstatic'
18894             lt_prog_compiler_wl_CXX='-Qoption ld '
18895             ;;
18896           gcx*)
18897             # Green Hills C++ Compiler
18898             lt_prog_compiler_pic_CXX='-PIC'
18899             ;;
18900           *)
18901             ;;
18902         esac
18903         ;;
18904       sunos4*)
18905         case $cc_basename in
18906           CC*)
18907             # Sun C++ 4.x
18908             lt_prog_compiler_pic_CXX='-pic'
18909             lt_prog_compiler_static_CXX='-Bstatic'
18910             ;;
18911           lcc*)
18912             # Lucid
18913             lt_prog_compiler_pic_CXX='-pic'
18914             ;;
18915           *)
18916             ;;
18917         esac
18918         ;;
18919       tandem*)
18920         case $cc_basename in
18921           NCC*)
18922             # NonStop-UX NCC 3.20
18923             lt_prog_compiler_pic_CXX='-KPIC'
18924             ;;
18925           *)
18926             ;;
18927         esac
18928         ;;
18929       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18930         case $cc_basename in
18931           CC*)
18932             lt_prog_compiler_wl_CXX='-Wl,'
18933             lt_prog_compiler_pic_CXX='-KPIC'
18934             lt_prog_compiler_static_CXX='-Bstatic'
18935             ;;
18936         esac
18937         ;;
18938       vxworks*)
18939         ;;
18940       *)
18941         lt_prog_compiler_can_build_shared_CXX=no
18942         ;;
18943     esac
18944   fi
18945
18946 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18947 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
18948
18949 #
18950 # Check to make sure the PIC flag actually works.
18951 #
18952 if test -n "$lt_prog_compiler_pic_CXX"; then
18953
18954 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18955 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
18956 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18957   echo $ECHO_N "(cached) $ECHO_C" >&6
18958 else
18959   lt_prog_compiler_pic_works_CXX=no
18960   ac_outfile=conftest.$ac_objext
18961    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18962    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18963    # Insert the option either (1) after the last *FLAGS variable, or
18964    # (2) before a word containing "conftest.", or (3) at the end.
18965    # Note that $ac_compile itself does not contain backslashes and begins
18966    # with a dollar sign (not a hyphen), so the echo should work correctly.
18967    # The option is referenced via a variable to avoid confusing sed.
18968    lt_compile=`echo "$ac_compile" | $SED \
18969    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18970    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18971    -e 's:$: $lt_compiler_flag:'`
18972    (eval echo "\"\$as_me:18972: $lt_compile\"" >&5)
18973    (eval "$lt_compile" 2>conftest.err)
18974    ac_status=$?
18975    cat conftest.err >&5
18976    echo "$as_me:18976: \$? = $ac_status" >&5
18977    if (exit $ac_status) && test -s "$ac_outfile"; then
18978      # The compiler can only warn and ignore the option if not recognized
18979      # So say no if there are warnings other than the usual output.
18980      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18981      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18982      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18983        lt_prog_compiler_pic_works_CXX=yes
18984      fi
18985    fi
18986    $rm conftest*
18987
18988 fi
18989 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18990 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
18991
18992 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18993     case $lt_prog_compiler_pic_CXX in
18994      "" | " "*) ;;
18995      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18996      esac
18997 else
18998     lt_prog_compiler_pic_CXX=
18999      lt_prog_compiler_can_build_shared_CXX=no
19000 fi
19001
19002 fi
19003 case $host_os in
19004   # For platforms which do not support PIC, -DPIC is meaningless:
19005   *djgpp*)
19006     lt_prog_compiler_pic_CXX=
19007     ;;
19008   *)
19009     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19010     ;;
19011 esac
19012
19013 #
19014 # Check to make sure the static flag actually works.
19015 #
19016 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19017 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19018 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
19019 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19020   echo $ECHO_N "(cached) $ECHO_C" >&6
19021 else
19022   lt_prog_compiler_static_works_CXX=no
19023    save_LDFLAGS="$LDFLAGS"
19024    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19025    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19026    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19027      # The linker can only warn and ignore the option if not recognized
19028      # So say no if there are warnings
19029      if test -s conftest.err; then
19030        # Append any errors to the config.log.
19031        cat conftest.err 1>&5
19032        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19033        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19034        if diff conftest.exp conftest.er2 >/dev/null; then
19035          lt_prog_compiler_static_works_CXX=yes
19036        fi
19037      else
19038        lt_prog_compiler_static_works_CXX=yes
19039      fi
19040    fi
19041    $rm conftest*
19042    LDFLAGS="$save_LDFLAGS"
19043
19044 fi
19045 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19046 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
19047
19048 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19049     :
19050 else
19051     lt_prog_compiler_static_CXX=
19052 fi
19053
19054
19055 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19056 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19057 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19058   echo $ECHO_N "(cached) $ECHO_C" >&6
19059 else
19060   lt_cv_prog_compiler_c_o_CXX=no
19061    $rm -r conftest 2>/dev/null
19062    mkdir conftest
19063    cd conftest
19064    mkdir out
19065    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19066
19067    lt_compiler_flag="-o out/conftest2.$ac_objext"
19068    # Insert the option either (1) after the last *FLAGS variable, or
19069    # (2) before a word containing "conftest.", or (3) at the end.
19070    # Note that $ac_compile itself does not contain backslashes and begins
19071    # with a dollar sign (not a hyphen), so the echo should work correctly.
19072    lt_compile=`echo "$ac_compile" | $SED \
19073    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19074    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19075    -e 's:$: $lt_compiler_flag:'`
19076    (eval echo "\"\$as_me:19076: $lt_compile\"" >&5)
19077    (eval "$lt_compile" 2>out/conftest.err)
19078    ac_status=$?
19079    cat out/conftest.err >&5
19080    echo "$as_me:19080: \$? = $ac_status" >&5
19081    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19082    then
19083      # The compiler can only warn and ignore the option if not recognized
19084      # So say no if there are warnings
19085      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19086      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19087      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19088        lt_cv_prog_compiler_c_o_CXX=yes
19089      fi
19090    fi
19091    chmod u+w . 2>&5
19092    $rm conftest*
19093    # SGI C++ compiler will create directory out/ii_files/ for
19094    # template instantiation
19095    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19096    $rm out/* && rmdir out
19097    cd ..
19098    rmdir conftest
19099    $rm conftest*
19100
19101 fi
19102 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19103 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
19104
19105
19106 hard_links="nottested"
19107 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19108   # do not overwrite the value of need_locks provided by the user
19109   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19110 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19111   hard_links=yes
19112   $rm conftest*
19113   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19114   touch conftest.a
19115   ln conftest.a conftest.b 2>&5 || hard_links=no
19116   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19117   echo "$as_me:$LINENO: result: $hard_links" >&5
19118 echo "${ECHO_T}$hard_links" >&6
19119   if test "$hard_links" = no; then
19120     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19121 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19122     need_locks=warn
19123   fi
19124 else
19125   need_locks=no
19126 fi
19127
19128 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19129 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19130
19131   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19132   case $host_os in
19133   aix4* | aix5*)
19134     # If we're using GNU nm, then we don't want the "-C" option.
19135     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19136     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19137       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'
19138     else
19139       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'
19140     fi
19141     ;;
19142   pw32*)
19143     export_symbols_cmds_CXX="$ltdll_cmds"
19144   ;;
19145   cygwin* | mingw*)
19146     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'
19147   ;;
19148   *)
19149     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19150   ;;
19151   esac
19152
19153 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19154 echo "${ECHO_T}$ld_shlibs_CXX" >&6
19155 test "$ld_shlibs_CXX" = no && can_build_shared=no
19156
19157 #
19158 # Do we need to explicitly link libc?
19159 #
19160 case "x$archive_cmds_need_lc_CXX" in
19161 x|xyes)
19162   # Assume -lc should be added
19163   archive_cmds_need_lc_CXX=yes
19164
19165   if test "$enable_shared" = yes && test "$GCC" = yes; then
19166     case $archive_cmds_CXX in
19167     *'~'*)
19168       # FIXME: we may have to deal with multi-command sequences.
19169       ;;
19170     '$CC '*)
19171       # Test whether the compiler implicitly links with -lc since on some
19172       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19173       # to ld, don't add -lc before -lgcc.
19174       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19175 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19176       $rm conftest*
19177       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19178
19179       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19180   (eval $ac_compile) 2>&5
19181   ac_status=$?
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); } 2>conftest.err; then
19184         soname=conftest
19185         lib=conftest
19186         libobjs=conftest.$ac_objext
19187         deplibs=
19188         wl=$lt_prog_compiler_wl_CXX
19189         pic_flag=$lt_prog_compiler_pic_CXX
19190         compiler_flags=-v
19191         linker_flags=-v
19192         verstring=
19193         output_objdir=.
19194         libname=conftest
19195         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19196         allow_undefined_flag_CXX=
19197         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19198   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19199   ac_status=$?
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); }
19202         then
19203           archive_cmds_need_lc_CXX=no
19204         else
19205           archive_cmds_need_lc_CXX=yes
19206         fi
19207         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19208       else
19209         cat conftest.err 1>&5
19210       fi
19211       $rm conftest*
19212       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19213 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
19214       ;;
19215     esac
19216   fi
19217   ;;
19218 esac
19219
19220 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19221 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19222 library_names_spec=
19223 libname_spec='lib$name'
19224 soname_spec=
19225 shrext_cmds=".so"
19226 postinstall_cmds=
19227 postuninstall_cmds=
19228 finish_cmds=
19229 finish_eval=
19230 shlibpath_var=
19231 shlibpath_overrides_runpath=unknown
19232 version_type=none
19233 dynamic_linker="$host_os ld.so"
19234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19235 if test "$GCC" = yes; then
19236   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19237   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19238     # if the path contains ";" then we assume it to be the separator
19239     # otherwise default to the standard path separator (i.e. ":") - it is
19240     # assumed that no part of a normal pathname contains ";" but that should
19241     # okay in the real world where ";" in dirpaths is itself problematic.
19242     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19243   else
19244     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19245   fi
19246 else
19247   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19248 fi
19249 need_lib_prefix=unknown
19250 hardcode_into_libs=no
19251
19252 # when you set need_version to no, make sure it does not cause -set_version
19253 # flags to be left without arguments
19254 need_version=unknown
19255
19256 case $host_os in
19257 aix3*)
19258   version_type=linux
19259   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19260   shlibpath_var=LIBPATH
19261
19262   # AIX 3 has no versioning support, so we append a major version to the name.
19263   soname_spec='${libname}${release}${shared_ext}$major'
19264   ;;
19265
19266 aix4* | aix5*)
19267   version_type=linux
19268   need_lib_prefix=no
19269   need_version=no
19270   hardcode_into_libs=yes
19271   if test "$host_cpu" = ia64; then
19272     # AIX 5 supports IA64
19273     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19274     shlibpath_var=LD_LIBRARY_PATH
19275   else
19276     # With GCC up to 2.95.x, collect2 would create an import file
19277     # for dependence libraries.  The import file would start with
19278     # the line `#! .'.  This would cause the generated library to
19279     # depend on `.', always an invalid library.  This was fixed in
19280     # development snapshots of GCC prior to 3.0.
19281     case $host_os in
19282       aix4 | aix4.[01] | aix4.[01].*)
19283       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19284            echo ' yes '
19285            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19286         :
19287       else
19288         can_build_shared=no
19289       fi
19290       ;;
19291     esac
19292     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19293     # soname into executable. Probably we can add versioning support to
19294     # collect2, so additional links can be useful in future.
19295     if test "$aix_use_runtimelinking" = yes; then
19296       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19297       # instead of lib<name>.a to let people know that these are not
19298       # typical AIX shared libraries.
19299       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19300     else
19301       # We preserve .a as extension for shared libraries through AIX4.2
19302       # and later when we are not doing run time linking.
19303       library_names_spec='${libname}${release}.a $libname.a'
19304       soname_spec='${libname}${release}${shared_ext}$major'
19305     fi
19306     shlibpath_var=LIBPATH
19307   fi
19308   ;;
19309
19310 amigaos*)
19311   library_names_spec='$libname.ixlibrary $libname.a'
19312   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19313   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'
19314   ;;
19315
19316 beos*)
19317   library_names_spec='${libname}${shared_ext}'
19318   dynamic_linker="$host_os ld.so"
19319   shlibpath_var=LIBRARY_PATH
19320   ;;
19321
19322 bsdi[45]*)
19323   version_type=linux
19324   need_version=no
19325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19326   soname_spec='${libname}${release}${shared_ext}$major'
19327   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19328   shlibpath_var=LD_LIBRARY_PATH
19329   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19330   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19331   # the default ld.so.conf also contains /usr/contrib/lib and
19332   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19333   # libtool to hard-code these into programs
19334   ;;
19335
19336 cygwin* | mingw* | pw32*)
19337   version_type=windows
19338   shrext_cmds=".dll"
19339   need_version=no
19340   need_lib_prefix=no
19341
19342   case $GCC,$host_os in
19343   yes,cygwin* | yes,mingw* | yes,pw32*)
19344     library_names_spec='$libname.dll.a'
19345     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19346     postinstall_cmds='base_file=`basename \${file}`~
19347       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19348       dldir=$destdir/`dirname \$dlpath`~
19349       test -d \$dldir || mkdir -p \$dldir~
19350       $install_prog $dir/$dlname \$dldir/$dlname~
19351       chmod a+x \$dldir/$dlname'
19352     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19353       dlpath=$dir/\$dldll~
19354        $rm \$dlpath'
19355     shlibpath_overrides_runpath=yes
19356
19357     case $host_os in
19358     cygwin*)
19359       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19360       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19361       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19362       ;;
19363     mingw*)
19364       # MinGW DLLs use traditional 'lib' prefix
19365       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19366       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19367       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19368         # It is most probably a Windows format PATH printed by
19369         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19370         # path with ; separators, and with drive letters. We can handle the
19371         # drive letters (cygwin fileutils understands them), so leave them,
19372         # especially as we might pass files found there to a mingw objdump,
19373         # which wouldn't understand a cygwinified path. Ahh.
19374         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19375       else
19376         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19377       fi
19378       ;;
19379     pw32*)
19380       # pw32 DLLs use 'pw' prefix rather than 'lib'
19381       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19382       ;;
19383     esac
19384     ;;
19385
19386   *)
19387     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19388     ;;
19389   esac
19390   dynamic_linker='Win32 ld.exe'
19391   # FIXME: first we should search . and the directory the executable is in
19392   shlibpath_var=PATH
19393   ;;
19394
19395 darwin* | rhapsody*)
19396   dynamic_linker="$host_os dyld"
19397   version_type=darwin
19398   need_lib_prefix=no
19399   need_version=no
19400   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19401   soname_spec='${libname}${release}${major}$shared_ext'
19402   shlibpath_overrides_runpath=yes
19403   shlibpath_var=DYLD_LIBRARY_PATH
19404   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19405   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19406   if test "$GCC" = yes; then
19407     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"`
19408   else
19409     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19410   fi
19411   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19412   ;;
19413
19414 dgux*)
19415   version_type=linux
19416   need_lib_prefix=no
19417   need_version=no
19418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19419   soname_spec='${libname}${release}${shared_ext}$major'
19420   shlibpath_var=LD_LIBRARY_PATH
19421   ;;
19422
19423 freebsd1*)
19424   dynamic_linker=no
19425   ;;
19426
19427 kfreebsd*-gnu)
19428   version_type=linux
19429   need_lib_prefix=no
19430   need_version=no
19431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19432   soname_spec='${libname}${release}${shared_ext}$major'
19433   shlibpath_var=LD_LIBRARY_PATH
19434   shlibpath_overrides_runpath=no
19435   hardcode_into_libs=yes
19436   dynamic_linker='GNU ld.so'
19437   ;;
19438
19439 freebsd* | dragonfly*)
19440   # DragonFly does not have aout.  When/if they implement a new
19441   # versioning mechanism, adjust this.
19442   if test -x /usr/bin/objformat; then
19443     objformat=`/usr/bin/objformat`
19444   else
19445     case $host_os in
19446     freebsd[123]*) objformat=aout ;;
19447     *) objformat=elf ;;
19448     esac
19449   fi
19450   version_type=freebsd-$objformat
19451   case $version_type in
19452     freebsd-elf*)
19453       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19454       need_version=no
19455       need_lib_prefix=no
19456       ;;
19457     freebsd-*)
19458       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19459       need_version=yes
19460       ;;
19461   esac
19462   shlibpath_var=LD_LIBRARY_PATH
19463   case $host_os in
19464   freebsd2*)
19465     shlibpath_overrides_runpath=yes
19466     ;;
19467   freebsd3.[01]* | freebsdelf3.[01]*)
19468     shlibpath_overrides_runpath=yes
19469     hardcode_into_libs=yes
19470     ;;
19471   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19472   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19473     shlibpath_overrides_runpath=no
19474     hardcode_into_libs=yes
19475     ;;
19476   freebsd*) # from 4.6 on
19477     shlibpath_overrides_runpath=yes
19478     hardcode_into_libs=yes
19479     ;;
19480   esac
19481   ;;
19482
19483 gnu*)
19484   version_type=linux
19485   need_lib_prefix=no
19486   need_version=no
19487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19488   soname_spec='${libname}${release}${shared_ext}$major'
19489   shlibpath_var=LD_LIBRARY_PATH
19490   hardcode_into_libs=yes
19491   ;;
19492
19493 hpux9* | hpux10* | hpux11*)
19494   # Give a soname corresponding to the major version so that dld.sl refuses to
19495   # link against other versions.
19496   version_type=sunos
19497   need_lib_prefix=no
19498   need_version=no
19499   case $host_cpu in
19500   ia64*)
19501     shrext_cmds='.so'
19502     hardcode_into_libs=yes
19503     dynamic_linker="$host_os dld.so"
19504     shlibpath_var=LD_LIBRARY_PATH
19505     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19506     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19507     soname_spec='${libname}${release}${shared_ext}$major'
19508     if test "X$HPUX_IA64_MODE" = X32; then
19509       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19510     else
19511       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19512     fi
19513     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19514     ;;
19515    hppa*64*)
19516      shrext_cmds='.sl'
19517      hardcode_into_libs=yes
19518      dynamic_linker="$host_os dld.sl"
19519      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19520      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19521      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19522      soname_spec='${libname}${release}${shared_ext}$major'
19523      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19524      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19525      ;;
19526    *)
19527     shrext_cmds='.sl'
19528     dynamic_linker="$host_os dld.sl"
19529     shlibpath_var=SHLIB_PATH
19530     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19532     soname_spec='${libname}${release}${shared_ext}$major'
19533     ;;
19534   esac
19535   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19536   postinstall_cmds='chmod 555 $lib'
19537   ;;
19538
19539 interix3*)
19540   version_type=linux
19541   need_lib_prefix=no
19542   need_version=no
19543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19544   soname_spec='${libname}${release}${shared_ext}$major'
19545   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19546   shlibpath_var=LD_LIBRARY_PATH
19547   shlibpath_overrides_runpath=no
19548   hardcode_into_libs=yes
19549   ;;
19550
19551 irix5* | irix6* | nonstopux*)
19552   case $host_os in
19553     nonstopux*) version_type=nonstopux ;;
19554     *)
19555         if test "$lt_cv_prog_gnu_ld" = yes; then
19556                 version_type=linux
19557         else
19558                 version_type=irix
19559         fi ;;
19560   esac
19561   need_lib_prefix=no
19562   need_version=no
19563   soname_spec='${libname}${release}${shared_ext}$major'
19564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19565   case $host_os in
19566   irix5* | nonstopux*)
19567     libsuff= shlibsuff=
19568     ;;
19569   *)
19570     case $LD in # libtool.m4 will add one of these switches to LD
19571     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19572       libsuff= shlibsuff= libmagic=32-bit;;
19573     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19574       libsuff=32 shlibsuff=N32 libmagic=N32;;
19575     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19576       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19577     *) libsuff= shlibsuff= libmagic=never-match;;
19578     esac
19579     ;;
19580   esac
19581   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19582   shlibpath_overrides_runpath=no
19583   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19584   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19585   hardcode_into_libs=yes
19586   ;;
19587
19588 # No shared lib support for Linux oldld, aout, or coff.
19589 linux*oldld* | linux*aout* | linux*coff*)
19590   dynamic_linker=no
19591   ;;
19592
19593 # This must be Linux ELF.
19594 linux*)
19595   version_type=linux
19596   need_lib_prefix=no
19597   need_version=no
19598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19599   soname_spec='${libname}${release}${shared_ext}$major'
19600   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19601   shlibpath_var=LD_LIBRARY_PATH
19602   shlibpath_overrides_runpath=no
19603   # This implies no fast_install, which is unacceptable.
19604   # Some rework will be needed to allow for fast_install
19605   # before this can be enabled.
19606   hardcode_into_libs=yes
19607
19608   # find out which ABI we are using
19609   libsuff=
19610   case "$host_cpu" in
19611   x86_64*|s390x*|powerpc64*)
19612     echo '#line 19612 "configure"' > conftest.$ac_ext
19613     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19614   (eval $ac_compile) 2>&5
19615   ac_status=$?
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); }; then
19618       case `/usr/bin/file conftest.$ac_objext` in
19619       *64-bit*)
19620         libsuff=64
19621         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19622         ;;
19623       esac
19624     fi
19625     rm -rf conftest*
19626     ;;
19627   esac
19628
19629   # Append ld.so.conf contents to the search path
19630   if test -f /etc/ld.so.conf; then
19631     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19632     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19633   fi
19634
19635   # We used to test for /lib/ld.so.1 and disable shared libraries on
19636   # powerpc, because MkLinux only supported shared libraries with the
19637   # GNU dynamic linker.  Since this was broken with cross compilers,
19638   # most powerpc-linux boxes support dynamic linking these days and
19639   # people can always --disable-shared, the test was removed, and we
19640   # assume the GNU/Linux dynamic linker is in use.
19641   dynamic_linker='GNU/Linux ld.so'
19642   ;;
19643
19644 knetbsd*-gnu)
19645   version_type=linux
19646   need_lib_prefix=no
19647   need_version=no
19648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19649   soname_spec='${libname}${release}${shared_ext}$major'
19650   shlibpath_var=LD_LIBRARY_PATH
19651   shlibpath_overrides_runpath=no
19652   hardcode_into_libs=yes
19653   dynamic_linker='GNU ld.so'
19654   ;;
19655
19656 netbsd*)
19657   version_type=sunos
19658   need_lib_prefix=no
19659   need_version=no
19660   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19662     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19663     dynamic_linker='NetBSD (a.out) ld.so'
19664   else
19665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19666     soname_spec='${libname}${release}${shared_ext}$major'
19667     dynamic_linker='NetBSD ld.elf_so'
19668   fi
19669   shlibpath_var=LD_LIBRARY_PATH
19670   shlibpath_overrides_runpath=yes
19671   hardcode_into_libs=yes
19672   ;;
19673
19674 newsos6)
19675   version_type=linux
19676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19677   shlibpath_var=LD_LIBRARY_PATH
19678   shlibpath_overrides_runpath=yes
19679   ;;
19680
19681 nto-qnx*)
19682   version_type=linux
19683   need_lib_prefix=no
19684   need_version=no
19685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19686   soname_spec='${libname}${release}${shared_ext}$major'
19687   shlibpath_var=LD_LIBRARY_PATH
19688   shlibpath_overrides_runpath=yes
19689   ;;
19690
19691 openbsd*)
19692   version_type=sunos
19693   sys_lib_dlsearch_path_spec="/usr/lib"
19694   need_lib_prefix=no
19695   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19696   case $host_os in
19697     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19698     *)                         need_version=no  ;;
19699   esac
19700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19701   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19702   shlibpath_var=LD_LIBRARY_PATH
19703   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19704     case $host_os in
19705       openbsd2.[89] | openbsd2.[89].*)
19706         shlibpath_overrides_runpath=no
19707         ;;
19708       *)
19709         shlibpath_overrides_runpath=yes
19710         ;;
19711       esac
19712   else
19713     shlibpath_overrides_runpath=yes
19714   fi
19715   ;;
19716
19717 os2*)
19718   libname_spec='$name'
19719   shrext_cmds=".dll"
19720   need_lib_prefix=no
19721   library_names_spec='$libname${shared_ext} $libname.a'
19722   dynamic_linker='OS/2 ld.exe'
19723   shlibpath_var=LIBPATH
19724   ;;
19725
19726 osf3* | osf4* | osf5*)
19727   version_type=osf
19728   need_lib_prefix=no
19729   need_version=no
19730   soname_spec='${libname}${release}${shared_ext}$major'
19731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19732   shlibpath_var=LD_LIBRARY_PATH
19733   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19734   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19735   ;;
19736
19737 solaris*)
19738   version_type=linux
19739   need_lib_prefix=no
19740   need_version=no
19741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19742   soname_spec='${libname}${release}${shared_ext}$major'
19743   shlibpath_var=LD_LIBRARY_PATH
19744   shlibpath_overrides_runpath=yes
19745   hardcode_into_libs=yes
19746   # ldd complains unless libraries are executable
19747   postinstall_cmds='chmod +x $lib'
19748   ;;
19749
19750 sunos4*)
19751   version_type=sunos
19752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19753   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19754   shlibpath_var=LD_LIBRARY_PATH
19755   shlibpath_overrides_runpath=yes
19756   if test "$with_gnu_ld" = yes; then
19757     need_lib_prefix=no
19758   fi
19759   need_version=yes
19760   ;;
19761
19762 sysv4 | sysv4.3*)
19763   version_type=linux
19764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19765   soname_spec='${libname}${release}${shared_ext}$major'
19766   shlibpath_var=LD_LIBRARY_PATH
19767   case $host_vendor in
19768     sni)
19769       shlibpath_overrides_runpath=no
19770       need_lib_prefix=no
19771       export_dynamic_flag_spec='${wl}-Blargedynsym'
19772       runpath_var=LD_RUN_PATH
19773       ;;
19774     siemens)
19775       need_lib_prefix=no
19776       ;;
19777     motorola)
19778       need_lib_prefix=no
19779       need_version=no
19780       shlibpath_overrides_runpath=no
19781       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19782       ;;
19783   esac
19784   ;;
19785
19786 sysv4*MP*)
19787   if test -d /usr/nec ;then
19788     version_type=linux
19789     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19790     soname_spec='$libname${shared_ext}.$major'
19791     shlibpath_var=LD_LIBRARY_PATH
19792   fi
19793   ;;
19794
19795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19796   version_type=freebsd-elf
19797   need_lib_prefix=no
19798   need_version=no
19799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19800   soname_spec='${libname}${release}${shared_ext}$major'
19801   shlibpath_var=LD_LIBRARY_PATH
19802   hardcode_into_libs=yes
19803   if test "$with_gnu_ld" = yes; then
19804     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19805     shlibpath_overrides_runpath=no
19806   else
19807     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19808     shlibpath_overrides_runpath=yes
19809     case $host_os in
19810       sco3.2v5*)
19811         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19812         ;;
19813     esac
19814   fi
19815   sys_lib_dlsearch_path_spec='/usr/lib'
19816   ;;
19817
19818 uts4*)
19819   version_type=linux
19820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19821   soname_spec='${libname}${release}${shared_ext}$major'
19822   shlibpath_var=LD_LIBRARY_PATH
19823   ;;
19824
19825 *)
19826   dynamic_linker=no
19827   ;;
19828 esac
19829 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19830 echo "${ECHO_T}$dynamic_linker" >&6
19831 test "$dynamic_linker" = no && can_build_shared=no
19832
19833 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19834 if test "$GCC" = yes; then
19835   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19836 fi
19837
19838 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19839 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19840 hardcode_action_CXX=
19841 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19842    test -n "$runpath_var_CXX" || \
19843    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19844
19845   # We can hardcode non-existant directories.
19846   if test "$hardcode_direct_CXX" != no &&
19847      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19848      # have to relink, otherwise we might link with an installed library
19849      # when we should be linking with a yet-to-be-installed one
19850      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19851      test "$hardcode_minus_L_CXX" != no; then
19852     # Linking always hardcodes the temporary library directory.
19853     hardcode_action_CXX=relink
19854   else
19855     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19856     hardcode_action_CXX=immediate
19857   fi
19858 else
19859   # We cannot hardcode anything, or else we can only hardcode existing
19860   # directories.
19861   hardcode_action_CXX=unsupported
19862 fi
19863 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19864 echo "${ECHO_T}$hardcode_action_CXX" >&6
19865
19866 if test "$hardcode_action_CXX" = relink; then
19867   # Fast installation is not supported
19868   enable_fast_install=no
19869 elif test "$shlibpath_overrides_runpath" = yes ||
19870      test "$enable_shared" = no; then
19871   # Fast installation is not necessary
19872   enable_fast_install=needless
19873 fi
19874
19875
19876 # The else clause should only fire when bootstrapping the
19877 # libtool distribution, otherwise you forgot to ship ltmain.sh
19878 # with your package, and you will get complaints that there are
19879 # no rules to generate ltmain.sh.
19880 if test -f "$ltmain"; then
19881   # See if we are running on zsh, and set the options which allow our commands through
19882   # without removal of \ escapes.
19883   if test -n "${ZSH_VERSION+set}" ; then
19884     setopt NO_GLOB_SUBST
19885   fi
19886   # Now quote all the things that may contain metacharacters while being
19887   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19888   # variables and quote the copies for generation of the libtool script.
19889   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19890     SED SHELL STRIP \
19891     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19892     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19893     deplibs_check_method reload_flag reload_cmds need_locks \
19894     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19895     lt_cv_sys_global_symbol_to_c_name_address \
19896     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19897     old_postinstall_cmds old_postuninstall_cmds \
19898     compiler_CXX \
19899     CC_CXX \
19900     LD_CXX \
19901     lt_prog_compiler_wl_CXX \
19902     lt_prog_compiler_pic_CXX \
19903     lt_prog_compiler_static_CXX \
19904     lt_prog_compiler_no_builtin_flag_CXX \
19905     export_dynamic_flag_spec_CXX \
19906     thread_safe_flag_spec_CXX \
19907     whole_archive_flag_spec_CXX \
19908     enable_shared_with_static_runtimes_CXX \
19909     old_archive_cmds_CXX \
19910     old_archive_from_new_cmds_CXX \
19911     predep_objects_CXX \
19912     postdep_objects_CXX \
19913     predeps_CXX \
19914     postdeps_CXX \
19915     compiler_lib_search_path_CXX \
19916     archive_cmds_CXX \
19917     archive_expsym_cmds_CXX \
19918     postinstall_cmds_CXX \
19919     postuninstall_cmds_CXX \
19920     old_archive_from_expsyms_cmds_CXX \
19921     allow_undefined_flag_CXX \
19922     no_undefined_flag_CXX \
19923     export_symbols_cmds_CXX \
19924     hardcode_libdir_flag_spec_CXX \
19925     hardcode_libdir_flag_spec_ld_CXX \
19926     hardcode_libdir_separator_CXX \
19927     hardcode_automatic_CXX \
19928     module_cmds_CXX \
19929     module_expsym_cmds_CXX \
19930     lt_cv_prog_compiler_c_o_CXX \
19931     exclude_expsyms_CXX \
19932     include_expsyms_CXX; do
19933
19934     case $var in
19935     old_archive_cmds_CXX | \
19936     old_archive_from_new_cmds_CXX | \
19937     archive_cmds_CXX | \
19938     archive_expsym_cmds_CXX | \
19939     module_cmds_CXX | \
19940     module_expsym_cmds_CXX | \
19941     old_archive_from_expsyms_cmds_CXX | \
19942     export_symbols_cmds_CXX | \
19943     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19944     postinstall_cmds | postuninstall_cmds | \
19945     old_postinstall_cmds | old_postuninstall_cmds | \
19946     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19947       # Double-quote double-evaled strings.
19948       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19949       ;;
19950     *)
19951       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19952       ;;
19953     esac
19954   done
19955
19956   case $lt_echo in
19957   *'\$0 --fallback-echo"')
19958     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19959     ;;
19960   esac
19961
19962 cfgfile="$ofile"
19963
19964   cat <<__EOF__ >> "$cfgfile"
19965 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19966
19967 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19968
19969 # Shell to use when invoking shell scripts.
19970 SHELL=$lt_SHELL
19971
19972 # Whether or not to build shared libraries.
19973 build_libtool_libs=$enable_shared
19974
19975 # Whether or not to build static libraries.
19976 build_old_libs=$enable_static
19977
19978 # Whether or not to add -lc for building shared libraries.
19979 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19980
19981 # Whether or not to disallow shared libs when runtime libs are static
19982 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19983
19984 # Whether or not to optimize for fast installation.
19985 fast_install=$enable_fast_install
19986
19987 # The host system.
19988 host_alias=$host_alias
19989 host=$host
19990 host_os=$host_os
19991
19992 # The build system.
19993 build_alias=$build_alias
19994 build=$build
19995 build_os=$build_os
19996
19997 # An echo program that does not interpret backslashes.
19998 echo=$lt_echo
19999
20000 # The archiver.
20001 AR=$lt_AR
20002 AR_FLAGS=$lt_AR_FLAGS
20003
20004 # A C compiler.
20005 LTCC=$lt_LTCC
20006
20007 # LTCC compiler flags.
20008 LTCFLAGS=$lt_LTCFLAGS
20009
20010 # A language-specific compiler.
20011 CC=$lt_compiler_CXX
20012
20013 # Is the compiler the GNU C compiler?
20014 with_gcc=$GCC_CXX
20015
20016 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
20017 gcc_ver=\`gcc -dumpversion\`
20018
20019 # An ERE matcher.
20020 EGREP=$lt_EGREP
20021
20022 # The linker used to build libraries.
20023 LD=$lt_LD_CXX
20024
20025 # Whether we need hard or soft links.
20026 LN_S=$lt_LN_S
20027
20028 # A BSD-compatible nm program.
20029 NM=$lt_NM
20030
20031 # A symbol stripping program
20032 STRIP=$lt_STRIP
20033
20034 # Used to examine libraries when file_magic_cmd begins "file"
20035 MAGIC_CMD=$MAGIC_CMD
20036
20037 # Used on cygwin: DLL creation program.
20038 DLLTOOL="$DLLTOOL"
20039
20040 # Used on cygwin: object dumper.
20041 OBJDUMP="$OBJDUMP"
20042
20043 # Used on cygwin: assembler.
20044 AS="$AS"
20045
20046 # The name of the directory that contains temporary libtool files.
20047 objdir=$objdir
20048
20049 # How to create reloadable object files.
20050 reload_flag=$lt_reload_flag
20051 reload_cmds=$lt_reload_cmds
20052
20053 # How to pass a linker flag through the compiler.
20054 wl=$lt_lt_prog_compiler_wl_CXX
20055
20056 # Object file suffix (normally "o").
20057 objext="$ac_objext"
20058
20059 # Old archive suffix (normally "a").
20060 libext="$libext"
20061
20062 # Shared library suffix (normally ".so").
20063 shrext_cmds='$shrext_cmds'
20064
20065 # Executable file suffix (normally "").
20066 exeext="$exeext"
20067
20068 # Additional compiler flags for building library objects.
20069 pic_flag=$lt_lt_prog_compiler_pic_CXX
20070 pic_mode=$pic_mode
20071
20072 # What is the maximum length of a command?
20073 max_cmd_len=$lt_cv_sys_max_cmd_len
20074
20075 # Does compiler simultaneously support -c and -o options?
20076 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20077
20078 # Must we lock files when doing compilation?
20079 need_locks=$lt_need_locks
20080
20081 # Do we need the lib prefix for modules?
20082 need_lib_prefix=$need_lib_prefix
20083
20084 # Do we need a version for libraries?
20085 need_version=$need_version
20086
20087 # Whether dlopen is supported.
20088 dlopen_support=$enable_dlopen
20089
20090 # Whether dlopen of programs is supported.
20091 dlopen_self=$enable_dlopen_self
20092
20093 # Whether dlopen of statically linked programs is supported.
20094 dlopen_self_static=$enable_dlopen_self_static
20095
20096 # Compiler flag to prevent dynamic linking.
20097 link_static_flag=$lt_lt_prog_compiler_static_CXX
20098
20099 # Compiler flag to turn off builtin functions.
20100 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20101
20102 # Compiler flag to allow reflexive dlopens.
20103 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20104
20105 # Compiler flag to generate shared objects directly from archives.
20106 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20107
20108 # Compiler flag to generate thread-safe objects.
20109 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20110
20111 # Library versioning type.
20112 version_type=$version_type
20113
20114 # Format of library name prefix.
20115 libname_spec=$lt_libname_spec
20116
20117 # List of archive names.  First name is the real one, the rest are links.
20118 # The last name is the one that the linker finds with -lNAME.
20119 library_names_spec=$lt_library_names_spec
20120
20121 # The coded name of the library, if different from the real name.
20122 soname_spec=$lt_soname_spec
20123
20124 # Commands used to build and install an old-style archive.
20125 RANLIB=$lt_RANLIB
20126 old_archive_cmds=$lt_old_archive_cmds_CXX
20127 old_postinstall_cmds=$lt_old_postinstall_cmds
20128 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20129
20130 # Create an old-style archive from a shared archive.
20131 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20132
20133 # Create a temporary old-style archive to link instead of a shared archive.
20134 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20135
20136 # Commands used to build and install a shared archive.
20137 archive_cmds=$lt_archive_cmds_CXX
20138 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20139 postinstall_cmds=$lt_postinstall_cmds
20140 postuninstall_cmds=$lt_postuninstall_cmds
20141
20142 # Commands used to build a loadable module (assumed same as above if empty)
20143 module_cmds=$lt_module_cmds_CXX
20144 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20145
20146 # Commands to strip libraries.
20147 old_striplib=$lt_old_striplib
20148 striplib=$lt_striplib
20149
20150 # Dependencies to place before the objects being linked to create a
20151 # shared library.
20152 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
20153
20154 # Dependencies to place after the objects being linked to create a
20155 # shared library.
20156 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
20157
20158 # Dependencies to place before the objects being linked to create a
20159 # shared library.
20160 predeps=$lt_predeps_CXX
20161
20162 # Dependencies to place after the objects being linked to create a
20163 # shared library.
20164 postdeps=$lt_postdeps_CXX
20165
20166 # The library search path used internally by the compiler when linking
20167 # a shared library.
20168 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
20169
20170 # Method to check whether dependent libraries are shared objects.
20171 deplibs_check_method=$lt_deplibs_check_method
20172
20173 # Command to use when deplibs_check_method == file_magic.
20174 file_magic_cmd=$lt_file_magic_cmd
20175
20176 # Flag that allows shared libraries with undefined symbols to be built.
20177 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20178
20179 # Flag that forces no undefined symbols.
20180 no_undefined_flag=$lt_no_undefined_flag_CXX
20181
20182 # Commands used to finish a libtool library installation in a directory.
20183 finish_cmds=$lt_finish_cmds
20184
20185 # Same as above, but a single script fragment to be evaled but not shown.
20186 finish_eval=$lt_finish_eval
20187
20188 # Take the output of nm and produce a listing of raw symbols and C names.
20189 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20190
20191 # Transform the output of nm in a proper C declaration
20192 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20193
20194 # Transform the output of nm in a C name address pair
20195 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20196
20197 # This is the shared library runtime path variable.
20198 runpath_var=$runpath_var
20199
20200 # This is the shared library path variable.
20201 shlibpath_var=$shlibpath_var
20202
20203 # Is shlibpath searched before the hard-coded library search path?
20204 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20205
20206 # How to hardcode a shared library path into an executable.
20207 hardcode_action=$hardcode_action_CXX
20208
20209 # Whether we should hardcode library paths into libraries.
20210 hardcode_into_libs=$hardcode_into_libs
20211
20212 # Flag to hardcode \$libdir into a binary during linking.
20213 # This must work even if \$libdir does not exist.
20214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20215
20216 # If ld is used when linking, flag to hardcode \$libdir into
20217 # a binary during linking. This must work even if \$libdir does
20218 # not exist.
20219 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20220
20221 # Whether we need a single -rpath flag with a separated argument.
20222 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20223
20224 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20225 # resulting binary.
20226 hardcode_direct=$hardcode_direct_CXX
20227
20228 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20229 # resulting binary.
20230 hardcode_minus_L=$hardcode_minus_L_CXX
20231
20232 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20233 # the resulting binary.
20234 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20235
20236 # Set to yes if building a shared library automatically hardcodes DIR into the library
20237 # and all subsequent libraries and executables linked against it.
20238 hardcode_automatic=$hardcode_automatic_CXX
20239
20240 # Variables whose values should be saved in libtool wrapper scripts and
20241 # restored at relink time.
20242 variables_saved_for_relink="$variables_saved_for_relink"
20243
20244 # Whether libtool must link a program against all its dependency libraries.
20245 link_all_deplibs=$link_all_deplibs_CXX
20246
20247 # Compile-time system search path for libraries
20248 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
20249
20250 # Run-time system search path for libraries
20251 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20252
20253 # Fix the shell variable \$srcfile for the compiler.
20254 fix_srcfile_path="$fix_srcfile_path_CXX"
20255
20256 # Set to yes if exported symbols are required.
20257 always_export_symbols=$always_export_symbols_CXX
20258
20259 # The commands to list exported symbols.
20260 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20261
20262 # The commands to extract the exported symbol list from a shared archive.
20263 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20264
20265 # Symbols that should not be listed in the preloaded symbols.
20266 exclude_expsyms=$lt_exclude_expsyms_CXX
20267
20268 # Symbols that must always be exported.
20269 include_expsyms=$lt_include_expsyms_CXX
20270
20271 # ### END LIBTOOL TAG CONFIG: $tagname
20272
20273 __EOF__
20274
20275
20276 else
20277   # If there is no Makefile yet, we rely on a make rule to execute
20278   # `config.status --recheck' to rerun these tests and create the
20279   # libtool script then.
20280   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20281   if test -f "$ltmain_in"; then
20282     test -f Makefile && make "$ltmain"
20283   fi
20284 fi
20285
20286
20287 ac_ext=c
20288 ac_cpp='$CPP $CPPFLAGS'
20289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20292
20293 CC=$lt_save_CC
20294 LDCXX=$LD
20295 LD=$lt_save_LD
20296 GCC=$lt_save_GCC
20297 with_gnu_ldcxx=$with_gnu_ld
20298 with_gnu_ld=$lt_save_with_gnu_ld
20299 lt_cv_path_LDCXX=$lt_cv_path_LD
20300 lt_cv_path_LD=$lt_save_path_LD
20301 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20302 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20303
20304         else
20305           tagname=""
20306         fi
20307         ;;
20308
20309       F77)
20310         if test -n "$F77" && test "X$F77" != "Xno"; then
20311
20312 ac_ext=f
20313 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20314 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20315 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20316
20317
20318 archive_cmds_need_lc_F77=no
20319 allow_undefined_flag_F77=
20320 always_export_symbols_F77=no
20321 archive_expsym_cmds_F77=
20322 export_dynamic_flag_spec_F77=
20323 hardcode_direct_F77=no
20324 hardcode_libdir_flag_spec_F77=
20325 hardcode_libdir_flag_spec_ld_F77=
20326 hardcode_libdir_separator_F77=
20327 hardcode_minus_L_F77=no
20328 hardcode_automatic_F77=no
20329 module_cmds_F77=
20330 module_expsym_cmds_F77=
20331 link_all_deplibs_F77=unknown
20332 old_archive_cmds_F77=$old_archive_cmds
20333 no_undefined_flag_F77=
20334 whole_archive_flag_spec_F77=
20335 enable_shared_with_static_runtimes_F77=no
20336
20337 # Source file extension for f77 test sources.
20338 ac_ext=f
20339
20340 # Object file extension for compiled f77 test sources.
20341 objext=o
20342 objext_F77=$objext
20343
20344 # Code to be used in simple compile tests
20345 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20346
20347 # Code to be used in simple link tests
20348 lt_simple_link_test_code="      program t\n      end\n"
20349
20350 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20351
20352 # If no C compiler was specified, use CC.
20353 LTCC=${LTCC-"$CC"}
20354
20355 # If no C compiler flags were specified, use CFLAGS.
20356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20357
20358 # Allow CC to be a program name with arguments.
20359 compiler=$CC
20360
20361
20362 # save warnings/boilerplate of simple test code
20363 ac_outfile=conftest.$ac_objext
20364 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20366 _lt_compiler_boilerplate=`cat conftest.err`
20367 $rm conftest*
20368
20369 ac_outfile=conftest.$ac_objext
20370 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20372 _lt_linker_boilerplate=`cat conftest.err`
20373 $rm conftest*
20374
20375
20376 # Allow CC to be a program name with arguments.
20377 lt_save_CC="$CC"
20378 CC=${F77-"f77"}
20379 compiler=$CC
20380 compiler_F77=$CC
20381 for cc_temp in $compiler""; do
20382   case $cc_temp in
20383     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20384     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20385     \-*) ;;
20386     *) break;;
20387   esac
20388 done
20389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20390
20391
20392 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20393 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20394 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20395 echo "${ECHO_T}$can_build_shared" >&6
20396
20397 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20398 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20399 test "$can_build_shared" = "no" && enable_shared=no
20400
20401 # On AIX, shared libraries and static libraries use the same namespace, and
20402 # are all built from PIC.
20403 case $host_os in
20404 aix3*)
20405   test "$enable_shared" = yes && enable_static=no
20406   if test -n "$RANLIB"; then
20407     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20408     postinstall_cmds='$RANLIB $lib'
20409   fi
20410   ;;
20411 aix4* | aix5*)
20412   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20413     test "$enable_shared" = yes && enable_static=no
20414   fi
20415   ;;
20416 esac
20417 echo "$as_me:$LINENO: result: $enable_shared" >&5
20418 echo "${ECHO_T}$enable_shared" >&6
20419
20420 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20421 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20422 # Make sure either enable_shared or enable_static is yes.
20423 test "$enable_shared" = yes || enable_static=yes
20424 echo "$as_me:$LINENO: result: $enable_static" >&5
20425 echo "${ECHO_T}$enable_static" >&6
20426
20427 GCC_F77="$G77"
20428 LD_F77="$LD"
20429
20430 lt_prog_compiler_wl_F77=
20431 lt_prog_compiler_pic_F77=
20432 lt_prog_compiler_static_F77=
20433
20434 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20435 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20436
20437   if test "$GCC" = yes; then
20438     lt_prog_compiler_wl_F77='-Wl,'
20439     lt_prog_compiler_static_F77='-static'
20440
20441     case $host_os in
20442       aix*)
20443       # All AIX code is PIC.
20444       if test "$host_cpu" = ia64; then
20445         # AIX 5 now supports IA64 processor
20446         lt_prog_compiler_static_F77='-Bstatic'
20447       fi
20448       ;;
20449
20450     amigaos*)
20451       # FIXME: we need at least 68020 code to build shared libraries, but
20452       # adding the `-m68020' flag to GCC prevents building anything better,
20453       # like `-m68040'.
20454       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20455       ;;
20456
20457     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20458       # PIC is the default for these OSes.
20459       ;;
20460
20461     mingw* | pw32* | os2*)
20462       # This hack is so that the source file can tell whether it is being
20463       # built for inclusion in a dll (and should export symbols for example).
20464       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20465       ;;
20466
20467     darwin* | rhapsody*)
20468       # PIC is the default on this platform
20469       # Common symbols not allowed in MH_DYLIB files
20470       lt_prog_compiler_pic_F77='-fno-common'
20471       ;;
20472
20473     interix3*)
20474       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20475       # Instead, we relocate shared libraries at runtime.
20476       ;;
20477
20478     msdosdjgpp*)
20479       # Just because we use GCC doesn't mean we suddenly get shared libraries
20480       # on systems that don't support them.
20481       lt_prog_compiler_can_build_shared_F77=no
20482       enable_shared=no
20483       ;;
20484
20485     sysv4*MP*)
20486       if test -d /usr/nec; then
20487         lt_prog_compiler_pic_F77=-Kconform_pic
20488       fi
20489       ;;
20490
20491     hpux*)
20492       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20493       # not for PA HP-UX.
20494       case $host_cpu in
20495       hppa*64*|ia64*)
20496         # +Z the default
20497         ;;
20498       *)
20499         lt_prog_compiler_pic_F77='-fPIC'
20500         ;;
20501       esac
20502       ;;
20503
20504     *)
20505       lt_prog_compiler_pic_F77='-fPIC'
20506       ;;
20507     esac
20508   else
20509     # PORTME Check for flag to pass linker flags through the system compiler.
20510     case $host_os in
20511     aix*)
20512       lt_prog_compiler_wl_F77='-Wl,'
20513       if test "$host_cpu" = ia64; then
20514         # AIX 5 now supports IA64 processor
20515         lt_prog_compiler_static_F77='-Bstatic'
20516       else
20517         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20518       fi
20519       ;;
20520       darwin*)
20521         # PIC is the default on this platform
20522         # Common symbols not allowed in MH_DYLIB files
20523        case $cc_basename in
20524          xlc*)
20525          lt_prog_compiler_pic_F77='-qnocommon'
20526          lt_prog_compiler_wl_F77='-Wl,'
20527          ;;
20528        esac
20529        ;;
20530
20531     mingw* | pw32* | os2*)
20532       # This hack is so that the source file can tell whether it is being
20533       # built for inclusion in a dll (and should export symbols for example).
20534       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20535       ;;
20536
20537     hpux9* | hpux10* | hpux11*)
20538       lt_prog_compiler_wl_F77='-Wl,'
20539       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20540       # not for PA HP-UX.
20541       case $host_cpu in
20542       hppa*64*|ia64*)
20543         # +Z the default
20544         ;;
20545       *)
20546         lt_prog_compiler_pic_F77='+Z'
20547         ;;
20548       esac
20549       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20550       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20551       ;;
20552
20553     irix5* | irix6* | nonstopux*)
20554       lt_prog_compiler_wl_F77='-Wl,'
20555       # PIC (with -KPIC) is the default.
20556       lt_prog_compiler_static_F77='-non_shared'
20557       ;;
20558
20559     newsos6)
20560       lt_prog_compiler_pic_F77='-KPIC'
20561       lt_prog_compiler_static_F77='-Bstatic'
20562       ;;
20563
20564     linux*)
20565       case $cc_basename in
20566       icc* | ecc*)
20567         lt_prog_compiler_wl_F77='-Wl,'
20568         lt_prog_compiler_pic_F77='-KPIC'
20569         lt_prog_compiler_static_F77='-static'
20570         ;;
20571       pgcc* | pgf77* | pgf90* | pgf95*)
20572         # Portland Group compilers (*not* the Pentium gcc compiler,
20573         # which looks to be a dead project)
20574         lt_prog_compiler_wl_F77='-Wl,'
20575         lt_prog_compiler_pic_F77='-fpic'
20576         lt_prog_compiler_static_F77='-Bstatic'
20577         ;;
20578       ccc*)
20579         lt_prog_compiler_wl_F77='-Wl,'
20580         # All Alpha code is PIC.
20581         lt_prog_compiler_static_F77='-non_shared'
20582         ;;
20583       esac
20584       ;;
20585
20586     osf3* | osf4* | osf5*)
20587       lt_prog_compiler_wl_F77='-Wl,'
20588       # All OSF/1 code is PIC.
20589       lt_prog_compiler_static_F77='-non_shared'
20590       ;;
20591
20592     solaris*)
20593       lt_prog_compiler_pic_F77='-KPIC'
20594       lt_prog_compiler_static_F77='-Bstatic'
20595       case $cc_basename in
20596       f77* | f90* | f95*)
20597         lt_prog_compiler_wl_F77='-Qoption ld ';;
20598       *)
20599         lt_prog_compiler_wl_F77='-Wl,';;
20600       esac
20601       ;;
20602
20603     sunos4*)
20604       lt_prog_compiler_wl_F77='-Qoption ld '
20605       lt_prog_compiler_pic_F77='-PIC'
20606       lt_prog_compiler_static_F77='-Bstatic'
20607       ;;
20608
20609     sysv4 | sysv4.2uw2* | sysv4.3*)
20610       lt_prog_compiler_wl_F77='-Wl,'
20611       lt_prog_compiler_pic_F77='-KPIC'
20612       lt_prog_compiler_static_F77='-Bstatic'
20613       ;;
20614
20615     sysv4*MP*)
20616       if test -d /usr/nec ;then
20617         lt_prog_compiler_pic_F77='-Kconform_pic'
20618         lt_prog_compiler_static_F77='-Bstatic'
20619       fi
20620       ;;
20621
20622     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20623       lt_prog_compiler_wl_F77='-Wl,'
20624       lt_prog_compiler_pic_F77='-KPIC'
20625       lt_prog_compiler_static_F77='-Bstatic'
20626       ;;
20627
20628     unicos*)
20629       lt_prog_compiler_wl_F77='-Wl,'
20630       lt_prog_compiler_can_build_shared_F77=no
20631       ;;
20632
20633     uts4*)
20634       lt_prog_compiler_pic_F77='-pic'
20635       lt_prog_compiler_static_F77='-Bstatic'
20636       ;;
20637
20638     *)
20639       lt_prog_compiler_can_build_shared_F77=no
20640       ;;
20641     esac
20642   fi
20643
20644 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20645 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
20646
20647 #
20648 # Check to make sure the PIC flag actually works.
20649 #
20650 if test -n "$lt_prog_compiler_pic_F77"; then
20651
20652 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20653 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
20654 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20655   echo $ECHO_N "(cached) $ECHO_C" >&6
20656 else
20657   lt_prog_compiler_pic_works_F77=no
20658   ac_outfile=conftest.$ac_objext
20659    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20660    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20661    # Insert the option either (1) after the last *FLAGS variable, or
20662    # (2) before a word containing "conftest.", or (3) at the end.
20663    # Note that $ac_compile itself does not contain backslashes and begins
20664    # with a dollar sign (not a hyphen), so the echo should work correctly.
20665    # The option is referenced via a variable to avoid confusing sed.
20666    lt_compile=`echo "$ac_compile" | $SED \
20667    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20669    -e 's:$: $lt_compiler_flag:'`
20670    (eval echo "\"\$as_me:20670: $lt_compile\"" >&5)
20671    (eval "$lt_compile" 2>conftest.err)
20672    ac_status=$?
20673    cat conftest.err >&5
20674    echo "$as_me:20674: \$? = $ac_status" >&5
20675    if (exit $ac_status) && test -s "$ac_outfile"; then
20676      # The compiler can only warn and ignore the option if not recognized
20677      # So say no if there are warnings other than the usual output.
20678      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20679      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20680      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20681        lt_prog_compiler_pic_works_F77=yes
20682      fi
20683    fi
20684    $rm conftest*
20685
20686 fi
20687 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20688 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
20689
20690 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20691     case $lt_prog_compiler_pic_F77 in
20692      "" | " "*) ;;
20693      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20694      esac
20695 else
20696     lt_prog_compiler_pic_F77=
20697      lt_prog_compiler_can_build_shared_F77=no
20698 fi
20699
20700 fi
20701 case $host_os in
20702   # For platforms which do not support PIC, -DPIC is meaningless:
20703   *djgpp*)
20704     lt_prog_compiler_pic_F77=
20705     ;;
20706   *)
20707     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20708     ;;
20709 esac
20710
20711 #
20712 # Check to make sure the static flag actually works.
20713 #
20714 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20715 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20716 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
20717 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20718   echo $ECHO_N "(cached) $ECHO_C" >&6
20719 else
20720   lt_prog_compiler_static_works_F77=no
20721    save_LDFLAGS="$LDFLAGS"
20722    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20723    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20724    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20725      # The linker can only warn and ignore the option if not recognized
20726      # So say no if there are warnings
20727      if test -s conftest.err; then
20728        # Append any errors to the config.log.
20729        cat conftest.err 1>&5
20730        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20731        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20732        if diff conftest.exp conftest.er2 >/dev/null; then
20733          lt_prog_compiler_static_works_F77=yes
20734        fi
20735      else
20736        lt_prog_compiler_static_works_F77=yes
20737      fi
20738    fi
20739    $rm conftest*
20740    LDFLAGS="$save_LDFLAGS"
20741
20742 fi
20743 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20744 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
20745
20746 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20747     :
20748 else
20749     lt_prog_compiler_static_F77=
20750 fi
20751
20752
20753 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20754 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20755 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 else
20758   lt_cv_prog_compiler_c_o_F77=no
20759    $rm -r conftest 2>/dev/null
20760    mkdir conftest
20761    cd conftest
20762    mkdir out
20763    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20764
20765    lt_compiler_flag="-o out/conftest2.$ac_objext"
20766    # Insert the option either (1) after the last *FLAGS variable, or
20767    # (2) before a word containing "conftest.", or (3) at the end.
20768    # Note that $ac_compile itself does not contain backslashes and begins
20769    # with a dollar sign (not a hyphen), so the echo should work correctly.
20770    lt_compile=`echo "$ac_compile" | $SED \
20771    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20773    -e 's:$: $lt_compiler_flag:'`
20774    (eval echo "\"\$as_me:20774: $lt_compile\"" >&5)
20775    (eval "$lt_compile" 2>out/conftest.err)
20776    ac_status=$?
20777    cat out/conftest.err >&5
20778    echo "$as_me:20778: \$? = $ac_status" >&5
20779    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20780    then
20781      # The compiler can only warn and ignore the option if not recognized
20782      # So say no if there are warnings
20783      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20784      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20785      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20786        lt_cv_prog_compiler_c_o_F77=yes
20787      fi
20788    fi
20789    chmod u+w . 2>&5
20790    $rm conftest*
20791    # SGI C++ compiler will create directory out/ii_files/ for
20792    # template instantiation
20793    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20794    $rm out/* && rmdir out
20795    cd ..
20796    rmdir conftest
20797    $rm conftest*
20798
20799 fi
20800 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20801 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
20802
20803
20804 hard_links="nottested"
20805 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20806   # do not overwrite the value of need_locks provided by the user
20807   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20808 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20809   hard_links=yes
20810   $rm conftest*
20811   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20812   touch conftest.a
20813   ln conftest.a conftest.b 2>&5 || hard_links=no
20814   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20815   echo "$as_me:$LINENO: result: $hard_links" >&5
20816 echo "${ECHO_T}$hard_links" >&6
20817   if test "$hard_links" = no; then
20818     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20819 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20820     need_locks=warn
20821   fi
20822 else
20823   need_locks=no
20824 fi
20825
20826 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20827 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20828
20829   runpath_var=
20830   allow_undefined_flag_F77=
20831   enable_shared_with_static_runtimes_F77=no
20832   archive_cmds_F77=
20833   archive_expsym_cmds_F77=
20834   old_archive_From_new_cmds_F77=
20835   old_archive_from_expsyms_cmds_F77=
20836   export_dynamic_flag_spec_F77=
20837   whole_archive_flag_spec_F77=
20838   thread_safe_flag_spec_F77=
20839   hardcode_libdir_flag_spec_F77=
20840   hardcode_libdir_flag_spec_ld_F77=
20841   hardcode_libdir_separator_F77=
20842   hardcode_direct_F77=no
20843   hardcode_minus_L_F77=no
20844   hardcode_shlibpath_var_F77=unsupported
20845   link_all_deplibs_F77=unknown
20846   hardcode_automatic_F77=no
20847   module_cmds_F77=
20848   module_expsym_cmds_F77=
20849   always_export_symbols_F77=no
20850   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20851   # include_expsyms should be a list of space-separated symbols to be *always*
20852   # included in the symbol list
20853   include_expsyms_F77=
20854   # exclude_expsyms can be an extended regexp of symbols to exclude
20855   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20856   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20857   # as well as any symbol that contains `d'.
20858   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20859   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20860   # platforms (ab)use it in PIC code, but their linkers get confused if
20861   # the symbol is explicitly referenced.  Since portable code cannot
20862   # rely on this symbol name, it's probably fine to never include it in
20863   # preloaded symbol tables.
20864   extract_expsyms_cmds=
20865   # Just being paranoid about ensuring that cc_basename is set.
20866   for cc_temp in $compiler""; do
20867   case $cc_temp in
20868     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20869     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20870     \-*) ;;
20871     *) break;;
20872   esac
20873 done
20874 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20875
20876   case $host_os in
20877   cygwin* | mingw* | pw32*)
20878     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20879     # When not using gcc, we currently assume that we are using
20880     # Microsoft Visual C++.
20881     if test "$GCC" != yes; then
20882       with_gnu_ld=no
20883     fi
20884     ;;
20885   interix*)
20886     # we just hope/assume this is gcc and not c89 (= MSVC++)
20887     with_gnu_ld=yes
20888     ;;
20889   openbsd*)
20890     with_gnu_ld=no
20891     ;;
20892   esac
20893
20894   ld_shlibs_F77=yes
20895   if test "$with_gnu_ld" = yes; then
20896     # If archive_cmds runs LD, not CC, wlarc should be empty
20897     wlarc='${wl}'
20898
20899     # Set some defaults for GNU ld with shared library support. These
20900     # are reset later if shared libraries are not supported. Putting them
20901     # here allows them to be overridden if necessary.
20902     runpath_var=LD_RUN_PATH
20903     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20904     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20905     # ancient GNU ld didn't support --whole-archive et. al.
20906     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20907         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20908       else
20909         whole_archive_flag_spec_F77=
20910     fi
20911     supports_anon_versioning=no
20912     case `$LD -v 2>/dev/null` in
20913       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20914       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20915       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20916       *\ 2.11.*) ;; # other 2.11 versions
20917       *) supports_anon_versioning=yes ;;
20918     esac
20919
20920     # See if GNU ld supports shared libraries.
20921     case $host_os in
20922     aix3* | aix4* | aix5*)
20923       # On AIX/PPC, the GNU linker is very broken
20924       if test "$host_cpu" != ia64; then
20925         ld_shlibs_F77=no
20926         cat <<EOF 1>&2
20927
20928 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20929 *** to be unable to reliably create shared libraries on AIX.
20930 *** Therefore, libtool is disabling shared libraries support.  If you
20931 *** really care for shared libraries, you may want to modify your PATH
20932 *** so that a non-GNU linker is found, and then restart.
20933
20934 EOF
20935       fi
20936       ;;
20937
20938     amigaos*)
20939       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)'
20940       hardcode_libdir_flag_spec_F77='-L$libdir'
20941       hardcode_minus_L_F77=yes
20942
20943       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20944       # that the semantics of dynamic libraries on AmigaOS, at least up
20945       # to version 4, is to share data among multiple programs linked
20946       # with the same dynamic library.  Since this doesn't match the
20947       # behavior of shared libraries on other platforms, we can't use
20948       # them.
20949       ld_shlibs_F77=no
20950       ;;
20951
20952     beos*)
20953       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20954         allow_undefined_flag_F77=unsupported
20955         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20956         # support --undefined.  This deserves some investigation.  FIXME
20957         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20958       else
20959         ld_shlibs_F77=no
20960       fi
20961       ;;
20962
20963     cygwin* | mingw* | pw32*)
20964       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20965       # as there is no search path for DLLs.
20966       hardcode_libdir_flag_spec_F77='-L$libdir'
20967       allow_undefined_flag_F77=unsupported
20968       always_export_symbols_F77=no
20969       enable_shared_with_static_runtimes_F77=yes
20970       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20971
20972       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20973         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20974         # If the export-symbols file already is a .def file (1st line
20975         # is EXPORTS), use it as is; otherwise, prepend...
20976         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20977           cp $export_symbols $output_objdir/$soname.def;
20978         else
20979           echo EXPORTS > $output_objdir/$soname.def;
20980           cat $export_symbols >> $output_objdir/$soname.def;
20981         fi~
20982         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20983       else
20984         ld_shlibs_F77=no
20985       fi
20986       ;;
20987
20988     interix3*)
20989       hardcode_direct_F77=no
20990       hardcode_shlibpath_var_F77=no
20991       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20992       export_dynamic_flag_spec_F77='${wl}-E'
20993       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20994       # Instead, shared libraries are loaded at an image base (0x10000000 by
20995       # default) and relocated if they conflict, which is a slow very memory
20996       # consuming and fragmenting process.  To avoid this, we pick a random,
20997       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20998       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20999       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'
21000       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'
21001       ;;
21002
21003     linux*)
21004       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21005         tmp_addflag=
21006         case $cc_basename,$host_cpu in
21007         pgcc*)                          # Portland Group C compiler
21008           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'
21009           tmp_addflag=' $pic_flag'
21010           ;;
21011         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21012           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'
21013           tmp_addflag=' $pic_flag -Mnomain' ;;
21014         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21015           tmp_addflag=' -i_dynamic' ;;
21016         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21017           tmp_addflag=' -i_dynamic -nofor_main' ;;
21018         ifc* | ifort*)                  # Intel Fortran compiler
21019           tmp_addflag=' -nofor_main' ;;
21020         esac
21021         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21022
21023         if test $supports_anon_versioning = yes; then
21024           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21025   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21026   $echo "local: *; };" >> $output_objdir/$libname.ver~
21027           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21028         fi
21029       else
21030         ld_shlibs_F77=no
21031       fi
21032       ;;
21033
21034     netbsd*)
21035       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21036         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21037         wlarc=
21038       else
21039         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21040         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21041       fi
21042       ;;
21043
21044     solaris*)
21045       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21046         ld_shlibs_F77=no
21047         cat <<EOF 1>&2
21048
21049 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21050 *** create shared libraries on Solaris systems.  Therefore, libtool
21051 *** is disabling shared libraries support.  We urge you to upgrade GNU
21052 *** binutils to release 2.9.1 or newer.  Another option is to modify
21053 *** your PATH or compiler configuration so that the native linker is
21054 *** used, and then restart.
21055
21056 EOF
21057       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21058         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21059         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21060       else
21061         ld_shlibs_F77=no
21062       fi
21063       ;;
21064
21065     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21066       case `$LD -v 2>&1` in
21067         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21068         ld_shlibs_F77=no
21069         cat <<_LT_EOF 1>&2
21070
21071 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21072 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21073 *** is disabling shared libraries support.  We urge you to upgrade GNU
21074 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21075 *** your PATH or compiler configuration so that the native linker is
21076 *** used, and then restart.
21077
21078 _LT_EOF
21079         ;;
21080         *)
21081           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21082             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21083             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21084             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21085           else
21086             ld_shlibs_F77=no
21087           fi
21088         ;;
21089       esac
21090       ;;
21091
21092     sunos4*)
21093       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21094       wlarc=
21095       hardcode_direct_F77=yes
21096       hardcode_shlibpath_var_F77=no
21097       ;;
21098
21099     *)
21100       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21101         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21102         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21103       else
21104         ld_shlibs_F77=no
21105       fi
21106       ;;
21107     esac
21108
21109     if test "$ld_shlibs_F77" = no; then
21110       runpath_var=
21111       hardcode_libdir_flag_spec_F77=
21112       export_dynamic_flag_spec_F77=
21113       whole_archive_flag_spec_F77=
21114     fi
21115   else
21116     # PORTME fill in a description of your system's linker (not GNU ld)
21117     case $host_os in
21118     aix3*)
21119       allow_undefined_flag_F77=unsupported
21120       always_export_symbols_F77=yes
21121       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'
21122       # Note: this linker hardcodes the directories in LIBPATH if there
21123       # are no directories specified by -L.
21124       hardcode_minus_L_F77=yes
21125       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21126         # Neither direct hardcoding nor static linking is supported with a
21127         # broken collect2.
21128         hardcode_direct_F77=unsupported
21129       fi
21130       ;;
21131
21132     aix4* | aix5*)
21133       if test "$host_cpu" = ia64; then
21134         # On IA64, the linker does run time linking by default, so we don't
21135         # have to do anything special.
21136         aix_use_runtimelinking=no
21137         exp_sym_flag='-Bexport'
21138         no_entry_flag=""
21139       else
21140         # If we're using GNU nm, then we don't want the "-C" option.
21141         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21142         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21143           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'
21144         else
21145           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'
21146         fi
21147         aix_use_runtimelinking=no
21148
21149         # Test if we are trying to use run time linking or normal
21150         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21151         # need to do runtime linking.
21152         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21153           for ld_flag in $LDFLAGS; do
21154           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21155             aix_use_runtimelinking=yes
21156             break
21157           fi
21158           done
21159           ;;
21160         esac
21161
21162         exp_sym_flag='-bexport'
21163         no_entry_flag='-bnoentry'
21164       fi
21165
21166       # When large executables or shared objects are built, AIX ld can
21167       # have problems creating the table of contents.  If linking a library
21168       # or program results in "error TOC overflow" add -mminimal-toc to
21169       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21170       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21171
21172       archive_cmds_F77=''
21173       hardcode_direct_F77=yes
21174       hardcode_libdir_separator_F77=':'
21175       link_all_deplibs_F77=yes
21176
21177       if test "$GCC" = yes; then
21178         case $host_os in aix4.[012]|aix4.[012].*)
21179         # We only want to do this on AIX 4.2 and lower, the check
21180         # below for broken collect2 doesn't work under 4.3+
21181           collect2name=`${CC} -print-prog-name=collect2`
21182           if test -f "$collect2name" && \
21183            strings "$collect2name" | grep resolve_lib_name >/dev/null
21184           then
21185           # We have reworked collect2
21186           hardcode_direct_F77=yes
21187           else
21188           # We have old collect2
21189           hardcode_direct_F77=unsupported
21190           # It fails to find uninstalled libraries when the uninstalled
21191           # path is not listed in the libpath.  Setting hardcode_minus_L
21192           # to unsupported forces relinking
21193           hardcode_minus_L_F77=yes
21194           hardcode_libdir_flag_spec_F77='-L$libdir'
21195           hardcode_libdir_separator_F77=
21196           fi
21197           ;;
21198         esac
21199         shared_flag='-shared'
21200         if test "$aix_use_runtimelinking" = yes; then
21201           shared_flag="$shared_flag "'${wl}-G'
21202         fi
21203       else
21204         # not using gcc
21205         if test "$host_cpu" = ia64; then
21206         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21207         # chokes on -Wl,-G. The following line is correct:
21208           shared_flag='-G'
21209         else
21210           if test "$aix_use_runtimelinking" = yes; then
21211             shared_flag='${wl}-G'
21212           else
21213             shared_flag='${wl}-bM:SRE'
21214           fi
21215         fi
21216       fi
21217
21218       # It seems that -bexpall does not export symbols beginning with
21219       # underscore (_), so it is better to generate a list of symbols to export.
21220       always_export_symbols_F77=yes
21221       if test "$aix_use_runtimelinking" = yes; then
21222         # Warning - without using the other runtime loading flags (-brtl),
21223         # -berok will link without error, but may produce a broken library.
21224         allow_undefined_flag_F77='-berok'
21225        # Determine the default libpath from the value encoded in an empty executable.
21226        cat >conftest.$ac_ext <<_ACEOF
21227       program main
21228
21229       end
21230 _ACEOF
21231 rm -f conftest.$ac_objext conftest$ac_exeext
21232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21233   (eval $ac_link) 2>conftest.er1
21234   ac_status=$?
21235   grep -v '^ *+' conftest.er1 >conftest.err
21236   rm -f conftest.er1
21237   cat conftest.err >&5
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); } &&
21240          { ac_try='test -z "$ac_f77_werror_flag"
21241                          || test ! -s conftest.err'
21242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243   (eval $ac_try) 2>&5
21244   ac_status=$?
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); }; } &&
21247          { ac_try='test -s conftest$ac_exeext'
21248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249   (eval $ac_try) 2>&5
21250   ac_status=$?
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); }; }; then
21253
21254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21255 }'`
21256 # Check for a 64-bit object if we didn't find anything.
21257 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; }
21258 }'`; fi
21259 else
21260   echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21262
21263 fi
21264 rm -f conftest.err conftest.$ac_objext \
21265       conftest$ac_exeext conftest.$ac_ext
21266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21267
21268        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21269         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"
21270        else
21271         if test "$host_cpu" = ia64; then
21272           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21273           allow_undefined_flag_F77="-z nodefs"
21274           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"
21275         else
21276          # Determine the default libpath from the value encoded in an empty executable.
21277          cat >conftest.$ac_ext <<_ACEOF
21278       program main
21279
21280       end
21281 _ACEOF
21282 rm -f conftest.$ac_objext conftest$ac_exeext
21283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21284   (eval $ac_link) 2>conftest.er1
21285   ac_status=$?
21286   grep -v '^ *+' conftest.er1 >conftest.err
21287   rm -f conftest.er1
21288   cat conftest.err >&5
21289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290   (exit $ac_status); } &&
21291          { ac_try='test -z "$ac_f77_werror_flag"
21292                          || test ! -s conftest.err'
21293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294   (eval $ac_try) 2>&5
21295   ac_status=$?
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); }; } &&
21298          { ac_try='test -s conftest$ac_exeext'
21299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300   (eval $ac_try) 2>&5
21301   ac_status=$?
21302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); }; }; then
21304
21305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21306 }'`
21307 # Check for a 64-bit object if we didn't find anything.
21308 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; }
21309 }'`; fi
21310 else
21311   echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21313
21314 fi
21315 rm -f conftest.err conftest.$ac_objext \
21316       conftest$ac_exeext conftest.$ac_ext
21317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21318
21319          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21320           # Warning - without using the other run time loading flags,
21321           # -berok will link without error, but may produce a broken library.
21322           no_undefined_flag_F77=' ${wl}-bernotok'
21323           allow_undefined_flag_F77=' ${wl}-berok'
21324           # Exported symbols can be pulled into shared objects from archives
21325           whole_archive_flag_spec_F77='$convenience'
21326           archive_cmds_need_lc_F77=yes
21327           # This is similar to how AIX traditionally builds its shared libraries.
21328           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'
21329         fi
21330       fi
21331       ;;
21332
21333     amigaos*)
21334       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)'
21335       hardcode_libdir_flag_spec_F77='-L$libdir'
21336       hardcode_minus_L_F77=yes
21337       # see comment about different semantics on the GNU ld section
21338       ld_shlibs_F77=no
21339       ;;
21340
21341     bsdi[45]*)
21342       export_dynamic_flag_spec_F77=-rdynamic
21343       ;;
21344
21345     cygwin* | mingw* | pw32*)
21346       # When not using gcc, we currently assume that we are using
21347       # Microsoft Visual C++.
21348       # hardcode_libdir_flag_spec is actually meaningless, as there is
21349       # no search path for DLLs.
21350       hardcode_libdir_flag_spec_F77=' '
21351       allow_undefined_flag_F77=unsupported
21352       # Tell ltmain to make .lib files, not .a files.
21353       libext=lib
21354       # Tell ltmain to make .dll files, not .so files.
21355       shrext_cmds=".dll"
21356       # FIXME: Setting linknames here is a bad hack.
21357       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21358       # The linker will automatically build a .lib file if we build a DLL.
21359       old_archive_From_new_cmds_F77='true'
21360       # FIXME: Should let the user specify the lib program.
21361       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21362       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21363       enable_shared_with_static_runtimes_F77=yes
21364       ;;
21365
21366     darwin* | rhapsody*)
21367       case $host_os in
21368         rhapsody* | darwin1.[012])
21369          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21370          ;;
21371        *) # Darwin 1.3 on
21372          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21373            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21374          else
21375            case ${MACOSX_DEPLOYMENT_TARGET} in
21376              10.[012])
21377                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21378                ;;
21379              10.*)
21380                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21381                ;;
21382            esac
21383          fi
21384          ;;
21385       esac
21386       archive_cmds_need_lc_F77=no
21387       hardcode_direct_F77=no
21388       hardcode_automatic_F77=yes
21389       hardcode_shlibpath_var_F77=unsupported
21390       whole_archive_flag_spec_F77=''
21391       link_all_deplibs_F77=yes
21392     if test "$GCC" = yes ; then
21393         output_verbose_link_cmd='echo'
21394         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21395       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21396       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21397       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}'
21398       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}'
21399     else
21400       case $cc_basename in
21401         xlc*)
21402          output_verbose_link_cmd='echo'
21403          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21404          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21405           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21406          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}'
21407           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}'
21408           ;;
21409        *)
21410          ld_shlibs_F77=no
21411           ;;
21412       esac
21413     fi
21414       ;;
21415
21416     dgux*)
21417       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21418       hardcode_libdir_flag_spec_F77='-L$libdir'
21419       hardcode_shlibpath_var_F77=no
21420       ;;
21421
21422     freebsd1*)
21423       ld_shlibs_F77=no
21424       ;;
21425
21426     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21427     # support.  Future versions do this automatically, but an explicit c++rt0.o
21428     # does not break anything, and helps significantly (at the cost of a little
21429     # extra space).
21430     freebsd2.2*)
21431       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21432       hardcode_libdir_flag_spec_F77='-R$libdir'
21433       hardcode_direct_F77=yes
21434       hardcode_shlibpath_var_F77=no
21435       ;;
21436
21437     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21438     freebsd2*)
21439       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21440       hardcode_direct_F77=yes
21441       hardcode_minus_L_F77=yes
21442       hardcode_shlibpath_var_F77=no
21443       ;;
21444
21445     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21446     freebsd* | kfreebsd*-gnu | dragonfly*)
21447       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21448       hardcode_libdir_flag_spec_F77='-R$libdir'
21449       hardcode_direct_F77=yes
21450       hardcode_shlibpath_var_F77=no
21451       ;;
21452
21453     hpux9*)
21454       if test "$GCC" = yes; then
21455         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'
21456       else
21457         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'
21458       fi
21459       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21460       hardcode_libdir_separator_F77=:
21461       hardcode_direct_F77=yes
21462
21463       # hardcode_minus_L: Not really in the search PATH,
21464       # but as the default location of the library.
21465       hardcode_minus_L_F77=yes
21466       export_dynamic_flag_spec_F77='${wl}-E'
21467       ;;
21468
21469     hpux10*)
21470       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21471         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21472       else
21473         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21474       fi
21475       if test "$with_gnu_ld" = no; then
21476         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21477         hardcode_libdir_separator_F77=:
21478
21479         hardcode_direct_F77=yes
21480         export_dynamic_flag_spec_F77='${wl}-E'
21481
21482         # hardcode_minus_L: Not really in the search PATH,
21483         # but as the default location of the library.
21484         hardcode_minus_L_F77=yes
21485       fi
21486       ;;
21487
21488     hpux11*)
21489       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21490         case $host_cpu in
21491         hppa*64*)
21492           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21493           ;;
21494         ia64*)
21495           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21496           ;;
21497         *)
21498           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21499           ;;
21500         esac
21501       else
21502         case $host_cpu in
21503         hppa*64*)
21504           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21505           ;;
21506         ia64*)
21507           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21508           ;;
21509         *)
21510           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21511           ;;
21512         esac
21513       fi
21514       if test "$with_gnu_ld" = no; then
21515         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21516         hardcode_libdir_separator_F77=:
21517
21518         case $host_cpu in
21519         hppa*64*|ia64*)
21520           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21521           hardcode_direct_F77=no
21522           hardcode_shlibpath_var_F77=no
21523           ;;
21524         *)
21525           hardcode_direct_F77=yes
21526           export_dynamic_flag_spec_F77='${wl}-E'
21527
21528           # hardcode_minus_L: Not really in the search PATH,
21529           # but as the default location of the library.
21530           hardcode_minus_L_F77=yes
21531           ;;
21532         esac
21533       fi
21534       ;;
21535
21536     irix5* | irix6* | nonstopux*)
21537       if test "$GCC" = yes; then
21538         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'
21539       else
21540         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'
21541         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21542       fi
21543       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21544       hardcode_libdir_separator_F77=:
21545       link_all_deplibs_F77=yes
21546       ;;
21547
21548     netbsd*)
21549       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21550         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21551       else
21552         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21553       fi
21554       hardcode_libdir_flag_spec_F77='-R$libdir'
21555       hardcode_direct_F77=yes
21556       hardcode_shlibpath_var_F77=no
21557       ;;
21558
21559     newsos6)
21560       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21561       hardcode_direct_F77=yes
21562       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21563       hardcode_libdir_separator_F77=:
21564       hardcode_shlibpath_var_F77=no
21565       ;;
21566
21567     openbsd*)
21568       hardcode_direct_F77=yes
21569       hardcode_shlibpath_var_F77=no
21570       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21571         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21572         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21573         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21574         export_dynamic_flag_spec_F77='${wl}-E'
21575       else
21576        case $host_os in
21577          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21578            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21579            hardcode_libdir_flag_spec_F77='-R$libdir'
21580            ;;
21581          *)
21582            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21583            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21584            ;;
21585        esac
21586       fi
21587       ;;
21588
21589     os2*)
21590       hardcode_libdir_flag_spec_F77='-L$libdir'
21591       hardcode_minus_L_F77=yes
21592       allow_undefined_flag_F77=unsupported
21593       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'
21594       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21595       ;;
21596
21597     osf3*)
21598       if test "$GCC" = yes; then
21599         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21600         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'
21601       else
21602         allow_undefined_flag_F77=' -expect_unresolved \*'
21603         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'
21604       fi
21605       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21606       hardcode_libdir_separator_F77=:
21607       ;;
21608
21609     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21610       if test "$GCC" = yes; then
21611         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21612         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'
21613         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21614       else
21615         allow_undefined_flag_F77=' -expect_unresolved \*'
21616         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'
21617         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~
21618         $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'
21619
21620         # Both c and cxx compiler support -rpath directly
21621         hardcode_libdir_flag_spec_F77='-rpath $libdir'
21622       fi
21623       hardcode_libdir_separator_F77=:
21624       ;;
21625
21626     solaris*)
21627       no_undefined_flag_F77=' -z text'
21628       if test "$GCC" = yes; then
21629         wlarc='${wl}'
21630         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21631         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21632           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21633       else
21634         wlarc=''
21635         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21636         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21637         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21638       fi
21639       hardcode_libdir_flag_spec_F77='-R$libdir'
21640       hardcode_shlibpath_var_F77=no
21641       case $host_os in
21642       solaris2.[0-5] | solaris2.[0-5].*) ;;
21643       *)
21644         # The compiler driver will combine linker options so we
21645         # cannot just pass the convience library names through
21646         # without $wl, iff we do not link with $LD.
21647         # Luckily, gcc supports the same syntax we need for Sun Studio.
21648         # Supported since Solaris 2.6 (maybe 2.5.1?)
21649         case $wlarc in
21650         '')
21651           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21652         *)
21653           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' ;;
21654         esac ;;
21655       esac
21656       link_all_deplibs_F77=yes
21657       ;;
21658
21659     sunos4*)
21660       if test "x$host_vendor" = xsequent; then
21661         # Use $CC to link under sequent, because it throws in some extra .o
21662         # files that make .init and .fini sections work.
21663         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21664       else
21665         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21666       fi
21667       hardcode_libdir_flag_spec_F77='-L$libdir'
21668       hardcode_direct_F77=yes
21669       hardcode_minus_L_F77=yes
21670       hardcode_shlibpath_var_F77=no
21671       ;;
21672
21673     sysv4)
21674       case $host_vendor in
21675         sni)
21676           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21677           hardcode_direct_F77=yes # is this really true???
21678         ;;
21679         siemens)
21680           ## LD is ld it makes a PLAMLIB
21681           ## CC just makes a GrossModule.
21682           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21683           reload_cmds_F77='$CC -r -o $output$reload_objs'
21684           hardcode_direct_F77=no
21685         ;;
21686         motorola)
21687           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21688           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21689         ;;
21690       esac
21691       runpath_var='LD_RUN_PATH'
21692       hardcode_shlibpath_var_F77=no
21693       ;;
21694
21695     sysv4.3*)
21696       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21697       hardcode_shlibpath_var_F77=no
21698       export_dynamic_flag_spec_F77='-Bexport'
21699       ;;
21700
21701     sysv4*MP*)
21702       if test -d /usr/nec; then
21703         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21704         hardcode_shlibpath_var_F77=no
21705         runpath_var=LD_RUN_PATH
21706         hardcode_runpath_var=yes
21707         ld_shlibs_F77=yes
21708       fi
21709       ;;
21710
21711     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21712       no_undefined_flag_F77='${wl}-z,text'
21713       archive_cmds_need_lc_F77=no
21714       hardcode_shlibpath_var_F77=no
21715       runpath_var='LD_RUN_PATH'
21716
21717       if test "$GCC" = yes; then
21718         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21719         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21720       else
21721         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21722         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21723       fi
21724       ;;
21725
21726     sysv5* | sco3.2v5* | sco5v6*)
21727       # Note: We can NOT use -z defs as we might desire, because we do not
21728       # link with -lc, and that would cause any symbols used from libc to
21729       # always be unresolved, which means just about no library would
21730       # ever link correctly.  If we're not using GNU ld we use -z text
21731       # though, which does catch some bad symbols but isn't as heavy-handed
21732       # as -z defs.
21733       no_undefined_flag_F77='${wl}-z,text'
21734       allow_undefined_flag_F77='${wl}-z,nodefs'
21735       archive_cmds_need_lc_F77=no
21736       hardcode_shlibpath_var_F77=no
21737       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21738       hardcode_libdir_separator_F77=':'
21739       link_all_deplibs_F77=yes
21740       export_dynamic_flag_spec_F77='${wl}-Bexport'
21741       runpath_var='LD_RUN_PATH'
21742
21743       if test "$GCC" = yes; then
21744         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21745         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21746       else
21747         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21748         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21749       fi
21750       ;;
21751
21752     uts4*)
21753       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21754       hardcode_libdir_flag_spec_F77='-L$libdir'
21755       hardcode_shlibpath_var_F77=no
21756       ;;
21757
21758     *)
21759       ld_shlibs_F77=no
21760       ;;
21761     esac
21762   fi
21763
21764 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21765 echo "${ECHO_T}$ld_shlibs_F77" >&6
21766 test "$ld_shlibs_F77" = no && can_build_shared=no
21767
21768 #
21769 # Do we need to explicitly link libc?
21770 #
21771 case "x$archive_cmds_need_lc_F77" in
21772 x|xyes)
21773   # Assume -lc should be added
21774   archive_cmds_need_lc_F77=yes
21775
21776   if test "$enable_shared" = yes && test "$GCC" = yes; then
21777     case $archive_cmds_F77 in
21778     *'~'*)
21779       # FIXME: we may have to deal with multi-command sequences.
21780       ;;
21781     '$CC '*)
21782       # Test whether the compiler implicitly links with -lc since on some
21783       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21784       # to ld, don't add -lc before -lgcc.
21785       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21786 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21787       $rm conftest*
21788       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21789
21790       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21791   (eval $ac_compile) 2>&5
21792   ac_status=$?
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); } 2>conftest.err; then
21795         soname=conftest
21796         lib=conftest
21797         libobjs=conftest.$ac_objext
21798         deplibs=
21799         wl=$lt_prog_compiler_wl_F77
21800         pic_flag=$lt_prog_compiler_pic_F77
21801         compiler_flags=-v
21802         linker_flags=-v
21803         verstring=
21804         output_objdir=.
21805         libname=conftest
21806         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21807         allow_undefined_flag_F77=
21808         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21809   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21810   ac_status=$?
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); }
21813         then
21814           archive_cmds_need_lc_F77=no
21815         else
21816           archive_cmds_need_lc_F77=yes
21817         fi
21818         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21819       else
21820         cat conftest.err 1>&5
21821       fi
21822       $rm conftest*
21823       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21824 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
21825       ;;
21826     esac
21827   fi
21828   ;;
21829 esac
21830
21831 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21832 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21833 library_names_spec=
21834 libname_spec='lib$name'
21835 soname_spec=
21836 shrext_cmds=".so"
21837 postinstall_cmds=
21838 postuninstall_cmds=
21839 finish_cmds=
21840 finish_eval=
21841 shlibpath_var=
21842 shlibpath_overrides_runpath=unknown
21843 version_type=none
21844 dynamic_linker="$host_os ld.so"
21845 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21846 if test "$GCC" = yes; then
21847   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21848   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21849     # if the path contains ";" then we assume it to be the separator
21850     # otherwise default to the standard path separator (i.e. ":") - it is
21851     # assumed that no part of a normal pathname contains ";" but that should
21852     # okay in the real world where ";" in dirpaths is itself problematic.
21853     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21854   else
21855     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21856   fi
21857 else
21858   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21859 fi
21860 need_lib_prefix=unknown
21861 hardcode_into_libs=no
21862
21863 # when you set need_version to no, make sure it does not cause -set_version
21864 # flags to be left without arguments
21865 need_version=unknown
21866
21867 case $host_os in
21868 aix3*)
21869   version_type=linux
21870   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21871   shlibpath_var=LIBPATH
21872
21873   # AIX 3 has no versioning support, so we append a major version to the name.
21874   soname_spec='${libname}${release}${shared_ext}$major'
21875   ;;
21876
21877 aix4* | aix5*)
21878   version_type=linux
21879   need_lib_prefix=no
21880   need_version=no
21881   hardcode_into_libs=yes
21882   if test "$host_cpu" = ia64; then
21883     # AIX 5 supports IA64
21884     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21885     shlibpath_var=LD_LIBRARY_PATH
21886   else
21887     # With GCC up to 2.95.x, collect2 would create an import file
21888     # for dependence libraries.  The import file would start with
21889     # the line `#! .'.  This would cause the generated library to
21890     # depend on `.', always an invalid library.  This was fixed in
21891     # development snapshots of GCC prior to 3.0.
21892     case $host_os in
21893       aix4 | aix4.[01] | aix4.[01].*)
21894       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21895            echo ' yes '
21896            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21897         :
21898       else
21899         can_build_shared=no
21900       fi
21901       ;;
21902     esac
21903     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21904     # soname into executable. Probably we can add versioning support to
21905     # collect2, so additional links can be useful in future.
21906     if test "$aix_use_runtimelinking" = yes; then
21907       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21908       # instead of lib<name>.a to let people know that these are not
21909       # typical AIX shared libraries.
21910       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21911     else
21912       # We preserve .a as extension for shared libraries through AIX4.2
21913       # and later when we are not doing run time linking.
21914       library_names_spec='${libname}${release}.a $libname.a'
21915       soname_spec='${libname}${release}${shared_ext}$major'
21916     fi
21917     shlibpath_var=LIBPATH
21918   fi
21919   ;;
21920
21921 amigaos*)
21922   library_names_spec='$libname.ixlibrary $libname.a'
21923   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21924   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'
21925   ;;
21926
21927 beos*)
21928   library_names_spec='${libname}${shared_ext}'
21929   dynamic_linker="$host_os ld.so"
21930   shlibpath_var=LIBRARY_PATH
21931   ;;
21932
21933 bsdi[45]*)
21934   version_type=linux
21935   need_version=no
21936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21937   soname_spec='${libname}${release}${shared_ext}$major'
21938   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21939   shlibpath_var=LD_LIBRARY_PATH
21940   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21941   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21942   # the default ld.so.conf also contains /usr/contrib/lib and
21943   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21944   # libtool to hard-code these into programs
21945   ;;
21946
21947 cygwin* | mingw* | pw32*)
21948   version_type=windows
21949   shrext_cmds=".dll"
21950   need_version=no
21951   need_lib_prefix=no
21952
21953   case $GCC,$host_os in
21954   yes,cygwin* | yes,mingw* | yes,pw32*)
21955     library_names_spec='$libname.dll.a'
21956     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21957     postinstall_cmds='base_file=`basename \${file}`~
21958       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21959       dldir=$destdir/`dirname \$dlpath`~
21960       test -d \$dldir || mkdir -p \$dldir~
21961       $install_prog $dir/$dlname \$dldir/$dlname~
21962       chmod a+x \$dldir/$dlname'
21963     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21964       dlpath=$dir/\$dldll~
21965        $rm \$dlpath'
21966     shlibpath_overrides_runpath=yes
21967
21968     case $host_os in
21969     cygwin*)
21970       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21971       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21972       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21973       ;;
21974     mingw*)
21975       # MinGW DLLs use traditional 'lib' prefix
21976       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21977       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21978       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21979         # It is most probably a Windows format PATH printed by
21980         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21981         # path with ; separators, and with drive letters. We can handle the
21982         # drive letters (cygwin fileutils understands them), so leave them,
21983         # especially as we might pass files found there to a mingw objdump,
21984         # which wouldn't understand a cygwinified path. Ahh.
21985         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21986       else
21987         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21988       fi
21989       ;;
21990     pw32*)
21991       # pw32 DLLs use 'pw' prefix rather than 'lib'
21992       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21993       ;;
21994     esac
21995     ;;
21996
21997   *)
21998     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21999     ;;
22000   esac
22001   dynamic_linker='Win32 ld.exe'
22002   # FIXME: first we should search . and the directory the executable is in
22003   shlibpath_var=PATH
22004   ;;
22005
22006 darwin* | rhapsody*)
22007   dynamic_linker="$host_os dyld"
22008   version_type=darwin
22009   need_lib_prefix=no
22010   need_version=no
22011   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22012   soname_spec='${libname}${release}${major}$shared_ext'
22013   shlibpath_overrides_runpath=yes
22014   shlibpath_var=DYLD_LIBRARY_PATH
22015   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22016   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22017   if test "$GCC" = yes; then
22018     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"`
22019   else
22020     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22021   fi
22022   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22023   ;;
22024
22025 dgux*)
22026   version_type=linux
22027   need_lib_prefix=no
22028   need_version=no
22029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22030   soname_spec='${libname}${release}${shared_ext}$major'
22031   shlibpath_var=LD_LIBRARY_PATH
22032   ;;
22033
22034 freebsd1*)
22035   dynamic_linker=no
22036   ;;
22037
22038 kfreebsd*-gnu)
22039   version_type=linux
22040   need_lib_prefix=no
22041   need_version=no
22042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22043   soname_spec='${libname}${release}${shared_ext}$major'
22044   shlibpath_var=LD_LIBRARY_PATH
22045   shlibpath_overrides_runpath=no
22046   hardcode_into_libs=yes
22047   dynamic_linker='GNU ld.so'
22048   ;;
22049
22050 freebsd* | dragonfly*)
22051   # DragonFly does not have aout.  When/if they implement a new
22052   # versioning mechanism, adjust this.
22053   if test -x /usr/bin/objformat; then
22054     objformat=`/usr/bin/objformat`
22055   else
22056     case $host_os in
22057     freebsd[123]*) objformat=aout ;;
22058     *) objformat=elf ;;
22059     esac
22060   fi
22061   version_type=freebsd-$objformat
22062   case $version_type in
22063     freebsd-elf*)
22064       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22065       need_version=no
22066       need_lib_prefix=no
22067       ;;
22068     freebsd-*)
22069       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22070       need_version=yes
22071       ;;
22072   esac
22073   shlibpath_var=LD_LIBRARY_PATH
22074   case $host_os in
22075   freebsd2*)
22076     shlibpath_overrides_runpath=yes
22077     ;;
22078   freebsd3.[01]* | freebsdelf3.[01]*)
22079     shlibpath_overrides_runpath=yes
22080     hardcode_into_libs=yes
22081     ;;
22082   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22083   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22084     shlibpath_overrides_runpath=no
22085     hardcode_into_libs=yes
22086     ;;
22087   freebsd*) # from 4.6 on
22088     shlibpath_overrides_runpath=yes
22089     hardcode_into_libs=yes
22090     ;;
22091   esac
22092   ;;
22093
22094 gnu*)
22095   version_type=linux
22096   need_lib_prefix=no
22097   need_version=no
22098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22099   soname_spec='${libname}${release}${shared_ext}$major'
22100   shlibpath_var=LD_LIBRARY_PATH
22101   hardcode_into_libs=yes
22102   ;;
22103
22104 hpux9* | hpux10* | hpux11*)
22105   # Give a soname corresponding to the major version so that dld.sl refuses to
22106   # link against other versions.
22107   version_type=sunos
22108   need_lib_prefix=no
22109   need_version=no
22110   case $host_cpu in
22111   ia64*)
22112     shrext_cmds='.so'
22113     hardcode_into_libs=yes
22114     dynamic_linker="$host_os dld.so"
22115     shlibpath_var=LD_LIBRARY_PATH
22116     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22117     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22118     soname_spec='${libname}${release}${shared_ext}$major'
22119     if test "X$HPUX_IA64_MODE" = X32; then
22120       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22121     else
22122       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22123     fi
22124     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22125     ;;
22126    hppa*64*)
22127      shrext_cmds='.sl'
22128      hardcode_into_libs=yes
22129      dynamic_linker="$host_os dld.sl"
22130      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22131      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22132      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22133      soname_spec='${libname}${release}${shared_ext}$major'
22134      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22135      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22136      ;;
22137    *)
22138     shrext_cmds='.sl'
22139     dynamic_linker="$host_os dld.sl"
22140     shlibpath_var=SHLIB_PATH
22141     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22143     soname_spec='${libname}${release}${shared_ext}$major'
22144     ;;
22145   esac
22146   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22147   postinstall_cmds='chmod 555 $lib'
22148   ;;
22149
22150 interix3*)
22151   version_type=linux
22152   need_lib_prefix=no
22153   need_version=no
22154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22155   soname_spec='${libname}${release}${shared_ext}$major'
22156   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22157   shlibpath_var=LD_LIBRARY_PATH
22158   shlibpath_overrides_runpath=no
22159   hardcode_into_libs=yes
22160   ;;
22161
22162 irix5* | irix6* | nonstopux*)
22163   case $host_os in
22164     nonstopux*) version_type=nonstopux ;;
22165     *)
22166         if test "$lt_cv_prog_gnu_ld" = yes; then
22167                 version_type=linux
22168         else
22169                 version_type=irix
22170         fi ;;
22171   esac
22172   need_lib_prefix=no
22173   need_version=no
22174   soname_spec='${libname}${release}${shared_ext}$major'
22175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22176   case $host_os in
22177   irix5* | nonstopux*)
22178     libsuff= shlibsuff=
22179     ;;
22180   *)
22181     case $LD in # libtool.m4 will add one of these switches to LD
22182     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22183       libsuff= shlibsuff= libmagic=32-bit;;
22184     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22185       libsuff=32 shlibsuff=N32 libmagic=N32;;
22186     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22187       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22188     *) libsuff= shlibsuff= libmagic=never-match;;
22189     esac
22190     ;;
22191   esac
22192   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22193   shlibpath_overrides_runpath=no
22194   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22195   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22196   hardcode_into_libs=yes
22197   ;;
22198
22199 # No shared lib support for Linux oldld, aout, or coff.
22200 linux*oldld* | linux*aout* | linux*coff*)
22201   dynamic_linker=no
22202   ;;
22203
22204 # This must be Linux ELF.
22205 linux*)
22206   version_type=linux
22207   need_lib_prefix=no
22208   need_version=no
22209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22210   soname_spec='${libname}${release}${shared_ext}$major'
22211   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22212   shlibpath_var=LD_LIBRARY_PATH
22213   shlibpath_overrides_runpath=no
22214   # This implies no fast_install, which is unacceptable.
22215   # Some rework will be needed to allow for fast_install
22216   # before this can be enabled.
22217   hardcode_into_libs=yes
22218
22219   # find out which ABI we are using
22220   libsuff=
22221   case "$host_cpu" in
22222   x86_64*|s390x*|powerpc64*)
22223     echo '#line 22223 "configure"' > conftest.$ac_ext
22224     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22225   (eval $ac_compile) 2>&5
22226   ac_status=$?
22227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228   (exit $ac_status); }; then
22229       case `/usr/bin/file conftest.$ac_objext` in
22230       *64-bit*)
22231         libsuff=64
22232         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
22233         ;;
22234       esac
22235     fi
22236     rm -rf conftest*
22237     ;;
22238   esac
22239
22240   # Append ld.so.conf contents to the search path
22241   if test -f /etc/ld.so.conf; then
22242     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22243     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
22244   fi
22245
22246   # We used to test for /lib/ld.so.1 and disable shared libraries on
22247   # powerpc, because MkLinux only supported shared libraries with the
22248   # GNU dynamic linker.  Since this was broken with cross compilers,
22249   # most powerpc-linux boxes support dynamic linking these days and
22250   # people can always --disable-shared, the test was removed, and we
22251   # assume the GNU/Linux dynamic linker is in use.
22252   dynamic_linker='GNU/Linux ld.so'
22253   ;;
22254
22255 knetbsd*-gnu)
22256   version_type=linux
22257   need_lib_prefix=no
22258   need_version=no
22259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22260   soname_spec='${libname}${release}${shared_ext}$major'
22261   shlibpath_var=LD_LIBRARY_PATH
22262   shlibpath_overrides_runpath=no
22263   hardcode_into_libs=yes
22264   dynamic_linker='GNU ld.so'
22265   ;;
22266
22267 netbsd*)
22268   version_type=sunos
22269   need_lib_prefix=no
22270   need_version=no
22271   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22273     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22274     dynamic_linker='NetBSD (a.out) ld.so'
22275   else
22276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22277     soname_spec='${libname}${release}${shared_ext}$major'
22278     dynamic_linker='NetBSD ld.elf_so'
22279   fi
22280   shlibpath_var=LD_LIBRARY_PATH
22281   shlibpath_overrides_runpath=yes
22282   hardcode_into_libs=yes
22283   ;;
22284
22285 newsos6)
22286   version_type=linux
22287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22288   shlibpath_var=LD_LIBRARY_PATH
22289   shlibpath_overrides_runpath=yes
22290   ;;
22291
22292 nto-qnx*)
22293   version_type=linux
22294   need_lib_prefix=no
22295   need_version=no
22296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22297   soname_spec='${libname}${release}${shared_ext}$major'
22298   shlibpath_var=LD_LIBRARY_PATH
22299   shlibpath_overrides_runpath=yes
22300   ;;
22301
22302 openbsd*)
22303   version_type=sunos
22304   sys_lib_dlsearch_path_spec="/usr/lib"
22305   need_lib_prefix=no
22306   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22307   case $host_os in
22308     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22309     *)                         need_version=no  ;;
22310   esac
22311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22312   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22313   shlibpath_var=LD_LIBRARY_PATH
22314   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22315     case $host_os in
22316       openbsd2.[89] | openbsd2.[89].*)
22317         shlibpath_overrides_runpath=no
22318         ;;
22319       *)
22320         shlibpath_overrides_runpath=yes
22321         ;;
22322       esac
22323   else
22324     shlibpath_overrides_runpath=yes
22325   fi
22326   ;;
22327
22328 os2*)
22329   libname_spec='$name'
22330   shrext_cmds=".dll"
22331   need_lib_prefix=no
22332   library_names_spec='$libname${shared_ext} $libname.a'
22333   dynamic_linker='OS/2 ld.exe'
22334   shlibpath_var=LIBPATH
22335   ;;
22336
22337 osf3* | osf4* | osf5*)
22338   version_type=osf
22339   need_lib_prefix=no
22340   need_version=no
22341   soname_spec='${libname}${release}${shared_ext}$major'
22342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22343   shlibpath_var=LD_LIBRARY_PATH
22344   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22345   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22346   ;;
22347
22348 solaris*)
22349   version_type=linux
22350   need_lib_prefix=no
22351   need_version=no
22352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22353   soname_spec='${libname}${release}${shared_ext}$major'
22354   shlibpath_var=LD_LIBRARY_PATH
22355   shlibpath_overrides_runpath=yes
22356   hardcode_into_libs=yes
22357   # ldd complains unless libraries are executable
22358   postinstall_cmds='chmod +x $lib'
22359   ;;
22360
22361 sunos4*)
22362   version_type=sunos
22363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22364   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22365   shlibpath_var=LD_LIBRARY_PATH
22366   shlibpath_overrides_runpath=yes
22367   if test "$with_gnu_ld" = yes; then
22368     need_lib_prefix=no
22369   fi
22370   need_version=yes
22371   ;;
22372
22373 sysv4 | sysv4.3*)
22374   version_type=linux
22375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22376   soname_spec='${libname}${release}${shared_ext}$major'
22377   shlibpath_var=LD_LIBRARY_PATH
22378   case $host_vendor in
22379     sni)
22380       shlibpath_overrides_runpath=no
22381       need_lib_prefix=no
22382       export_dynamic_flag_spec='${wl}-Blargedynsym'
22383       runpath_var=LD_RUN_PATH
22384       ;;
22385     siemens)
22386       need_lib_prefix=no
22387       ;;
22388     motorola)
22389       need_lib_prefix=no
22390       need_version=no
22391       shlibpath_overrides_runpath=no
22392       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22393       ;;
22394   esac
22395   ;;
22396
22397 sysv4*MP*)
22398   if test -d /usr/nec ;then
22399     version_type=linux
22400     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22401     soname_spec='$libname${shared_ext}.$major'
22402     shlibpath_var=LD_LIBRARY_PATH
22403   fi
22404   ;;
22405
22406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22407   version_type=freebsd-elf
22408   need_lib_prefix=no
22409   need_version=no
22410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22411   soname_spec='${libname}${release}${shared_ext}$major'
22412   shlibpath_var=LD_LIBRARY_PATH
22413   hardcode_into_libs=yes
22414   if test "$with_gnu_ld" = yes; then
22415     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22416     shlibpath_overrides_runpath=no
22417   else
22418     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22419     shlibpath_overrides_runpath=yes
22420     case $host_os in
22421       sco3.2v5*)
22422         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22423         ;;
22424     esac
22425   fi
22426   sys_lib_dlsearch_path_spec='/usr/lib'
22427   ;;
22428
22429 uts4*)
22430   version_type=linux
22431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22432   soname_spec='${libname}${release}${shared_ext}$major'
22433   shlibpath_var=LD_LIBRARY_PATH
22434   ;;
22435
22436 *)
22437   dynamic_linker=no
22438   ;;
22439 esac
22440 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22441 echo "${ECHO_T}$dynamic_linker" >&6
22442 test "$dynamic_linker" = no && can_build_shared=no
22443
22444 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22445 if test "$GCC" = yes; then
22446   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22447 fi
22448
22449 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22450 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22451 hardcode_action_F77=
22452 if test -n "$hardcode_libdir_flag_spec_F77" || \
22453    test -n "$runpath_var_F77" || \
22454    test "X$hardcode_automatic_F77" = "Xyes" ; then
22455
22456   # We can hardcode non-existant directories.
22457   if test "$hardcode_direct_F77" != no &&
22458      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22459      # have to relink, otherwise we might link with an installed library
22460      # when we should be linking with a yet-to-be-installed one
22461      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22462      test "$hardcode_minus_L_F77" != no; then
22463     # Linking always hardcodes the temporary library directory.
22464     hardcode_action_F77=relink
22465   else
22466     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22467     hardcode_action_F77=immediate
22468   fi
22469 else
22470   # We cannot hardcode anything, or else we can only hardcode existing
22471   # directories.
22472   hardcode_action_F77=unsupported
22473 fi
22474 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22475 echo "${ECHO_T}$hardcode_action_F77" >&6
22476
22477 if test "$hardcode_action_F77" = relink; then
22478   # Fast installation is not supported
22479   enable_fast_install=no
22480 elif test "$shlibpath_overrides_runpath" = yes ||
22481      test "$enable_shared" = no; then
22482   # Fast installation is not necessary
22483   enable_fast_install=needless
22484 fi
22485
22486
22487 # The else clause should only fire when bootstrapping the
22488 # libtool distribution, otherwise you forgot to ship ltmain.sh
22489 # with your package, and you will get complaints that there are
22490 # no rules to generate ltmain.sh.
22491 if test -f "$ltmain"; then
22492   # See if we are running on zsh, and set the options which allow our commands through
22493   # without removal of \ escapes.
22494   if test -n "${ZSH_VERSION+set}" ; then
22495     setopt NO_GLOB_SUBST
22496   fi
22497   # Now quote all the things that may contain metacharacters while being
22498   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22499   # variables and quote the copies for generation of the libtool script.
22500   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22501     SED SHELL STRIP \
22502     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22503     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22504     deplibs_check_method reload_flag reload_cmds need_locks \
22505     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22506     lt_cv_sys_global_symbol_to_c_name_address \
22507     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22508     old_postinstall_cmds old_postuninstall_cmds \
22509     compiler_F77 \
22510     CC_F77 \
22511     LD_F77 \
22512     lt_prog_compiler_wl_F77 \
22513     lt_prog_compiler_pic_F77 \
22514     lt_prog_compiler_static_F77 \
22515     lt_prog_compiler_no_builtin_flag_F77 \
22516     export_dynamic_flag_spec_F77 \
22517     thread_safe_flag_spec_F77 \
22518     whole_archive_flag_spec_F77 \
22519     enable_shared_with_static_runtimes_F77 \
22520     old_archive_cmds_F77 \
22521     old_archive_from_new_cmds_F77 \
22522     predep_objects_F77 \
22523     postdep_objects_F77 \
22524     predeps_F77 \
22525     postdeps_F77 \
22526     compiler_lib_search_path_F77 \
22527     archive_cmds_F77 \
22528     archive_expsym_cmds_F77 \
22529     postinstall_cmds_F77 \
22530     postuninstall_cmds_F77 \
22531     old_archive_from_expsyms_cmds_F77 \
22532     allow_undefined_flag_F77 \
22533     no_undefined_flag_F77 \
22534     export_symbols_cmds_F77 \
22535     hardcode_libdir_flag_spec_F77 \
22536     hardcode_libdir_flag_spec_ld_F77 \
22537     hardcode_libdir_separator_F77 \
22538     hardcode_automatic_F77 \
22539     module_cmds_F77 \
22540     module_expsym_cmds_F77 \
22541     lt_cv_prog_compiler_c_o_F77 \
22542     exclude_expsyms_F77 \
22543     include_expsyms_F77; do
22544
22545     case $var in
22546     old_archive_cmds_F77 | \
22547     old_archive_from_new_cmds_F77 | \
22548     archive_cmds_F77 | \
22549     archive_expsym_cmds_F77 | \
22550     module_cmds_F77 | \
22551     module_expsym_cmds_F77 | \
22552     old_archive_from_expsyms_cmds_F77 | \
22553     export_symbols_cmds_F77 | \
22554     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22555     postinstall_cmds | postuninstall_cmds | \
22556     old_postinstall_cmds | old_postuninstall_cmds | \
22557     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22558       # Double-quote double-evaled strings.
22559       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22560       ;;
22561     *)
22562       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22563       ;;
22564     esac
22565   done
22566
22567   case $lt_echo in
22568   *'\$0 --fallback-echo"')
22569     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22570     ;;
22571   esac
22572
22573 cfgfile="$ofile"
22574
22575   cat <<__EOF__ >> "$cfgfile"
22576 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22577
22578 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22579
22580 # Shell to use when invoking shell scripts.
22581 SHELL=$lt_SHELL
22582
22583 # Whether or not to build shared libraries.
22584 build_libtool_libs=$enable_shared
22585
22586 # Whether or not to build static libraries.
22587 build_old_libs=$enable_static
22588
22589 # Whether or not to add -lc for building shared libraries.
22590 build_libtool_need_lc=$archive_cmds_need_lc_F77
22591
22592 # Whether or not to disallow shared libs when runtime libs are static
22593 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22594
22595 # Whether or not to optimize for fast installation.
22596 fast_install=$enable_fast_install
22597
22598 # The host system.
22599 host_alias=$host_alias
22600 host=$host
22601 host_os=$host_os
22602
22603 # The build system.
22604 build_alias=$build_alias
22605 build=$build
22606 build_os=$build_os
22607
22608 # An echo program that does not interpret backslashes.
22609 echo=$lt_echo
22610
22611 # The archiver.
22612 AR=$lt_AR
22613 AR_FLAGS=$lt_AR_FLAGS
22614
22615 # A C compiler.
22616 LTCC=$lt_LTCC
22617
22618 # LTCC compiler flags.
22619 LTCFLAGS=$lt_LTCFLAGS
22620
22621 # A language-specific compiler.
22622 CC=$lt_compiler_F77
22623
22624 # Is the compiler the GNU C compiler?
22625 with_gcc=$GCC_F77
22626
22627 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
22628 gcc_ver=\`gcc -dumpversion\`
22629
22630 # An ERE matcher.
22631 EGREP=$lt_EGREP
22632
22633 # The linker used to build libraries.
22634 LD=$lt_LD_F77
22635
22636 # Whether we need hard or soft links.
22637 LN_S=$lt_LN_S
22638
22639 # A BSD-compatible nm program.
22640 NM=$lt_NM
22641
22642 # A symbol stripping program
22643 STRIP=$lt_STRIP
22644
22645 # Used to examine libraries when file_magic_cmd begins "file"
22646 MAGIC_CMD=$MAGIC_CMD
22647
22648 # Used on cygwin: DLL creation program.
22649 DLLTOOL="$DLLTOOL"
22650
22651 # Used on cygwin: object dumper.
22652 OBJDUMP="$OBJDUMP"
22653
22654 # Used on cygwin: assembler.
22655 AS="$AS"
22656
22657 # The name of the directory that contains temporary libtool files.
22658 objdir=$objdir
22659
22660 # How to create reloadable object files.
22661 reload_flag=$lt_reload_flag
22662 reload_cmds=$lt_reload_cmds
22663
22664 # How to pass a linker flag through the compiler.
22665 wl=$lt_lt_prog_compiler_wl_F77
22666
22667 # Object file suffix (normally "o").
22668 objext="$ac_objext"
22669
22670 # Old archive suffix (normally "a").
22671 libext="$libext"
22672
22673 # Shared library suffix (normally ".so").
22674 shrext_cmds='$shrext_cmds'
22675
22676 # Executable file suffix (normally "").
22677 exeext="$exeext"
22678
22679 # Additional compiler flags for building library objects.
22680 pic_flag=$lt_lt_prog_compiler_pic_F77
22681 pic_mode=$pic_mode
22682
22683 # What is the maximum length of a command?
22684 max_cmd_len=$lt_cv_sys_max_cmd_len
22685
22686 # Does compiler simultaneously support -c and -o options?
22687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22688
22689 # Must we lock files when doing compilation?
22690 need_locks=$lt_need_locks
22691
22692 # Do we need the lib prefix for modules?
22693 need_lib_prefix=$need_lib_prefix
22694
22695 # Do we need a version for libraries?
22696 need_version=$need_version
22697
22698 # Whether dlopen is supported.
22699 dlopen_support=$enable_dlopen
22700
22701 # Whether dlopen of programs is supported.
22702 dlopen_self=$enable_dlopen_self
22703
22704 # Whether dlopen of statically linked programs is supported.
22705 dlopen_self_static=$enable_dlopen_self_static
22706
22707 # Compiler flag to prevent dynamic linking.
22708 link_static_flag=$lt_lt_prog_compiler_static_F77
22709
22710 # Compiler flag to turn off builtin functions.
22711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22712
22713 # Compiler flag to allow reflexive dlopens.
22714 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22715
22716 # Compiler flag to generate shared objects directly from archives.
22717 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22718
22719 # Compiler flag to generate thread-safe objects.
22720 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22721
22722 # Library versioning type.
22723 version_type=$version_type
22724
22725 # Format of library name prefix.
22726 libname_spec=$lt_libname_spec
22727
22728 # List of archive names.  First name is the real one, the rest are links.
22729 # The last name is the one that the linker finds with -lNAME.
22730 library_names_spec=$lt_library_names_spec
22731
22732 # The coded name of the library, if different from the real name.
22733 soname_spec=$lt_soname_spec
22734
22735 # Commands used to build and install an old-style archive.
22736 RANLIB=$lt_RANLIB
22737 old_archive_cmds=$lt_old_archive_cmds_F77
22738 old_postinstall_cmds=$lt_old_postinstall_cmds
22739 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22740
22741 # Create an old-style archive from a shared archive.
22742 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22743
22744 # Create a temporary old-style archive to link instead of a shared archive.
22745 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22746
22747 # Commands used to build and install a shared archive.
22748 archive_cmds=$lt_archive_cmds_F77
22749 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22750 postinstall_cmds=$lt_postinstall_cmds
22751 postuninstall_cmds=$lt_postuninstall_cmds
22752
22753 # Commands used to build a loadable module (assumed same as above if empty)
22754 module_cmds=$lt_module_cmds_F77
22755 module_expsym_cmds=$lt_module_expsym_cmds_F77
22756
22757 # Commands to strip libraries.
22758 old_striplib=$lt_old_striplib
22759 striplib=$lt_striplib
22760
22761 # Dependencies to place before the objects being linked to create a
22762 # shared library.
22763 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
22764
22765 # Dependencies to place after the objects being linked to create a
22766 # shared library.
22767 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
22768
22769 # Dependencies to place before the objects being linked to create a
22770 # shared library.
22771 predeps=$lt_predeps_F77
22772
22773 # Dependencies to place after the objects being linked to create a
22774 # shared library.
22775 postdeps=$lt_postdeps_F77
22776
22777 # The library search path used internally by the compiler when linking
22778 # a shared library.
22779 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
22780
22781 # Method to check whether dependent libraries are shared objects.
22782 deplibs_check_method=$lt_deplibs_check_method
22783
22784 # Command to use when deplibs_check_method == file_magic.
22785 file_magic_cmd=$lt_file_magic_cmd
22786
22787 # Flag that allows shared libraries with undefined symbols to be built.
22788 allow_undefined_flag=$lt_allow_undefined_flag_F77
22789
22790 # Flag that forces no undefined symbols.
22791 no_undefined_flag=$lt_no_undefined_flag_F77
22792
22793 # Commands used to finish a libtool library installation in a directory.
22794 finish_cmds=$lt_finish_cmds
22795
22796 # Same as above, but a single script fragment to be evaled but not shown.
22797 finish_eval=$lt_finish_eval
22798
22799 # Take the output of nm and produce a listing of raw symbols and C names.
22800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22801
22802 # Transform the output of nm in a proper C declaration
22803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22804
22805 # Transform the output of nm in a C name address pair
22806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22807
22808 # This is the shared library runtime path variable.
22809 runpath_var=$runpath_var
22810
22811 # This is the shared library path variable.
22812 shlibpath_var=$shlibpath_var
22813
22814 # Is shlibpath searched before the hard-coded library search path?
22815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22816
22817 # How to hardcode a shared library path into an executable.
22818 hardcode_action=$hardcode_action_F77
22819
22820 # Whether we should hardcode library paths into libraries.
22821 hardcode_into_libs=$hardcode_into_libs
22822
22823 # Flag to hardcode \$libdir into a binary during linking.
22824 # This must work even if \$libdir does not exist.
22825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22826
22827 # If ld is used when linking, flag to hardcode \$libdir into
22828 # a binary during linking. This must work even if \$libdir does
22829 # not exist.
22830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22831
22832 # Whether we need a single -rpath flag with a separated argument.
22833 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22834
22835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22836 # resulting binary.
22837 hardcode_direct=$hardcode_direct_F77
22838
22839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22840 # resulting binary.
22841 hardcode_minus_L=$hardcode_minus_L_F77
22842
22843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22844 # the resulting binary.
22845 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22846
22847 # Set to yes if building a shared library automatically hardcodes DIR into the library
22848 # and all subsequent libraries and executables linked against it.
22849 hardcode_automatic=$hardcode_automatic_F77
22850
22851 # Variables whose values should be saved in libtool wrapper scripts and
22852 # restored at relink time.
22853 variables_saved_for_relink="$variables_saved_for_relink"
22854
22855 # Whether libtool must link a program against all its dependency libraries.
22856 link_all_deplibs=$link_all_deplibs_F77
22857
22858 # Compile-time system search path for libraries
22859 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
22860
22861 # Run-time system search path for libraries
22862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22863
22864 # Fix the shell variable \$srcfile for the compiler.
22865 fix_srcfile_path="$fix_srcfile_path_F77"
22866
22867 # Set to yes if exported symbols are required.
22868 always_export_symbols=$always_export_symbols_F77
22869
22870 # The commands to list exported symbols.
22871 export_symbols_cmds=$lt_export_symbols_cmds_F77
22872
22873 # The commands to extract the exported symbol list from a shared archive.
22874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22875
22876 # Symbols that should not be listed in the preloaded symbols.
22877 exclude_expsyms=$lt_exclude_expsyms_F77
22878
22879 # Symbols that must always be exported.
22880 include_expsyms=$lt_include_expsyms_F77
22881
22882 # ### END LIBTOOL TAG CONFIG: $tagname
22883
22884 __EOF__
22885
22886
22887 else
22888   # If there is no Makefile yet, we rely on a make rule to execute
22889   # `config.status --recheck' to rerun these tests and create the
22890   # libtool script then.
22891   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22892   if test -f "$ltmain_in"; then
22893     test -f Makefile && make "$ltmain"
22894   fi
22895 fi
22896
22897
22898 ac_ext=c
22899 ac_cpp='$CPP $CPPFLAGS'
22900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22903
22904 CC="$lt_save_CC"
22905
22906         else
22907           tagname=""
22908         fi
22909         ;;
22910
22911       GCJ)
22912         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22913
22914
22915
22916 # Source file extension for Java test sources.
22917 ac_ext=java
22918
22919 # Object file extension for compiled Java test sources.
22920 objext=o
22921 objext_GCJ=$objext
22922
22923 # Code to be used in simple compile tests
22924 lt_simple_compile_test_code="class foo {}\n"
22925
22926 # Code to be used in simple link tests
22927 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22928
22929 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22930
22931 # If no C compiler was specified, use CC.
22932 LTCC=${LTCC-"$CC"}
22933
22934 # If no C compiler flags were specified, use CFLAGS.
22935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22936
22937 # Allow CC to be a program name with arguments.
22938 compiler=$CC
22939
22940
22941 # save warnings/boilerplate of simple test code
22942 ac_outfile=conftest.$ac_objext
22943 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22944 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22945 _lt_compiler_boilerplate=`cat conftest.err`
22946 $rm conftest*
22947
22948 ac_outfile=conftest.$ac_objext
22949 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22950 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22951 _lt_linker_boilerplate=`cat conftest.err`
22952 $rm conftest*
22953
22954
22955 # Allow CC to be a program name with arguments.
22956 lt_save_CC="$CC"
22957 CC=${GCJ-"gcj"}
22958 compiler=$CC
22959 compiler_GCJ=$CC
22960 for cc_temp in $compiler""; do
22961   case $cc_temp in
22962     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22963     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22964     \-*) ;;
22965     *) break;;
22966   esac
22967 done
22968 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22969
22970
22971 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22972 archive_cmds_need_lc_GCJ=no
22973
22974 old_archive_cmds_GCJ=$old_archive_cmds
22975
22976
22977 lt_prog_compiler_no_builtin_flag_GCJ=
22978
22979 if test "$GCC" = yes; then
22980   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22981
22982
22983 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22984 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
22985 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22986   echo $ECHO_N "(cached) $ECHO_C" >&6
22987 else
22988   lt_cv_prog_compiler_rtti_exceptions=no
22989   ac_outfile=conftest.$ac_objext
22990    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22991    lt_compiler_flag="-fno-rtti -fno-exceptions"
22992    # Insert the option either (1) after the last *FLAGS variable, or
22993    # (2) before a word containing "conftest.", or (3) at the end.
22994    # Note that $ac_compile itself does not contain backslashes and begins
22995    # with a dollar sign (not a hyphen), so the echo should work correctly.
22996    # The option is referenced via a variable to avoid confusing sed.
22997    lt_compile=`echo "$ac_compile" | $SED \
22998    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22999    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23000    -e 's:$: $lt_compiler_flag:'`
23001    (eval echo "\"\$as_me:23001: $lt_compile\"" >&5)
23002    (eval "$lt_compile" 2>conftest.err)
23003    ac_status=$?
23004    cat conftest.err >&5
23005    echo "$as_me:23005: \$? = $ac_status" >&5
23006    if (exit $ac_status) && test -s "$ac_outfile"; then
23007      # The compiler can only warn and ignore the option if not recognized
23008      # So say no if there are warnings other than the usual output.
23009      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23010      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23011      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23012        lt_cv_prog_compiler_rtti_exceptions=yes
23013      fi
23014    fi
23015    $rm conftest*
23016
23017 fi
23018 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23019 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
23020
23021 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23022     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23023 else
23024     :
23025 fi
23026
23027 fi
23028
23029 lt_prog_compiler_wl_GCJ=
23030 lt_prog_compiler_pic_GCJ=
23031 lt_prog_compiler_static_GCJ=
23032
23033 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23034 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23035
23036   if test "$GCC" = yes; then
23037     lt_prog_compiler_wl_GCJ='-Wl,'
23038     lt_prog_compiler_static_GCJ='-static'
23039
23040     case $host_os in
23041       aix*)
23042       # All AIX code is PIC.
23043       if test "$host_cpu" = ia64; then
23044         # AIX 5 now supports IA64 processor
23045         lt_prog_compiler_static_GCJ='-Bstatic'
23046       fi
23047       ;;
23048
23049     amigaos*)
23050       # FIXME: we need at least 68020 code to build shared libraries, but
23051       # adding the `-m68020' flag to GCC prevents building anything better,
23052       # like `-m68040'.
23053       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23054       ;;
23055
23056     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23057       # PIC is the default for these OSes.
23058       ;;
23059
23060     mingw* | pw32* | os2*)
23061       # This hack is so that the source file can tell whether it is being
23062       # built for inclusion in a dll (and should export symbols for example).
23063       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23064       ;;
23065
23066     darwin* | rhapsody*)
23067       # PIC is the default on this platform
23068       # Common symbols not allowed in MH_DYLIB files
23069       lt_prog_compiler_pic_GCJ='-fno-common'
23070       ;;
23071
23072     interix3*)
23073       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23074       # Instead, we relocate shared libraries at runtime.
23075       ;;
23076
23077     msdosdjgpp*)
23078       # Just because we use GCC doesn't mean we suddenly get shared libraries
23079       # on systems that don't support them.
23080       lt_prog_compiler_can_build_shared_GCJ=no
23081       enable_shared=no
23082       ;;
23083
23084     sysv4*MP*)
23085       if test -d /usr/nec; then
23086         lt_prog_compiler_pic_GCJ=-Kconform_pic
23087       fi
23088       ;;
23089
23090     hpux*)
23091       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23092       # not for PA HP-UX.
23093       case $host_cpu in
23094       hppa*64*|ia64*)
23095         # +Z the default
23096         ;;
23097       *)
23098         lt_prog_compiler_pic_GCJ='-fPIC'
23099         ;;
23100       esac
23101       ;;
23102
23103     *)
23104       lt_prog_compiler_pic_GCJ='-fPIC'
23105       ;;
23106     esac
23107   else
23108     # PORTME Check for flag to pass linker flags through the system compiler.
23109     case $host_os in
23110     aix*)
23111       lt_prog_compiler_wl_GCJ='-Wl,'
23112       if test "$host_cpu" = ia64; then
23113         # AIX 5 now supports IA64 processor
23114         lt_prog_compiler_static_GCJ='-Bstatic'
23115       else
23116         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23117       fi
23118       ;;
23119       darwin*)
23120         # PIC is the default on this platform
23121         # Common symbols not allowed in MH_DYLIB files
23122        case $cc_basename in
23123          xlc*)
23124          lt_prog_compiler_pic_GCJ='-qnocommon'
23125          lt_prog_compiler_wl_GCJ='-Wl,'
23126          ;;
23127        esac
23128        ;;
23129
23130     mingw* | pw32* | os2*)
23131       # This hack is so that the source file can tell whether it is being
23132       # built for inclusion in a dll (and should export symbols for example).
23133       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23134       ;;
23135
23136     hpux9* | hpux10* | hpux11*)
23137       lt_prog_compiler_wl_GCJ='-Wl,'
23138       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23139       # not for PA HP-UX.
23140       case $host_cpu in
23141       hppa*64*|ia64*)
23142         # +Z the default
23143         ;;
23144       *)
23145         lt_prog_compiler_pic_GCJ='+Z'
23146         ;;
23147       esac
23148       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23149       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23150       ;;
23151
23152     irix5* | irix6* | nonstopux*)
23153       lt_prog_compiler_wl_GCJ='-Wl,'
23154       # PIC (with -KPIC) is the default.
23155       lt_prog_compiler_static_GCJ='-non_shared'
23156       ;;
23157
23158     newsos6)
23159       lt_prog_compiler_pic_GCJ='-KPIC'
23160       lt_prog_compiler_static_GCJ='-Bstatic'
23161       ;;
23162
23163     linux*)
23164       case $cc_basename in
23165       icc* | ecc*)
23166         lt_prog_compiler_wl_GCJ='-Wl,'
23167         lt_prog_compiler_pic_GCJ='-KPIC'
23168         lt_prog_compiler_static_GCJ='-static'
23169         ;;
23170       pgcc* | pgf77* | pgf90* | pgf95*)
23171         # Portland Group compilers (*not* the Pentium gcc compiler,
23172         # which looks to be a dead project)
23173         lt_prog_compiler_wl_GCJ='-Wl,'
23174         lt_prog_compiler_pic_GCJ='-fpic'
23175         lt_prog_compiler_static_GCJ='-Bstatic'
23176         ;;
23177       ccc*)
23178         lt_prog_compiler_wl_GCJ='-Wl,'
23179         # All Alpha code is PIC.
23180         lt_prog_compiler_static_GCJ='-non_shared'
23181         ;;
23182       esac
23183       ;;
23184
23185     osf3* | osf4* | osf5*)
23186       lt_prog_compiler_wl_GCJ='-Wl,'
23187       # All OSF/1 code is PIC.
23188       lt_prog_compiler_static_GCJ='-non_shared'
23189       ;;
23190
23191     solaris*)
23192       lt_prog_compiler_pic_GCJ='-KPIC'
23193       lt_prog_compiler_static_GCJ='-Bstatic'
23194       case $cc_basename in
23195       f77* | f90* | f95*)
23196         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23197       *)
23198         lt_prog_compiler_wl_GCJ='-Wl,';;
23199       esac
23200       ;;
23201
23202     sunos4*)
23203       lt_prog_compiler_wl_GCJ='-Qoption ld '
23204       lt_prog_compiler_pic_GCJ='-PIC'
23205       lt_prog_compiler_static_GCJ='-Bstatic'
23206       ;;
23207
23208     sysv4 | sysv4.2uw2* | sysv4.3*)
23209       lt_prog_compiler_wl_GCJ='-Wl,'
23210       lt_prog_compiler_pic_GCJ='-KPIC'
23211       lt_prog_compiler_static_GCJ='-Bstatic'
23212       ;;
23213
23214     sysv4*MP*)
23215       if test -d /usr/nec ;then
23216         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23217         lt_prog_compiler_static_GCJ='-Bstatic'
23218       fi
23219       ;;
23220
23221     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23222       lt_prog_compiler_wl_GCJ='-Wl,'
23223       lt_prog_compiler_pic_GCJ='-KPIC'
23224       lt_prog_compiler_static_GCJ='-Bstatic'
23225       ;;
23226
23227     unicos*)
23228       lt_prog_compiler_wl_GCJ='-Wl,'
23229       lt_prog_compiler_can_build_shared_GCJ=no
23230       ;;
23231
23232     uts4*)
23233       lt_prog_compiler_pic_GCJ='-pic'
23234       lt_prog_compiler_static_GCJ='-Bstatic'
23235       ;;
23236
23237     *)
23238       lt_prog_compiler_can_build_shared_GCJ=no
23239       ;;
23240     esac
23241   fi
23242
23243 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23244 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
23245
23246 #
23247 # Check to make sure the PIC flag actually works.
23248 #
23249 if test -n "$lt_prog_compiler_pic_GCJ"; then
23250
23251 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23252 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
23253 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23254   echo $ECHO_N "(cached) $ECHO_C" >&6
23255 else
23256   lt_prog_compiler_pic_works_GCJ=no
23257   ac_outfile=conftest.$ac_objext
23258    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23259    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23260    # Insert the option either (1) after the last *FLAGS variable, or
23261    # (2) before a word containing "conftest.", or (3) at the end.
23262    # Note that $ac_compile itself does not contain backslashes and begins
23263    # with a dollar sign (not a hyphen), so the echo should work correctly.
23264    # The option is referenced via a variable to avoid confusing sed.
23265    lt_compile=`echo "$ac_compile" | $SED \
23266    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23267    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23268    -e 's:$: $lt_compiler_flag:'`
23269    (eval echo "\"\$as_me:23269: $lt_compile\"" >&5)
23270    (eval "$lt_compile" 2>conftest.err)
23271    ac_status=$?
23272    cat conftest.err >&5
23273    echo "$as_me:23273: \$? = $ac_status" >&5
23274    if (exit $ac_status) && test -s "$ac_outfile"; then
23275      # The compiler can only warn and ignore the option if not recognized
23276      # So say no if there are warnings other than the usual output.
23277      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23278      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23279      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23280        lt_prog_compiler_pic_works_GCJ=yes
23281      fi
23282    fi
23283    $rm conftest*
23284
23285 fi
23286 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23287 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
23288
23289 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23290     case $lt_prog_compiler_pic_GCJ in
23291      "" | " "*) ;;
23292      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23293      esac
23294 else
23295     lt_prog_compiler_pic_GCJ=
23296      lt_prog_compiler_can_build_shared_GCJ=no
23297 fi
23298
23299 fi
23300 case $host_os in
23301   # For platforms which do not support PIC, -DPIC is meaningless:
23302   *djgpp*)
23303     lt_prog_compiler_pic_GCJ=
23304     ;;
23305   *)
23306     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23307     ;;
23308 esac
23309
23310 #
23311 # Check to make sure the static flag actually works.
23312 #
23313 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23314 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23315 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
23316 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23317   echo $ECHO_N "(cached) $ECHO_C" >&6
23318 else
23319   lt_prog_compiler_static_works_GCJ=no
23320    save_LDFLAGS="$LDFLAGS"
23321    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23322    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23323    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23324      # The linker can only warn and ignore the option if not recognized
23325      # So say no if there are warnings
23326      if test -s conftest.err; then
23327        # Append any errors to the config.log.
23328        cat conftest.err 1>&5
23329        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23330        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23331        if diff conftest.exp conftest.er2 >/dev/null; then
23332          lt_prog_compiler_static_works_GCJ=yes
23333        fi
23334      else
23335        lt_prog_compiler_static_works_GCJ=yes
23336      fi
23337    fi
23338    $rm conftest*
23339    LDFLAGS="$save_LDFLAGS"
23340
23341 fi
23342 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23343 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
23344
23345 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23346     :
23347 else
23348     lt_prog_compiler_static_GCJ=
23349 fi
23350
23351
23352 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23353 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23354 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23355   echo $ECHO_N "(cached) $ECHO_C" >&6
23356 else
23357   lt_cv_prog_compiler_c_o_GCJ=no
23358    $rm -r conftest 2>/dev/null
23359    mkdir conftest
23360    cd conftest
23361    mkdir out
23362    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23363
23364    lt_compiler_flag="-o out/conftest2.$ac_objext"
23365    # Insert the option either (1) after the last *FLAGS variable, or
23366    # (2) before a word containing "conftest.", or (3) at the end.
23367    # Note that $ac_compile itself does not contain backslashes and begins
23368    # with a dollar sign (not a hyphen), so the echo should work correctly.
23369    lt_compile=`echo "$ac_compile" | $SED \
23370    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23371    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23372    -e 's:$: $lt_compiler_flag:'`
23373    (eval echo "\"\$as_me:23373: $lt_compile\"" >&5)
23374    (eval "$lt_compile" 2>out/conftest.err)
23375    ac_status=$?
23376    cat out/conftest.err >&5
23377    echo "$as_me:23377: \$? = $ac_status" >&5
23378    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23379    then
23380      # The compiler can only warn and ignore the option if not recognized
23381      # So say no if there are warnings
23382      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23383      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23384      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23385        lt_cv_prog_compiler_c_o_GCJ=yes
23386      fi
23387    fi
23388    chmod u+w . 2>&5
23389    $rm conftest*
23390    # SGI C++ compiler will create directory out/ii_files/ for
23391    # template instantiation
23392    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23393    $rm out/* && rmdir out
23394    cd ..
23395    rmdir conftest
23396    $rm conftest*
23397
23398 fi
23399 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23400 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
23401
23402
23403 hard_links="nottested"
23404 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23405   # do not overwrite the value of need_locks provided by the user
23406   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23407 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
23408   hard_links=yes
23409   $rm conftest*
23410   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23411   touch conftest.a
23412   ln conftest.a conftest.b 2>&5 || hard_links=no
23413   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23414   echo "$as_me:$LINENO: result: $hard_links" >&5
23415 echo "${ECHO_T}$hard_links" >&6
23416   if test "$hard_links" = no; then
23417     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23418 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23419     need_locks=warn
23420   fi
23421 else
23422   need_locks=no
23423 fi
23424
23425 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23426 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
23427
23428   runpath_var=
23429   allow_undefined_flag_GCJ=
23430   enable_shared_with_static_runtimes_GCJ=no
23431   archive_cmds_GCJ=
23432   archive_expsym_cmds_GCJ=
23433   old_archive_From_new_cmds_GCJ=
23434   old_archive_from_expsyms_cmds_GCJ=
23435   export_dynamic_flag_spec_GCJ=
23436   whole_archive_flag_spec_GCJ=
23437   thread_safe_flag_spec_GCJ=
23438   hardcode_libdir_flag_spec_GCJ=
23439   hardcode_libdir_flag_spec_ld_GCJ=
23440   hardcode_libdir_separator_GCJ=
23441   hardcode_direct_GCJ=no
23442   hardcode_minus_L_GCJ=no
23443   hardcode_shlibpath_var_GCJ=unsupported
23444   link_all_deplibs_GCJ=unknown
23445   hardcode_automatic_GCJ=no
23446   module_cmds_GCJ=
23447   module_expsym_cmds_GCJ=
23448   always_export_symbols_GCJ=no
23449   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23450   # include_expsyms should be a list of space-separated symbols to be *always*
23451   # included in the symbol list
23452   include_expsyms_GCJ=
23453   # exclude_expsyms can be an extended regexp of symbols to exclude
23454   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23455   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23456   # as well as any symbol that contains `d'.
23457   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23458   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23459   # platforms (ab)use it in PIC code, but their linkers get confused if
23460   # the symbol is explicitly referenced.  Since portable code cannot
23461   # rely on this symbol name, it's probably fine to never include it in
23462   # preloaded symbol tables.
23463   extract_expsyms_cmds=
23464   # Just being paranoid about ensuring that cc_basename is set.
23465   for cc_temp in $compiler""; do
23466   case $cc_temp in
23467     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23468     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23469     \-*) ;;
23470     *) break;;
23471   esac
23472 done
23473 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23474
23475   case $host_os in
23476   cygwin* | mingw* | pw32*)
23477     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23478     # When not using gcc, we currently assume that we are using
23479     # Microsoft Visual C++.
23480     if test "$GCC" != yes; then
23481       with_gnu_ld=no
23482     fi
23483     ;;
23484   interix*)
23485     # we just hope/assume this is gcc and not c89 (= MSVC++)
23486     with_gnu_ld=yes
23487     ;;
23488   openbsd*)
23489     with_gnu_ld=no
23490     ;;
23491   esac
23492
23493   ld_shlibs_GCJ=yes
23494   if test "$with_gnu_ld" = yes; then
23495     # If archive_cmds runs LD, not CC, wlarc should be empty
23496     wlarc='${wl}'
23497
23498     # Set some defaults for GNU ld with shared library support. These
23499     # are reset later if shared libraries are not supported. Putting them
23500     # here allows them to be overridden if necessary.
23501     runpath_var=LD_RUN_PATH
23502     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23503     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23504     # ancient GNU ld didn't support --whole-archive et. al.
23505     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23506         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23507       else
23508         whole_archive_flag_spec_GCJ=
23509     fi
23510     supports_anon_versioning=no
23511     case `$LD -v 2>/dev/null` in
23512       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23513       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23514       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23515       *\ 2.11.*) ;; # other 2.11 versions
23516       *) supports_anon_versioning=yes ;;
23517     esac
23518
23519     # See if GNU ld supports shared libraries.
23520     case $host_os in
23521     aix3* | aix4* | aix5*)
23522       # On AIX/PPC, the GNU linker is very broken
23523       if test "$host_cpu" != ia64; then
23524         ld_shlibs_GCJ=no
23525         cat <<EOF 1>&2
23526
23527 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23528 *** to be unable to reliably create shared libraries on AIX.
23529 *** Therefore, libtool is disabling shared libraries support.  If you
23530 *** really care for shared libraries, you may want to modify your PATH
23531 *** so that a non-GNU linker is found, and then restart.
23532
23533 EOF
23534       fi
23535       ;;
23536
23537     amigaos*)
23538       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)'
23539       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23540       hardcode_minus_L_GCJ=yes
23541
23542       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23543       # that the semantics of dynamic libraries on AmigaOS, at least up
23544       # to version 4, is to share data among multiple programs linked
23545       # with the same dynamic library.  Since this doesn't match the
23546       # behavior of shared libraries on other platforms, we can't use
23547       # them.
23548       ld_shlibs_GCJ=no
23549       ;;
23550
23551     beos*)
23552       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23553         allow_undefined_flag_GCJ=unsupported
23554         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23555         # support --undefined.  This deserves some investigation.  FIXME
23556         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23557       else
23558         ld_shlibs_GCJ=no
23559       fi
23560       ;;
23561
23562     cygwin* | mingw* | pw32*)
23563       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23564       # as there is no search path for DLLs.
23565       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23566       allow_undefined_flag_GCJ=unsupported
23567       always_export_symbols_GCJ=no
23568       enable_shared_with_static_runtimes_GCJ=yes
23569       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23570
23571       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23572         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23573         # If the export-symbols file already is a .def file (1st line
23574         # is EXPORTS), use it as is; otherwise, prepend...
23575         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23576           cp $export_symbols $output_objdir/$soname.def;
23577         else
23578           echo EXPORTS > $output_objdir/$soname.def;
23579           cat $export_symbols >> $output_objdir/$soname.def;
23580         fi~
23581         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23582       else
23583         ld_shlibs_GCJ=no
23584       fi
23585       ;;
23586
23587     interix3*)
23588       hardcode_direct_GCJ=no
23589       hardcode_shlibpath_var_GCJ=no
23590       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23591       export_dynamic_flag_spec_GCJ='${wl}-E'
23592       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23593       # Instead, shared libraries are loaded at an image base (0x10000000 by
23594       # default) and relocated if they conflict, which is a slow very memory
23595       # consuming and fragmenting process.  To avoid this, we pick a random,
23596       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23597       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23598       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'
23599       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'
23600       ;;
23601
23602     linux*)
23603       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23604         tmp_addflag=
23605         case $cc_basename,$host_cpu in
23606         pgcc*)                          # Portland Group C compiler
23607           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'
23608           tmp_addflag=' $pic_flag'
23609           ;;
23610         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
23611           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'
23612           tmp_addflag=' $pic_flag -Mnomain' ;;
23613         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
23614           tmp_addflag=' -i_dynamic' ;;
23615         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
23616           tmp_addflag=' -i_dynamic -nofor_main' ;;
23617         ifc* | ifort*)                  # Intel Fortran compiler
23618           tmp_addflag=' -nofor_main' ;;
23619         esac
23620         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23621
23622         if test $supports_anon_versioning = yes; then
23623           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23624   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23625   $echo "local: *; };" >> $output_objdir/$libname.ver~
23626           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23627         fi
23628       else
23629         ld_shlibs_GCJ=no
23630       fi
23631       ;;
23632
23633     netbsd*)
23634       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23635         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23636         wlarc=
23637       else
23638         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23639         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23640       fi
23641       ;;
23642
23643     solaris*)
23644       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23645         ld_shlibs_GCJ=no
23646         cat <<EOF 1>&2
23647
23648 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23649 *** create shared libraries on Solaris systems.  Therefore, libtool
23650 *** is disabling shared libraries support.  We urge you to upgrade GNU
23651 *** binutils to release 2.9.1 or newer.  Another option is to modify
23652 *** your PATH or compiler configuration so that the native linker is
23653 *** used, and then restart.
23654
23655 EOF
23656       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23657         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23658         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23659       else
23660         ld_shlibs_GCJ=no
23661       fi
23662       ;;
23663
23664     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23665       case `$LD -v 2>&1` in
23666         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23667         ld_shlibs_GCJ=no
23668         cat <<_LT_EOF 1>&2
23669
23670 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23671 *** reliably create shared libraries on SCO systems.  Therefore, libtool
23672 *** is disabling shared libraries support.  We urge you to upgrade GNU
23673 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23674 *** your PATH or compiler configuration so that the native linker is
23675 *** used, and then restart.
23676
23677 _LT_EOF
23678         ;;
23679         *)
23680           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23681             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23682             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23683             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23684           else
23685             ld_shlibs_GCJ=no
23686           fi
23687         ;;
23688       esac
23689       ;;
23690
23691     sunos4*)
23692       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23693       wlarc=
23694       hardcode_direct_GCJ=yes
23695       hardcode_shlibpath_var_GCJ=no
23696       ;;
23697
23698     *)
23699       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23700         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23701         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23702       else
23703         ld_shlibs_GCJ=no
23704       fi
23705       ;;
23706     esac
23707
23708     if test "$ld_shlibs_GCJ" = no; then
23709       runpath_var=
23710       hardcode_libdir_flag_spec_GCJ=
23711       export_dynamic_flag_spec_GCJ=
23712       whole_archive_flag_spec_GCJ=
23713     fi
23714   else
23715     # PORTME fill in a description of your system's linker (not GNU ld)
23716     case $host_os in
23717     aix3*)
23718       allow_undefined_flag_GCJ=unsupported
23719       always_export_symbols_GCJ=yes
23720       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'
23721       # Note: this linker hardcodes the directories in LIBPATH if there
23722       # are no directories specified by -L.
23723       hardcode_minus_L_GCJ=yes
23724       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23725         # Neither direct hardcoding nor static linking is supported with a
23726         # broken collect2.
23727         hardcode_direct_GCJ=unsupported
23728       fi
23729       ;;
23730
23731     aix4* | aix5*)
23732       if test "$host_cpu" = ia64; then
23733         # On IA64, the linker does run time linking by default, so we don't
23734         # have to do anything special.
23735         aix_use_runtimelinking=no
23736         exp_sym_flag='-Bexport'
23737         no_entry_flag=""
23738       else
23739         # If we're using GNU nm, then we don't want the "-C" option.
23740         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23741         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23742           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'
23743         else
23744           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'
23745         fi
23746         aix_use_runtimelinking=no
23747
23748         # Test if we are trying to use run time linking or normal
23749         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23750         # need to do runtime linking.
23751         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23752           for ld_flag in $LDFLAGS; do
23753           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23754             aix_use_runtimelinking=yes
23755             break
23756           fi
23757           done
23758           ;;
23759         esac
23760
23761         exp_sym_flag='-bexport'
23762         no_entry_flag='-bnoentry'
23763       fi
23764
23765       # When large executables or shared objects are built, AIX ld can
23766       # have problems creating the table of contents.  If linking a library
23767       # or program results in "error TOC overflow" add -mminimal-toc to
23768       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23769       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23770
23771       archive_cmds_GCJ=''
23772       hardcode_direct_GCJ=yes
23773       hardcode_libdir_separator_GCJ=':'
23774       link_all_deplibs_GCJ=yes
23775
23776       if test "$GCC" = yes; then
23777         case $host_os in aix4.[012]|aix4.[012].*)
23778         # We only want to do this on AIX 4.2 and lower, the check
23779         # below for broken collect2 doesn't work under 4.3+
23780           collect2name=`${CC} -print-prog-name=collect2`
23781           if test -f "$collect2name" && \
23782            strings "$collect2name" | grep resolve_lib_name >/dev/null
23783           then
23784           # We have reworked collect2
23785           hardcode_direct_GCJ=yes
23786           else
23787           # We have old collect2
23788           hardcode_direct_GCJ=unsupported
23789           # It fails to find uninstalled libraries when the uninstalled
23790           # path is not listed in the libpath.  Setting hardcode_minus_L
23791           # to unsupported forces relinking
23792           hardcode_minus_L_GCJ=yes
23793           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23794           hardcode_libdir_separator_GCJ=
23795           fi
23796           ;;
23797         esac
23798         shared_flag='-shared'
23799         if test "$aix_use_runtimelinking" = yes; then
23800           shared_flag="$shared_flag "'${wl}-G'
23801         fi
23802       else
23803         # not using gcc
23804         if test "$host_cpu" = ia64; then
23805         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23806         # chokes on -Wl,-G. The following line is correct:
23807           shared_flag='-G'
23808         else
23809           if test "$aix_use_runtimelinking" = yes; then
23810             shared_flag='${wl}-G'
23811           else
23812             shared_flag='${wl}-bM:SRE'
23813           fi
23814         fi
23815       fi
23816
23817       # It seems that -bexpall does not export symbols beginning with
23818       # underscore (_), so it is better to generate a list of symbols to export.
23819       always_export_symbols_GCJ=yes
23820       if test "$aix_use_runtimelinking" = yes; then
23821         # Warning - without using the other runtime loading flags (-brtl),
23822         # -berok will link without error, but may produce a broken library.
23823         allow_undefined_flag_GCJ='-berok'
23824        # Determine the default libpath from the value encoded in an empty executable.
23825        cat >conftest.$ac_ext <<_ACEOF
23826 /* confdefs.h.  */
23827 _ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h.  */
23831
23832 int
23833 main ()
23834 {
23835
23836   ;
23837   return 0;
23838 }
23839 _ACEOF
23840 rm -f conftest.$ac_objext conftest$ac_exeext
23841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23842   (eval $ac_link) 2>conftest.er1
23843   ac_status=$?
23844   grep -v '^ *+' conftest.er1 >conftest.err
23845   rm -f conftest.er1
23846   cat conftest.err >&5
23847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848   (exit $ac_status); } &&
23849          { ac_try='test -z "$ac_c_werror_flag"
23850                          || test ! -s conftest.err'
23851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23852   (eval $ac_try) 2>&5
23853   ac_status=$?
23854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855   (exit $ac_status); }; } &&
23856          { ac_try='test -s conftest$ac_exeext'
23857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23858   (eval $ac_try) 2>&5
23859   ac_status=$?
23860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861   (exit $ac_status); }; }; then
23862
23863 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23864 }'`
23865 # Check for a 64-bit object if we didn't find anything.
23866 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; }
23867 }'`; fi
23868 else
23869   echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23871
23872 fi
23873 rm -f conftest.err conftest.$ac_objext \
23874       conftest$ac_exeext conftest.$ac_ext
23875 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23876
23877        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23878         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"
23879        else
23880         if test "$host_cpu" = ia64; then
23881           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23882           allow_undefined_flag_GCJ="-z nodefs"
23883           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"
23884         else
23885          # Determine the default libpath from the value encoded in an empty executable.
23886          cat >conftest.$ac_ext <<_ACEOF
23887 /* confdefs.h.  */
23888 _ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h.  */
23892
23893 int
23894 main ()
23895 {
23896
23897   ;
23898   return 0;
23899 }
23900 _ACEOF
23901 rm -f conftest.$ac_objext conftest$ac_exeext
23902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23903   (eval $ac_link) 2>conftest.er1
23904   ac_status=$?
23905   grep -v '^ *+' conftest.er1 >conftest.err
23906   rm -f conftest.er1
23907   cat conftest.err >&5
23908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909   (exit $ac_status); } &&
23910          { ac_try='test -z "$ac_c_werror_flag"
23911                          || test ! -s conftest.err'
23912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23913   (eval $ac_try) 2>&5
23914   ac_status=$?
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); }; } &&
23917          { ac_try='test -s conftest$ac_exeext'
23918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919   (eval $ac_try) 2>&5
23920   ac_status=$?
23921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922   (exit $ac_status); }; }; then
23923
23924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23925 }'`
23926 # Check for a 64-bit object if we didn't find anything.
23927 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; }
23928 }'`; fi
23929 else
23930   echo "$as_me: failed program was:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23932
23933 fi
23934 rm -f conftest.err conftest.$ac_objext \
23935       conftest$ac_exeext conftest.$ac_ext
23936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23937
23938          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23939           # Warning - without using the other run time loading flags,
23940           # -berok will link without error, but may produce a broken library.
23941           no_undefined_flag_GCJ=' ${wl}-bernotok'
23942           allow_undefined_flag_GCJ=' ${wl}-berok'
23943           # Exported symbols can be pulled into shared objects from archives
23944           whole_archive_flag_spec_GCJ='$convenience'
23945           archive_cmds_need_lc_GCJ=yes
23946           # This is similar to how AIX traditionally builds its shared libraries.
23947           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'
23948         fi
23949       fi
23950       ;;
23951
23952     amigaos*)
23953       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)'
23954       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23955       hardcode_minus_L_GCJ=yes
23956       # see comment about different semantics on the GNU ld section
23957       ld_shlibs_GCJ=no
23958       ;;
23959
23960     bsdi[45]*)
23961       export_dynamic_flag_spec_GCJ=-rdynamic
23962       ;;
23963
23964     cygwin* | mingw* | pw32*)
23965       # When not using gcc, we currently assume that we are using
23966       # Microsoft Visual C++.
23967       # hardcode_libdir_flag_spec is actually meaningless, as there is
23968       # no search path for DLLs.
23969       hardcode_libdir_flag_spec_GCJ=' '
23970       allow_undefined_flag_GCJ=unsupported
23971       # Tell ltmain to make .lib files, not .a files.
23972       libext=lib
23973       # Tell ltmain to make .dll files, not .so files.
23974       shrext_cmds=".dll"
23975       # FIXME: Setting linknames here is a bad hack.
23976       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23977       # The linker will automatically build a .lib file if we build a DLL.
23978       old_archive_From_new_cmds_GCJ='true'
23979       # FIXME: Should let the user specify the lib program.
23980       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23981       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23982       enable_shared_with_static_runtimes_GCJ=yes
23983       ;;
23984
23985     darwin* | rhapsody*)
23986       case $host_os in
23987         rhapsody* | darwin1.[012])
23988          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23989          ;;
23990        *) # Darwin 1.3 on
23991          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23992            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23993          else
23994            case ${MACOSX_DEPLOYMENT_TARGET} in
23995              10.[012])
23996                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23997                ;;
23998              10.*)
23999                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24000                ;;
24001            esac
24002          fi
24003          ;;
24004       esac
24005       archive_cmds_need_lc_GCJ=no
24006       hardcode_direct_GCJ=no
24007       hardcode_automatic_GCJ=yes
24008       hardcode_shlibpath_var_GCJ=unsupported
24009       whole_archive_flag_spec_GCJ=''
24010       link_all_deplibs_GCJ=yes
24011     if test "$GCC" = yes ; then
24012         output_verbose_link_cmd='echo'
24013         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24014       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24015       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24016       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}'
24017       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}'
24018     else
24019       case $cc_basename in
24020         xlc*)
24021          output_verbose_link_cmd='echo'
24022          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24023          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24024           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24025          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}'
24026           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}'
24027           ;;
24028        *)
24029          ld_shlibs_GCJ=no
24030           ;;
24031       esac
24032     fi
24033       ;;
24034
24035     dgux*)
24036       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24037       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24038       hardcode_shlibpath_var_GCJ=no
24039       ;;
24040
24041     freebsd1*)
24042       ld_shlibs_GCJ=no
24043       ;;
24044
24045     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24046     # support.  Future versions do this automatically, but an explicit c++rt0.o
24047     # does not break anything, and helps significantly (at the cost of a little
24048     # extra space).
24049     freebsd2.2*)
24050       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24051       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24052       hardcode_direct_GCJ=yes
24053       hardcode_shlibpath_var_GCJ=no
24054       ;;
24055
24056     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24057     freebsd2*)
24058       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24059       hardcode_direct_GCJ=yes
24060       hardcode_minus_L_GCJ=yes
24061       hardcode_shlibpath_var_GCJ=no
24062       ;;
24063
24064     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24065     freebsd* | kfreebsd*-gnu | dragonfly*)
24066       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24067       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24068       hardcode_direct_GCJ=yes
24069       hardcode_shlibpath_var_GCJ=no
24070       ;;
24071
24072     hpux9*)
24073       if test "$GCC" = yes; then
24074         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'
24075       else
24076         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'
24077       fi
24078       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24079       hardcode_libdir_separator_GCJ=:
24080       hardcode_direct_GCJ=yes
24081
24082       # hardcode_minus_L: Not really in the search PATH,
24083       # but as the default location of the library.
24084       hardcode_minus_L_GCJ=yes
24085       export_dynamic_flag_spec_GCJ='${wl}-E'
24086       ;;
24087
24088     hpux10*)
24089       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24090         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24091       else
24092         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24093       fi
24094       if test "$with_gnu_ld" = no; then
24095         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24096         hardcode_libdir_separator_GCJ=:
24097
24098         hardcode_direct_GCJ=yes
24099         export_dynamic_flag_spec_GCJ='${wl}-E'
24100
24101         # hardcode_minus_L: Not really in the search PATH,
24102         # but as the default location of the library.
24103         hardcode_minus_L_GCJ=yes
24104       fi
24105       ;;
24106
24107     hpux11*)
24108       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24109         case $host_cpu in
24110         hppa*64*)
24111           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24112           ;;
24113         ia64*)
24114           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24115           ;;
24116         *)
24117           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24118           ;;
24119         esac
24120       else
24121         case $host_cpu in
24122         hppa*64*)
24123           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24124           ;;
24125         ia64*)
24126           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24127           ;;
24128         *)
24129           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24130           ;;
24131         esac
24132       fi
24133       if test "$with_gnu_ld" = no; then
24134         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24135         hardcode_libdir_separator_GCJ=:
24136
24137         case $host_cpu in
24138         hppa*64*|ia64*)
24139           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24140           hardcode_direct_GCJ=no
24141           hardcode_shlibpath_var_GCJ=no
24142           ;;
24143         *)
24144           hardcode_direct_GCJ=yes
24145           export_dynamic_flag_spec_GCJ='${wl}-E'
24146
24147           # hardcode_minus_L: Not really in the search PATH,
24148           # but as the default location of the library.
24149           hardcode_minus_L_GCJ=yes
24150           ;;
24151         esac
24152       fi
24153       ;;
24154
24155     irix5* | irix6* | nonstopux*)
24156       if test "$GCC" = yes; then
24157         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'
24158       else
24159         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'
24160         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24161       fi
24162       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24163       hardcode_libdir_separator_GCJ=:
24164       link_all_deplibs_GCJ=yes
24165       ;;
24166
24167     netbsd*)
24168       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24169         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24170       else
24171         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24172       fi
24173       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24174       hardcode_direct_GCJ=yes
24175       hardcode_shlibpath_var_GCJ=no
24176       ;;
24177
24178     newsos6)
24179       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24180       hardcode_direct_GCJ=yes
24181       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24182       hardcode_libdir_separator_GCJ=:
24183       hardcode_shlibpath_var_GCJ=no
24184       ;;
24185
24186     openbsd*)
24187       hardcode_direct_GCJ=yes
24188       hardcode_shlibpath_var_GCJ=no
24189       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24190         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24191         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24192         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24193         export_dynamic_flag_spec_GCJ='${wl}-E'
24194       else
24195        case $host_os in
24196          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24197            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24198            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24199            ;;
24200          *)
24201            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24202            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24203            ;;
24204        esac
24205       fi
24206       ;;
24207
24208     os2*)
24209       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24210       hardcode_minus_L_GCJ=yes
24211       allow_undefined_flag_GCJ=unsupported
24212       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'
24213       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24214       ;;
24215
24216     osf3*)
24217       if test "$GCC" = yes; then
24218         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24219         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'
24220       else
24221         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24222         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'
24223       fi
24224       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24225       hardcode_libdir_separator_GCJ=:
24226       ;;
24227
24228     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24229       if test "$GCC" = yes; then
24230         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24231         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'
24232         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24233       else
24234         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24235         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'
24236         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~
24237         $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'
24238
24239         # Both c and cxx compiler support -rpath directly
24240         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24241       fi
24242       hardcode_libdir_separator_GCJ=:
24243       ;;
24244
24245     solaris*)
24246       no_undefined_flag_GCJ=' -z text'
24247       if test "$GCC" = yes; then
24248         wlarc='${wl}'
24249         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24250         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24251           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24252       else
24253         wlarc=''
24254         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24255         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24256         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24257       fi
24258       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24259       hardcode_shlibpath_var_GCJ=no
24260       case $host_os in
24261       solaris2.[0-5] | solaris2.[0-5].*) ;;
24262       *)
24263         # The compiler driver will combine linker options so we
24264         # cannot just pass the convience library names through
24265         # without $wl, iff we do not link with $LD.
24266         # Luckily, gcc supports the same syntax we need for Sun Studio.
24267         # Supported since Solaris 2.6 (maybe 2.5.1?)
24268         case $wlarc in
24269         '')
24270           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24271         *)
24272           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' ;;
24273         esac ;;
24274       esac
24275       link_all_deplibs_GCJ=yes
24276       ;;
24277
24278     sunos4*)
24279       if test "x$host_vendor" = xsequent; then
24280         # Use $CC to link under sequent, because it throws in some extra .o
24281         # files that make .init and .fini sections work.
24282         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24283       else
24284         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24285       fi
24286       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24287       hardcode_direct_GCJ=yes
24288       hardcode_minus_L_GCJ=yes
24289       hardcode_shlibpath_var_GCJ=no
24290       ;;
24291
24292     sysv4)
24293       case $host_vendor in
24294         sni)
24295           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24296           hardcode_direct_GCJ=yes # is this really true???
24297         ;;
24298         siemens)
24299           ## LD is ld it makes a PLAMLIB
24300           ## CC just makes a GrossModule.
24301           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24302           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24303           hardcode_direct_GCJ=no
24304         ;;
24305         motorola)
24306           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24307           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24308         ;;
24309       esac
24310       runpath_var='LD_RUN_PATH'
24311       hardcode_shlibpath_var_GCJ=no
24312       ;;
24313
24314     sysv4.3*)
24315       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24316       hardcode_shlibpath_var_GCJ=no
24317       export_dynamic_flag_spec_GCJ='-Bexport'
24318       ;;
24319
24320     sysv4*MP*)
24321       if test -d /usr/nec; then
24322         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24323         hardcode_shlibpath_var_GCJ=no
24324         runpath_var=LD_RUN_PATH
24325         hardcode_runpath_var=yes
24326         ld_shlibs_GCJ=yes
24327       fi
24328       ;;
24329
24330     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24331       no_undefined_flag_GCJ='${wl}-z,text'
24332       archive_cmds_need_lc_GCJ=no
24333       hardcode_shlibpath_var_GCJ=no
24334       runpath_var='LD_RUN_PATH'
24335
24336       if test "$GCC" = yes; then
24337         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24338         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24339       else
24340         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24341         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24342       fi
24343       ;;
24344
24345     sysv5* | sco3.2v5* | sco5v6*)
24346       # Note: We can NOT use -z defs as we might desire, because we do not
24347       # link with -lc, and that would cause any symbols used from libc to
24348       # always be unresolved, which means just about no library would
24349       # ever link correctly.  If we're not using GNU ld we use -z text
24350       # though, which does catch some bad symbols but isn't as heavy-handed
24351       # as -z defs.
24352       no_undefined_flag_GCJ='${wl}-z,text'
24353       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24354       archive_cmds_need_lc_GCJ=no
24355       hardcode_shlibpath_var_GCJ=no
24356       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24357       hardcode_libdir_separator_GCJ=':'
24358       link_all_deplibs_GCJ=yes
24359       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24360       runpath_var='LD_RUN_PATH'
24361
24362       if test "$GCC" = yes; then
24363         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24364         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24365       else
24366         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24367         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24368       fi
24369       ;;
24370
24371     uts4*)
24372       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24373       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24374       hardcode_shlibpath_var_GCJ=no
24375       ;;
24376
24377     *)
24378       ld_shlibs_GCJ=no
24379       ;;
24380     esac
24381   fi
24382
24383 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24384 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
24385 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24386
24387 #
24388 # Do we need to explicitly link libc?
24389 #
24390 case "x$archive_cmds_need_lc_GCJ" in
24391 x|xyes)
24392   # Assume -lc should be added
24393   archive_cmds_need_lc_GCJ=yes
24394
24395   if test "$enable_shared" = yes && test "$GCC" = yes; then
24396     case $archive_cmds_GCJ in
24397     *'~'*)
24398       # FIXME: we may have to deal with multi-command sequences.
24399       ;;
24400     '$CC '*)
24401       # Test whether the compiler implicitly links with -lc since on some
24402       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24403       # to ld, don't add -lc before -lgcc.
24404       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24405 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
24406       $rm conftest*
24407       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24408
24409       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24410   (eval $ac_compile) 2>&5
24411   ac_status=$?
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); } 2>conftest.err; then
24414         soname=conftest
24415         lib=conftest
24416         libobjs=conftest.$ac_objext
24417         deplibs=
24418         wl=$lt_prog_compiler_wl_GCJ
24419         pic_flag=$lt_prog_compiler_pic_GCJ
24420         compiler_flags=-v
24421         linker_flags=-v
24422         verstring=
24423         output_objdir=.
24424         libname=conftest
24425         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24426         allow_undefined_flag_GCJ=
24427         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24428   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24429   ac_status=$?
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); }
24432         then
24433           archive_cmds_need_lc_GCJ=no
24434         else
24435           archive_cmds_need_lc_GCJ=yes
24436         fi
24437         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24438       else
24439         cat conftest.err 1>&5
24440       fi
24441       $rm conftest*
24442       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24443 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
24444       ;;
24445     esac
24446   fi
24447   ;;
24448 esac
24449
24450 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24451 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
24452 library_names_spec=
24453 libname_spec='lib$name'
24454 soname_spec=
24455 shrext_cmds=".so"
24456 postinstall_cmds=
24457 postuninstall_cmds=
24458 finish_cmds=
24459 finish_eval=
24460 shlibpath_var=
24461 shlibpath_overrides_runpath=unknown
24462 version_type=none
24463 dynamic_linker="$host_os ld.so"
24464 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24465 if test "$GCC" = yes; then
24466   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24467   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24468     # if the path contains ";" then we assume it to be the separator
24469     # otherwise default to the standard path separator (i.e. ":") - it is
24470     # assumed that no part of a normal pathname contains ";" but that should
24471     # okay in the real world where ";" in dirpaths is itself problematic.
24472     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24473   else
24474     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24475   fi
24476 else
24477   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24478 fi
24479 need_lib_prefix=unknown
24480 hardcode_into_libs=no
24481
24482 # when you set need_version to no, make sure it does not cause -set_version
24483 # flags to be left without arguments
24484 need_version=unknown
24485
24486 case $host_os in
24487 aix3*)
24488   version_type=linux
24489   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24490   shlibpath_var=LIBPATH
24491
24492   # AIX 3 has no versioning support, so we append a major version to the name.
24493   soname_spec='${libname}${release}${shared_ext}$major'
24494   ;;
24495
24496 aix4* | aix5*)
24497   version_type=linux
24498   need_lib_prefix=no
24499   need_version=no
24500   hardcode_into_libs=yes
24501   if test "$host_cpu" = ia64; then
24502     # AIX 5 supports IA64
24503     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24504     shlibpath_var=LD_LIBRARY_PATH
24505   else
24506     # With GCC up to 2.95.x, collect2 would create an import file
24507     # for dependence libraries.  The import file would start with
24508     # the line `#! .'.  This would cause the generated library to
24509     # depend on `.', always an invalid library.  This was fixed in
24510     # development snapshots of GCC prior to 3.0.
24511     case $host_os in
24512       aix4 | aix4.[01] | aix4.[01].*)
24513       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24514            echo ' yes '
24515            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24516         :
24517       else
24518         can_build_shared=no
24519       fi
24520       ;;
24521     esac
24522     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24523     # soname into executable. Probably we can add versioning support to
24524     # collect2, so additional links can be useful in future.
24525     if test "$aix_use_runtimelinking" = yes; then
24526       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24527       # instead of lib<name>.a to let people know that these are not
24528       # typical AIX shared libraries.
24529       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24530     else
24531       # We preserve .a as extension for shared libraries through AIX4.2
24532       # and later when we are not doing run time linking.
24533       library_names_spec='${libname}${release}.a $libname.a'
24534       soname_spec='${libname}${release}${shared_ext}$major'
24535     fi
24536     shlibpath_var=LIBPATH
24537   fi
24538   ;;
24539
24540 amigaos*)
24541   library_names_spec='$libname.ixlibrary $libname.a'
24542   # Create ${libname}_ixlibrary.a entries in /sys/libs.
24543   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'
24544   ;;
24545
24546 beos*)
24547   library_names_spec='${libname}${shared_ext}'
24548   dynamic_linker="$host_os ld.so"
24549   shlibpath_var=LIBRARY_PATH
24550   ;;
24551
24552 bsdi[45]*)
24553   version_type=linux
24554   need_version=no
24555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24556   soname_spec='${libname}${release}${shared_ext}$major'
24557   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24558   shlibpath_var=LD_LIBRARY_PATH
24559   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24560   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24561   # the default ld.so.conf also contains /usr/contrib/lib and
24562   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24563   # libtool to hard-code these into programs
24564   ;;
24565
24566 cygwin* | mingw* | pw32*)
24567   version_type=windows
24568   shrext_cmds=".dll"
24569   need_version=no
24570   need_lib_prefix=no
24571
24572   case $GCC,$host_os in
24573   yes,cygwin* | yes,mingw* | yes,pw32*)
24574     library_names_spec='$libname.dll.a'
24575     # DLL is installed to $(libdir)/../bin by postinstall_cmds
24576     postinstall_cmds='base_file=`basename \${file}`~
24577       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24578       dldir=$destdir/`dirname \$dlpath`~
24579       test -d \$dldir || mkdir -p \$dldir~
24580       $install_prog $dir/$dlname \$dldir/$dlname~
24581       chmod a+x \$dldir/$dlname'
24582     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24583       dlpath=$dir/\$dldll~
24584        $rm \$dlpath'
24585     shlibpath_overrides_runpath=yes
24586
24587     case $host_os in
24588     cygwin*)
24589       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24590       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24591       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24592       ;;
24593     mingw*)
24594       # MinGW DLLs use traditional 'lib' prefix
24595       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24596       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24597       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24598         # It is most probably a Windows format PATH printed by
24599         # mingw gcc, but we are running on Cygwin. Gcc prints its search
24600         # path with ; separators, and with drive letters. We can handle the
24601         # drive letters (cygwin fileutils understands them), so leave them,
24602         # especially as we might pass files found there to a mingw objdump,
24603         # which wouldn't understand a cygwinified path. Ahh.
24604         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24605       else
24606         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24607       fi
24608       ;;
24609     pw32*)
24610       # pw32 DLLs use 'pw' prefix rather than 'lib'
24611       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24612       ;;
24613     esac
24614     ;;
24615
24616   *)
24617     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24618     ;;
24619   esac
24620   dynamic_linker='Win32 ld.exe'
24621   # FIXME: first we should search . and the directory the executable is in
24622   shlibpath_var=PATH
24623   ;;
24624
24625 darwin* | rhapsody*)
24626   dynamic_linker="$host_os dyld"
24627   version_type=darwin
24628   need_lib_prefix=no
24629   need_version=no
24630   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24631   soname_spec='${libname}${release}${major}$shared_ext'
24632   shlibpath_overrides_runpath=yes
24633   shlibpath_var=DYLD_LIBRARY_PATH
24634   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24635   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24636   if test "$GCC" = yes; then
24637     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"`
24638   else
24639     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24640   fi
24641   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24642   ;;
24643
24644 dgux*)
24645   version_type=linux
24646   need_lib_prefix=no
24647   need_version=no
24648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24649   soname_spec='${libname}${release}${shared_ext}$major'
24650   shlibpath_var=LD_LIBRARY_PATH
24651   ;;
24652
24653 freebsd1*)
24654   dynamic_linker=no
24655   ;;
24656
24657 kfreebsd*-gnu)
24658   version_type=linux
24659   need_lib_prefix=no
24660   need_version=no
24661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24662   soname_spec='${libname}${release}${shared_ext}$major'
24663   shlibpath_var=LD_LIBRARY_PATH
24664   shlibpath_overrides_runpath=no
24665   hardcode_into_libs=yes
24666   dynamic_linker='GNU ld.so'
24667   ;;
24668
24669 freebsd* | dragonfly*)
24670   # DragonFly does not have aout.  When/if they implement a new
24671   # versioning mechanism, adjust this.
24672   if test -x /usr/bin/objformat; then
24673     objformat=`/usr/bin/objformat`
24674   else
24675     case $host_os in
24676     freebsd[123]*) objformat=aout ;;
24677     *) objformat=elf ;;
24678     esac
24679   fi
24680   version_type=freebsd-$objformat
24681   case $version_type in
24682     freebsd-elf*)
24683       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24684       need_version=no
24685       need_lib_prefix=no
24686       ;;
24687     freebsd-*)
24688       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24689       need_version=yes
24690       ;;
24691   esac
24692   shlibpath_var=LD_LIBRARY_PATH
24693   case $host_os in
24694   freebsd2*)
24695     shlibpath_overrides_runpath=yes
24696     ;;
24697   freebsd3.[01]* | freebsdelf3.[01]*)
24698     shlibpath_overrides_runpath=yes
24699     hardcode_into_libs=yes
24700     ;;
24701   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24702   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24703     shlibpath_overrides_runpath=no
24704     hardcode_into_libs=yes
24705     ;;
24706   freebsd*) # from 4.6 on
24707     shlibpath_overrides_runpath=yes
24708     hardcode_into_libs=yes
24709     ;;
24710   esac
24711   ;;
24712
24713 gnu*)
24714   version_type=linux
24715   need_lib_prefix=no
24716   need_version=no
24717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24718   soname_spec='${libname}${release}${shared_ext}$major'
24719   shlibpath_var=LD_LIBRARY_PATH
24720   hardcode_into_libs=yes
24721   ;;
24722
24723 hpux9* | hpux10* | hpux11*)
24724   # Give a soname corresponding to the major version so that dld.sl refuses to
24725   # link against other versions.
24726   version_type=sunos
24727   need_lib_prefix=no
24728   need_version=no
24729   case $host_cpu in
24730   ia64*)
24731     shrext_cmds='.so'
24732     hardcode_into_libs=yes
24733     dynamic_linker="$host_os dld.so"
24734     shlibpath_var=LD_LIBRARY_PATH
24735     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24737     soname_spec='${libname}${release}${shared_ext}$major'
24738     if test "X$HPUX_IA64_MODE" = X32; then
24739       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24740     else
24741       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24742     fi
24743     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24744     ;;
24745    hppa*64*)
24746      shrext_cmds='.sl'
24747      hardcode_into_libs=yes
24748      dynamic_linker="$host_os dld.sl"
24749      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24750      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24751      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24752      soname_spec='${libname}${release}${shared_ext}$major'
24753      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24754      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24755      ;;
24756    *)
24757     shrext_cmds='.sl'
24758     dynamic_linker="$host_os dld.sl"
24759     shlibpath_var=SHLIB_PATH
24760     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24761     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24762     soname_spec='${libname}${release}${shared_ext}$major'
24763     ;;
24764   esac
24765   # HP-UX runs *really* slowly unless shared libraries are mode 555.
24766   postinstall_cmds='chmod 555 $lib'
24767   ;;
24768
24769 interix3*)
24770   version_type=linux
24771   need_lib_prefix=no
24772   need_version=no
24773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24774   soname_spec='${libname}${release}${shared_ext}$major'
24775   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24776   shlibpath_var=LD_LIBRARY_PATH
24777   shlibpath_overrides_runpath=no
24778   hardcode_into_libs=yes
24779   ;;
24780
24781 irix5* | irix6* | nonstopux*)
24782   case $host_os in
24783     nonstopux*) version_type=nonstopux ;;
24784     *)
24785         if test "$lt_cv_prog_gnu_ld" = yes; then
24786                 version_type=linux
24787         else
24788                 version_type=irix
24789         fi ;;
24790   esac
24791   need_lib_prefix=no
24792   need_version=no
24793   soname_spec='${libname}${release}${shared_ext}$major'
24794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24795   case $host_os in
24796   irix5* | nonstopux*)
24797     libsuff= shlibsuff=
24798     ;;
24799   *)
24800     case $LD in # libtool.m4 will add one of these switches to LD
24801     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24802       libsuff= shlibsuff= libmagic=32-bit;;
24803     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24804       libsuff=32 shlibsuff=N32 libmagic=N32;;
24805     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24806       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24807     *) libsuff= shlibsuff= libmagic=never-match;;
24808     esac
24809     ;;
24810   esac
24811   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24812   shlibpath_overrides_runpath=no
24813   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24814   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24815   hardcode_into_libs=yes
24816   ;;
24817
24818 # No shared lib support for Linux oldld, aout, or coff.
24819 linux*oldld* | linux*aout* | linux*coff*)
24820   dynamic_linker=no
24821   ;;
24822
24823 # This must be Linux ELF.
24824 linux*)
24825   version_type=linux
24826   need_lib_prefix=no
24827   need_version=no
24828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24829   soname_spec='${libname}${release}${shared_ext}$major'
24830   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24831   shlibpath_var=LD_LIBRARY_PATH
24832   shlibpath_overrides_runpath=no
24833   # This implies no fast_install, which is unacceptable.
24834   # Some rework will be needed to allow for fast_install
24835   # before this can be enabled.
24836   hardcode_into_libs=yes
24837
24838   # find out which ABI we are using
24839   libsuff=
24840   case "$host_cpu" in
24841   x86_64*|s390x*|powerpc64*)
24842     echo '#line 24842 "configure"' > conftest.$ac_ext
24843     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24844   (eval $ac_compile) 2>&5
24845   ac_status=$?
24846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847   (exit $ac_status); }; then
24848       case `/usr/bin/file conftest.$ac_objext` in
24849       *64-bit*)
24850         libsuff=64
24851         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
24852         ;;
24853       esac
24854     fi
24855     rm -rf conftest*
24856     ;;
24857   esac
24858
24859   # Append ld.so.conf contents to the search path
24860   if test -f /etc/ld.so.conf; then
24861     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
24862     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
24863   fi
24864
24865   # We used to test for /lib/ld.so.1 and disable shared libraries on
24866   # powerpc, because MkLinux only supported shared libraries with the
24867   # GNU dynamic linker.  Since this was broken with cross compilers,
24868   # most powerpc-linux boxes support dynamic linking these days and
24869   # people can always --disable-shared, the test was removed, and we
24870   # assume the GNU/Linux dynamic linker is in use.
24871   dynamic_linker='GNU/Linux ld.so'
24872   ;;
24873
24874 knetbsd*-gnu)
24875   version_type=linux
24876   need_lib_prefix=no
24877   need_version=no
24878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24879   soname_spec='${libname}${release}${shared_ext}$major'
24880   shlibpath_var=LD_LIBRARY_PATH
24881   shlibpath_overrides_runpath=no
24882   hardcode_into_libs=yes
24883   dynamic_linker='GNU ld.so'
24884   ;;
24885
24886 netbsd*)
24887   version_type=sunos
24888   need_lib_prefix=no
24889   need_version=no
24890   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24892     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24893     dynamic_linker='NetBSD (a.out) ld.so'
24894   else
24895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24896     soname_spec='${libname}${release}${shared_ext}$major'
24897     dynamic_linker='NetBSD ld.elf_so'
24898   fi
24899   shlibpath_var=LD_LIBRARY_PATH
24900   shlibpath_overrides_runpath=yes
24901   hardcode_into_libs=yes
24902   ;;
24903
24904 newsos6)
24905   version_type=linux
24906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24907   shlibpath_var=LD_LIBRARY_PATH
24908   shlibpath_overrides_runpath=yes
24909   ;;
24910
24911 nto-qnx*)
24912   version_type=linux
24913   need_lib_prefix=no
24914   need_version=no
24915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24916   soname_spec='${libname}${release}${shared_ext}$major'
24917   shlibpath_var=LD_LIBRARY_PATH
24918   shlibpath_overrides_runpath=yes
24919   ;;
24920
24921 openbsd*)
24922   version_type=sunos
24923   sys_lib_dlsearch_path_spec="/usr/lib"
24924   need_lib_prefix=no
24925   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24926   case $host_os in
24927     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24928     *)                         need_version=no  ;;
24929   esac
24930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24931   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24932   shlibpath_var=LD_LIBRARY_PATH
24933   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24934     case $host_os in
24935       openbsd2.[89] | openbsd2.[89].*)
24936         shlibpath_overrides_runpath=no
24937         ;;
24938       *)
24939         shlibpath_overrides_runpath=yes
24940         ;;
24941       esac
24942   else
24943     shlibpath_overrides_runpath=yes
24944   fi
24945   ;;
24946
24947 os2*)
24948   libname_spec='$name'
24949   shrext_cmds=".dll"
24950   need_lib_prefix=no
24951   library_names_spec='$libname${shared_ext} $libname.a'
24952   dynamic_linker='OS/2 ld.exe'
24953   shlibpath_var=LIBPATH
24954   ;;
24955
24956 osf3* | osf4* | osf5*)
24957   version_type=osf
24958   need_lib_prefix=no
24959   need_version=no
24960   soname_spec='${libname}${release}${shared_ext}$major'
24961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24962   shlibpath_var=LD_LIBRARY_PATH
24963   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24964   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24965   ;;
24966
24967 solaris*)
24968   version_type=linux
24969   need_lib_prefix=no
24970   need_version=no
24971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24972   soname_spec='${libname}${release}${shared_ext}$major'
24973   shlibpath_var=LD_LIBRARY_PATH
24974   shlibpath_overrides_runpath=yes
24975   hardcode_into_libs=yes
24976   # ldd complains unless libraries are executable
24977   postinstall_cmds='chmod +x $lib'
24978   ;;
24979
24980 sunos4*)
24981   version_type=sunos
24982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24983   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24984   shlibpath_var=LD_LIBRARY_PATH
24985   shlibpath_overrides_runpath=yes
24986   if test "$with_gnu_ld" = yes; then
24987     need_lib_prefix=no
24988   fi
24989   need_version=yes
24990   ;;
24991
24992 sysv4 | sysv4.3*)
24993   version_type=linux
24994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24995   soname_spec='${libname}${release}${shared_ext}$major'
24996   shlibpath_var=LD_LIBRARY_PATH
24997   case $host_vendor in
24998     sni)
24999       shlibpath_overrides_runpath=no
25000       need_lib_prefix=no
25001       export_dynamic_flag_spec='${wl}-Blargedynsym'
25002       runpath_var=LD_RUN_PATH
25003       ;;
25004     siemens)
25005       need_lib_prefix=no
25006       ;;
25007     motorola)
25008       need_lib_prefix=no
25009       need_version=no
25010       shlibpath_overrides_runpath=no
25011       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25012       ;;
25013   esac
25014   ;;
25015
25016 sysv4*MP*)
25017   if test -d /usr/nec ;then
25018     version_type=linux
25019     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25020     soname_spec='$libname${shared_ext}.$major'
25021     shlibpath_var=LD_LIBRARY_PATH
25022   fi
25023   ;;
25024
25025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25026   version_type=freebsd-elf
25027   need_lib_prefix=no
25028   need_version=no
25029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25030   soname_spec='${libname}${release}${shared_ext}$major'
25031   shlibpath_var=LD_LIBRARY_PATH
25032   hardcode_into_libs=yes
25033   if test "$with_gnu_ld" = yes; then
25034     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25035     shlibpath_overrides_runpath=no
25036   else
25037     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25038     shlibpath_overrides_runpath=yes
25039     case $host_os in
25040       sco3.2v5*)
25041         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25042         ;;
25043     esac
25044   fi
25045   sys_lib_dlsearch_path_spec='/usr/lib'
25046   ;;
25047
25048 uts4*)
25049   version_type=linux
25050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25051   soname_spec='${libname}${release}${shared_ext}$major'
25052   shlibpath_var=LD_LIBRARY_PATH
25053   ;;
25054
25055 *)
25056   dynamic_linker=no
25057   ;;
25058 esac
25059 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25060 echo "${ECHO_T}$dynamic_linker" >&6
25061 test "$dynamic_linker" = no && can_build_shared=no
25062
25063 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25064 if test "$GCC" = yes; then
25065   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25066 fi
25067
25068 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25069 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
25070 hardcode_action_GCJ=
25071 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25072    test -n "$runpath_var_GCJ" || \
25073    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25074
25075   # We can hardcode non-existant directories.
25076   if test "$hardcode_direct_GCJ" != no &&
25077      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25078      # have to relink, otherwise we might link with an installed library
25079      # when we should be linking with a yet-to-be-installed one
25080      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25081      test "$hardcode_minus_L_GCJ" != no; then
25082     # Linking always hardcodes the temporary library directory.
25083     hardcode_action_GCJ=relink
25084   else
25085     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25086     hardcode_action_GCJ=immediate
25087   fi
25088 else
25089   # We cannot hardcode anything, or else we can only hardcode existing
25090   # directories.
25091   hardcode_action_GCJ=unsupported
25092 fi
25093 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25094 echo "${ECHO_T}$hardcode_action_GCJ" >&6
25095
25096 if test "$hardcode_action_GCJ" = relink; then
25097   # Fast installation is not supported
25098   enable_fast_install=no
25099 elif test "$shlibpath_overrides_runpath" = yes ||
25100      test "$enable_shared" = no; then
25101   # Fast installation is not necessary
25102   enable_fast_install=needless
25103 fi
25104
25105
25106 # The else clause should only fire when bootstrapping the
25107 # libtool distribution, otherwise you forgot to ship ltmain.sh
25108 # with your package, and you will get complaints that there are
25109 # no rules to generate ltmain.sh.
25110 if test -f "$ltmain"; then
25111   # See if we are running on zsh, and set the options which allow our commands through
25112   # without removal of \ escapes.
25113   if test -n "${ZSH_VERSION+set}" ; then
25114     setopt NO_GLOB_SUBST
25115   fi
25116   # Now quote all the things that may contain metacharacters while being
25117   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25118   # variables and quote the copies for generation of the libtool script.
25119   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25120     SED SHELL STRIP \
25121     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25122     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25123     deplibs_check_method reload_flag reload_cmds need_locks \
25124     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25125     lt_cv_sys_global_symbol_to_c_name_address \
25126     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25127     old_postinstall_cmds old_postuninstall_cmds \
25128     compiler_GCJ \
25129     CC_GCJ \
25130     LD_GCJ \
25131     lt_prog_compiler_wl_GCJ \
25132     lt_prog_compiler_pic_GCJ \
25133     lt_prog_compiler_static_GCJ \
25134     lt_prog_compiler_no_builtin_flag_GCJ \
25135     export_dynamic_flag_spec_GCJ \
25136     thread_safe_flag_spec_GCJ \
25137     whole_archive_flag_spec_GCJ \
25138     enable_shared_with_static_runtimes_GCJ \
25139     old_archive_cmds_GCJ \
25140     old_archive_from_new_cmds_GCJ \
25141     predep_objects_GCJ \
25142     postdep_objects_GCJ \
25143     predeps_GCJ \
25144     postdeps_GCJ \
25145     compiler_lib_search_path_GCJ \
25146     archive_cmds_GCJ \
25147     archive_expsym_cmds_GCJ \
25148     postinstall_cmds_GCJ \
25149     postuninstall_cmds_GCJ \
25150     old_archive_from_expsyms_cmds_GCJ \
25151     allow_undefined_flag_GCJ \
25152     no_undefined_flag_GCJ \
25153     export_symbols_cmds_GCJ \
25154     hardcode_libdir_flag_spec_GCJ \
25155     hardcode_libdir_flag_spec_ld_GCJ \
25156     hardcode_libdir_separator_GCJ \
25157     hardcode_automatic_GCJ \
25158     module_cmds_GCJ \
25159     module_expsym_cmds_GCJ \
25160     lt_cv_prog_compiler_c_o_GCJ \
25161     exclude_expsyms_GCJ \
25162     include_expsyms_GCJ; do
25163
25164     case $var in
25165     old_archive_cmds_GCJ | \
25166     old_archive_from_new_cmds_GCJ | \
25167     archive_cmds_GCJ | \
25168     archive_expsym_cmds_GCJ | \
25169     module_cmds_GCJ | \
25170     module_expsym_cmds_GCJ | \
25171     old_archive_from_expsyms_cmds_GCJ | \
25172     export_symbols_cmds_GCJ | \
25173     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25174     postinstall_cmds | postuninstall_cmds | \
25175     old_postinstall_cmds | old_postuninstall_cmds | \
25176     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25177       # Double-quote double-evaled strings.
25178       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25179       ;;
25180     *)
25181       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25182       ;;
25183     esac
25184   done
25185
25186   case $lt_echo in
25187   *'\$0 --fallback-echo"')
25188     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25189     ;;
25190   esac
25191
25192 cfgfile="$ofile"
25193
25194   cat <<__EOF__ >> "$cfgfile"
25195 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25196
25197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25198
25199 # Shell to use when invoking shell scripts.
25200 SHELL=$lt_SHELL
25201
25202 # Whether or not to build shared libraries.
25203 build_libtool_libs=$enable_shared
25204
25205 # Whether or not to build static libraries.
25206 build_old_libs=$enable_static
25207
25208 # Whether or not to add -lc for building shared libraries.
25209 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25210
25211 # Whether or not to disallow shared libs when runtime libs are static
25212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25213
25214 # Whether or not to optimize for fast installation.
25215 fast_install=$enable_fast_install
25216
25217 # The host system.
25218 host_alias=$host_alias
25219 host=$host
25220 host_os=$host_os
25221
25222 # The build system.
25223 build_alias=$build_alias
25224 build=$build
25225 build_os=$build_os
25226
25227 # An echo program that does not interpret backslashes.
25228 echo=$lt_echo
25229
25230 # The archiver.
25231 AR=$lt_AR
25232 AR_FLAGS=$lt_AR_FLAGS
25233
25234 # A C compiler.
25235 LTCC=$lt_LTCC
25236
25237 # LTCC compiler flags.
25238 LTCFLAGS=$lt_LTCFLAGS
25239
25240 # A language-specific compiler.
25241 CC=$lt_compiler_GCJ
25242
25243 # Is the compiler the GNU C compiler?
25244 with_gcc=$GCC_GCJ
25245
25246 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
25247 gcc_ver=\`gcc -dumpversion\`
25248
25249 # An ERE matcher.
25250 EGREP=$lt_EGREP
25251
25252 # The linker used to build libraries.
25253 LD=$lt_LD_GCJ
25254
25255 # Whether we need hard or soft links.
25256 LN_S=$lt_LN_S
25257
25258 # A BSD-compatible nm program.
25259 NM=$lt_NM
25260
25261 # A symbol stripping program
25262 STRIP=$lt_STRIP
25263
25264 # Used to examine libraries when file_magic_cmd begins "file"
25265 MAGIC_CMD=$MAGIC_CMD
25266
25267 # Used on cygwin: DLL creation program.
25268 DLLTOOL="$DLLTOOL"
25269
25270 # Used on cygwin: object dumper.
25271 OBJDUMP="$OBJDUMP"
25272
25273 # Used on cygwin: assembler.
25274 AS="$AS"
25275
25276 # The name of the directory that contains temporary libtool files.
25277 objdir=$objdir
25278
25279 # How to create reloadable object files.
25280 reload_flag=$lt_reload_flag
25281 reload_cmds=$lt_reload_cmds
25282
25283 # How to pass a linker flag through the compiler.
25284 wl=$lt_lt_prog_compiler_wl_GCJ
25285
25286 # Object file suffix (normally "o").
25287 objext="$ac_objext"
25288
25289 # Old archive suffix (normally "a").
25290 libext="$libext"
25291
25292 # Shared library suffix (normally ".so").
25293 shrext_cmds='$shrext_cmds'
25294
25295 # Executable file suffix (normally "").
25296 exeext="$exeext"
25297
25298 # Additional compiler flags for building library objects.
25299 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25300 pic_mode=$pic_mode
25301
25302 # What is the maximum length of a command?
25303 max_cmd_len=$lt_cv_sys_max_cmd_len
25304
25305 # Does compiler simultaneously support -c and -o options?
25306 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25307
25308 # Must we lock files when doing compilation?
25309 need_locks=$lt_need_locks
25310
25311 # Do we need the lib prefix for modules?
25312 need_lib_prefix=$need_lib_prefix
25313
25314 # Do we need a version for libraries?
25315 need_version=$need_version
25316
25317 # Whether dlopen is supported.
25318 dlopen_support=$enable_dlopen
25319
25320 # Whether dlopen of programs is supported.
25321 dlopen_self=$enable_dlopen_self
25322
25323 # Whether dlopen of statically linked programs is supported.
25324 dlopen_self_static=$enable_dlopen_self_static
25325
25326 # Compiler flag to prevent dynamic linking.
25327 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25328
25329 # Compiler flag to turn off builtin functions.
25330 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25331
25332 # Compiler flag to allow reflexive dlopens.
25333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25334
25335 # Compiler flag to generate shared objects directly from archives.
25336 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25337
25338 # Compiler flag to generate thread-safe objects.
25339 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25340
25341 # Library versioning type.
25342 version_type=$version_type
25343
25344 # Format of library name prefix.
25345 libname_spec=$lt_libname_spec
25346
25347 # List of archive names.  First name is the real one, the rest are links.
25348 # The last name is the one that the linker finds with -lNAME.
25349 library_names_spec=$lt_library_names_spec
25350
25351 # The coded name of the library, if different from the real name.
25352 soname_spec=$lt_soname_spec
25353
25354 # Commands used to build and install an old-style archive.
25355 RANLIB=$lt_RANLIB
25356 old_archive_cmds=$lt_old_archive_cmds_GCJ
25357 old_postinstall_cmds=$lt_old_postinstall_cmds
25358 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25359
25360 # Create an old-style archive from a shared archive.
25361 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25362
25363 # Create a temporary old-style archive to link instead of a shared archive.
25364 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25365
25366 # Commands used to build and install a shared archive.
25367 archive_cmds=$lt_archive_cmds_GCJ
25368 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25369 postinstall_cmds=$lt_postinstall_cmds
25370 postuninstall_cmds=$lt_postuninstall_cmds
25371
25372 # Commands used to build a loadable module (assumed same as above if empty)
25373 module_cmds=$lt_module_cmds_GCJ
25374 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25375
25376 # Commands to strip libraries.
25377 old_striplib=$lt_old_striplib
25378 striplib=$lt_striplib
25379
25380 # Dependencies to place before the objects being linked to create a
25381 # shared library.
25382 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
25383
25384 # Dependencies to place after the objects being linked to create a
25385 # shared library.
25386 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
25387
25388 # Dependencies to place before the objects being linked to create a
25389 # shared library.
25390 predeps=$lt_predeps_GCJ
25391
25392 # Dependencies to place after the objects being linked to create a
25393 # shared library.
25394 postdeps=$lt_postdeps_GCJ
25395
25396 # The library search path used internally by the compiler when linking
25397 # a shared library.
25398 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
25399
25400 # Method to check whether dependent libraries are shared objects.
25401 deplibs_check_method=$lt_deplibs_check_method
25402
25403 # Command to use when deplibs_check_method == file_magic.
25404 file_magic_cmd=$lt_file_magic_cmd
25405
25406 # Flag that allows shared libraries with undefined symbols to be built.
25407 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25408
25409 # Flag that forces no undefined symbols.
25410 no_undefined_flag=$lt_no_undefined_flag_GCJ
25411
25412 # Commands used to finish a libtool library installation in a directory.
25413 finish_cmds=$lt_finish_cmds
25414
25415 # Same as above, but a single script fragment to be evaled but not shown.
25416 finish_eval=$lt_finish_eval
25417
25418 # Take the output of nm and produce a listing of raw symbols and C names.
25419 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25420
25421 # Transform the output of nm in a proper C declaration
25422 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25423
25424 # Transform the output of nm in a C name address pair
25425 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25426
25427 # This is the shared library runtime path variable.
25428 runpath_var=$runpath_var
25429
25430 # This is the shared library path variable.
25431 shlibpath_var=$shlibpath_var
25432
25433 # Is shlibpath searched before the hard-coded library search path?
25434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25435
25436 # How to hardcode a shared library path into an executable.
25437 hardcode_action=$hardcode_action_GCJ
25438
25439 # Whether we should hardcode library paths into libraries.
25440 hardcode_into_libs=$hardcode_into_libs
25441
25442 # Flag to hardcode \$libdir into a binary during linking.
25443 # This must work even if \$libdir does not exist.
25444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25445
25446 # If ld is used when linking, flag to hardcode \$libdir into
25447 # a binary during linking. This must work even if \$libdir does
25448 # not exist.
25449 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25450
25451 # Whether we need a single -rpath flag with a separated argument.
25452 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25453
25454 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25455 # resulting binary.
25456 hardcode_direct=$hardcode_direct_GCJ
25457
25458 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25459 # resulting binary.
25460 hardcode_minus_L=$hardcode_minus_L_GCJ
25461
25462 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25463 # the resulting binary.
25464 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25465
25466 # Set to yes if building a shared library automatically hardcodes DIR into the library
25467 # and all subsequent libraries and executables linked against it.
25468 hardcode_automatic=$hardcode_automatic_GCJ
25469
25470 # Variables whose values should be saved in libtool wrapper scripts and
25471 # restored at relink time.
25472 variables_saved_for_relink="$variables_saved_for_relink"
25473
25474 # Whether libtool must link a program against all its dependency libraries.
25475 link_all_deplibs=$link_all_deplibs_GCJ
25476
25477 # Compile-time system search path for libraries
25478 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
25479
25480 # Run-time system search path for libraries
25481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25482
25483 # Fix the shell variable \$srcfile for the compiler.
25484 fix_srcfile_path="$fix_srcfile_path_GCJ"
25485
25486 # Set to yes if exported symbols are required.
25487 always_export_symbols=$always_export_symbols_GCJ
25488
25489 # The commands to list exported symbols.
25490 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25491
25492 # The commands to extract the exported symbol list from a shared archive.
25493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25494
25495 # Symbols that should not be listed in the preloaded symbols.
25496 exclude_expsyms=$lt_exclude_expsyms_GCJ
25497
25498 # Symbols that must always be exported.
25499 include_expsyms=$lt_include_expsyms_GCJ
25500
25501 # ### END LIBTOOL TAG CONFIG: $tagname
25502
25503 __EOF__
25504
25505
25506 else
25507   # If there is no Makefile yet, we rely on a make rule to execute
25508   # `config.status --recheck' to rerun these tests and create the
25509   # libtool script then.
25510   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25511   if test -f "$ltmain_in"; then
25512     test -f Makefile && make "$ltmain"
25513   fi
25514 fi
25515
25516
25517 ac_ext=c
25518 ac_cpp='$CPP $CPPFLAGS'
25519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25522
25523 CC="$lt_save_CC"
25524
25525         else
25526           tagname=""
25527         fi
25528         ;;
25529
25530       RC)
25531
25532
25533
25534 # Source file extension for RC test sources.
25535 ac_ext=rc
25536
25537 # Object file extension for compiled RC test sources.
25538 objext=o
25539 objext_RC=$objext
25540
25541 # Code to be used in simple compile tests
25542 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25543
25544 # Code to be used in simple link tests
25545 lt_simple_link_test_code="$lt_simple_compile_test_code"
25546
25547 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25548
25549 # If no C compiler was specified, use CC.
25550 LTCC=${LTCC-"$CC"}
25551
25552 # If no C compiler flags were specified, use CFLAGS.
25553 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25554
25555 # Allow CC to be a program name with arguments.
25556 compiler=$CC
25557
25558
25559 # save warnings/boilerplate of simple test code
25560 ac_outfile=conftest.$ac_objext
25561 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25562 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25563 _lt_compiler_boilerplate=`cat conftest.err`
25564 $rm conftest*
25565
25566 ac_outfile=conftest.$ac_objext
25567 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25568 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25569 _lt_linker_boilerplate=`cat conftest.err`
25570 $rm conftest*
25571
25572
25573 # Allow CC to be a program name with arguments.
25574 lt_save_CC="$CC"
25575 CC=${RC-"windres"}
25576 compiler=$CC
25577 compiler_RC=$CC
25578 for cc_temp in $compiler""; do
25579   case $cc_temp in
25580     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25581     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25582     \-*) ;;
25583     *) break;;
25584   esac
25585 done
25586 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25587
25588 lt_cv_prog_compiler_c_o_RC=yes
25589
25590 # The else clause should only fire when bootstrapping the
25591 # libtool distribution, otherwise you forgot to ship ltmain.sh
25592 # with your package, and you will get complaints that there are
25593 # no rules to generate ltmain.sh.
25594 if test -f "$ltmain"; then
25595   # See if we are running on zsh, and set the options which allow our commands through
25596   # without removal of \ escapes.
25597   if test -n "${ZSH_VERSION+set}" ; then
25598     setopt NO_GLOB_SUBST
25599   fi
25600   # Now quote all the things that may contain metacharacters while being
25601   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25602   # variables and quote the copies for generation of the libtool script.
25603   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25604     SED SHELL STRIP \
25605     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25606     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25607     deplibs_check_method reload_flag reload_cmds need_locks \
25608     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25609     lt_cv_sys_global_symbol_to_c_name_address \
25610     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25611     old_postinstall_cmds old_postuninstall_cmds \
25612     compiler_RC \
25613     CC_RC \
25614     LD_RC \
25615     lt_prog_compiler_wl_RC \
25616     lt_prog_compiler_pic_RC \
25617     lt_prog_compiler_static_RC \
25618     lt_prog_compiler_no_builtin_flag_RC \
25619     export_dynamic_flag_spec_RC \
25620     thread_safe_flag_spec_RC \
25621     whole_archive_flag_spec_RC \
25622     enable_shared_with_static_runtimes_RC \
25623     old_archive_cmds_RC \
25624     old_archive_from_new_cmds_RC \
25625     predep_objects_RC \
25626     postdep_objects_RC \
25627     predeps_RC \
25628     postdeps_RC \
25629     compiler_lib_search_path_RC \
25630     archive_cmds_RC \
25631     archive_expsym_cmds_RC \
25632     postinstall_cmds_RC \
25633     postuninstall_cmds_RC \
25634     old_archive_from_expsyms_cmds_RC \
25635     allow_undefined_flag_RC \
25636     no_undefined_flag_RC \
25637     export_symbols_cmds_RC \
25638     hardcode_libdir_flag_spec_RC \
25639     hardcode_libdir_flag_spec_ld_RC \
25640     hardcode_libdir_separator_RC \
25641     hardcode_automatic_RC \
25642     module_cmds_RC \
25643     module_expsym_cmds_RC \
25644     lt_cv_prog_compiler_c_o_RC \
25645     exclude_expsyms_RC \
25646     include_expsyms_RC; do
25647
25648     case $var in
25649     old_archive_cmds_RC | \
25650     old_archive_from_new_cmds_RC | \
25651     archive_cmds_RC | \
25652     archive_expsym_cmds_RC | \
25653     module_cmds_RC | \
25654     module_expsym_cmds_RC | \
25655     old_archive_from_expsyms_cmds_RC | \
25656     export_symbols_cmds_RC | \
25657     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25658     postinstall_cmds | postuninstall_cmds | \
25659     old_postinstall_cmds | old_postuninstall_cmds | \
25660     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25661       # Double-quote double-evaled strings.
25662       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25663       ;;
25664     *)
25665       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25666       ;;
25667     esac
25668   done
25669
25670   case $lt_echo in
25671   *'\$0 --fallback-echo"')
25672     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25673     ;;
25674   esac
25675
25676 cfgfile="$ofile"
25677
25678   cat <<__EOF__ >> "$cfgfile"
25679 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25680
25681 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25682
25683 # Shell to use when invoking shell scripts.
25684 SHELL=$lt_SHELL
25685
25686 # Whether or not to build shared libraries.
25687 build_libtool_libs=$enable_shared
25688
25689 # Whether or not to build static libraries.
25690 build_old_libs=$enable_static
25691
25692 # Whether or not to add -lc for building shared libraries.
25693 build_libtool_need_lc=$archive_cmds_need_lc_RC
25694
25695 # Whether or not to disallow shared libs when runtime libs are static
25696 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25697
25698 # Whether or not to optimize for fast installation.
25699 fast_install=$enable_fast_install
25700
25701 # The host system.
25702 host_alias=$host_alias
25703 host=$host
25704 host_os=$host_os
25705
25706 # The build system.
25707 build_alias=$build_alias
25708 build=$build
25709 build_os=$build_os
25710
25711 # An echo program that does not interpret backslashes.
25712 echo=$lt_echo
25713
25714 # The archiver.
25715 AR=$lt_AR
25716 AR_FLAGS=$lt_AR_FLAGS
25717
25718 # A C compiler.
25719 LTCC=$lt_LTCC
25720
25721 # LTCC compiler flags.
25722 LTCFLAGS=$lt_LTCFLAGS
25723
25724 # A language-specific compiler.
25725 CC=$lt_compiler_RC
25726
25727 # Is the compiler the GNU C compiler?
25728 with_gcc=$GCC_RC
25729
25730 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
25731 gcc_ver=\`gcc -dumpversion\`
25732
25733 # An ERE matcher.
25734 EGREP=$lt_EGREP
25735
25736 # The linker used to build libraries.
25737 LD=$lt_LD_RC
25738
25739 # Whether we need hard or soft links.
25740 LN_S=$lt_LN_S
25741
25742 # A BSD-compatible nm program.
25743 NM=$lt_NM
25744
25745 # A symbol stripping program
25746 STRIP=$lt_STRIP
25747
25748 # Used to examine libraries when file_magic_cmd begins "file"
25749 MAGIC_CMD=$MAGIC_CMD
25750
25751 # Used on cygwin: DLL creation program.
25752 DLLTOOL="$DLLTOOL"
25753
25754 # Used on cygwin: object dumper.
25755 OBJDUMP="$OBJDUMP"
25756
25757 # Used on cygwin: assembler.
25758 AS="$AS"
25759
25760 # The name of the directory that contains temporary libtool files.
25761 objdir=$objdir
25762
25763 # How to create reloadable object files.
25764 reload_flag=$lt_reload_flag
25765 reload_cmds=$lt_reload_cmds
25766
25767 # How to pass a linker flag through the compiler.
25768 wl=$lt_lt_prog_compiler_wl_RC
25769
25770 # Object file suffix (normally "o").
25771 objext="$ac_objext"
25772
25773 # Old archive suffix (normally "a").
25774 libext="$libext"
25775
25776 # Shared library suffix (normally ".so").
25777 shrext_cmds='$shrext_cmds'
25778
25779 # Executable file suffix (normally "").
25780 exeext="$exeext"
25781
25782 # Additional compiler flags for building library objects.
25783 pic_flag=$lt_lt_prog_compiler_pic_RC
25784 pic_mode=$pic_mode
25785
25786 # What is the maximum length of a command?
25787 max_cmd_len=$lt_cv_sys_max_cmd_len
25788
25789 # Does compiler simultaneously support -c and -o options?
25790 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25791
25792 # Must we lock files when doing compilation?
25793 need_locks=$lt_need_locks
25794
25795 # Do we need the lib prefix for modules?
25796 need_lib_prefix=$need_lib_prefix
25797
25798 # Do we need a version for libraries?
25799 need_version=$need_version
25800
25801 # Whether dlopen is supported.
25802 dlopen_support=$enable_dlopen
25803
25804 # Whether dlopen of programs is supported.
25805 dlopen_self=$enable_dlopen_self
25806
25807 # Whether dlopen of statically linked programs is supported.
25808 dlopen_self_static=$enable_dlopen_self_static
25809
25810 # Compiler flag to prevent dynamic linking.
25811 link_static_flag=$lt_lt_prog_compiler_static_RC
25812
25813 # Compiler flag to turn off builtin functions.
25814 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25815
25816 # Compiler flag to allow reflexive dlopens.
25817 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25818
25819 # Compiler flag to generate shared objects directly from archives.
25820 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25821
25822 # Compiler flag to generate thread-safe objects.
25823 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25824
25825 # Library versioning type.
25826 version_type=$version_type
25827
25828 # Format of library name prefix.
25829 libname_spec=$lt_libname_spec
25830
25831 # List of archive names.  First name is the real one, the rest are links.
25832 # The last name is the one that the linker finds with -lNAME.
25833 library_names_spec=$lt_library_names_spec
25834
25835 # The coded name of the library, if different from the real name.
25836 soname_spec=$lt_soname_spec
25837
25838 # Commands used to build and install an old-style archive.
25839 RANLIB=$lt_RANLIB
25840 old_archive_cmds=$lt_old_archive_cmds_RC
25841 old_postinstall_cmds=$lt_old_postinstall_cmds
25842 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25843
25844 # Create an old-style archive from a shared archive.
25845 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25846
25847 # Create a temporary old-style archive to link instead of a shared archive.
25848 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25849
25850 # Commands used to build and install a shared archive.
25851 archive_cmds=$lt_archive_cmds_RC
25852 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25853 postinstall_cmds=$lt_postinstall_cmds
25854 postuninstall_cmds=$lt_postuninstall_cmds
25855
25856 # Commands used to build a loadable module (assumed same as above if empty)
25857 module_cmds=$lt_module_cmds_RC
25858 module_expsym_cmds=$lt_module_expsym_cmds_RC
25859
25860 # Commands to strip libraries.
25861 old_striplib=$lt_old_striplib
25862 striplib=$lt_striplib
25863
25864 # Dependencies to place before the objects being linked to create a
25865 # shared library.
25866 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
25867
25868 # Dependencies to place after the objects being linked to create a
25869 # shared library.
25870 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
25871
25872 # Dependencies to place before the objects being linked to create a
25873 # shared library.
25874 predeps=$lt_predeps_RC
25875
25876 # Dependencies to place after the objects being linked to create a
25877 # shared library.
25878 postdeps=$lt_postdeps_RC
25879
25880 # The library search path used internally by the compiler when linking
25881 # a shared library.
25882 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
25883
25884 # Method to check whether dependent libraries are shared objects.
25885 deplibs_check_method=$lt_deplibs_check_method
25886
25887 # Command to use when deplibs_check_method == file_magic.
25888 file_magic_cmd=$lt_file_magic_cmd
25889
25890 # Flag that allows shared libraries with undefined symbols to be built.
25891 allow_undefined_flag=$lt_allow_undefined_flag_RC
25892
25893 # Flag that forces no undefined symbols.
25894 no_undefined_flag=$lt_no_undefined_flag_RC
25895
25896 # Commands used to finish a libtool library installation in a directory.
25897 finish_cmds=$lt_finish_cmds
25898
25899 # Same as above, but a single script fragment to be evaled but not shown.
25900 finish_eval=$lt_finish_eval
25901
25902 # Take the output of nm and produce a listing of raw symbols and C names.
25903 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25904
25905 # Transform the output of nm in a proper C declaration
25906 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25907
25908 # Transform the output of nm in a C name address pair
25909 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25910
25911 # This is the shared library runtime path variable.
25912 runpath_var=$runpath_var
25913
25914 # This is the shared library path variable.
25915 shlibpath_var=$shlibpath_var
25916
25917 # Is shlibpath searched before the hard-coded library search path?
25918 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25919
25920 # How to hardcode a shared library path into an executable.
25921 hardcode_action=$hardcode_action_RC
25922
25923 # Whether we should hardcode library paths into libraries.
25924 hardcode_into_libs=$hardcode_into_libs
25925
25926 # Flag to hardcode \$libdir into a binary during linking.
25927 # This must work even if \$libdir does not exist.
25928 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25929
25930 # If ld is used when linking, flag to hardcode \$libdir into
25931 # a binary during linking. This must work even if \$libdir does
25932 # not exist.
25933 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25934
25935 # Whether we need a single -rpath flag with a separated argument.
25936 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25937
25938 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25939 # resulting binary.
25940 hardcode_direct=$hardcode_direct_RC
25941
25942 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25943 # resulting binary.
25944 hardcode_minus_L=$hardcode_minus_L_RC
25945
25946 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25947 # the resulting binary.
25948 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25949
25950 # Set to yes if building a shared library automatically hardcodes DIR into the library
25951 # and all subsequent libraries and executables linked against it.
25952 hardcode_automatic=$hardcode_automatic_RC
25953
25954 # Variables whose values should be saved in libtool wrapper scripts and
25955 # restored at relink time.
25956 variables_saved_for_relink="$variables_saved_for_relink"
25957
25958 # Whether libtool must link a program against all its dependency libraries.
25959 link_all_deplibs=$link_all_deplibs_RC
25960
25961 # Compile-time system search path for libraries
25962 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
25963
25964 # Run-time system search path for libraries
25965 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25966
25967 # Fix the shell variable \$srcfile for the compiler.
25968 fix_srcfile_path="$fix_srcfile_path_RC"
25969
25970 # Set to yes if exported symbols are required.
25971 always_export_symbols=$always_export_symbols_RC
25972
25973 # The commands to list exported symbols.
25974 export_symbols_cmds=$lt_export_symbols_cmds_RC
25975
25976 # The commands to extract the exported symbol list from a shared archive.
25977 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25978
25979 # Symbols that should not be listed in the preloaded symbols.
25980 exclude_expsyms=$lt_exclude_expsyms_RC
25981
25982 # Symbols that must always be exported.
25983 include_expsyms=$lt_include_expsyms_RC
25984
25985 # ### END LIBTOOL TAG CONFIG: $tagname
25986
25987 __EOF__
25988
25989
25990 else
25991   # If there is no Makefile yet, we rely on a make rule to execute
25992   # `config.status --recheck' to rerun these tests and create the
25993   # libtool script then.
25994   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25995   if test -f "$ltmain_in"; then
25996     test -f Makefile && make "$ltmain"
25997   fi
25998 fi
25999
26000
26001 ac_ext=c
26002 ac_cpp='$CPP $CPPFLAGS'
26003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26006
26007 CC="$lt_save_CC"
26008
26009         ;;
26010
26011       *)
26012         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26013 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26014    { (exit 1); exit 1; }; }
26015         ;;
26016       esac
26017
26018       # Append the new tag name to the list of available tags.
26019       if test -n "$tagname" ; then
26020       available_tags="$available_tags $tagname"
26021     fi
26022     fi
26023   done
26024   IFS="$lt_save_ifs"
26025
26026   # Now substitute the updated list of available tags.
26027   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26028     mv "${ofile}T" "$ofile"
26029     chmod +x "$ofile"
26030   else
26031     rm -f "${ofile}T"
26032     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26033 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26034    { (exit 1); exit 1; }; }
26035   fi
26036 fi
26037
26038
26039
26040 # This can be used to rebuild libtool when needed
26041 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26042
26043 # Always use our own libtool.
26044 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26045
26046 # Prevent multiple expansion
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070         echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
26071 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6
26072
26073 # Check whether --with-vrootdir or --without-vrootdir was given.
26074 if test "${with_vrootdir+set}" = set; then
26075   withval="$with_vrootdir"
26076   case "$withval" in
26077                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
26078 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
26079    { (exit 1); exit 1; }; };;
26080                         *)      ensc_uv_path_vrootdir=$withval;;
26081                      esac
26082 else
26083   ensc_uv_path_vrootdir=/vservers
26084 fi;
26085         echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
26086 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6
26087
26088         if test x"vserverdir" != x; then
26089                 vserverdir=$ensc_uv_path_vrootdir
26090
26091         fi
26092
26093
26094         for ac_prog in svn2cl
26095 do
26096   # Extract the first word of "$ac_prog", so it can be a program name with args.
26097 set dummy $ac_prog; ac_word=$2
26098 echo "$as_me:$LINENO: checking for $ac_word" >&5
26099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26100 if test "${ac_cv_prog_SVN2CL+set}" = set; then
26101   echo $ECHO_N "(cached) $ECHO_C" >&6
26102 else
26103   if test -n "$SVN2CL"; then
26104   ac_cv_prog_SVN2CL="$SVN2CL" # Let the user override the test.
26105 else
26106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26107 for as_dir in $PATH
26108 do
26109   IFS=$as_save_IFS
26110   test -z "$as_dir" && as_dir=.
26111   for ac_exec_ext in '' $ac_executable_extensions; do
26112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26113     ac_cv_prog_SVN2CL="$ac_prog"
26114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26115     break 2
26116   fi
26117 done
26118 done
26119
26120 fi
26121 fi
26122 SVN2CL=$ac_cv_prog_SVN2CL
26123 if test -n "$SVN2CL"; then
26124   echo "$as_me:$LINENO: result: $SVN2CL" >&5
26125 echo "${ECHO_T}$SVN2CL" >&6
26126 else
26127   echo "$as_me:$LINENO: result: no" >&5
26128 echo "${ECHO_T}no" >&6
26129 fi
26130
26131   test -n "$SVN2CL" && break
26132 done
26133
26134
26135
26136 if test x"$SVN2CL" != x; then
26137   HAVE_SVN2CL_TRUE=
26138   HAVE_SVN2CL_FALSE='#'
26139 else
26140   HAVE_SVN2CL_TRUE='#'
26141   HAVE_SVN2CL_FALSE=
26142 fi
26143
26144
26145
26146
26147 echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
26148 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6
26149 # Check whether --enable-internal-headers or --disable-internal-headers was given.
26150 if test "${enable_internal_headers+set}" = set; then
26151   enableval="$enable_internal_headers"
26152   case "$enableval" in
26153                   (yes|no) ;;
26154                   (*)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
26155 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
26156    { (exit 1); exit 1; }; };;
26157                esac
26158 else
26159   enable_internal_headers=yes
26160 fi;
26161
26162
26163
26164 if test x"$enable_internal_headers" = xyes; then
26165   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
26166   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
26167 else
26168   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
26169   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
26170 fi
26171
26172 echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
26173 echo "${ECHO_T}$enable_internal_headers" >&6
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196 echo "$as_me:$LINENO: checking for supported APIs" >&5
26197 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6
26198 # Check whether --enable-apis or --disable-apis was given.
26199 if test "${enable_apis+set}" = set; then
26200   enableval="$enable_apis"
26201
26202 else
26203   enable_apis=v13,net,v21
26204 fi;
26205
26206 test x"$enable_apis" != xALL      || enable_apis='legacy,compat,v11,fscompat,v13obs,v13,net,v21'
26207 test x"$enable_apis" != xNOLEGACY || enable_apis='compat,v11,fscompat,v13,net,v21'
26208 enable_api_oldproc=
26209 enable_api_olduts=
26210 old_IFS=$IFS
26211 IFS=,;
26212
26213 for i in $enable_apis; do
26214         case "$i" in
26215                 (compat)        cat >>confdefs.h <<\_ACEOF
26216 #define VC_ENABLE_API_COMPAT 1
26217 _ACEOF
26218
26219                                 enable_api_oldproc=${enable_api_oldproc:-1}
26220                                 enable_api_olduts=${enable_api_olduts:-1}
26221                                 ;;
26222                 (legacy)        cat >>confdefs.h <<\_ACEOF
26223 #define VC_ENABLE_API_LEGACY 1
26224 _ACEOF
26225
26226                                 enable_api_oldproc=${enable_api_oldproc:-1}
26227                                 enable_api_olduts=${enable_api_olduts:-1}
26228                                 ;;
26229                 (v11)           cat >>confdefs.h <<\_ACEOF
26230 #define VC_ENABLE_API_V11 1
26231 _ACEOF
26232
26233                                 enable_api_oldproc=${enable_api_oldproc:-1}
26234                                 enable_api_olduts=${enable_api_olduts:-1}
26235                                 ;;
26236                 (fscompat)      cat >>confdefs.h <<\_ACEOF
26237 #define VC_ENABLE_API_FSCOMPAT 1
26238 _ACEOF
26239 ;;
26240                 (v13obs)        cat >>confdefs.h <<\_ACEOF
26241 #define VC_ENABLE_API_V13OBS 1
26242 _ACEOF
26243
26244                                 cat >>confdefs.h <<\_ACEOF
26245 #define VC_ENABLE_API_V13 1
26246 _ACEOF
26247 ;;
26248                 (v13)           cat >>confdefs.h <<\_ACEOF
26249 #define VC_ENABLE_API_V13 1
26250 _ACEOF
26251 ;;
26252                 (net)           cat >>confdefs.h <<\_ACEOF
26253 #define VC_ENABLE_API_NET 1
26254 _ACEOF
26255 ;;
26256                 (v21)           cat >>confdefs.h <<\_ACEOF
26257 #define VC_ENABLE_API_V21 1
26258 _ACEOF
26259 ;;
26260                 (oldproc)       enable_api_oldproc=2;;
26261                 (olduts)        enable_api_olduts=2;;
26262                 (*)             { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
26263 echo "$as_me: error: '$i' is not a supported API" >&2;}
26264    { (exit 1); exit 1; }; };;
26265         esac
26266 done
26267 IFS=$old_IFS
26268 if test x"$enable_api_oldproc" != x; then
26269         cat >>confdefs.h <<\_ACEOF
26270 #define VC_ENABLE_API_OLDPROC 1
26271 _ACEOF
26272
26273         test x"$enable_api_oldproc" != x2 && enable_apis="$enable_apis,oldproc"
26274 fi
26275 if test x"$enable_api_olduts" != x; then
26276         cat >>confdefs.h <<\_ACEOF
26277 #define VC_ENABLE_API_OLDUTS 1
26278 _ACEOF
26279
26280         test x"$enable_api_olduts" != x2 && enable_apis="$enable_apis,olduts"
26281 fi
26282 echo "$as_me:$LINENO: result: $enable_apis" >&5
26283 echo "${ECHO_T}$enable_apis" >&6
26284
26285
26286
26287
26288     ac_ext=cc
26289 ac_cpp='$CXXCPP $CPPFLAGS'
26290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26293
26294     echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
26295 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6
26296 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
26297   echo $ECHO_N "(cached) $ECHO_C" >&6
26298 else
26299
26300         cat >conftest.$ac_ext <<_ACEOF
26301 /* confdefs.h.  */
26302 _ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h.  */
26306 #include <ext2fs/ext2_fs.h>
26307                                           int main() { return 0; }
26308 _ACEOF
26309 rm -f conftest.$ac_objext
26310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26311   (eval $ac_compile) 2>conftest.er1
26312   ac_status=$?
26313   grep -v '^ *+' conftest.er1 >conftest.err
26314   rm -f conftest.er1
26315   cat conftest.err >&5
26316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317   (exit $ac_status); } &&
26318          { ac_try='test -z "$ac_cxx_werror_flag"
26319                          || test ! -s conftest.err'
26320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321   (eval $ac_try) 2>&5
26322   ac_status=$?
26323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324   (exit $ac_status); }; } &&
26325          { ac_try='test -s conftest.$ac_objext'
26326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327   (eval $ac_try) 2>&5
26328   ac_status=$?
26329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330   (exit $ac_status); }; }; then
26331   ensc_cv_test_ext2fs_header=e2fsprogs
26332 else
26333   echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26335
26336
26337         cat >conftest.$ac_ext <<_ACEOF
26338 /* confdefs.h.  */
26339 _ACEOF
26340 cat confdefs.h >>conftest.$ac_ext
26341 cat >>conftest.$ac_ext <<_ACEOF
26342 /* end confdefs.h.  */
26343 #include <linux/ext2_fs.h>
26344                                           int main() { return 0; }
26345 _ACEOF
26346 rm -f conftest.$ac_objext
26347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26348   (eval $ac_compile) 2>conftest.er1
26349   ac_status=$?
26350   grep -v '^ *+' conftest.er1 >conftest.err
26351   rm -f conftest.er1
26352   cat conftest.err >&5
26353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354   (exit $ac_status); } &&
26355          { ac_try='test -z "$ac_cxx_werror_flag"
26356                          || test ! -s conftest.err'
26357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358   (eval $ac_try) 2>&5
26359   ac_status=$?
26360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361   (exit $ac_status); }; } &&
26362          { ac_try='test -s conftest.$ac_objext'
26363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364   (eval $ac_try) 2>&5
26365   ac_status=$?
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); }; }; then
26368   ensc_cv_test_ext2fs_header=kernel
26369 else
26370   echo "$as_me: failed program was:" >&5
26371 sed 's/^/| /' conftest.$ac_ext >&5
26372
26373
26374         ensc_cv_test_ext2fs_header=none
26375 fi
26376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26377 fi
26378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26379 fi
26380 echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
26381 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6
26382
26383     case x"$ensc_cv_test_ext2fs_header" in
26384         (xe2fsprogs)
26385                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26386   echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26387 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26388 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26389   echo $ECHO_N "(cached) $ECHO_C" >&6
26390 fi
26391 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26392 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26393 else
26394   # Is the header compilable?
26395 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
26396 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6
26397 cat >conftest.$ac_ext <<_ACEOF
26398 /* confdefs.h.  */
26399 _ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h.  */
26403 $ac_includes_default
26404 #include <ext2fs/ext2_fs.h>
26405 _ACEOF
26406 rm -f conftest.$ac_objext
26407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26408   (eval $ac_compile) 2>conftest.er1
26409   ac_status=$?
26410   grep -v '^ *+' conftest.er1 >conftest.err
26411   rm -f conftest.er1
26412   cat conftest.err >&5
26413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414   (exit $ac_status); } &&
26415          { ac_try='test -z "$ac_cxx_werror_flag"
26416                          || test ! -s conftest.err'
26417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418   (eval $ac_try) 2>&5
26419   ac_status=$?
26420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421   (exit $ac_status); }; } &&
26422          { ac_try='test -s conftest.$ac_objext'
26423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26424   (eval $ac_try) 2>&5
26425   ac_status=$?
26426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427   (exit $ac_status); }; }; then
26428   ac_header_compiler=yes
26429 else
26430   echo "$as_me: failed program was:" >&5
26431 sed 's/^/| /' conftest.$ac_ext >&5
26432
26433 ac_header_compiler=no
26434 fi
26435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26437 echo "${ECHO_T}$ac_header_compiler" >&6
26438
26439 # Is the header present?
26440 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
26441 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6
26442 cat >conftest.$ac_ext <<_ACEOF
26443 /* confdefs.h.  */
26444 _ACEOF
26445 cat confdefs.h >>conftest.$ac_ext
26446 cat >>conftest.$ac_ext <<_ACEOF
26447 /* end confdefs.h.  */
26448 #include <ext2fs/ext2_fs.h>
26449 _ACEOF
26450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26452   ac_status=$?
26453   grep -v '^ *+' conftest.er1 >conftest.err
26454   rm -f conftest.er1
26455   cat conftest.err >&5
26456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457   (exit $ac_status); } >/dev/null; then
26458   if test -s conftest.err; then
26459     ac_cpp_err=$ac_cxx_preproc_warn_flag
26460     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26461   else
26462     ac_cpp_err=
26463   fi
26464 else
26465   ac_cpp_err=yes
26466 fi
26467 if test -z "$ac_cpp_err"; then
26468   ac_header_preproc=yes
26469 else
26470   echo "$as_me: failed program was:" >&5
26471 sed 's/^/| /' conftest.$ac_ext >&5
26472
26473   ac_header_preproc=no
26474 fi
26475 rm -f conftest.err conftest.$ac_ext
26476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26477 echo "${ECHO_T}$ac_header_preproc" >&6
26478
26479 # So?  What about this header?
26480 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26481   yes:no: )
26482     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26483 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26484     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
26485 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
26486     ac_header_preproc=yes
26487     ;;
26488   no:yes:* )
26489     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
26490 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
26491     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
26492 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26493     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
26494 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
26495     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26496 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26497     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
26498 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26499     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
26500 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26501     (
26502       cat <<\_ASBOX
26503 ## --------------------------------------------- ##
26504 ## Report this to vserver@list.linux-vserver.org ##
26505 ## --------------------------------------------- ##
26506 _ASBOX
26507     ) |
26508       sed "s/^/$as_me: WARNING:     /" >&2
26509     ;;
26510 esac
26511 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26512 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26513 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26514   echo $ECHO_N "(cached) $ECHO_C" >&6
26515 else
26516   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
26517 fi
26518 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26519 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26520
26521 fi
26522 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
26523
26524 cat >>confdefs.h <<\_ACEOF
26525 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
26526 _ACEOF
26527
26528 else
26529   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26530 See \`config.log' for more details." >&5
26531 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26532 See \`config.log' for more details." >&2;}
26533    { (exit 1); exit 1; }; }
26534 fi
26535
26536
26537                 ;;
26538         (xkernel)
26539                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26540   echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26541 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26542 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26543   echo $ECHO_N "(cached) $ECHO_C" >&6
26544 fi
26545 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26546 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26547 else
26548   # Is the header compilable?
26549 echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
26550 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6
26551 cat >conftest.$ac_ext <<_ACEOF
26552 /* confdefs.h.  */
26553 _ACEOF
26554 cat confdefs.h >>conftest.$ac_ext
26555 cat >>conftest.$ac_ext <<_ACEOF
26556 /* end confdefs.h.  */
26557 $ac_includes_default
26558 #include <linux/ext2_fs.h>
26559 _ACEOF
26560 rm -f conftest.$ac_objext
26561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26562   (eval $ac_compile) 2>conftest.er1
26563   ac_status=$?
26564   grep -v '^ *+' conftest.er1 >conftest.err
26565   rm -f conftest.er1
26566   cat conftest.err >&5
26567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568   (exit $ac_status); } &&
26569          { ac_try='test -z "$ac_cxx_werror_flag"
26570                          || test ! -s conftest.err'
26571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572   (eval $ac_try) 2>&5
26573   ac_status=$?
26574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575   (exit $ac_status); }; } &&
26576          { ac_try='test -s conftest.$ac_objext'
26577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26578   (eval $ac_try) 2>&5
26579   ac_status=$?
26580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581   (exit $ac_status); }; }; then
26582   ac_header_compiler=yes
26583 else
26584   echo "$as_me: failed program was:" >&5
26585 sed 's/^/| /' conftest.$ac_ext >&5
26586
26587 ac_header_compiler=no
26588 fi
26589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26590 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26591 echo "${ECHO_T}$ac_header_compiler" >&6
26592
26593 # Is the header present?
26594 echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
26595 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6
26596 cat >conftest.$ac_ext <<_ACEOF
26597 /* confdefs.h.  */
26598 _ACEOF
26599 cat confdefs.h >>conftest.$ac_ext
26600 cat >>conftest.$ac_ext <<_ACEOF
26601 /* end confdefs.h.  */
26602 #include <linux/ext2_fs.h>
26603 _ACEOF
26604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26605   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26606   ac_status=$?
26607   grep -v '^ *+' conftest.er1 >conftest.err
26608   rm -f conftest.er1
26609   cat conftest.err >&5
26610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611   (exit $ac_status); } >/dev/null; then
26612   if test -s conftest.err; then
26613     ac_cpp_err=$ac_cxx_preproc_warn_flag
26614     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26615   else
26616     ac_cpp_err=
26617   fi
26618 else
26619   ac_cpp_err=yes
26620 fi
26621 if test -z "$ac_cpp_err"; then
26622   ac_header_preproc=yes
26623 else
26624   echo "$as_me: failed program was:" >&5
26625 sed 's/^/| /' conftest.$ac_ext >&5
26626
26627   ac_header_preproc=no
26628 fi
26629 rm -f conftest.err conftest.$ac_ext
26630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26631 echo "${ECHO_T}$ac_header_preproc" >&6
26632
26633 # So?  What about this header?
26634 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26635   yes:no: )
26636     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26637 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26638     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
26639 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
26640     ac_header_preproc=yes
26641     ;;
26642   no:yes:* )
26643     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
26644 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
26645     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
26646 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26647     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
26648 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
26649     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26650 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26651     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
26652 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26653     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
26654 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26655     (
26656       cat <<\_ASBOX
26657 ## --------------------------------------------- ##
26658 ## Report this to vserver@list.linux-vserver.org ##
26659 ## --------------------------------------------- ##
26660 _ASBOX
26661     ) |
26662       sed "s/^/$as_me: WARNING:     /" >&2
26663     ;;
26664 esac
26665 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26666 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26667 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26668   echo $ECHO_N "(cached) $ECHO_C" >&6
26669 else
26670   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
26671 fi
26672 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26673 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26674
26675 fi
26676 if test $ac_cv_header_linux_ext2_fs_h = yes; then
26677
26678 cat >>confdefs.h <<\_ACEOF
26679 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
26680 _ACEOF
26681
26682 else
26683   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
26684 See \`config.log' for more details." >&5
26685 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
26686 See \`config.log' for more details." >&2;}
26687    { (exit 1); exit 1; }; }
26688 fi
26689
26690
26691                 ;;
26692         (*)
26693                 { { echo "$as_me:$LINENO: error:
26694 ext2fs headers were not found, or they are not usable. This can have
26695 the following reasons:
26696
26697 * you have neither the e2fsprogs nor the kernel headers installed
26698
26699 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26700   and you do not have e2fsprogs headers installed; please try to install
26701   - e2fsprogs-devel (for Red Hat), or
26702   - lib*ext2fs2-devel (for Mandriva), or
26703   - e2fslibs-dev (for Debian)
26704   in this case.
26705
26706 * kernel headers are broken and your e2fsprogs headers are too old;
26707   until version 1.27 (inclusive), they are using reserved C++ keywords
26708
26709 * kernel headers are broken and your e2fsprogs headers are too new;
26710   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26711   C++, for details and a solution see
26712   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26713
26714
26715 In the latter two cases you have the following options:
26716 * fix the headers manually, or
26717 * install a stable version of e2fsprogs (e.g. 1.34), or
26718 * use good kernel headers (from linux 2.4.x)
26719
26720 See \`config.log' for more details." >&5
26721 echo "$as_me: error:
26722 ext2fs headers were not found, or they are not usable. This can have
26723 the following reasons:
26724
26725 * you have neither the e2fsprogs nor the kernel headers installed
26726
26727 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26728   and you do not have e2fsprogs headers installed; please try to install
26729   - e2fsprogs-devel (for Red Hat), or
26730   - lib*ext2fs2-devel (for Mandriva), or
26731   - e2fslibs-dev (for Debian)
26732   in this case.
26733
26734 * kernel headers are broken and your e2fsprogs headers are too old;
26735   until version 1.27 (inclusive), they are using reserved C++ keywords
26736
26737 * kernel headers are broken and your e2fsprogs headers are too new;
26738   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26739   C++, for details and a solution see
26740   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26741
26742
26743 In the latter two cases you have the following options:
26744 * fix the headers manually, or
26745 * install a stable version of e2fsprogs (e.g. 1.34), or
26746 * use good kernel headers (from linux 2.4.x)
26747
26748 See \`config.log' for more details." >&2;}
26749    { (exit 1); exit 1; }; }
26750                 ;;
26751     esac
26752     ac_ext=c
26753 ac_cpp='$CPP $CPPFLAGS'
26754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26757
26758
26759
26760 for ac_func in vserver
26761 do
26762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26763 echo "$as_me:$LINENO: checking for $ac_func" >&5
26764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26765 if eval "test \"\${$as_ac_var+set}\" = set"; then
26766   echo $ECHO_N "(cached) $ECHO_C" >&6
26767 else
26768   cat >conftest.$ac_ext <<_ACEOF
26769 /* confdefs.h.  */
26770 _ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h.  */
26774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26776 #define $ac_func innocuous_$ac_func
26777
26778 /* System header to define __stub macros and hopefully few prototypes,
26779     which can conflict with char $ac_func (); below.
26780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26781     <limits.h> exists even on freestanding compilers.  */
26782
26783 #ifdef __STDC__
26784 # include <limits.h>
26785 #else
26786 # include <assert.h>
26787 #endif
26788
26789 #undef $ac_func
26790
26791 /* Override any gcc2 internal prototype to avoid an error.  */
26792 #ifdef __cplusplus
26793 extern "C"
26794 {
26795 #endif
26796 /* We use char because int might match the return type of a gcc2
26797    builtin and then its argument prototype would still apply.  */
26798 char $ac_func ();
26799 /* The GNU C library defines this for functions which it implements
26800     to always fail with ENOSYS.  Some functions are actually named
26801     something starting with __ and the normal name is an alias.  */
26802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26803 choke me
26804 #else
26805 char (*f) () = $ac_func;
26806 #endif
26807 #ifdef __cplusplus
26808 }
26809 #endif
26810
26811 int
26812 main ()
26813 {
26814 return f != $ac_func;
26815   ;
26816   return 0;
26817 }
26818 _ACEOF
26819 rm -f conftest.$ac_objext conftest$ac_exeext
26820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26821   (eval $ac_link) 2>conftest.er1
26822   ac_status=$?
26823   grep -v '^ *+' conftest.er1 >conftest.err
26824   rm -f conftest.er1
26825   cat conftest.err >&5
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); } &&
26828          { ac_try='test -z "$ac_c_werror_flag"
26829                          || test ! -s conftest.err'
26830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26831   (eval $ac_try) 2>&5
26832   ac_status=$?
26833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834   (exit $ac_status); }; } &&
26835          { ac_try='test -s conftest$ac_exeext'
26836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26837   (eval $ac_try) 2>&5
26838   ac_status=$?
26839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840   (exit $ac_status); }; }; then
26841   eval "$as_ac_var=yes"
26842 else
26843   echo "$as_me: failed program was:" >&5
26844 sed 's/^/| /' conftest.$ac_ext >&5
26845
26846 eval "$as_ac_var=no"
26847 fi
26848 rm -f conftest.err conftest.$ac_objext \
26849       conftest$ac_exeext conftest.$ac_ext
26850 fi
26851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26853 if test `eval echo '${'$as_ac_var'}'` = yes; then
26854   cat >>confdefs.h <<_ACEOF
26855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26856 _ACEOF
26857
26858 fi
26859 done
26860
26861 echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
26862 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6
26863 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
26864   echo $ECHO_N "(cached) $ECHO_C" >&6
26865 else
26866   cat >conftest.$ac_ext <<_ACEOF
26867 /* confdefs.h.  */
26868 _ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h.  */
26872 #include <linux/fs.h>
26873
26874 int
26875 main ()
26876 {
26877 #ifndef MS_MOVE
26878   char *p = (char *) MS_MOVE;
26879 #endif
26880
26881   ;
26882   return 0;
26883 }
26884 _ACEOF
26885 rm -f conftest.$ac_objext
26886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26887   (eval $ac_compile) 2>conftest.er1
26888   ac_status=$?
26889   grep -v '^ *+' conftest.er1 >conftest.err
26890   rm -f conftest.er1
26891   cat conftest.err >&5
26892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893   (exit $ac_status); } &&
26894          { ac_try='test -z "$ac_c_werror_flag"
26895                          || test ! -s conftest.err'
26896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26897   (eval $ac_try) 2>&5
26898   ac_status=$?
26899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900   (exit $ac_status); }; } &&
26901          { ac_try='test -s conftest.$ac_objext'
26902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903   (eval $ac_try) 2>&5
26904   ac_status=$?
26905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906   (exit $ac_status); }; }; then
26907   ac_cv_have_decl_MS_MOVE=yes
26908 else
26909   echo "$as_me: failed program was:" >&5
26910 sed 's/^/| /' conftest.$ac_ext >&5
26911
26912 ac_cv_have_decl_MS_MOVE=no
26913 fi
26914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26915 fi
26916 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
26917 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6
26918 if test $ac_cv_have_decl_MS_MOVE = yes; then
26919
26920 cat >>confdefs.h <<_ACEOF
26921 #define HAVE_DECL_MS_MOVE 1
26922 _ACEOF
26923
26924
26925 else
26926   cat >>confdefs.h <<_ACEOF
26927 #define HAVE_DECL_MS_MOVE 0
26928 _ACEOF
26929
26930
26931 fi
26932
26933
26934 echo "$as_me:$LINENO: checking for xid_t" >&5
26935 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6
26936 if test "${ac_cv_type_xid_t+set}" = set; then
26937   echo $ECHO_N "(cached) $ECHO_C" >&6
26938 else
26939   cat >conftest.$ac_ext <<_ACEOF
26940 /* confdefs.h.  */
26941 _ACEOF
26942 cat confdefs.h >>conftest.$ac_ext
26943 cat >>conftest.$ac_ext <<_ACEOF
26944 /* end confdefs.h.  */
26945 #include <sys/types.h>
26946
26947 int
26948 main ()
26949 {
26950 if ((xid_t *) 0)
26951   return 0;
26952 if (sizeof (xid_t))
26953   return 0;
26954   ;
26955   return 0;
26956 }
26957 _ACEOF
26958 rm -f conftest.$ac_objext
26959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26960   (eval $ac_compile) 2>conftest.er1
26961   ac_status=$?
26962   grep -v '^ *+' conftest.er1 >conftest.err
26963   rm -f conftest.er1
26964   cat conftest.err >&5
26965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966   (exit $ac_status); } &&
26967          { ac_try='test -z "$ac_c_werror_flag"
26968                          || test ! -s conftest.err'
26969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26970   (eval $ac_try) 2>&5
26971   ac_status=$?
26972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973   (exit $ac_status); }; } &&
26974          { ac_try='test -s conftest.$ac_objext'
26975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976   (eval $ac_try) 2>&5
26977   ac_status=$?
26978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979   (exit $ac_status); }; }; then
26980   ac_cv_type_xid_t=yes
26981 else
26982   echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.$ac_ext >&5
26984
26985 ac_cv_type_xid_t=no
26986 fi
26987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26988 fi
26989 echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
26990 echo "${ECHO_T}$ac_cv_type_xid_t" >&6
26991 if test $ac_cv_type_xid_t = yes; then
26992
26993 cat >>confdefs.h <<_ACEOF
26994 #define HAVE_XID_T 1
26995 _ACEOF
26996
26997
26998 fi
26999
27000 echo "$as_me:$LINENO: checking for nid_t" >&5
27001 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6
27002 if test "${ac_cv_type_nid_t+set}" = set; then
27003   echo $ECHO_N "(cached) $ECHO_C" >&6
27004 else
27005   cat >conftest.$ac_ext <<_ACEOF
27006 /* confdefs.h.  */
27007 _ACEOF
27008 cat confdefs.h >>conftest.$ac_ext
27009 cat >>conftest.$ac_ext <<_ACEOF
27010 /* end confdefs.h.  */
27011 #include <sys/types.h>
27012
27013 int
27014 main ()
27015 {
27016 if ((nid_t *) 0)
27017   return 0;
27018 if (sizeof (nid_t))
27019   return 0;
27020   ;
27021   return 0;
27022 }
27023 _ACEOF
27024 rm -f conftest.$ac_objext
27025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27026   (eval $ac_compile) 2>conftest.er1
27027   ac_status=$?
27028   grep -v '^ *+' conftest.er1 >conftest.err
27029   rm -f conftest.er1
27030   cat conftest.err >&5
27031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032   (exit $ac_status); } &&
27033          { ac_try='test -z "$ac_c_werror_flag"
27034                          || test ! -s conftest.err'
27035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27036   (eval $ac_try) 2>&5
27037   ac_status=$?
27038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039   (exit $ac_status); }; } &&
27040          { ac_try='test -s conftest.$ac_objext'
27041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27042   (eval $ac_try) 2>&5
27043   ac_status=$?
27044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045   (exit $ac_status); }; }; then
27046   ac_cv_type_nid_t=yes
27047 else
27048   echo "$as_me: failed program was:" >&5
27049 sed 's/^/| /' conftest.$ac_ext >&5
27050
27051 ac_cv_type_nid_t=no
27052 fi
27053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27054 fi
27055 echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
27056 echo "${ECHO_T}$ac_cv_type_nid_t" >&6
27057 if test $ac_cv_type_nid_t = yes; then
27058
27059 cat >>confdefs.h <<_ACEOF
27060 #define HAVE_NID_T 1
27061 _ACEOF
27062
27063
27064 fi
27065
27066
27067
27068 for ac_header in sys/capability.h
27069 do
27070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27072   echo "$as_me:$LINENO: checking for $ac_header" >&5
27073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27075   echo $ECHO_N "(cached) $ECHO_C" >&6
27076 fi
27077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27079 else
27080   # Is the header compilable?
27081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27083 cat >conftest.$ac_ext <<_ACEOF
27084 /* confdefs.h.  */
27085 _ACEOF
27086 cat confdefs.h >>conftest.$ac_ext
27087 cat >>conftest.$ac_ext <<_ACEOF
27088 /* end confdefs.h.  */
27089 $ac_includes_default
27090 #include <$ac_header>
27091 _ACEOF
27092 rm -f conftest.$ac_objext
27093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27094   (eval $ac_compile) 2>conftest.er1
27095   ac_status=$?
27096   grep -v '^ *+' conftest.er1 >conftest.err
27097   rm -f conftest.er1
27098   cat conftest.err >&5
27099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100   (exit $ac_status); } &&
27101          { ac_try='test -z "$ac_c_werror_flag"
27102                          || test ! -s conftest.err'
27103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104   (eval $ac_try) 2>&5
27105   ac_status=$?
27106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107   (exit $ac_status); }; } &&
27108          { ac_try='test -s conftest.$ac_objext'
27109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27110   (eval $ac_try) 2>&5
27111   ac_status=$?
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); }; }; then
27114   ac_header_compiler=yes
27115 else
27116   echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27118
27119 ac_header_compiler=no
27120 fi
27121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27123 echo "${ECHO_T}$ac_header_compiler" >&6
27124
27125 # Is the header present?
27126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27128 cat >conftest.$ac_ext <<_ACEOF
27129 /* confdefs.h.  */
27130 _ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h.  */
27134 #include <$ac_header>
27135 _ACEOF
27136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27138   ac_status=$?
27139   grep -v '^ *+' conftest.er1 >conftest.err
27140   rm -f conftest.er1
27141   cat conftest.err >&5
27142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143   (exit $ac_status); } >/dev/null; then
27144   if test -s conftest.err; then
27145     ac_cpp_err=$ac_c_preproc_warn_flag
27146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27147   else
27148     ac_cpp_err=
27149   fi
27150 else
27151   ac_cpp_err=yes
27152 fi
27153 if test -z "$ac_cpp_err"; then
27154   ac_header_preproc=yes
27155 else
27156   echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27158
27159   ac_header_preproc=no
27160 fi
27161 rm -f conftest.err conftest.$ac_ext
27162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27163 echo "${ECHO_T}$ac_header_preproc" >&6
27164
27165 # So?  What about this header?
27166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27167   yes:no: )
27168     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27172     ac_header_preproc=yes
27173     ;;
27174   no:yes:* )
27175     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27177     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27178 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27179     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27181     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27182 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27185     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27187     (
27188       cat <<\_ASBOX
27189 ## --------------------------------------------- ##
27190 ## Report this to vserver@list.linux-vserver.org ##
27191 ## --------------------------------------------- ##
27192 _ASBOX
27193     ) |
27194       sed "s/^/$as_me: WARNING:     /" >&2
27195     ;;
27196 esac
27197 echo "$as_me:$LINENO: checking for $ac_header" >&5
27198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27200   echo $ECHO_N "(cached) $ECHO_C" >&6
27201 else
27202   eval "$as_ac_Header=\$ac_header_preproc"
27203 fi
27204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27206
27207 fi
27208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27209   cat >>confdefs.h <<_ACEOF
27210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27211 _ACEOF
27212
27213 fi
27214
27215 done
27216
27217
27218 if test x"$ensc_have_dietlibc" = xno; then
27219         echo "$as_me:$LINENO: checking for openpty" >&5
27220 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
27221 if test "${ac_cv_func_openpty+set}" = set; then
27222   echo $ECHO_N "(cached) $ECHO_C" >&6
27223 else
27224   cat >conftest.$ac_ext <<_ACEOF
27225 /* confdefs.h.  */
27226 _ACEOF
27227 cat confdefs.h >>conftest.$ac_ext
27228 cat >>conftest.$ac_ext <<_ACEOF
27229 /* end confdefs.h.  */
27230 /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
27231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27232 #define openpty innocuous_openpty
27233
27234 /* System header to define __stub macros and hopefully few prototypes,
27235     which can conflict with char openpty (); below.
27236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27237     <limits.h> exists even on freestanding compilers.  */
27238
27239 #ifdef __STDC__
27240 # include <limits.h>
27241 #else
27242 # include <assert.h>
27243 #endif
27244
27245 #undef openpty
27246
27247 /* Override any gcc2 internal prototype to avoid an error.  */
27248 #ifdef __cplusplus
27249 extern "C"
27250 {
27251 #endif
27252 /* We use char because int might match the return type of a gcc2
27253    builtin and then its argument prototype would still apply.  */
27254 char openpty ();
27255 /* The GNU C library defines this for functions which it implements
27256     to always fail with ENOSYS.  Some functions are actually named
27257     something starting with __ and the normal name is an alias.  */
27258 #if defined (__stub_openpty) || defined (__stub___openpty)
27259 choke me
27260 #else
27261 char (*f) () = openpty;
27262 #endif
27263 #ifdef __cplusplus
27264 }
27265 #endif
27266
27267 int
27268 main ()
27269 {
27270 return f != openpty;
27271   ;
27272   return 0;
27273 }
27274 _ACEOF
27275 rm -f conftest.$ac_objext conftest$ac_exeext
27276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27277   (eval $ac_link) 2>conftest.er1
27278   ac_status=$?
27279   grep -v '^ *+' conftest.er1 >conftest.err
27280   rm -f conftest.er1
27281   cat conftest.err >&5
27282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283   (exit $ac_status); } &&
27284          { ac_try='test -z "$ac_c_werror_flag"
27285                          || test ! -s conftest.err'
27286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27287   (eval $ac_try) 2>&5
27288   ac_status=$?
27289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290   (exit $ac_status); }; } &&
27291          { ac_try='test -s conftest$ac_exeext'
27292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27293   (eval $ac_try) 2>&5
27294   ac_status=$?
27295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296   (exit $ac_status); }; }; then
27297   ac_cv_func_openpty=yes
27298 else
27299   echo "$as_me: failed program was:" >&5
27300 sed 's/^/| /' conftest.$ac_ext >&5
27301
27302 ac_cv_func_openpty=no
27303 fi
27304 rm -f conftest.err conftest.$ac_objext \
27305       conftest$ac_exeext conftest.$ac_ext
27306 fi
27307 echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
27308 echo "${ECHO_T}$ac_cv_func_openpty" >&6
27309 if test $ac_cv_func_openpty = yes; then
27310   :
27311 else
27312
27313 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
27314 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
27315 if test "${ac_cv_lib_util_openpty+set}" = set; then
27316   echo $ECHO_N "(cached) $ECHO_C" >&6
27317 else
27318   ac_check_lib_save_LIBS=$LIBS
27319 LIBS="-lutil  $LIBS"
27320 cat >conftest.$ac_ext <<_ACEOF
27321 /* confdefs.h.  */
27322 _ACEOF
27323 cat confdefs.h >>conftest.$ac_ext
27324 cat >>conftest.$ac_ext <<_ACEOF
27325 /* end confdefs.h.  */
27326
27327 /* Override any gcc2 internal prototype to avoid an error.  */
27328 #ifdef __cplusplus
27329 extern "C"
27330 #endif
27331 /* We use char because int might match the return type of a gcc2
27332    builtin and then its argument prototype would still apply.  */
27333 char openpty ();
27334 int
27335 main ()
27336 {
27337 openpty ();
27338   ;
27339   return 0;
27340 }
27341 _ACEOF
27342 rm -f conftest.$ac_objext conftest$ac_exeext
27343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27344   (eval $ac_link) 2>conftest.er1
27345   ac_status=$?
27346   grep -v '^ *+' conftest.er1 >conftest.err
27347   rm -f conftest.er1
27348   cat conftest.err >&5
27349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350   (exit $ac_status); } &&
27351          { ac_try='test -z "$ac_c_werror_flag"
27352                          || test ! -s conftest.err'
27353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27354   (eval $ac_try) 2>&5
27355   ac_status=$?
27356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357   (exit $ac_status); }; } &&
27358          { ac_try='test -s conftest$ac_exeext'
27359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27360   (eval $ac_try) 2>&5
27361   ac_status=$?
27362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363   (exit $ac_status); }; }; then
27364   ac_cv_lib_util_openpty=yes
27365 else
27366   echo "$as_me: failed program was:" >&5
27367 sed 's/^/| /' conftest.$ac_ext >&5
27368
27369 ac_cv_lib_util_openpty=no
27370 fi
27371 rm -f conftest.err conftest.$ac_objext \
27372       conftest$ac_exeext conftest.$ac_ext
27373 LIBS=$ac_check_lib_save_LIBS
27374 fi
27375 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
27376 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
27377 if test $ac_cv_lib_util_openpty = yes; then
27378   cat >>confdefs.h <<_ACEOF
27379 #define HAVE_LIBUTIL 1
27380 _ACEOF
27381
27382   LIBS="-lutil $LIBS"
27383
27384 else
27385   { { echo "$as_me:$LINENO: error:
27386 ****
27387 **** openpty could not be found
27388 ****" >&5
27389 echo "$as_me: error:
27390 ****
27391 **** openpty could not be found
27392 ****" >&2;}
27393    { (exit 1); exit 1; }; }
27394 fi
27395
27396 fi
27397
27398 fi
27399
27400
27401 if test x"$ensc_cv_c99_c99compiler" = xyes; then
27402         ensc_have_beecrypt=yes
27403
27404         if test x"$ensc_have_beecrypt" = xyes; then
27405                 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27406   echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27407 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27408 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27409   echo $ECHO_N "(cached) $ECHO_C" >&6
27410 fi
27411 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27412 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27413 else
27414   # Is the header compilable?
27415 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
27416 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6
27417 cat >conftest.$ac_ext <<_ACEOF
27418 /* confdefs.h.  */
27419 _ACEOF
27420 cat confdefs.h >>conftest.$ac_ext
27421 cat >>conftest.$ac_ext <<_ACEOF
27422 /* end confdefs.h.  */
27423 $ac_includes_default
27424 #include <beecrypt/beecrypt.h>
27425 _ACEOF
27426 rm -f conftest.$ac_objext
27427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27428   (eval $ac_compile) 2>conftest.er1
27429   ac_status=$?
27430   grep -v '^ *+' conftest.er1 >conftest.err
27431   rm -f conftest.er1
27432   cat conftest.err >&5
27433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434   (exit $ac_status); } &&
27435          { ac_try='test -z "$ac_c_werror_flag"
27436                          || test ! -s conftest.err'
27437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27438   (eval $ac_try) 2>&5
27439   ac_status=$?
27440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441   (exit $ac_status); }; } &&
27442          { ac_try='test -s conftest.$ac_objext'
27443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27444   (eval $ac_try) 2>&5
27445   ac_status=$?
27446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447   (exit $ac_status); }; }; then
27448   ac_header_compiler=yes
27449 else
27450   echo "$as_me: failed program was:" >&5
27451 sed 's/^/| /' conftest.$ac_ext >&5
27452
27453 ac_header_compiler=no
27454 fi
27455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27457 echo "${ECHO_T}$ac_header_compiler" >&6
27458
27459 # Is the header present?
27460 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
27461 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6
27462 cat >conftest.$ac_ext <<_ACEOF
27463 /* confdefs.h.  */
27464 _ACEOF
27465 cat confdefs.h >>conftest.$ac_ext
27466 cat >>conftest.$ac_ext <<_ACEOF
27467 /* end confdefs.h.  */
27468 #include <beecrypt/beecrypt.h>
27469 _ACEOF
27470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27472   ac_status=$?
27473   grep -v '^ *+' conftest.er1 >conftest.err
27474   rm -f conftest.er1
27475   cat conftest.err >&5
27476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477   (exit $ac_status); } >/dev/null; then
27478   if test -s conftest.err; then
27479     ac_cpp_err=$ac_c_preproc_warn_flag
27480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27481   else
27482     ac_cpp_err=
27483   fi
27484 else
27485   ac_cpp_err=yes
27486 fi
27487 if test -z "$ac_cpp_err"; then
27488   ac_header_preproc=yes
27489 else
27490   echo "$as_me: failed program was:" >&5
27491 sed 's/^/| /' conftest.$ac_ext >&5
27492
27493   ac_header_preproc=no
27494 fi
27495 rm -f conftest.err conftest.$ac_ext
27496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27497 echo "${ECHO_T}$ac_header_preproc" >&6
27498
27499 # So?  What about this header?
27500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27501   yes:no: )
27502     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27503 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27504     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
27505 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
27506     ac_header_preproc=yes
27507     ;;
27508   no:yes:* )
27509     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
27510 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
27511     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&5
27512 echo "$as_me: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&2;}
27513     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
27514 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
27515     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
27516 echo "$as_me: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27517     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
27518 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
27519     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
27520 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
27521     (
27522       cat <<\_ASBOX
27523 ## --------------------------------------------- ##
27524 ## Report this to vserver@list.linux-vserver.org ##
27525 ## --------------------------------------------- ##
27526 _ASBOX
27527     ) |
27528       sed "s/^/$as_me: WARNING:     /" >&2
27529     ;;
27530 esac
27531 echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27532 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27533 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27534   echo $ECHO_N "(cached) $ECHO_C" >&6
27535 else
27536   ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
27537 fi
27538 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27539 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27540
27541 fi
27542 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
27543    :
27544 else
27545    ensc_have_beecrypt=no
27546 fi
27547
27548
27549         fi
27550
27551         if test x"$ensc_have_beecrypt" = xyes; then
27552                 echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
27553 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6
27554 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
27555   echo $ECHO_N "(cached) $ECHO_C" >&6
27556 else
27557   ac_check_lib_save_LIBS=$LIBS
27558 LIBS="-lbeecrypt  $LIBS"
27559 cat >conftest.$ac_ext <<_ACEOF
27560 /* confdefs.h.  */
27561 _ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h.  */
27565
27566 /* Override any gcc2 internal prototype to avoid an error.  */
27567 #ifdef __cplusplus
27568 extern "C"
27569 #endif
27570 /* We use char because int might match the return type of a gcc2
27571    builtin and then its argument prototype would still apply.  */
27572 char hashFunctionContextInit ();
27573 int
27574 main ()
27575 {
27576 hashFunctionContextInit ();
27577   ;
27578   return 0;
27579 }
27580 _ACEOF
27581 rm -f conftest.$ac_objext conftest$ac_exeext
27582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27583   (eval $ac_link) 2>conftest.er1
27584   ac_status=$?
27585   grep -v '^ *+' conftest.er1 >conftest.err
27586   rm -f conftest.er1
27587   cat conftest.err >&5
27588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589   (exit $ac_status); } &&
27590          { ac_try='test -z "$ac_c_werror_flag"
27591                          || test ! -s conftest.err'
27592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27593   (eval $ac_try) 2>&5
27594   ac_status=$?
27595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596   (exit $ac_status); }; } &&
27597          { ac_try='test -s conftest$ac_exeext'
27598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599   (eval $ac_try) 2>&5
27600   ac_status=$?
27601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602   (exit $ac_status); }; }; then
27603   ac_cv_lib_beecrypt_hashFunctionContextInit=yes
27604 else
27605   echo "$as_me: failed program was:" >&5
27606 sed 's/^/| /' conftest.$ac_ext >&5
27607
27608 ac_cv_lib_beecrypt_hashFunctionContextInit=no
27609 fi
27610 rm -f conftest.err conftest.$ac_objext \
27611       conftest$ac_exeext conftest.$ac_ext
27612 LIBS=$ac_check_lib_save_LIBS
27613 fi
27614 echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
27615 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6
27616 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
27617    :
27618 else
27619    ensc_have_beecrypt=no
27620 fi
27621
27622         fi
27623
27624         if test x"$ensc_have_beecrypt" != xyes; then
27625                 { echo "$as_me:$LINENO: WARNING:
27626 ****
27627 **** 'beecrypt' could not be found;
27628 **** this will disable the build of 'vhashify'
27629 ****" >&5
27630 echo "$as_me: WARNING:
27631 ****
27632 **** 'beecrypt' could not be found;
27633 **** this will disable the build of 'vhashify'
27634 ****" >&2;}
27635         fi
27636 else
27637         ensc_have_beecrypt=no
27638 fi
27639
27640
27641
27642 if test x"$ensc_have_beecrypt" = xyes; then
27643   ENSC_HAVE_BEECRYPT_TRUE=
27644   ENSC_HAVE_BEECRYPT_FALSE='#'
27645 else
27646   ENSC_HAVE_BEECRYPT_TRUE='#'
27647   ENSC_HAVE_BEECRYPT_FALSE=
27648 fi
27649
27650
27651
27652 if false; then
27653   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
27654   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
27655 else
27656   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
27657   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
27658 fi
27659
27660
27661
27662 echo "$as_me:$LINENO: checking for host initscripts" >&5
27663 echo $ECHO_N "checking for host initscripts... $ECHO_C" >&6
27664
27665 # Check whether --with-initscripts or --without-initscripts was given.
27666 if test "${with_initscripts+set}" = set; then
27667   withval="$with_initscripts"
27668
27669         case "$withval" in
27670         gentoo) ensc_with_init=gentoo;;
27671         sysv)   ensc_with_init=sysv;;
27672         *)      { { echo "$as_me:$LINENO: error: invalid initscripts value, only gentoo and sysv are supported" >&5
27673 echo "$as_me: error: invalid initscripts value, only gentoo and sysv are supported" >&2;}
27674    { (exit 1); exit 1; }; };;
27675         esac
27676
27677 else
27678
27679         if test -e /etc/gentoo-release; then
27680                 ensc_with_init=gentoo
27681         else
27682                 ensc_with_init=sysv
27683         fi
27684
27685 fi;
27686 echo "$as_me:$LINENO: result: $ensc_with_init" >&5
27687 echo "${ECHO_T}$ensc_with_init" >&6
27688
27689
27690 if test x"$ensc_with_init" = xgentoo; then
27691   HAVE_GENTOO_INIT_TRUE=
27692   HAVE_GENTOO_INIT_FALSE='#'
27693 else
27694   HAVE_GENTOO_INIT_TRUE='#'
27695   HAVE_GENTOO_INIT_FALSE=
27696 fi
27697
27698
27699
27700 if test x"$ensc_with_init" = xsysv; then
27701   HAVE_SYSV_INIT_TRUE=
27702   HAVE_SYSV_INIT_FALSE='#'
27703 else
27704   HAVE_SYSV_INIT_TRUE='#'
27705   HAVE_SYSV_INIT_FALSE=
27706 fi
27707
27708
27709
27710
27711 cat >>confdefs.h <<\_ACEOF
27712 #define UTMP_GID 22
27713 _ACEOF
27714
27715
27716 if false; then
27717
27718 cat >>confdefs.h <<\_ACEOF
27719 #define HAVE_GROWING_STACK 1
27720 _ACEOF
27721
27722 fi
27723
27724
27725 cat >>confdefs.h <<\_ACEOF
27726 #define _FILE_OFFSET_BITS 64
27727 _ACEOF
27728
27729
27730 ensc_cxx_affected=" (affected: vbuild, vcheck)"
27731 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
27732 ensc_diet_msg=" (you have been warned)"
27733 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
27734 ensc_diet_compat_msg=" (using -lcompat)"
27735 test x"$ensc_cv_cxx_cxxcompiler"    = xno || ensc_cxx_affected=
27736 test x"$ensc_cv_c99_c99compiler"    = xno || ensc_c99_affected=
27737 test x"$ensc_have_dietlibc"         = xno || ensc_diet_msg=
27738 test x"$ensc_version_dietlibc"     != x   || ensc_diet_version_msg=
27739 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
27740
27741
27742
27743
27744
27745                                         ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile"
27746
27747 cat >confcache <<\_ACEOF
27748 # This file is a shell script that caches the results of configure
27749 # tests run on this system so they can be shared between configure
27750 # scripts and configure runs, see configure's option --config-cache.
27751 # It is not useful on other systems.  If it contains results you don't
27752 # want to keep, you may remove or edit it.
27753 #
27754 # config.status only pays attention to the cache file if you give it
27755 # the --recheck option to rerun configure.
27756 #
27757 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27758 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27759 # following values.
27760
27761 _ACEOF
27762
27763 # The following way of writing the cache mishandles newlines in values,
27764 # but we know of no workaround that is simple, portable, and efficient.
27765 # So, don't put newlines in cache variables' values.
27766 # Ultrix sh set writes to stderr and can't be redirected directly,
27767 # and sets the high bit in the cache file unless we assign to the vars.
27768 {
27769   (set) 2>&1 |
27770     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27771     *ac_space=\ *)
27772       # `set' does not quote correctly, so add quotes (double-quote
27773       # substitution turns \\\\ into \\, and sed turns \\ into \).
27774       sed -n \
27775         "s/'/'\\\\''/g;
27776           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27777       ;;
27778     *)
27779       # `set' quotes correctly as required by POSIX, so do not add quotes.
27780       sed -n \
27781         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27782       ;;
27783     esac;
27784 } |
27785   sed '
27786      t clear
27787      : clear
27788      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27789      t end
27790      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27791      : end' >>confcache
27792 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27793   if test -w $cache_file; then
27794     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27795     cat confcache >$cache_file
27796   else
27797     echo "not updating unwritable cache $cache_file"
27798   fi
27799 fi
27800 rm -f confcache
27801
27802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27803 # Let make expand exec_prefix.
27804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27805
27806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27808 # trailing colons and then remove the whole line if VPATH becomes empty
27809 # (actually we leave an empty line to preserve line numbers).
27810 if test "x$srcdir" = x.; then
27811   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27812 s/:*\$(srcdir):*/:/;
27813 s/:*\${srcdir}:*/:/;
27814 s/:*@srcdir@:*/:/;
27815 s/^\([^=]*=[     ]*\):*/\1/;
27816 s/:*$//;
27817 s/^[^=]*=[       ]*$//;
27818 }'
27819 fi
27820
27821 DEFS=-DHAVE_CONFIG_H
27822
27823 ac_libobjs=
27824 ac_ltlibobjs=
27825 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27826   # 1. Remove the extension, and $U if already installed.
27827   ac_i=`echo "$ac_i" |
27828          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27829   # 2. Add them.
27830   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27831   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27832 done
27833 LIBOBJS=$ac_libobjs
27834
27835 LTLIBOBJS=$ac_ltlibobjs
27836
27837
27838 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27839   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27840 Usually this means the macro was only invoked conditionally." >&5
27841 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27842 Usually this means the macro was only invoked conditionally." >&2;}
27843    { (exit 1); exit 1; }; }
27844 fi
27845 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27846   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27847 Usually this means the macro was only invoked conditionally." >&5
27848 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27849 Usually this means the macro was only invoked conditionally." >&2;}
27850    { (exit 1); exit 1; }; }
27851 fi
27852 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27853   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27854 Usually this means the macro was only invoked conditionally." >&5
27855 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27856 Usually this means the macro was only invoked conditionally." >&2;}
27857    { (exit 1); exit 1; }; }
27858 fi
27859 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27860   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27861 Usually this means the macro was only invoked conditionally." >&5
27862 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27863 Usually this means the macro was only invoked conditionally." >&2;}
27864    { (exit 1); exit 1; }; }
27865 fi
27866 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
27867   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27868 Usually this means the macro was only invoked conditionally." >&5
27869 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27870 Usually this means the macro was only invoked conditionally." >&2;}
27871    { (exit 1); exit 1; }; }
27872 fi
27873 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
27874   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27875 Usually this means the macro was only invoked conditionally." >&5
27876 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27877 Usually this means the macro was only invoked conditionally." >&2;}
27878    { (exit 1); exit 1; }; }
27879 fi
27880 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
27881   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
27882 Usually this means the macro was only invoked conditionally." >&5
27883 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
27884 Usually this means the macro was only invoked conditionally." >&2;}
27885    { (exit 1); exit 1; }; }
27886 fi
27887 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
27888   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
27889 Usually this means the macro was only invoked conditionally." >&5
27890 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
27891 Usually this means the macro was only invoked conditionally." >&2;}
27892    { (exit 1); exit 1; }; }
27893 fi
27894 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27895   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27896 Usually this means the macro was only invoked conditionally." >&5
27897 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27898 Usually this means the macro was only invoked conditionally." >&2;}
27899    { (exit 1); exit 1; }; }
27900 fi
27901 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27902   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27903 Usually this means the macro was only invoked conditionally." >&5
27904 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27905 Usually this means the macro was only invoked conditionally." >&2;}
27906    { (exit 1); exit 1; }; }
27907 fi
27908 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27909   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27910 Usually this means the macro was only invoked conditionally." >&5
27911 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27912 Usually this means the macro was only invoked conditionally." >&2;}
27913    { (exit 1); exit 1; }; }
27914 fi
27915 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27916   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27917 Usually this means the macro was only invoked conditionally." >&5
27918 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27919 Usually this means the macro was only invoked conditionally." >&2;}
27920    { (exit 1); exit 1; }; }
27921 fi
27922 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27923   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27924 Usually this means the macro was only invoked conditionally." >&5
27925 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27926 Usually this means the macro was only invoked conditionally." >&2;}
27927    { (exit 1); exit 1; }; }
27928 fi
27929 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27930   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27931 Usually this means the macro was only invoked conditionally." >&5
27932 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27933 Usually this means the macro was only invoked conditionally." >&2;}
27934    { (exit 1); exit 1; }; }
27935 fi
27936 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27937   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27938 Usually this means the macro was only invoked conditionally." >&5
27939 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27940 Usually this means the macro was only invoked conditionally." >&2;}
27941    { (exit 1); exit 1; }; }
27942 fi
27943 if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
27944   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27945 Usually this means the macro was only invoked conditionally." >&5
27946 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27947 Usually this means the macro was only invoked conditionally." >&2;}
27948    { (exit 1); exit 1; }; }
27949 fi
27950 if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
27951   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27952 Usually this means the macro was only invoked conditionally." >&5
27953 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27954 Usually this means the macro was only invoked conditionally." >&2;}
27955    { (exit 1); exit 1; }; }
27956 fi
27957 if test -z "${HAVE_SVN2CL_TRUE}" && test -z "${HAVE_SVN2CL_FALSE}"; then
27958   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SVN2CL\" was never defined.
27959 Usually this means the macro was only invoked conditionally." >&5
27960 echo "$as_me: error: conditional \"HAVE_SVN2CL\" was never defined.
27961 Usually this means the macro was only invoked conditionally." >&2;}
27962    { (exit 1); exit 1; }; }
27963 fi
27964 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
27965   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27966 Usually this means the macro was only invoked conditionally." >&5
27967 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27968 Usually this means the macro was only invoked conditionally." >&2;}
27969    { (exit 1); exit 1; }; }
27970 fi
27971 if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
27972   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27973 Usually this means the macro was only invoked conditionally." >&5
27974 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27975 Usually this means the macro was only invoked conditionally." >&2;}
27976    { (exit 1); exit 1; }; }
27977 fi
27978 if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
27979   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27980 Usually this means the macro was only invoked conditionally." >&5
27981 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27982 Usually this means the macro was only invoked conditionally." >&2;}
27983    { (exit 1); exit 1; }; }
27984 fi
27985 if test -z "${HAVE_GENTOO_INIT_TRUE}" && test -z "${HAVE_GENTOO_INIT_FALSE}"; then
27986   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
27987 Usually this means the macro was only invoked conditionally." >&5
27988 echo "$as_me: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
27989 Usually this means the macro was only invoked conditionally." >&2;}
27990    { (exit 1); exit 1; }; }
27991 fi
27992 if test -z "${HAVE_SYSV_INIT_TRUE}" && test -z "${HAVE_SYSV_INIT_FALSE}"; then
27993   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYSV_INIT\" was never defined.
27994 Usually this means the macro was only invoked conditionally." >&5
27995 echo "$as_me: error: conditional \"HAVE_SYSV_INIT\" was never defined.
27996 Usually this means the macro was only invoked conditionally." >&2;}
27997    { (exit 1); exit 1; }; }
27998 fi
27999
28000                         FEATURES_TXT="\
28001 Features:
28002                        CC: $CC, $($CC   --version | sed -e '1p;d')
28003                       CXX: $CXX, $($CXX --version | sed -e '1p;d')
28004                  CPPFLAGS: '$CPPFLAGS'
28005                    CFLAGS: '$CFLAGS'
28006                  CXXFLAGS: '$CXXFLAGS'
28007                build/host: $build/$host
28008              Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
28009        Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
28010        Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
28011            Available APIs: $enable_apis
28012             ext2fs Source: $ensc_cv_test_ext2fs_header
28013     syscall(2) invocation: $with_syscall
28014       vserver(2) syscall#: $ensc_cv_value_syscall_vserver
28015
28016 Paths:
28017                    prefix: $prefix
28018         sysconf-Directory: $sysconfdir
28019             cfg-Directory: $sysconfdir/vservers
28020          initrd-Directory: $initrddir
28021        pkgstate-Directory: $localstatedir/run/vservers
28022           vserver-Rootdir: $vserverdir
28023 "
28024                         echo "$FEATURES_TXT" >FEATURES.txt
28025
28026
28027 : ${CONFIG_STATUS=./config.status}
28028 ac_clean_files_save=$ac_clean_files
28029 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28030 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28031 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28032 cat >$CONFIG_STATUS <<_ACEOF
28033 #! $SHELL
28034 # Generated by $as_me.
28035 # Run this file to recreate the current configuration.
28036 # Compiler output produced by configure, useful for debugging
28037 # configure, is in config.log if it exists.
28038
28039 debug=false
28040 ac_cs_recheck=false
28041 ac_cs_silent=false
28042 SHELL=\${CONFIG_SHELL-$SHELL}
28043 _ACEOF
28044
28045 cat >>$CONFIG_STATUS <<\_ACEOF
28046 ## --------------------- ##
28047 ## M4sh Initialization.  ##
28048 ## --------------------- ##
28049
28050 # Be Bourne compatible
28051 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28052   emulate sh
28053   NULLCMD=:
28054   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28055   # is contrary to our usage.  Disable this feature.
28056   alias -g '${1+"$@"}'='"$@"'
28057 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28058   set -o posix
28059 fi
28060 DUALCASE=1; export DUALCASE # for MKS sh
28061
28062 # Support unset when possible.
28063 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28064   as_unset=unset
28065 else
28066   as_unset=false
28067 fi
28068
28069
28070 # Work around bugs in pre-3.0 UWIN ksh.
28071 $as_unset ENV MAIL MAILPATH
28072 PS1='$ '
28073 PS2='> '
28074 PS4='+ '
28075
28076 # NLS nuisances.
28077 for as_var in \
28078   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28079   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28080   LC_TELEPHONE LC_TIME
28081 do
28082   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28083     eval $as_var=C; export $as_var
28084   else
28085     $as_unset $as_var
28086   fi
28087 done
28088
28089 # Required to use basename.
28090 if expr a : '\(a\)' >/dev/null 2>&1; then
28091   as_expr=expr
28092 else
28093   as_expr=false
28094 fi
28095
28096 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28097   as_basename=basename
28098 else
28099   as_basename=false
28100 fi
28101
28102
28103 # Name of the executable.
28104 as_me=`$as_basename "$0" ||
28105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28106          X"$0" : 'X\(//\)$' \| \
28107          X"$0" : 'X\(/\)$' \| \
28108          .     : '\(.\)' 2>/dev/null ||
28109 echo X/"$0" |
28110     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28111           /^X\/\(\/\/\)$/{ s//\1/; q; }
28112           /^X\/\(\/\).*/{ s//\1/; q; }
28113           s/.*/./; q'`
28114
28115
28116 # PATH needs CR, and LINENO needs CR and PATH.
28117 # Avoid depending upon Character Ranges.
28118 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28119 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28120 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28121 as_cr_digits='0123456789'
28122 as_cr_alnum=$as_cr_Letters$as_cr_digits
28123
28124 # The user is always right.
28125 if test "${PATH_SEPARATOR+set}" != set; then
28126   echo "#! /bin/sh" >conf$$.sh
28127   echo  "exit 0"   >>conf$$.sh
28128   chmod +x conf$$.sh
28129   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28130     PATH_SEPARATOR=';'
28131   else
28132     PATH_SEPARATOR=:
28133   fi
28134   rm -f conf$$.sh
28135 fi
28136
28137
28138   as_lineno_1=$LINENO
28139   as_lineno_2=$LINENO
28140   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28141   test "x$as_lineno_1" != "x$as_lineno_2" &&
28142   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28143   # Find who we are.  Look in the path if we contain no path at all
28144   # relative or not.
28145   case $0 in
28146     *[\\/]* ) as_myself=$0 ;;
28147     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28148 for as_dir in $PATH
28149 do
28150   IFS=$as_save_IFS
28151   test -z "$as_dir" && as_dir=.
28152   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28153 done
28154
28155        ;;
28156   esac
28157   # We did not find ourselves, most probably we were run as `sh COMMAND'
28158   # in which case we are not to be found in the path.
28159   if test "x$as_myself" = x; then
28160     as_myself=$0
28161   fi
28162   if test ! -f "$as_myself"; then
28163     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28164 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28165    { (exit 1); exit 1; }; }
28166   fi
28167   case $CONFIG_SHELL in
28168   '')
28169     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28170 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28171 do
28172   IFS=$as_save_IFS
28173   test -z "$as_dir" && as_dir=.
28174   for as_base in sh bash ksh sh5; do
28175          case $as_dir in
28176          /*)
28177            if ("$as_dir/$as_base" -c '
28178   as_lineno_1=$LINENO
28179   as_lineno_2=$LINENO
28180   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28181   test "x$as_lineno_1" != "x$as_lineno_2" &&
28182   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28183              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28184              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28185              CONFIG_SHELL=$as_dir/$as_base
28186              export CONFIG_SHELL
28187              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28188            fi;;
28189          esac
28190        done
28191 done
28192 ;;
28193   esac
28194
28195   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28196   # uniformly replaced by the line number.  The first 'sed' inserts a
28197   # line-number line before each line; the second 'sed' does the real
28198   # work.  The second script uses 'N' to pair each line-number line
28199   # with the numbered line, and appends trailing '-' during
28200   # substitution so that $LINENO is not a special case at line end.
28201   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28202   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28203   sed '=' <$as_myself |
28204     sed '
28205       N
28206       s,$,-,
28207       : loop
28208       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28209       t loop
28210       s,-$,,
28211       s,^['$as_cr_digits']*\n,,
28212     ' >$as_me.lineno &&
28213   chmod +x $as_me.lineno ||
28214     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28215 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28216    { (exit 1); exit 1; }; }
28217
28218   # Don't try to exec as it changes $[0], causing all sort of problems
28219   # (the dirname of $[0] is not the place where we might find the
28220   # original and so on.  Autoconf is especially sensible to this).
28221   . ./$as_me.lineno
28222   # Exit status is that of the last command.
28223   exit
28224 }
28225
28226
28227 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28228   *c*,-n*) ECHO_N= ECHO_C='
28229 ' ECHO_T='      ' ;;
28230   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28231   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28232 esac
28233
28234 if expr a : '\(a\)' >/dev/null 2>&1; then
28235   as_expr=expr
28236 else
28237   as_expr=false
28238 fi
28239
28240 rm -f conf$$ conf$$.exe conf$$.file
28241 echo >conf$$.file
28242 if ln -s conf$$.file conf$$ 2>/dev/null; then
28243   # We could just check for DJGPP; but this test a) works b) is more generic
28244   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28245   if test -f conf$$.exe; then
28246     # Don't use ln at all; we don't have any links
28247     as_ln_s='cp -p'
28248   else
28249     as_ln_s='ln -s'
28250   fi
28251 elif ln conf$$.file conf$$ 2>/dev/null; then
28252   as_ln_s=ln
28253 else
28254   as_ln_s='cp -p'
28255 fi
28256 rm -f conf$$ conf$$.exe conf$$.file
28257
28258 if mkdir -p . 2>/dev/null; then
28259   as_mkdir_p=:
28260 else
28261   test -d ./-p && rmdir ./-p
28262   as_mkdir_p=false
28263 fi
28264
28265 as_executable_p="test -f"
28266
28267 # Sed expression to map a string onto a valid CPP name.
28268 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28269
28270 # Sed expression to map a string onto a valid variable name.
28271 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28272
28273
28274 # IFS
28275 # We need space, tab and new line, in precisely that order.
28276 as_nl='
28277 '
28278 IFS="   $as_nl"
28279
28280 # CDPATH.
28281 $as_unset CDPATH
28282
28283 exec 6>&1
28284
28285 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28286 # report actual input values of CONFIG_FILES etc. instead of their
28287 # values after options handling.  Logging --version etc. is OK.
28288 exec 5>>config.log
28289 {
28290   echo
28291   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28292 ## Running $as_me. ##
28293 _ASBOX
28294 } >&5
28295 cat >&5 <<_CSEOF
28296
28297 This file was extended by util-vserver $as_me 0.30.213, which was
28298 generated by GNU Autoconf 2.59.  Invocation command line was
28299
28300   CONFIG_FILES    = $CONFIG_FILES
28301   CONFIG_HEADERS  = $CONFIG_HEADERS
28302   CONFIG_LINKS    = $CONFIG_LINKS
28303   CONFIG_COMMANDS = $CONFIG_COMMANDS
28304   $ $0 $@
28305
28306 _CSEOF
28307 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28308 echo >&5
28309 _ACEOF
28310
28311 # Files that config.status was made for.
28312 if test -n "$ac_config_files"; then
28313   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28314 fi
28315
28316 if test -n "$ac_config_headers"; then
28317   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28318 fi
28319
28320 if test -n "$ac_config_links"; then
28321   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28322 fi
28323
28324 if test -n "$ac_config_commands"; then
28325   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28326 fi
28327
28328 cat >>$CONFIG_STATUS <<\_ACEOF
28329
28330 ac_cs_usage="\
28331 \`$as_me' instantiates files from templates according to the
28332 current configuration.
28333
28334 Usage: $0 [OPTIONS] [FILE]...
28335
28336   -h, --help       print this help, then exit
28337   -V, --version    print version number, then exit
28338   -q, --quiet      do not print progress messages
28339   -d, --debug      don't remove temporary files
28340       --recheck    update $as_me by reconfiguring in the same conditions
28341   --file=FILE[:TEMPLATE]
28342                    instantiate the configuration file FILE
28343   --header=FILE[:TEMPLATE]
28344                    instantiate the configuration header FILE
28345
28346 Configuration files:
28347 $config_files
28348
28349 Configuration headers:
28350 $config_headers
28351
28352 Configuration commands:
28353 $config_commands
28354
28355 Report bugs to <bug-autoconf@gnu.org>."
28356 _ACEOF
28357
28358 cat >>$CONFIG_STATUS <<_ACEOF
28359 ac_cs_version="\\
28360 util-vserver config.status 0.30.213
28361 configured by $0, generated by GNU Autoconf 2.59,
28362   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28363
28364 Copyright (C) 2003 Free Software Foundation, Inc.
28365 This config.status script is free software; the Free Software Foundation
28366 gives unlimited permission to copy, distribute and modify it."
28367 srcdir=$srcdir
28368 INSTALL="$INSTALL"
28369 _ACEOF
28370
28371 cat >>$CONFIG_STATUS <<\_ACEOF
28372 # If no file are specified by the user, then we need to provide default
28373 # value.  By we need to know if files were specified by the user.
28374 ac_need_defaults=:
28375 while test $# != 0
28376 do
28377   case $1 in
28378   --*=*)
28379     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28380     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28381     ac_shift=:
28382     ;;
28383   -*)
28384     ac_option=$1
28385     ac_optarg=$2
28386     ac_shift=shift
28387     ;;
28388   *) # This is not an option, so the user has probably given explicit
28389      # arguments.
28390      ac_option=$1
28391      ac_need_defaults=false;;
28392   esac
28393
28394   case $ac_option in
28395   # Handling of the options.
28396 _ACEOF
28397 cat >>$CONFIG_STATUS <<\_ACEOF
28398   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28399     ac_cs_recheck=: ;;
28400   --version | --vers* | -V )
28401     echo "$ac_cs_version"; exit 0 ;;
28402   --he | --h)
28403     # Conflict between --help and --header
28404     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28405 Try \`$0 --help' for more information." >&5
28406 echo "$as_me: error: ambiguous option: $1
28407 Try \`$0 --help' for more information." >&2;}
28408    { (exit 1); exit 1; }; };;
28409   --help | --hel | -h )
28410     echo "$ac_cs_usage"; exit 0 ;;
28411   --debug | --d* | -d )
28412     debug=: ;;
28413   --file | --fil | --fi | --f )
28414     $ac_shift
28415     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28416     ac_need_defaults=false;;
28417   --header | --heade | --head | --hea )
28418     $ac_shift
28419     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28420     ac_need_defaults=false;;
28421   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28422   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28423     ac_cs_silent=: ;;
28424
28425   # This is an error.
28426   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28427 Try \`$0 --help' for more information." >&5
28428 echo "$as_me: error: unrecognized option: $1
28429 Try \`$0 --help' for more information." >&2;}
28430    { (exit 1); exit 1; }; } ;;
28431
28432   *) ac_config_targets="$ac_config_targets $1" ;;
28433
28434   esac
28435   shift
28436 done
28437
28438 ac_configure_extra_args=
28439
28440 if $ac_cs_silent; then
28441   exec 6>/dev/null
28442   ac_configure_extra_args="$ac_configure_extra_args --silent"
28443 fi
28444
28445 _ACEOF
28446 cat >>$CONFIG_STATUS <<_ACEOF
28447 if \$ac_cs_recheck; then
28448   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28449   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28450 fi
28451
28452 _ACEOF
28453
28454 cat >>$CONFIG_STATUS <<_ACEOF
28455 #
28456 # INIT-COMMANDS section.
28457 #
28458
28459 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28460
28461 _ACEOF
28462
28463
28464
28465 cat >>$CONFIG_STATUS <<\_ACEOF
28466 for ac_config_target in $ac_config_targets
28467 do
28468   case "$ac_config_target" in
28469   # Handling of arguments.
28470   "util-vserver.spec" ) CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
28471   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28472   "distrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
28473   "lib/apidoc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
28474   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28475   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28476   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28477 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28478    { (exit 1); exit 1; }; };;
28479   esac
28480 done
28481
28482 # If the user did not use the arguments to specify the items to instantiate,
28483 # then the envvar interface is used.  Set only those that are not.
28484 # We use the long form for the default assignment because of an extremely
28485 # bizarre bug on SunOS 4.1.3.
28486 if $ac_need_defaults; then
28487   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28488   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28489   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28490 fi
28491
28492 # Have a temporary directory for convenience.  Make it in the build tree
28493 # simply because there is no reason to put it here, and in addition,
28494 # creating and moving files from /tmp can sometimes cause problems.
28495 # Create a temporary directory, and hook for its removal unless debugging.
28496 $debug ||
28497 {
28498   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28499   trap '{ (exit 1); exit 1; }' 1 2 13 15
28500 }
28501
28502 # Create a (secure) tmp directory for tmp files.
28503
28504 {
28505   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28506   test -n "$tmp" && test -d "$tmp"
28507 }  ||
28508 {
28509   tmp=./confstat$$-$RANDOM
28510   (umask 077 && mkdir $tmp)
28511 } ||
28512 {
28513    echo "$me: cannot create a temporary directory in ." >&2
28514    { (exit 1); exit 1; }
28515 }
28516
28517 _ACEOF
28518
28519 cat >>$CONFIG_STATUS <<_ACEOF
28520
28521 #
28522 # CONFIG_FILES section.
28523 #
28524
28525 # No need to generate the scripts if there are no CONFIG_FILES.
28526 # This happens for instance when ./config.status config.h
28527 if test -n "\$CONFIG_FILES"; then
28528   # Protect against being on the right side of a sed subst in config.status.
28529   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28530    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28531 s,@SHELL@,$SHELL,;t t
28532 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28533 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28534 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28535 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28536 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28537 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28538 s,@exec_prefix@,$exec_prefix,;t t
28539 s,@prefix@,$prefix,;t t
28540 s,@program_transform_name@,$program_transform_name,;t t
28541 s,@bindir@,$bindir,;t t
28542 s,@sbindir@,$sbindir,;t t
28543 s,@libexecdir@,$libexecdir,;t t
28544 s,@datadir@,$datadir,;t t
28545 s,@sysconfdir@,$sysconfdir,;t t
28546 s,@sharedstatedir@,$sharedstatedir,;t t
28547 s,@localstatedir@,$localstatedir,;t t
28548 s,@libdir@,$libdir,;t t
28549 s,@includedir@,$includedir,;t t
28550 s,@oldincludedir@,$oldincludedir,;t t
28551 s,@infodir@,$infodir,;t t
28552 s,@mandir@,$mandir,;t t
28553 s,@build_alias@,$build_alias,;t t
28554 s,@host_alias@,$host_alias,;t t
28555 s,@target_alias@,$target_alias,;t t
28556 s,@DEFS@,$DEFS,;t t
28557 s,@ECHO_C@,$ECHO_C,;t t
28558 s,@ECHO_N@,$ECHO_N,;t t
28559 s,@ECHO_T@,$ECHO_T,;t t
28560 s,@LIBS@,$LIBS,;t t
28561 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28562 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28563 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28564 s,@CYGPATH_W@,$CYGPATH_W,;t t
28565 s,@PACKAGE@,$PACKAGE,;t t
28566 s,@VERSION@,$VERSION,;t t
28567 s,@ACLOCAL@,$ACLOCAL,;t t
28568 s,@AUTOCONF@,$AUTOCONF,;t t
28569 s,@AUTOMAKE@,$AUTOMAKE,;t t
28570 s,@AUTOHEADER@,$AUTOHEADER,;t t
28571 s,@MAKEINFO@,$MAKEINFO,;t t
28572 s,@install_sh@,$install_sh,;t t
28573 s,@STRIP@,$STRIP,;t t
28574 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28575 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28576 s,@mkdir_p@,$mkdir_p,;t t
28577 s,@AWK@,$AWK,;t t
28578 s,@SET_MAKE@,$SET_MAKE,;t t
28579 s,@am__leading_dot@,$am__leading_dot,;t t
28580 s,@AMTAR@,$AMTAR,;t t
28581 s,@am__tar@,$am__tar,;t t
28582 s,@am__untar@,$am__untar,;t t
28583 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28584 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28585 s,@MAINT@,$MAINT,;t t
28586 s,@build@,$build,;t t
28587 s,@build_cpu@,$build_cpu,;t t
28588 s,@build_vendor@,$build_vendor,;t t
28589 s,@build_os@,$build_os,;t t
28590 s,@host@,$host,;t t
28591 s,@host_cpu@,$host_cpu,;t t
28592 s,@host_vendor@,$host_vendor,;t t
28593 s,@host_os@,$host_os,;t t
28594 s,@GPG_KEY@,$GPG_KEY,;t t
28595 s,@CXX@,$CXX,;t t
28596 s,@CXXFLAGS@,$CXXFLAGS,;t t
28597 s,@LDFLAGS@,$LDFLAGS,;t t
28598 s,@CPPFLAGS@,$CPPFLAGS,;t t
28599 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28600 s,@EXEEXT@,$EXEEXT,;t t
28601 s,@OBJEXT@,$OBJEXT,;t t
28602 s,@DEPDIR@,$DEPDIR,;t t
28603 s,@am__include@,$am__include,;t t
28604 s,@am__quote@,$am__quote,;t t
28605 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28606 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28607 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28608 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28609 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28610 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28611 s,@CC@,$CC,;t t
28612 s,@CFLAGS@,$CFLAGS,;t t
28613 s,@ac_ct_CC@,$ac_ct_CC,;t t
28614 s,@CCDEPMODE@,$CCDEPMODE,;t t
28615 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28616 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28617 s,@LN_S@,$LN_S,;t t
28618 s,@PYTHON@,$PYTHON,;t t
28619 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
28620 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
28621 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
28622 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
28623 s,@pythondir@,$pythondir,;t t
28624 s,@pkgpythondir@,$pkgpythondir,;t t
28625 s,@pyexecdir@,$pyexecdir,;t t
28626 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
28627 s,@ENSC_HAVE_CXX_COMPILER_TRUE@,$ENSC_HAVE_CXX_COMPILER_TRUE,;t t
28628 s,@ENSC_HAVE_CXX_COMPILER_FALSE@,$ENSC_HAVE_CXX_COMPILER_FALSE,;t t
28629 s,@ENSC_HAVE_C99_COMPILER_TRUE@,$ENSC_HAVE_C99_COMPILER_TRUE,;t t
28630 s,@ENSC_HAVE_C99_COMPILER_FALSE@,$ENSC_HAVE_C99_COMPILER_FALSE,;t t
28631 s,@ENSC_PATHPROG_SED@,$ENSC_PATHPROG_SED,;t t
28632 s,@CAT@,$CAT,;t t
28633 s,@CHOWN@,$CHOWN,;t t
28634 s,@CMP@,$CMP,;t t
28635 s,@CP@,$CP,;t t
28636 s,@DIRNAME@,$DIRNAME,;t t
28637 s,@EGREP@,$EGREP,;t t
28638 s,@ENV@,$ENV,;t t
28639 s,@GREP@,$GREP,;t t
28640 s,@LN@,$LN,;t t
28641 s,@MKDIR@,$MKDIR,;t t
28642 s,@MKFIFO@,$MKFIFO,;t t
28643 s,@MKTEMP@,$MKTEMP,;t t
28644 s,@MOUNT@,$MOUNT,;t t
28645 s,@MV@,$MV,;t t
28646 s,@NICE@,$NICE,;t t
28647 s,@PS@,$PS,;t t
28648 s,@RM@,$RM,;t t
28649 s,@RMDIR@,$RMDIR,;t t
28650 s,@SED@,$SED,;t t
28651 s,@SH@,$SH,;t t
28652 s,@TAC@,$TAC,;t t
28653 s,@TAR@,$TAR,;t t
28654 s,@TOUCH@,$TOUCH,;t t
28655 s,@TTY@,$TTY,;t t
28656 s,@UMOUNT@,$UMOUNT,;t t
28657 s,@WC@,$WC,;t t
28658 s,@IP@,$IP,;t t
28659 s,@IPTABLES@,$IPTABLES,;t t
28660 s,@MODPROBE@,$MODPROBE,;t t
28661 s,@NAMEIF@,$NAMEIF,;t t
28662 s,@NOHUP@,$NOHUP,;t t
28663 s,@RMMOD@,$RMMOD,;t t
28664 s,@VCONFIG@,$VCONFIG,;t t
28665 s,@WGET@,$WGET,;t t
28666 s,@FILE@,$FILE,;t t
28667 s,@GZIP@,$GZIP,;t t
28668 s,@BZIP2@,$BZIP2,;t t
28669 s,@CPIO@,$CPIO,;t t
28670 s,@RESTORE@,$RESTORE,;t t
28671 s,@RSYNC@,$RSYNC,;t t
28672 s,@DOXYGEN@,$DOXYGEN,;t t
28673 s,@XSLTP@,$XSLTP,;t t
28674 s,@XSLTPROC@,$XSLTPROC,;t t
28675 s,@HAVE_XSLTP_TRUE@,$HAVE_XSLTP_TRUE,;t t
28676 s,@HAVE_XSLTP_FALSE@,$HAVE_XSLTP_FALSE,;t t
28677 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
28678 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
28679 s,@LIB_DEBUG_CPPFLAGS@,$LIB_DEBUG_CPPFLAGS,;t t
28680 s,@ENSC_USE_EXPENSIVE_TESTS@,$ENSC_USE_EXPENSIVE_TESTS,;t t
28681 s,@initrddir@,$initrddir,;t t
28682 s,@RELEASE_CPPFLAGS@,$RELEASE_CPPFLAGS,;t t
28683 s,@CPP@,$CPP,;t t
28684 s,@DIET@,$DIET,;t t
28685 s,@DIETFLAGS@,$DIETFLAGS,;t t
28686 s,@USE_DIETLIBC_TRUE@,$USE_DIETLIBC_TRUE,;t t
28687 s,@USE_DIETLIBC_FALSE@,$USE_DIETLIBC_FALSE,;t t
28688 s,@USE_DIETLIBC_COMPAT_TRUE@,$USE_DIETLIBC_COMPAT_TRUE,;t t
28689 s,@USE_DIETLIBC_COMPAT_FALSE@,$USE_DIETLIBC_COMPAT_FALSE,;t t
28690 s,@ENSC_USE_DIETLIBC_TRUE@,$ENSC_USE_DIETLIBC_TRUE,;t t
28691 s,@ENSC_USE_DIETLIBC_FALSE@,$ENSC_USE_DIETLIBC_FALSE,;t t
28692 s,@ENSC_USE_GLIBC_TRUE@,$ENSC_USE_GLIBC_TRUE,;t t
28693 s,@ENSC_USE_GLIBC_FALSE@,$ENSC_USE_GLIBC_FALSE,;t t
28694 s,@ECHO@,$ECHO,;t t
28695 s,@AR@,$AR,;t t
28696 s,@ac_ct_AR@,$ac_ct_AR,;t t
28697 s,@RANLIB@,$RANLIB,;t t
28698 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28699 s,@CXXCPP@,$CXXCPP,;t t
28700 s,@F77@,$F77,;t t
28701 s,@FFLAGS@,$FFLAGS,;t t
28702 s,@ac_ct_F77@,$ac_ct_F77,;t t
28703 s,@LIBTOOL@,$LIBTOOL,;t t
28704 s,@vserverdir@,$vserverdir,;t t
28705 s,@SVN2CL@,$SVN2CL,;t t
28706 s,@HAVE_SVN2CL_TRUE@,$HAVE_SVN2CL_TRUE,;t t
28707 s,@HAVE_SVN2CL_FALSE@,$HAVE_SVN2CL_FALSE,;t t
28708 s,@ENSC_ENABLE_INTERNAL_HEADERS_TRUE@,$ENSC_ENABLE_INTERNAL_HEADERS_TRUE,;t t
28709 s,@ENSC_ENABLE_INTERNAL_HEADERS_FALSE@,$ENSC_ENABLE_INTERNAL_HEADERS_FALSE,;t t
28710 s,@ENSC_HAVE_BEECRYPT_TRUE@,$ENSC_HAVE_BEECRYPT_TRUE,;t t
28711 s,@ENSC_HAVE_BEECRYPT_FALSE@,$ENSC_HAVE_BEECRYPT_FALSE,;t t
28712 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE,;t t
28713 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE,;t t
28714 s,@HAVE_GENTOO_INIT_TRUE@,$HAVE_GENTOO_INIT_TRUE,;t t
28715 s,@HAVE_GENTOO_INIT_FALSE@,$HAVE_GENTOO_INIT_FALSE,;t t
28716 s,@HAVE_SYSV_INIT_TRUE@,$HAVE_SYSV_INIT_TRUE,;t t
28717 s,@HAVE_SYSV_INIT_FALSE@,$HAVE_SYSV_INIT_FALSE,;t t
28718 s,@LIBOBJS@,$LIBOBJS,;t t
28719 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28720 CEOF
28721
28722 _ACEOF
28723
28724   cat >>$CONFIG_STATUS <<\_ACEOF
28725   # Split the substitutions into bite-sized pieces for seds with
28726   # small command number limits, like on Digital OSF/1 and HP-UX.
28727   ac_max_sed_lines=48
28728   ac_sed_frag=1 # Number of current file.
28729   ac_beg=1 # First line for current file.
28730   ac_end=$ac_max_sed_lines # Line after last line for current file.
28731   ac_more_lines=:
28732   ac_sed_cmds=
28733   while $ac_more_lines; do
28734     if test $ac_beg -gt 1; then
28735       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28736     else
28737       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28738     fi
28739     if test ! -s $tmp/subs.frag; then
28740       ac_more_lines=false
28741     else
28742       # The purpose of the label and of the branching condition is to
28743       # speed up the sed processing (if there are no `@' at all, there
28744       # is no need to browse any of the substitutions).
28745       # These are the two extra sed commands mentioned above.
28746       (echo ':t
28747   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28748       if test -z "$ac_sed_cmds"; then
28749         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28750       else
28751         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28752       fi
28753       ac_sed_frag=`expr $ac_sed_frag + 1`
28754       ac_beg=$ac_end
28755       ac_end=`expr $ac_end + $ac_max_sed_lines`
28756     fi
28757   done
28758   if test -z "$ac_sed_cmds"; then
28759     ac_sed_cmds=cat
28760   fi
28761 fi # test -n "$CONFIG_FILES"
28762
28763 _ACEOF
28764 cat >>$CONFIG_STATUS <<\_ACEOF
28765 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28766   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28767   case $ac_file in
28768   - | *:- | *:-:* ) # input from stdin
28769         cat >$tmp/stdin
28770         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28771         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28772   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28773         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28774   * )   ac_file_in=$ac_file.in ;;
28775   esac
28776
28777   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28778   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28779 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28780          X"$ac_file" : 'X\(//\)[^/]' \| \
28781          X"$ac_file" : 'X\(//\)$' \| \
28782          X"$ac_file" : 'X\(/\)' \| \
28783          .     : '\(.\)' 2>/dev/null ||
28784 echo X"$ac_file" |
28785     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28786           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28787           /^X\(\/\/\)$/{ s//\1/; q; }
28788           /^X\(\/\).*/{ s//\1/; q; }
28789           s/.*/./; q'`
28790   { if $as_mkdir_p; then
28791     mkdir -p "$ac_dir"
28792   else
28793     as_dir="$ac_dir"
28794     as_dirs=
28795     while test ! -d "$as_dir"; do
28796       as_dirs="$as_dir $as_dirs"
28797       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28799          X"$as_dir" : 'X\(//\)[^/]' \| \
28800          X"$as_dir" : 'X\(//\)$' \| \
28801          X"$as_dir" : 'X\(/\)' \| \
28802          .     : '\(.\)' 2>/dev/null ||
28803 echo X"$as_dir" |
28804     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28805           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28806           /^X\(\/\/\)$/{ s//\1/; q; }
28807           /^X\(\/\).*/{ s//\1/; q; }
28808           s/.*/./; q'`
28809     done
28810     test ! -n "$as_dirs" || mkdir $as_dirs
28811   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28812 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28813    { (exit 1); exit 1; }; }; }
28814
28815   ac_builddir=.
28816
28817 if test "$ac_dir" != .; then
28818   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28819   # A "../" for each directory in $ac_dir_suffix.
28820   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28821 else
28822   ac_dir_suffix= ac_top_builddir=
28823 fi
28824
28825 case $srcdir in
28826   .)  # No --srcdir option.  We are building in place.
28827     ac_srcdir=.
28828     if test -z "$ac_top_builddir"; then
28829        ac_top_srcdir=.
28830     else
28831        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28832     fi ;;
28833   [\\/]* | ?:[\\/]* )  # Absolute path.
28834     ac_srcdir=$srcdir$ac_dir_suffix;
28835     ac_top_srcdir=$srcdir ;;
28836   *) # Relative path.
28837     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28838     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28839 esac
28840
28841 # Do not use `cd foo && pwd` to compute absolute paths, because
28842 # the directories may not exist.
28843 case `pwd` in
28844 .) ac_abs_builddir="$ac_dir";;
28845 *)
28846   case "$ac_dir" in
28847   .) ac_abs_builddir=`pwd`;;
28848   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28849   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28850   esac;;
28851 esac
28852 case $ac_abs_builddir in
28853 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28854 *)
28855   case ${ac_top_builddir}. in
28856   .) ac_abs_top_builddir=$ac_abs_builddir;;
28857   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28858   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28859   esac;;
28860 esac
28861 case $ac_abs_builddir in
28862 .) ac_abs_srcdir=$ac_srcdir;;
28863 *)
28864   case $ac_srcdir in
28865   .) ac_abs_srcdir=$ac_abs_builddir;;
28866   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28867   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28868   esac;;
28869 esac
28870 case $ac_abs_builddir in
28871 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28872 *)
28873   case $ac_top_srcdir in
28874   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28875   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28876   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28877   esac;;
28878 esac
28879
28880
28881   case $INSTALL in
28882   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28883   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28884   esac
28885
28886   if test x"$ac_file" != x-; then
28887     { echo "$as_me:$LINENO: creating $ac_file" >&5
28888 echo "$as_me: creating $ac_file" >&6;}
28889     rm -f "$ac_file"
28890   fi
28891   # Let's still pretend it is `configure' which instantiates (i.e., don't
28892   # use $as_me), people would be surprised to read:
28893   #    /* config.h.  Generated by config.status.  */
28894   if test x"$ac_file" = x-; then
28895     configure_input=
28896   else
28897     configure_input="$ac_file.  "
28898   fi
28899   configure_input=$configure_input"Generated from `echo $ac_file_in |
28900                                      sed 's,.*/,,'` by configure."
28901
28902   # First look for the input files in the build tree, otherwise in the
28903   # src tree.
28904   ac_file_inputs=`IFS=:
28905     for f in $ac_file_in; do
28906       case $f in
28907       -) echo $tmp/stdin ;;
28908       [\\/$]*)
28909          # Absolute (can't be DOS-style, as IFS=:)
28910          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28911 echo "$as_me: error: cannot find input file: $f" >&2;}
28912    { (exit 1); exit 1; }; }
28913          echo "$f";;
28914       *) # Relative
28915          if test -f "$f"; then
28916            # Build tree
28917            echo "$f"
28918          elif test -f "$srcdir/$f"; then
28919            # Source tree
28920            echo "$srcdir/$f"
28921          else
28922            # /dev/null tree
28923            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28924 echo "$as_me: error: cannot find input file: $f" >&2;}
28925    { (exit 1); exit 1; }; }
28926          fi;;
28927       esac
28928     done` || { (exit 1); exit 1; }
28929 _ACEOF
28930 cat >>$CONFIG_STATUS <<_ACEOF
28931   sed "$ac_vpsub
28932 $extrasub
28933 _ACEOF
28934 cat >>$CONFIG_STATUS <<\_ACEOF
28935 :t
28936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28937 s,@configure_input@,$configure_input,;t t
28938 s,@srcdir@,$ac_srcdir,;t t
28939 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28940 s,@top_srcdir@,$ac_top_srcdir,;t t
28941 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28942 s,@builddir@,$ac_builddir,;t t
28943 s,@abs_builddir@,$ac_abs_builddir,;t t
28944 s,@top_builddir@,$ac_top_builddir,;t t
28945 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28946 s,@INSTALL@,$ac_INSTALL,;t t
28947 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28948   rm -f $tmp/stdin
28949   if test x"$ac_file" != x-; then
28950     mv $tmp/out $ac_file
28951   else
28952     cat $tmp/out
28953     rm -f $tmp/out
28954   fi
28955
28956 done
28957 _ACEOF
28958 cat >>$CONFIG_STATUS <<\_ACEOF
28959
28960 #
28961 # CONFIG_HEADER section.
28962 #
28963
28964 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28965 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28966 #
28967 # ac_d sets the value in "#define NAME VALUE" lines.
28968 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
28969 ac_dB='[         ].*$,\1#\2'
28970 ac_dC=' '
28971 ac_dD=',;t'
28972 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28973 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
28974 ac_uB='$,\1#\2define\3'
28975 ac_uC=' '
28976 ac_uD=',;t'
28977
28978 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28979   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28980   case $ac_file in
28981   - | *:- | *:-:* ) # input from stdin
28982         cat >$tmp/stdin
28983         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28984         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28985   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28986         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28987   * )   ac_file_in=$ac_file.in ;;
28988   esac
28989
28990   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28991 echo "$as_me: creating $ac_file" >&6;}
28992
28993   # First look for the input files in the build tree, otherwise in the
28994   # src tree.
28995   ac_file_inputs=`IFS=:
28996     for f in $ac_file_in; do
28997       case $f in
28998       -) echo $tmp/stdin ;;
28999       [\\/$]*)
29000          # Absolute (can't be DOS-style, as IFS=:)
29001          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29002 echo "$as_me: error: cannot find input file: $f" >&2;}
29003    { (exit 1); exit 1; }; }
29004          # Do quote $f, to prevent DOS paths from being IFS'd.
29005          echo "$f";;
29006       *) # Relative
29007          if test -f "$f"; then
29008            # Build tree
29009            echo "$f"
29010          elif test -f "$srcdir/$f"; then
29011            # Source tree
29012            echo "$srcdir/$f"
29013          else
29014            # /dev/null tree
29015            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29016 echo "$as_me: error: cannot find input file: $f" >&2;}
29017    { (exit 1); exit 1; }; }
29018          fi;;
29019       esac
29020     done` || { (exit 1); exit 1; }
29021   # Remove the trailing spaces.
29022   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
29023
29024 _ACEOF
29025
29026 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29027 # `conftest.undefs', that substitutes the proper values into
29028 # config.h.in to produce config.h.  The first handles `#define'
29029 # templates, and the second `#undef' templates.
29030 # And first: Protect against being on the right side of a sed subst in
29031 # config.status.  Protect against being in an unquoted here document
29032 # in config.status.
29033 rm -f conftest.defines conftest.undefs
29034 # Using a here document instead of a string reduces the quoting nightmare.
29035 # Putting comments in sed scripts is not portable.
29036 #
29037 # `end' is used to avoid that the second main sed command (meant for
29038 # 0-ary CPP macros) applies to n-ary macro definitions.
29039 # See the Autoconf documentation for `clear'.
29040 cat >confdef2sed.sed <<\_ACEOF
29041 s/[\\&,]/\\&/g
29042 s,[\\$`],\\&,g
29043 t clear
29044 : clear
29045 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29046 t end
29047 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29048 : end
29049 _ACEOF
29050 # If some macros were called several times there might be several times
29051 # the same #defines, which is useless.  Nevertheless, we may not want to
29052 # sort them, since we want the *last* AC-DEFINE to be honored.
29053 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29054 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29055 rm -f confdef2sed.sed
29056
29057 # This sed command replaces #undef with comments.  This is necessary, for
29058 # example, in the case of _POSIX_SOURCE, which is predefined and required
29059 # on some systems where configure will not decide to define it.
29060 cat >>conftest.undefs <<\_ACEOF
29061 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29062 _ACEOF
29063
29064 # Break up conftest.defines because some shells have a limit on the size
29065 # of here documents, and old seds have small limits too (100 cmds).
29066 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29067 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29068 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29069 echo '  :' >>$CONFIG_STATUS
29070 rm -f conftest.tail
29071 while grep . conftest.defines >/dev/null
29072 do
29073   # Write a limited-size here document to $tmp/defines.sed.
29074   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29075   # Speed up: don't consider the non `#define' lines.
29076   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
29077   # Work around the forget-to-reset-the-flag bug.
29078   echo 't clr' >>$CONFIG_STATUS
29079   echo ': clr' >>$CONFIG_STATUS
29080   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29081   echo 'CEOF
29082   sed -f $tmp/defines.sed $tmp/in >$tmp/out
29083   rm -f $tmp/in
29084   mv $tmp/out $tmp/in
29085 ' >>$CONFIG_STATUS
29086   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29087   rm -f conftest.defines
29088   mv conftest.tail conftest.defines
29089 done
29090 rm -f conftest.defines
29091 echo '  fi # grep' >>$CONFIG_STATUS
29092 echo >>$CONFIG_STATUS
29093
29094 # Break up conftest.undefs because some shells have a limit on the size
29095 # of here documents, and old seds have small limits too (100 cmds).
29096 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
29097 rm -f conftest.tail
29098 while grep . conftest.undefs >/dev/null
29099 do
29100   # Write a limited-size here document to $tmp/undefs.sed.
29101   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29102   # Speed up: don't consider the non `#undef'
29103   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
29104   # Work around the forget-to-reset-the-flag bug.
29105   echo 't clr' >>$CONFIG_STATUS
29106   echo ': clr' >>$CONFIG_STATUS
29107   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29108   echo 'CEOF
29109   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29110   rm -f $tmp/in
29111   mv $tmp/out $tmp/in
29112 ' >>$CONFIG_STATUS
29113   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29114   rm -f conftest.undefs
29115   mv conftest.tail conftest.undefs
29116 done
29117 rm -f conftest.undefs
29118
29119 cat >>$CONFIG_STATUS <<\_ACEOF
29120   # Let's still pretend it is `configure' which instantiates (i.e., don't
29121   # use $as_me), people would be surprised to read:
29122   #    /* config.h.  Generated by config.status.  */
29123   if test x"$ac_file" = x-; then
29124     echo "/* Generated by configure.  */" >$tmp/config.h
29125   else
29126     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
29127   fi
29128   cat $tmp/in >>$tmp/config.h
29129   rm -f $tmp/in
29130   if test x"$ac_file" != x-; then
29131     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29132       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29133 echo "$as_me: $ac_file is unchanged" >&6;}
29134     else
29135       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29137          X"$ac_file" : 'X\(//\)[^/]' \| \
29138          X"$ac_file" : 'X\(//\)$' \| \
29139          X"$ac_file" : 'X\(/\)' \| \
29140          .     : '\(.\)' 2>/dev/null ||
29141 echo X"$ac_file" |
29142     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29143           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29144           /^X\(\/\/\)$/{ s//\1/; q; }
29145           /^X\(\/\).*/{ s//\1/; q; }
29146           s/.*/./; q'`
29147       { if $as_mkdir_p; then
29148     mkdir -p "$ac_dir"
29149   else
29150     as_dir="$ac_dir"
29151     as_dirs=
29152     while test ! -d "$as_dir"; do
29153       as_dirs="$as_dir $as_dirs"
29154       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29156          X"$as_dir" : 'X\(//\)[^/]' \| \
29157          X"$as_dir" : 'X\(//\)$' \| \
29158          X"$as_dir" : 'X\(/\)' \| \
29159          .     : '\(.\)' 2>/dev/null ||
29160 echo X"$as_dir" |
29161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29162           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29163           /^X\(\/\/\)$/{ s//\1/; q; }
29164           /^X\(\/\).*/{ s//\1/; q; }
29165           s/.*/./; q'`
29166     done
29167     test ! -n "$as_dirs" || mkdir $as_dirs
29168   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29169 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29170    { (exit 1); exit 1; }; }; }
29171
29172       rm -f $ac_file
29173       mv $tmp/config.h $ac_file
29174     fi
29175   else
29176     cat $tmp/config.h
29177     rm -f $tmp/config.h
29178   fi
29179 # Compute $ac_file's index in $config_headers.
29180 _am_stamp_count=1
29181 for _am_header in $config_headers :; do
29182   case $_am_header in
29183     $ac_file | $ac_file:* )
29184       break ;;
29185     * )
29186       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29187   esac
29188 done
29189 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29190 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29191          X$ac_file : 'X\(//\)[^/]' \| \
29192          X$ac_file : 'X\(//\)$' \| \
29193          X$ac_file : 'X\(/\)' \| \
29194          .     : '\(.\)' 2>/dev/null ||
29195 echo X$ac_file |
29196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29197           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29198           /^X\(\/\/\)$/{ s//\1/; q; }
29199           /^X\(\/\).*/{ s//\1/; q; }
29200           s/.*/./; q'`/stamp-h$_am_stamp_count
29201 done
29202 _ACEOF
29203 cat >>$CONFIG_STATUS <<\_ACEOF
29204
29205 #
29206 # CONFIG_COMMANDS section.
29207 #
29208 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29209   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29210   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29211   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29212 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29213          X"$ac_dest" : 'X\(//\)[^/]' \| \
29214          X"$ac_dest" : 'X\(//\)$' \| \
29215          X"$ac_dest" : 'X\(/\)' \| \
29216          .     : '\(.\)' 2>/dev/null ||
29217 echo X"$ac_dest" |
29218     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29219           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29220           /^X\(\/\/\)$/{ s//\1/; q; }
29221           /^X\(\/\).*/{ s//\1/; q; }
29222           s/.*/./; q'`
29223   { if $as_mkdir_p; then
29224     mkdir -p "$ac_dir"
29225   else
29226     as_dir="$ac_dir"
29227     as_dirs=
29228     while test ! -d "$as_dir"; do
29229       as_dirs="$as_dir $as_dirs"
29230       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29232          X"$as_dir" : 'X\(//\)[^/]' \| \
29233          X"$as_dir" : 'X\(//\)$' \| \
29234          X"$as_dir" : 'X\(/\)' \| \
29235          .     : '\(.\)' 2>/dev/null ||
29236 echo X"$as_dir" |
29237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29238           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29239           /^X\(\/\/\)$/{ s//\1/; q; }
29240           /^X\(\/\).*/{ s//\1/; q; }
29241           s/.*/./; q'`
29242     done
29243     test ! -n "$as_dirs" || mkdir $as_dirs
29244   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29245 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29246    { (exit 1); exit 1; }; }; }
29247
29248   ac_builddir=.
29249
29250 if test "$ac_dir" != .; then
29251   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29252   # A "../" for each directory in $ac_dir_suffix.
29253   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29254 else
29255   ac_dir_suffix= ac_top_builddir=
29256 fi
29257
29258 case $srcdir in
29259   .)  # No --srcdir option.  We are building in place.
29260     ac_srcdir=.
29261     if test -z "$ac_top_builddir"; then
29262        ac_top_srcdir=.
29263     else
29264        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29265     fi ;;
29266   [\\/]* | ?:[\\/]* )  # Absolute path.
29267     ac_srcdir=$srcdir$ac_dir_suffix;
29268     ac_top_srcdir=$srcdir ;;
29269   *) # Relative path.
29270     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29271     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29272 esac
29273
29274 # Do not use `cd foo && pwd` to compute absolute paths, because
29275 # the directories may not exist.
29276 case `pwd` in
29277 .) ac_abs_builddir="$ac_dir";;
29278 *)
29279   case "$ac_dir" in
29280   .) ac_abs_builddir=`pwd`;;
29281   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29282   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29283   esac;;
29284 esac
29285 case $ac_abs_builddir in
29286 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29287 *)
29288   case ${ac_top_builddir}. in
29289   .) ac_abs_top_builddir=$ac_abs_builddir;;
29290   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29291   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29292   esac;;
29293 esac
29294 case $ac_abs_builddir in
29295 .) ac_abs_srcdir=$ac_srcdir;;
29296 *)
29297   case $ac_srcdir in
29298   .) ac_abs_srcdir=$ac_abs_builddir;;
29299   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29300   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29301   esac;;
29302 esac
29303 case $ac_abs_builddir in
29304 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29305 *)
29306   case $ac_top_srcdir in
29307   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29308   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29309   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29310   esac;;
29311 esac
29312
29313
29314   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29315 echo "$as_me: executing $ac_dest commands" >&6;}
29316   case $ac_dest in
29317     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29318   # Strip MF so we end up with the name of the file.
29319   mf=`echo "$mf" | sed -e 's/:.*$//'`
29320   # Check whether this is an Automake generated Makefile or not.
29321   # We used to match only the files named `Makefile.in', but
29322   # some people rename them; so instead we look at the file content.
29323   # Grep'ing the first line is not enough: some people post-process
29324   # each Makefile.in and add a new line on top of each file to say so.
29325   # So let's grep whole file.
29326   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29327     dirpart=`(dirname "$mf") 2>/dev/null ||
29328 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29329          X"$mf" : 'X\(//\)[^/]' \| \
29330          X"$mf" : 'X\(//\)$' \| \
29331          X"$mf" : 'X\(/\)' \| \
29332          .     : '\(.\)' 2>/dev/null ||
29333 echo X"$mf" |
29334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29335           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29336           /^X\(\/\/\)$/{ s//\1/; q; }
29337           /^X\(\/\).*/{ s//\1/; q; }
29338           s/.*/./; q'`
29339   else
29340     continue
29341   fi
29342   # Extract the definition of DEPDIR, am__include, and am__quote
29343   # from the Makefile without running `make'.
29344   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29345   test -z "$DEPDIR" && continue
29346   am__include=`sed -n 's/^am__include = //p' < "$mf"`
29347   test -z "am__include" && continue
29348   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29349   # When using ansi2knr, U may be empty or an underscore; expand it
29350   U=`sed -n 's/^U = //p' < "$mf"`
29351   # Find all dependency output files, they are included files with
29352   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29353   # simplest approach to changing $(DEPDIR) to its actual value in the
29354   # expansion.
29355   for file in `sed -n "
29356     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29357        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29358     # Make sure the directory exists.
29359     test -f "$dirpart/$file" && continue
29360     fdir=`(dirname "$file") 2>/dev/null ||
29361 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29362          X"$file" : 'X\(//\)[^/]' \| \
29363          X"$file" : 'X\(//\)$' \| \
29364          X"$file" : 'X\(/\)' \| \
29365          .     : '\(.\)' 2>/dev/null ||
29366 echo X"$file" |
29367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29368           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29369           /^X\(\/\/\)$/{ s//\1/; q; }
29370           /^X\(\/\).*/{ s//\1/; q; }
29371           s/.*/./; q'`
29372     { if $as_mkdir_p; then
29373     mkdir -p $dirpart/$fdir
29374   else
29375     as_dir=$dirpart/$fdir
29376     as_dirs=
29377     while test ! -d "$as_dir"; do
29378       as_dirs="$as_dir $as_dirs"
29379       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29381          X"$as_dir" : 'X\(//\)[^/]' \| \
29382          X"$as_dir" : 'X\(//\)$' \| \
29383          X"$as_dir" : 'X\(/\)' \| \
29384          .     : '\(.\)' 2>/dev/null ||
29385 echo X"$as_dir" |
29386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29387           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29388           /^X\(\/\/\)$/{ s//\1/; q; }
29389           /^X\(\/\).*/{ s//\1/; q; }
29390           s/.*/./; q'`
29391     done
29392     test ! -n "$as_dirs" || mkdir $as_dirs
29393   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29394 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29395    { (exit 1); exit 1; }; }; }
29396
29397     # echo "creating $dirpart/$file"
29398     echo '# dummy' > "$dirpart/$file"
29399   done
29400 done
29401  ;;
29402   esac
29403 done
29404 _ACEOF
29405
29406 cat >>$CONFIG_STATUS <<\_ACEOF
29407
29408 { (exit 0); exit 0; }
29409 _ACEOF
29410 chmod +x $CONFIG_STATUS
29411 ac_clean_files=$ac_clean_files_save
29412
29413
29414 # configure is writing to config.log, and then calls config.status.
29415 # config.status does its own redirection, appending to config.log.
29416 # Unfortunately, on DOS this fails, as config.log is still kept open
29417 # by configure, so config.status won't be able to write to it; its
29418 # output is simply discarded.  So we exec the FD to /dev/null,
29419 # effectively closing config.log, so it can be properly (re)opened and
29420 # appended to by config.status.  When coming back to configure, we
29421 # need to make the FD available again.
29422 if test "$no_create" != yes; then
29423   ac_cs_success=:
29424   ac_config_status_args=
29425   test "$silent" = yes &&
29426     ac_config_status_args="$ac_config_status_args --quiet"
29427   exec 5>/dev/null
29428   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29429   exec 5>>config.log
29430   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29431   # would make configure fail if this is the last instruction.
29432   $ac_cs_success || { (exit 1); exit 1; }
29433 fi
29434
29435
29436 { echo "$as_me:$LINENO:
29437
29438 $PACKAGE_STRING
29439
29440 $FEATURES_TXT" >&5
29441 echo "$as_me:
29442
29443 $PACKAGE_STRING
29444
29445 $FEATURES_TXT" >&6;}