Port changes to release branch
[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.208.
4 #
5 # Report bugs to <enrico.scholz@informatik.tu-chemnitz.de>.
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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.208'
427 PACKAGE_STRING='util-vserver 0.30.208'
428 PACKAGE_BUGREPORT='enrico.scholz@informatik.tu-chemnitz.de'
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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 DOXYGEN XSLTP XSLTPROC HAVE_XSLTP_TRUE HAVE_XSLTP_FALSE HAVE_XSLTPROC_TRUE HAVE_XSLTPROC_FALSE LIB_DEBUG_CPPFLAGS ENSC_USE_EXPENSIVE_TESTS initrddir RELEASE_CPPFLAGS DIET DIETFLAGS USE_DIETLIBC_TRUE USE_DIETLIBC_FALSE USE_DIETLIBC_COMPAT_TRUE USE_DIETLIBC_COMPAT_FALSE ENSC_USE_DIETLIBC_TRUE ENSC_USE_DIETLIBC_FALSE ENSC_USE_GLIBC_TRUE ENSC_USE_GLIBC_FALSE ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL kernelincludedir vserverdir CVS2CL_TAG CVS2CL HAVE_CVS2CL_TRUE HAVE_CVS2CL_FALSE RCS2LOG HAVE_RCS2LOG_TRUE HAVE_RCS2LOG_FALSE ENSC_ENABLE_INTERNAL_HEADERS_TRUE ENSC_ENABLE_INTERNAL_HEADERS_FALSE ENSC_HAVE_BEECRYPT_TRUE ENSC_HAVE_BEECRYPT_FALSE ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
926 ac_env_CC_value=$CC
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_DIET_set=${DIET+set}
934 ac_env_DIET_value=$DIET
935 ac_cv_env_DIET_set=${DIET+set}
936 ac_cv_env_DIET_value=$DIET
937 ac_env_DIETFLAGS_set=${DIETFLAGS+set}
938 ac_env_DIETFLAGS_value=$DIETFLAGS
939 ac_cv_env_DIETFLAGS_set=${DIETFLAGS+set}
940 ac_cv_env_DIETFLAGS_value=$DIETFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
957
958 #
959 # Report the --help message.
960 #
961 if test "$ac_init_help" = "long"; then
962   # Omit some internal or obsolete options to make the list less imposing.
963   # This message is too long to be a string in the A/UX 3.1 sh.
964   cat <<_ACEOF
965 \`configure' configures util-vserver 0.30.208 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.208:";;
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   --disable-expensive-tests
1047                           disable tests which might be expensive on some
1048                           systems (default: no)
1049   --enable-release        enable release mode (default: no)
1050   --disable-dietlibc      do not use dietlibc resp. enforce its usage (with
1051                           --enable-dietlibc) (default: autodetect dietlibc)
1052   --disable-alternative-syscalls
1053                           do not use the alternative _syscallX macros provided
1054                           by Herbert Poetzl (default: use them)
1055   --enable-shared[=PKGS]
1056                           build shared libraries [default=yes]
1057   --enable-static[=PKGS]
1058                           build static libraries [default=yes]
1059   --enable-fast-install[=PKGS]
1060                           optimize for fast installation [default=yes]
1061   --disable-libtool-lock  avoid locking (might break parallel builds)
1062   --disable-internal-headers
1063                           use vserver specific headers from the kernel instead
1064                           of the shipped versions (default: no)
1065   --enable-apis=APIS      enable support for the given apis; possible values
1066                           are: legacy,compat,v11,v13,fscompat,net,ALL
1067                           (default: all except 'legacy')
1068
1069 Optional Packages:
1070   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1071   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1072   --with-initrddir <DIR>  use <DIR> as directory for SysV init-files (default:
1073                           $sysconfdir/init.d)
1074   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1075   --with-pic              try to use only PIC/non-PIC objects [default=use
1076                           both]
1077   --with-tags[=TAGS]
1078                           include additional configurations [automatic]
1079   --with-kerneldir=DIR    assume kernelsources in DIR (default:
1080                           /lib/modules/<current>/build)
1081   --with-vrootdir=DIR     place vservers under DIR (default: /vservers)
1082   --with-syscall=METHOD   call syscall(2) with the specified METHOD; valid
1083                           values are 'fast', 'traditional' and 'auto'
1084                           (default: auto)
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   DIET        The 'diet' wrapper (default: diet)
1096   DIETFLAGS   Flags passed to the 'diet' wrapper (default: -O)
1097   CPP         C preprocessor
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 <enrico.scholz@informatik.tu-chemnitz.de>.
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.208
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.208, 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.8"
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   # Keeping the `.' argument allows $(mkdir_p) to be used without
1733   # argument.  Indeed, we sometimes output rules like
1734   #   $(mkdir_p) $(somedir)
1735   # where $(somedir) is conditionally defined.
1736   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1737   # expensive solution, as it forces Make to start a sub-shell.)
1738   mkdir_p='mkdir -p -- .'
1739 else
1740   # On NextStep and OpenStep, the `mkdir' command does not
1741   # recognize any option.  It will interpret all options as
1742   # directories to create, and then abort because `.' already
1743   # exists.
1744   for d in ./-p ./--version;
1745   do
1746     test -d $d && rmdir $d
1747   done
1748   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1749   if test -f "$ac_aux_dir/mkinstalldirs"; then
1750     mkdir_p='$(mkinstalldirs)'
1751   else
1752     mkdir_p='$(install_sh) -d'
1753   fi
1754 fi
1755
1756 for ac_prog in gawk mawk nawk awk
1757 do
1758   # Extract the first word of "$ac_prog", so it can be a program name with args.
1759 set dummy $ac_prog; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_AWK+set}" = set; then
1763   echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765   if test -n "$AWK"; then
1766   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1770 do
1771   IFS=$as_save_IFS
1772   test -z "$as_dir" && as_dir=.
1773   for ac_exec_ext in '' $ac_executable_extensions; do
1774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775     ac_cv_prog_AWK="$ac_prog"
1776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777     break 2
1778   fi
1779 done
1780 done
1781
1782 fi
1783 fi
1784 AWK=$ac_cv_prog_AWK
1785 if test -n "$AWK"; then
1786   echo "$as_me:$LINENO: result: $AWK" >&5
1787 echo "${ECHO_T}$AWK" >&6
1788 else
1789   echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1791 fi
1792
1793   test -n "$AWK" && break
1794 done
1795
1796 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1797 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1798 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1799 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   cat >conftest.make <<\_ACEOF
1803 all:
1804         @echo 'ac_maketemp="$(MAKE)"'
1805 _ACEOF
1806 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1807 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1808 if test -n "$ac_maketemp"; then
1809   eval ac_cv_prog_make_${ac_make}_set=yes
1810 else
1811   eval ac_cv_prog_make_${ac_make}_set=no
1812 fi
1813 rm -f conftest.make
1814 fi
1815 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1816   echo "$as_me:$LINENO: result: yes" >&5
1817 echo "${ECHO_T}yes" >&6
1818   SET_MAKE=
1819 else
1820   echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1822   SET_MAKE="MAKE=${MAKE-make}"
1823 fi
1824
1825 rm -rf .tst 2>/dev/null
1826 mkdir .tst 2>/dev/null
1827 if test -d .tst; then
1828   am__leading_dot=.
1829 else
1830   am__leading_dot=_
1831 fi
1832 rmdir .tst 2>/dev/null
1833
1834 # test to see if srcdir already configured
1835 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1836    test -f $srcdir/config.status; then
1837   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1838 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1839    { (exit 1); exit 1; }; }
1840 fi
1841
1842 # test whether we have cygpath
1843 if test -z "$CYGPATH_W"; then
1844   if (cygpath --version) >/dev/null 2>/dev/null; then
1845     CYGPATH_W='cygpath -w'
1846   else
1847     CYGPATH_W=echo
1848   fi
1849 fi
1850
1851
1852 # Define the identity of the package.
1853  PACKAGE='util-vserver'
1854  VERSION='0.30.208'
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE "$PACKAGE"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define VERSION "$VERSION"
1864 _ACEOF
1865
1866 # Some tools Automake needs.
1867
1868 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1869
1870
1871 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1872
1873
1874 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1875
1876
1877 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1878
1879
1880 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1881
1882
1883 AMTAR=${AMTAR-"${am_missing_run}tar"}
1884
1885 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1886
1887 # Installed binaries are usually stripped using `strip' when the user
1888 # run `make install-strip'.  However `strip' might not be the right
1889 # tool to use in cross-compilation environments, therefore Automake
1890 # will honor the `STRIP' environment variable to overrule this program.
1891 if test "$cross_compiling" != no; then
1892   if test -n "$ac_tool_prefix"; then
1893   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1894 set dummy ${ac_tool_prefix}strip; ac_word=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_STRIP+set}" = set; then
1898   echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900   if test -n "$STRIP"; then
1901   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1902 else
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906   IFS=$as_save_IFS
1907   test -z "$as_dir" && as_dir=.
1908   for ac_exec_ext in '' $ac_executable_extensions; do
1909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912     break 2
1913   fi
1914 done
1915 done
1916
1917 fi
1918 fi
1919 STRIP=$ac_cv_prog_STRIP
1920 if test -n "$STRIP"; then
1921   echo "$as_me:$LINENO: result: $STRIP" >&5
1922 echo "${ECHO_T}$STRIP" >&6
1923 else
1924   echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1926 fi
1927
1928 fi
1929 if test -z "$ac_cv_prog_STRIP"; then
1930   ac_ct_STRIP=$STRIP
1931   # Extract the first word of "strip", so it can be a program name with args.
1932 set dummy strip; ac_word=$2
1933 echo "$as_me:$LINENO: checking for $ac_word" >&5
1934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1935 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1936   echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938   if test -n "$ac_ct_STRIP"; then
1939   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1940 else
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1943 do
1944   IFS=$as_save_IFS
1945   test -z "$as_dir" && as_dir=.
1946   for ac_exec_ext in '' $ac_executable_extensions; do
1947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948     ac_cv_prog_ac_ct_STRIP="strip"
1949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950     break 2
1951   fi
1952 done
1953 done
1954
1955   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1956 fi
1957 fi
1958 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1959 if test -n "$ac_ct_STRIP"; then
1960   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1961 echo "${ECHO_T}$ac_ct_STRIP" >&6
1962 else
1963   echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1965 fi
1966
1967   STRIP=$ac_ct_STRIP
1968 else
1969   STRIP="$ac_cv_prog_STRIP"
1970 fi
1971
1972 fi
1973 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1974
1975 # We need awk for the "check" target.  The system "awk" is bad on
1976 # some platforms.
1977
1978
1979
1980 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1981 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1982     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1983 if test "${enable_maintainer_mode+set}" = set; then
1984   enableval="$enable_maintainer_mode"
1985   USE_MAINTAINER_MODE=$enableval
1986 else
1987   USE_MAINTAINER_MODE=no
1988 fi;
1989   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1990 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1991
1992
1993 if test $USE_MAINTAINER_MODE = yes; then
1994   MAINTAINER_MODE_TRUE=
1995   MAINTAINER_MODE_FALSE='#'
1996 else
1997   MAINTAINER_MODE_TRUE='#'
1998   MAINTAINER_MODE_FALSE=
1999 fi
2000
2001   MAINT=$MAINTAINER_MODE_TRUE
2002
2003
2004
2005 # Make sure we can run config.sub.
2006 $ac_config_sub sun4 >/dev/null 2>&1 ||
2007   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2008 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2009    { (exit 1); exit 1; }; }
2010
2011 echo "$as_me:$LINENO: checking build system type" >&5
2012 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2013 if test "${ac_cv_build+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   ac_cv_build_alias=$build_alias
2017 test -z "$ac_cv_build_alias" &&
2018   ac_cv_build_alias=`$ac_config_guess`
2019 test -z "$ac_cv_build_alias" &&
2020   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2021 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2022    { (exit 1); exit 1; }; }
2023 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2024   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2025 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2026    { (exit 1); exit 1; }; }
2027
2028 fi
2029 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2030 echo "${ECHO_T}$ac_cv_build" >&6
2031 build=$ac_cv_build
2032 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2033 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2034 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2035
2036
2037 echo "$as_me:$LINENO: checking host system type" >&5
2038 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2039 if test "${ac_cv_host+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   ac_cv_host_alias=$host_alias
2043 test -z "$ac_cv_host_alias" &&
2044   ac_cv_host_alias=$ac_cv_build_alias
2045 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2046   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2047 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2048    { (exit 1); exit 1; }; }
2049
2050 fi
2051 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2052 echo "${ECHO_T}$ac_cv_host" >&6
2053 host=$ac_cv_host
2054 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2055 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2056 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2057
2058
2059
2060 GPG_KEY="0xFFD316AC53ACA43A!"
2061
2062
2063 # Checks for programs.
2064 ac_ext=cc
2065 ac_cpp='$CXXCPP $CPPFLAGS'
2066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2069 if test -n "$ac_tool_prefix"; then
2070   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2071   do
2072     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_CXX+set}" = set; then
2077   echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079   if test -n "$CXX"; then
2080   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085   IFS=$as_save_IFS
2086   test -z "$as_dir" && as_dir=.
2087   for ac_exec_ext in '' $ac_executable_extensions; do
2088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091     break 2
2092   fi
2093 done
2094 done
2095
2096 fi
2097 fi
2098 CXX=$ac_cv_prog_CXX
2099 if test -n "$CXX"; then
2100   echo "$as_me:$LINENO: result: $CXX" >&5
2101 echo "${ECHO_T}$CXX" >&6
2102 else
2103   echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6
2105 fi
2106
2107     test -n "$CXX" && break
2108   done
2109 fi
2110 if test -z "$CXX"; then
2111   ac_ct_CXX=$CXX
2112   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2113 do
2114   # Extract the first word of "$ac_prog", so it can be a program name with args.
2115 set dummy $ac_prog; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   if test -n "$ac_ct_CXX"; then
2122   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127   IFS=$as_save_IFS
2128   test -z "$as_dir" && as_dir=.
2129   for ac_exec_ext in '' $ac_executable_extensions; do
2130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131     ac_cv_prog_ac_ct_CXX="$ac_prog"
2132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133     break 2
2134   fi
2135 done
2136 done
2137
2138 fi
2139 fi
2140 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2141 if test -n "$ac_ct_CXX"; then
2142   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2143 echo "${ECHO_T}$ac_ct_CXX" >&6
2144 else
2145   echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2147 fi
2148
2149   test -n "$ac_ct_CXX" && break
2150 done
2151 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2152
2153   CXX=$ac_ct_CXX
2154 fi
2155
2156
2157 # Provide some information about the compiler.
2158 echo "$as_me:$LINENO:" \
2159      "checking for C++ compiler version" >&5
2160 ac_compiler=`set X $ac_compile; echo $2`
2161 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2162   (eval $ac_compiler --version </dev/null >&5) 2>&5
2163   ac_status=$?
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); }
2166 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2167   (eval $ac_compiler -v </dev/null >&5) 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }
2171 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2172   (eval $ac_compiler -V </dev/null >&5) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }
2176
2177 cat >conftest.$ac_ext <<_ACEOF
2178 /* confdefs.h.  */
2179 _ACEOF
2180 cat confdefs.h >>conftest.$ac_ext
2181 cat >>conftest.$ac_ext <<_ACEOF
2182 /* end confdefs.h.  */
2183
2184 int
2185 main ()
2186 {
2187
2188   ;
2189   return 0;
2190 }
2191 _ACEOF
2192 ac_clean_files_save=$ac_clean_files
2193 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2194 # Try to create an executable without -o first, disregard a.out.
2195 # It will help us diagnose broken compilers, and finding out an intuition
2196 # of exeext.
2197 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2198 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2199 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2200 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2201   (eval $ac_link_default) 2>&5
2202   ac_status=$?
2203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); }; then
2205   # Find the output, starting from the most likely.  This scheme is
2206 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2207 # resort.
2208
2209 # Be careful to initialize this variable, since it used to be cached.
2210 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2211 ac_cv_exeext=
2212 # b.out is created by i960 compilers.
2213 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2214 do
2215   test -f "$ac_file" || continue
2216   case $ac_file in
2217     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2218         ;;
2219     conftest.$ac_ext )
2220         # This is the source file.
2221         ;;
2222     [ab].out )
2223         # We found the default executable, but exeext='' is most
2224         # certainly right.
2225         break;;
2226     *.* )
2227         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2228         # FIXME: I believe we export ac_cv_exeext for Libtool,
2229         # but it would be cool to find out if it's true.  Does anybody
2230         # maintain Libtool? --akim.
2231         export ac_cv_exeext
2232         break;;
2233     * )
2234         break;;
2235   esac
2236 done
2237 else
2238   echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2240
2241 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: C++ compiler cannot create executables
2244 See \`config.log' for more details." >&2;}
2245    { (exit 77); exit 77; }; }
2246 fi
2247
2248 ac_exeext=$ac_cv_exeext
2249 echo "$as_me:$LINENO: result: $ac_file" >&5
2250 echo "${ECHO_T}$ac_file" >&6
2251
2252 # Check the compiler produces executables we can run.  If not, either
2253 # the compiler is broken, or we cross compile.
2254 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2255 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2257 # If not cross compiling, check that we can run a simple program.
2258 if test "$cross_compiling" != yes; then
2259   if { ac_try='./$ac_file'
2260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261   (eval $ac_try) 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; }; then
2265     cross_compiling=no
2266   else
2267     if test "$cross_compiling" = maybe; then
2268         cross_compiling=yes
2269     else
2270         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2271 If you meant to cross compile, use \`--host'.
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: cannot run C++ compiled programs.
2274 If you meant to cross compile, use \`--host'.
2275 See \`config.log' for more details." >&2;}
2276    { (exit 1); exit 1; }; }
2277     fi
2278   fi
2279 fi
2280 echo "$as_me:$LINENO: result: yes" >&5
2281 echo "${ECHO_T}yes" >&6
2282
2283 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2284 ac_clean_files=$ac_clean_files_save
2285 # Check the compiler produces executables we can run.  If not, either
2286 # the compiler is broken, or we cross compile.
2287 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2288 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2289 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2290 echo "${ECHO_T}$cross_compiling" >&6
2291
2292 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2293 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2295   (eval $ac_link) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }; then
2299   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2300 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2301 # work properly (i.e., refer to `conftest.exe'), while it won't with
2302 # `rm'.
2303 for ac_file in conftest.exe conftest conftest.*; do
2304   test -f "$ac_file" || continue
2305   case $ac_file in
2306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2307     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308           export ac_cv_exeext
2309           break;;
2310     * ) break;;
2311   esac
2312 done
2313 else
2314   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&2;}
2318    { (exit 1); exit 1; }; }
2319 fi
2320
2321 rm -f conftest$ac_cv_exeext
2322 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323 echo "${ECHO_T}$ac_cv_exeext" >&6
2324
2325 rm -f conftest.$ac_ext
2326 EXEEXT=$ac_cv_exeext
2327 ac_exeext=$EXEEXT
2328 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2330 if test "${ac_cv_objext+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   cat >conftest.$ac_ext <<_ACEOF
2334 /* confdefs.h.  */
2335 _ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h.  */
2339
2340 int
2341 main ()
2342 {
2343
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 rm -f conftest.o conftest.obj
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350   (eval $ac_compile) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); }; then
2354   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2355   case $ac_file in
2356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2357     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2358        break;;
2359   esac
2360 done
2361 else
2362   echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2366 See \`config.log' for more details." >&5
2367 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2368 See \`config.log' for more details." >&2;}
2369    { (exit 1); exit 1; }; }
2370 fi
2371
2372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2373 fi
2374 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2375 echo "${ECHO_T}$ac_cv_objext" >&6
2376 OBJEXT=$ac_cv_objext
2377 ac_objext=$OBJEXT
2378 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2379 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2380 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2381   echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383   cat >conftest.$ac_ext <<_ACEOF
2384 /* confdefs.h.  */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h.  */
2389
2390 int
2391 main ()
2392 {
2393 #ifndef __GNUC__
2394        choke me
2395 #endif
2396
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403   (eval $ac_compile) 2>conftest.er1
2404   ac_status=$?
2405   grep -v '^ *+' conftest.er1 >conftest.err
2406   rm -f conftest.er1
2407   cat conftest.err >&5
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); } &&
2410          { ac_try='test -z "$ac_cxx_werror_flag"
2411                          || test ! -s conftest.err'
2412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413   (eval $ac_try) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; } &&
2417          { ac_try='test -s conftest.$ac_objext'
2418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419   (eval $ac_try) 2>&5
2420   ac_status=$?
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); }; }; then
2423   ac_compiler_gnu=yes
2424 else
2425   echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2427
2428 ac_compiler_gnu=no
2429 fi
2430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2432
2433 fi
2434 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2435 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2436 GXX=`test $ac_compiler_gnu = yes && echo yes`
2437 ac_test_CXXFLAGS=${CXXFLAGS+set}
2438 ac_save_CXXFLAGS=$CXXFLAGS
2439 CXXFLAGS="-g"
2440 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2441 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2442 if test "${ac_cv_prog_cxx_g+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h.  */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h.  */
2451
2452 int
2453 main ()
2454 {
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 rm -f conftest.$ac_objext
2461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462   (eval $ac_compile) 2>conftest.er1
2463   ac_status=$?
2464   grep -v '^ *+' conftest.er1 >conftest.err
2465   rm -f conftest.er1
2466   cat conftest.err >&5
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); } &&
2469          { ac_try='test -z "$ac_cxx_werror_flag"
2470                          || test ! -s conftest.err'
2471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472   (eval $ac_try) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }; } &&
2476          { ac_try='test -s conftest.$ac_objext'
2477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478   (eval $ac_try) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; }; then
2482   ac_cv_prog_cxx_g=yes
2483 else
2484   echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_cv_prog_cxx_g=no
2488 fi
2489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2490 fi
2491 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2492 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2493 if test "$ac_test_CXXFLAGS" = set; then
2494   CXXFLAGS=$ac_save_CXXFLAGS
2495 elif test $ac_cv_prog_cxx_g = yes; then
2496   if test "$GXX" = yes; then
2497     CXXFLAGS="-g -O2"
2498   else
2499     CXXFLAGS="-g"
2500   fi
2501 else
2502   if test "$GXX" = yes; then
2503     CXXFLAGS="-O2"
2504   else
2505     CXXFLAGS=
2506   fi
2507 fi
2508 for ac_declaration in \
2509    '' \
2510    'extern "C" void std::exit (int) throw (); using std::exit;' \
2511    'extern "C" void std::exit (int); using std::exit;' \
2512    'extern "C" void exit (int) throw ();' \
2513    'extern "C" void exit (int);' \
2514    'void exit (int);'
2515 do
2516   cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h.  */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h.  */
2522 $ac_declaration
2523 #include <stdlib.h>
2524 int
2525 main ()
2526 {
2527 exit (42);
2528   ;
2529   return 0;
2530 }
2531 _ACEOF
2532 rm -f conftest.$ac_objext
2533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534   (eval $ac_compile) 2>conftest.er1
2535   ac_status=$?
2536   grep -v '^ *+' conftest.er1 >conftest.err
2537   rm -f conftest.er1
2538   cat conftest.err >&5
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); } &&
2541          { ac_try='test -z "$ac_cxx_werror_flag"
2542                          || test ! -s conftest.err'
2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544   (eval $ac_try) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; } &&
2548          { ac_try='test -s conftest.$ac_objext'
2549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550   (eval $ac_try) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }; }; then
2554   :
2555 else
2556   echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558
2559 continue
2560 fi
2561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2562   cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h.  */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h.  */
2568 $ac_declaration
2569 int
2570 main ()
2571 {
2572 exit (42);
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579   (eval $ac_compile) 2>conftest.er1
2580   ac_status=$?
2581   grep -v '^ *+' conftest.er1 >conftest.err
2582   rm -f conftest.er1
2583   cat conftest.err >&5
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); } &&
2586          { ac_try='test -z "$ac_cxx_werror_flag"
2587                          || test ! -s conftest.err'
2588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589   (eval $ac_try) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }; } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   break
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 fi
2605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2606 done
2607 rm -f conftest*
2608 if test -n "$ac_declaration"; then
2609   echo '#ifdef __cplusplus' >>confdefs.h
2610   echo $ac_declaration      >>confdefs.h
2611   echo '#endif'             >>confdefs.h
2612 fi
2613
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 DEPDIR="${am__leading_dot}deps"
2620
2621           ac_config_commands="$ac_config_commands depfiles"
2622
2623
2624 am_make=${MAKE-make}
2625 cat > confinc << 'END'
2626 am__doit:
2627         @echo done
2628 .PHONY: am__doit
2629 END
2630 # If we don't find an include directive, just comment out the code.
2631 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2632 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2633 am__include="#"
2634 am__quote=
2635 _am_result=none
2636 # First try GNU make style include.
2637 echo "include confinc" > confmf
2638 # We grep out `Entering directory' and `Leaving directory'
2639 # messages which can occur if `w' ends up in MAKEFLAGS.
2640 # In particular we don't look at `^make:' because GNU make might
2641 # be invoked under some other name (usually "gmake"), in which
2642 # case it prints its new name instead of `make'.
2643 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2644    am__include=include
2645    am__quote=
2646    _am_result=GNU
2647 fi
2648 # Now try BSD make style include.
2649 if test "$am__include" = "#"; then
2650    echo '.include "confinc"' > confmf
2651    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2652       am__include=.include
2653       am__quote="\""
2654       _am_result=BSD
2655    fi
2656 fi
2657
2658
2659 echo "$as_me:$LINENO: result: $_am_result" >&5
2660 echo "${ECHO_T}$_am_result" >&6
2661 rm -f confinc confmf
2662
2663 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2664 if test "${enable_dependency_tracking+set}" = set; then
2665   enableval="$enable_dependency_tracking"
2666
2667 fi;
2668 if test "x$enable_dependency_tracking" != xno; then
2669   am_depcomp="$ac_aux_dir/depcomp"
2670   AMDEPBACKSLASH='\'
2671 fi
2672
2673
2674 if test "x$enable_dependency_tracking" != xno; then
2675   AMDEP_TRUE=
2676   AMDEP_FALSE='#'
2677 else
2678   AMDEP_TRUE='#'
2679   AMDEP_FALSE=
2680 fi
2681
2682
2683
2684
2685 depcc="$CXX"  am_compiler_list=
2686
2687 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2688 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2689 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2690   echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2693   # We make a subdir and do the tests there.  Otherwise we can end up
2694   # making bogus files that we don't know about and never remove.  For
2695   # instance it was reported that on HP-UX the gcc test will end up
2696   # making a dummy file named `D' -- because `-MD' means `put the output
2697   # in D'.
2698   mkdir conftest.dir
2699   # Copy depcomp to subdir because otherwise we won't find it if we're
2700   # using a relative directory.
2701   cp "$am_depcomp" conftest.dir
2702   cd conftest.dir
2703   # We will build objects and dependencies in a subdirectory because
2704   # it helps to detect inapplicable dependency modes.  For instance
2705   # both Tru64's cc and ICC support -MD to output dependencies as a
2706   # side effect of compilation, but ICC will put the dependencies in
2707   # the current directory while Tru64 will put them in the object
2708   # directory.
2709   mkdir sub
2710
2711   am_cv_CXX_dependencies_compiler_type=none
2712   if test "$am_compiler_list" = ""; then
2713      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2714   fi
2715   for depmode in $am_compiler_list; do
2716     # Setup a source with many dependencies, because some compilers
2717     # like to wrap large dependency lists on column 80 (with \), and
2718     # we should not choose a depcomp mode which is confused by this.
2719     #
2720     # We need to recreate these files for each test, as the compiler may
2721     # overwrite some of them when testing with obscure command lines.
2722     # This happens at least with the AIX C compiler.
2723     : > sub/conftest.c
2724     for i in 1 2 3 4 5 6; do
2725       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2726       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2727       # Solaris 8's {/usr,}/bin/sh.
2728       touch sub/conftst$i.h
2729     done
2730     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2731
2732     case $depmode in
2733     nosideeffect)
2734       # after this tag, mechanisms are not by side-effect, so they'll
2735       # only be used when explicitly requested
2736       if test "x$enable_dependency_tracking" = xyes; then
2737         continue
2738       else
2739         break
2740       fi
2741       ;;
2742     none) break ;;
2743     esac
2744     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2745     # mode.  It turns out that the SunPro C++ compiler does not properly
2746     # handle `-M -o', and we need to detect this.
2747     if depmode=$depmode \
2748        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2749        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2750        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2751          >/dev/null 2>conftest.err &&
2752        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2753        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2754        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2755       # icc doesn't choke on unknown options, it will just issue warnings
2756       # (even with -Werror).  So we grep stderr for any message
2757       # that says an option was ignored.
2758       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2759         am_cv_CXX_dependencies_compiler_type=$depmode
2760         break
2761       fi
2762     fi
2763   done
2764
2765   cd ..
2766   rm -rf conftest.dir
2767 else
2768   am_cv_CXX_dependencies_compiler_type=none
2769 fi
2770
2771 fi
2772 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2773 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2774 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2775
2776
2777
2778 if
2779   test "x$enable_dependency_tracking" != xno \
2780   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2781   am__fastdepCXX_TRUE=
2782   am__fastdepCXX_FALSE='#'
2783 else
2784   am__fastdepCXX_TRUE='#'
2785   am__fastdepCXX_FALSE=
2786 fi
2787
2788
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 if test -n "$ac_tool_prefix"; then
2795   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2797 echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799 if test "${ac_cv_prog_CC+set}" = set; then
2800   echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802   if test -n "$CC"; then
2803   ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810   for ac_exec_ext in '' $ac_executable_extensions; do
2811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817 done
2818
2819 fi
2820 fi
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823   echo "$as_me:$LINENO: result: $CC" >&5
2824 echo "${ECHO_T}$CC" >&6
2825 else
2826   echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2828 fi
2829
2830 fi
2831 if test -z "$ac_cv_prog_CC"; then
2832   ac_ct_CC=$CC
2833   # Extract the first word of "gcc", so it can be a program name with args.
2834 set dummy gcc; ac_word=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2838   echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840   if test -n "$ac_ct_CC"; then
2841   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848   for ac_exec_ext in '' $ac_executable_extensions; do
2849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850     ac_cv_prog_ac_ct_CC="gcc"
2851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852     break 2
2853   fi
2854 done
2855 done
2856
2857 fi
2858 fi
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2862 echo "${ECHO_T}$ac_ct_CC" >&6
2863 else
2864   echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6
2866 fi
2867
2868   CC=$ac_ct_CC
2869 else
2870   CC="$ac_cv_prog_CC"
2871 fi
2872
2873 if test -z "$CC"; then
2874   if test -n "$ac_tool_prefix"; then
2875   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}cc; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_CC+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$CC"; then
2883   ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892     ac_cv_prog_CC="${ac_tool_prefix}cc"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898
2899 fi
2900 fi
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903   echo "$as_me:$LINENO: result: $CC" >&5
2904 echo "${ECHO_T}$CC" >&6
2905 else
2906   echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2908 fi
2909
2910 fi
2911 if test -z "$ac_cv_prog_CC"; then
2912   ac_ct_CC=$CC
2913   # Extract the first word of "cc", so it can be a program name with args.
2914 set dummy cc; ac_word=$2
2915 echo "$as_me:$LINENO: checking for $ac_word" >&5
2916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920   if test -n "$ac_ct_CC"; then
2921   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926   IFS=$as_save_IFS
2927   test -z "$as_dir" && as_dir=.
2928   for ac_exec_ext in '' $ac_executable_extensions; do
2929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930     ac_cv_prog_ac_ct_CC="cc"
2931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932     break 2
2933   fi
2934 done
2935 done
2936
2937 fi
2938 fi
2939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2940 if test -n "$ac_ct_CC"; then
2941   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2942 echo "${ECHO_T}$ac_ct_CC" >&6
2943 else
2944   echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2946 fi
2947
2948   CC=$ac_ct_CC
2949 else
2950   CC="$ac_cv_prog_CC"
2951 fi
2952
2953 fi
2954 if test -z "$CC"; then
2955   # Extract the first word of "cc", so it can be a program name with args.
2956 set dummy cc; ac_word=$2
2957 echo "$as_me:$LINENO: checking for $ac_word" >&5
2958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2959 if test "${ac_cv_prog_CC+set}" = set; then
2960   echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962   if test -n "$CC"; then
2963   ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965   ac_prog_rejected=no
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969   IFS=$as_save_IFS
2970   test -z "$as_dir" && as_dir=.
2971   for ac_exec_ext in '' $ac_executable_extensions; do
2972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2974        ac_prog_rejected=yes
2975        continue
2976      fi
2977     ac_cv_prog_CC="cc"
2978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979     break 2
2980   fi
2981 done
2982 done
2983
2984 if test $ac_prog_rejected = yes; then
2985   # We found a bogon in the path, so make sure we never use it.
2986   set dummy $ac_cv_prog_CC
2987   shift
2988   if test $# != 0; then
2989     # We chose a different compiler from the bogus one.
2990     # However, it has the same basename, so the bogon will be chosen
2991     # first if we set CC to just the basename; use the full file name.
2992     shift
2993     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2994   fi
2995 fi
2996 fi
2997 fi
2998 CC=$ac_cv_prog_CC
2999 if test -n "$CC"; then
3000   echo "$as_me:$LINENO: result: $CC" >&5
3001 echo "${ECHO_T}$CC" >&6
3002 else
3003   echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3005 fi
3006
3007 fi
3008 if test -z "$CC"; then
3009   if test -n "$ac_tool_prefix"; then
3010   for ac_prog in cl
3011   do
3012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3014 echo "$as_me:$LINENO: checking for $ac_word" >&5
3015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3016 if test "${ac_cv_prog_CC+set}" = set; then
3017   echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019   if test -n "$CC"; then
3020   ac_cv_prog_CC="$CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025   IFS=$as_save_IFS
3026   test -z "$as_dir" && as_dir=.
3027   for ac_exec_ext in '' $ac_executable_extensions; do
3028   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3029     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031     break 2
3032   fi
3033 done
3034 done
3035
3036 fi
3037 fi
3038 CC=$ac_cv_prog_CC
3039 if test -n "$CC"; then
3040   echo "$as_me:$LINENO: result: $CC" >&5
3041 echo "${ECHO_T}$CC" >&6
3042 else
3043   echo "$as_me:$LINENO: result: no" >&5
3044 echo "${ECHO_T}no" >&6
3045 fi
3046
3047     test -n "$CC" && break
3048   done
3049 fi
3050 if test -z "$CC"; then
3051   ac_ct_CC=$CC
3052   for ac_prog in cl
3053 do
3054   # Extract the first word of "$ac_prog", so it can be a program name with args.
3055 set dummy $ac_prog; ac_word=$2
3056 echo "$as_me:$LINENO: checking for $ac_word" >&5
3057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061   if test -n "$ac_ct_CC"; then
3062   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069   for ac_exec_ext in '' $ac_executable_extensions; do
3070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071     ac_cv_prog_ac_ct_CC="$ac_prog"
3072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073     break 2
3074   fi
3075 done
3076 done
3077
3078 fi
3079 fi
3080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081 if test -n "$ac_ct_CC"; then
3082   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3083 echo "${ECHO_T}$ac_ct_CC" >&6
3084 else
3085   echo "$as_me:$LINENO: result: no" >&5
3086 echo "${ECHO_T}no" >&6
3087 fi
3088
3089   test -n "$ac_ct_CC" && break
3090 done
3091
3092   CC=$ac_ct_CC
3093 fi
3094
3095 fi
3096
3097
3098 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3099 See \`config.log' for more details." >&5
3100 echo "$as_me: error: no acceptable C compiler found in \$PATH
3101 See \`config.log' for more details." >&2;}
3102    { (exit 1); exit 1; }; }
3103
3104 # Provide some information about the compiler.
3105 echo "$as_me:$LINENO:" \
3106      "checking for C compiler version" >&5
3107 ac_compiler=`set X $ac_compile; echo $2`
3108 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3109   (eval $ac_compiler --version </dev/null >&5) 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }
3113 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3114   (eval $ac_compiler -v </dev/null >&5) 2>&5
3115   ac_status=$?
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); }
3118 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3119   (eval $ac_compiler -V </dev/null >&5) 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }
3123
3124 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3125 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3126 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3127   echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129   cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h.  */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h.  */
3135
3136 int
3137 main ()
3138 {
3139 #ifndef __GNUC__
3140        choke me
3141 #endif
3142
3143   ;
3144   return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149   (eval $ac_compile) 2>conftest.er1
3150   ac_status=$?
3151   grep -v '^ *+' conftest.er1 >conftest.err
3152   rm -f conftest.er1
3153   cat conftest.err >&5
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); } &&
3156          { ac_try='test -z "$ac_c_werror_flag"
3157                          || test ! -s conftest.err'
3158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159   (eval $ac_try) 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }; } &&
3163          { ac_try='test -s conftest.$ac_objext'
3164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165   (eval $ac_try) 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; }; then
3169   ac_compiler_gnu=yes
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 ac_compiler_gnu=no
3175 fi
3176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3177 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3178
3179 fi
3180 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3181 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3182 GCC=`test $ac_compiler_gnu = yes && echo yes`
3183 ac_test_CFLAGS=${CFLAGS+set}
3184 ac_save_CFLAGS=$CFLAGS
3185 CFLAGS="-g"
3186 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3187 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3188 if test "${ac_cv_prog_cc_g+set}" = set; then
3189   echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191   cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197
3198 int
3199 main ()
3200 {
3201
3202   ;
3203   return 0;
3204 }
3205 _ACEOF
3206 rm -f conftest.$ac_objext
3207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208   (eval $ac_compile) 2>conftest.er1
3209   ac_status=$?
3210   grep -v '^ *+' conftest.er1 >conftest.err
3211   rm -f conftest.er1
3212   cat conftest.err >&5
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); } &&
3215          { ac_try='test -z "$ac_c_werror_flag"
3216                          || test ! -s conftest.err'
3217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218   (eval $ac_try) 2>&5
3219   ac_status=$?
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); }; } &&
3222          { ac_try='test -s conftest.$ac_objext'
3223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224   (eval $ac_try) 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); }; }; then
3228   ac_cv_prog_cc_g=yes
3229 else
3230   echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3232
3233 ac_cv_prog_cc_g=no
3234 fi
3235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3236 fi
3237 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3239 if test "$ac_test_CFLAGS" = set; then
3240   CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242   if test "$GCC" = yes; then
3243     CFLAGS="-g -O2"
3244   else
3245     CFLAGS="-g"
3246   fi
3247 else
3248   if test "$GCC" = yes; then
3249     CFLAGS="-O2"
3250   else
3251     CFLAGS=
3252   fi
3253 fi
3254 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3255 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3256 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   ac_cv_prog_cc_stdc=no
3260 ac_save_CC=$CC
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #include <stdarg.h>
3268 #include <stdio.h>
3269 #include <sys/types.h>
3270 #include <sys/stat.h>
3271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3272 struct buf { int x; };
3273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274 static char *e (p, i)
3275      char **p;
3276      int i;
3277 {
3278   return p[i];
3279 }
3280 static char *f (char * (*g) (char **, int), char **p, ...)
3281 {
3282   char *s;
3283   va_list v;
3284   va_start (v,p);
3285   s = g (p, va_arg (v,int));
3286   va_end (v);
3287   return s;
3288 }
3289
3290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3291    function prototypes and stuff, but not '\xHH' hex character constants.
3292    These don't provoke an error unfortunately, instead are silently treated
3293    as 'x'.  The following induces an error, until -std1 is added to get
3294    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3295    array size at least.  It's necessary to write '\x00'==0 to get something
3296    that's true only with -std1.  */
3297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 int argc;
3304 char **argv;
3305 int
3306 main ()
3307 {
3308 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3309   ;
3310   return 0;
3311 }
3312 _ACEOF
3313 # Don't try gcc -ansi; that turns off useful extensions and
3314 # breaks some systems' header files.
3315 # AIX                   -qlanglvl=ansi
3316 # Ultrix and OSF/1      -std1
3317 # HP-UX 10.20 and later -Ae
3318 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3319 # SVR4                  -Xc -D__EXTENSIONS__
3320 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321 do
3322   CC="$ac_save_CC $ac_arg"
3323   rm -f conftest.$ac_objext
3324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325   (eval $ac_compile) 2>conftest.er1
3326   ac_status=$?
3327   grep -v '^ *+' conftest.er1 >conftest.err
3328   rm -f conftest.er1
3329   cat conftest.err >&5
3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); } &&
3332          { ac_try='test -z "$ac_c_werror_flag"
3333                          || test ! -s conftest.err'
3334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335   (eval $ac_try) 2>&5
3336   ac_status=$?
3337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); }; } &&
3339          { ac_try='test -s conftest.$ac_objext'
3340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341   (eval $ac_try) 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; }; then
3345   ac_cv_prog_cc_stdc=$ac_arg
3346 break
3347 else
3348   echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3350
3351 fi
3352 rm -f conftest.err conftest.$ac_objext
3353 done
3354 rm -f conftest.$ac_ext conftest.$ac_objext
3355 CC=$ac_save_CC
3356
3357 fi
3358
3359 case "x$ac_cv_prog_cc_stdc" in
3360   x|xno)
3361     echo "$as_me:$LINENO: result: none needed" >&5
3362 echo "${ECHO_T}none needed" >&6 ;;
3363   *)
3364     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3365 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3366     CC="$CC $ac_cv_prog_cc_stdc" ;;
3367 esac
3368
3369 # Some people use a C++ compiler to compile C.  Since we use `exit',
3370 # in C++ we need to declare it.  In case someone uses the same compiler
3371 # for both compiling C and C++ we need to have the C++ compiler decide
3372 # the declaration of exit, since it's the most demanding environment.
3373 cat >conftest.$ac_ext <<_ACEOF
3374 #ifndef __cplusplus
3375   choke me
3376 #endif
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380   (eval $ac_compile) 2>conftest.er1
3381   ac_status=$?
3382   grep -v '^ *+' conftest.er1 >conftest.err
3383   rm -f conftest.er1
3384   cat conftest.err >&5
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); } &&
3387          { ac_try='test -z "$ac_c_werror_flag"
3388                          || test ! -s conftest.err'
3389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390   (eval $ac_try) 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }; } &&
3394          { ac_try='test -s conftest.$ac_objext'
3395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396   (eval $ac_try) 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; }; then
3400   for ac_declaration in \
3401    '' \
3402    'extern "C" void std::exit (int) throw (); using std::exit;' \
3403    'extern "C" void std::exit (int); using std::exit;' \
3404    'extern "C" void exit (int) throw ();' \
3405    'extern "C" void exit (int);' \
3406    'void exit (int);'
3407 do
3408   cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414 $ac_declaration
3415 #include <stdlib.h>
3416 int
3417 main ()
3418 {
3419 exit (42);
3420   ;
3421   return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426   (eval $ac_compile) 2>conftest.er1
3427   ac_status=$?
3428   grep -v '^ *+' conftest.er1 >conftest.err
3429   rm -f conftest.er1
3430   cat conftest.err >&5
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); } &&
3433          { ac_try='test -z "$ac_c_werror_flag"
3434                          || test ! -s conftest.err'
3435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436   (eval $ac_try) 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); }; } &&
3440          { ac_try='test -s conftest.$ac_objext'
3441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442   (eval $ac_try) 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }; }; then
3446   :
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 continue
3452 fi
3453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454   cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h.  */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h.  */
3460 $ac_declaration
3461 int
3462 main ()
3463 {
3464 exit (42);
3465   ;
3466   return 0;
3467 }
3468 _ACEOF
3469 rm -f conftest.$ac_objext
3470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3471   (eval $ac_compile) 2>conftest.er1
3472   ac_status=$?
3473   grep -v '^ *+' conftest.er1 >conftest.err
3474   rm -f conftest.er1
3475   cat conftest.err >&5
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); } &&
3478          { ac_try='test -z "$ac_c_werror_flag"
3479                          || test ! -s conftest.err'
3480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481   (eval $ac_try) 2>&5
3482   ac_status=$?
3483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); }; } &&
3485          { ac_try='test -s conftest.$ac_objext'
3486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487   (eval $ac_try) 2>&5
3488   ac_status=$?
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); }; }; then
3491   break
3492 else
3493   echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496 fi
3497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3498 done
3499 rm -f conftest*
3500 if test -n "$ac_declaration"; then
3501   echo '#ifdef __cplusplus' >>confdefs.h
3502   echo $ac_declaration      >>confdefs.h
3503   echo '#endif'             >>confdefs.h
3504 fi
3505
3506 else
3507   echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 fi
3511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517
3518 depcc="$CC"   am_compiler_list=
3519
3520 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3521 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3522 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3523   echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3526   # We make a subdir and do the tests there.  Otherwise we can end up
3527   # making bogus files that we don't know about and never remove.  For
3528   # instance it was reported that on HP-UX the gcc test will end up
3529   # making a dummy file named `D' -- because `-MD' means `put the output
3530   # in D'.
3531   mkdir conftest.dir
3532   # Copy depcomp to subdir because otherwise we won't find it if we're
3533   # using a relative directory.
3534   cp "$am_depcomp" conftest.dir
3535   cd conftest.dir
3536   # We will build objects and dependencies in a subdirectory because
3537   # it helps to detect inapplicable dependency modes.  For instance
3538   # both Tru64's cc and ICC support -MD to output dependencies as a
3539   # side effect of compilation, but ICC will put the dependencies in
3540   # the current directory while Tru64 will put them in the object
3541   # directory.
3542   mkdir sub
3543
3544   am_cv_CC_dependencies_compiler_type=none
3545   if test "$am_compiler_list" = ""; then
3546      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3547   fi
3548   for depmode in $am_compiler_list; do
3549     # Setup a source with many dependencies, because some compilers
3550     # like to wrap large dependency lists on column 80 (with \), and
3551     # we should not choose a depcomp mode which is confused by this.
3552     #
3553     # We need to recreate these files for each test, as the compiler may
3554     # overwrite some of them when testing with obscure command lines.
3555     # This happens at least with the AIX C compiler.
3556     : > sub/conftest.c
3557     for i in 1 2 3 4 5 6; do
3558       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3559       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3560       # Solaris 8's {/usr,}/bin/sh.
3561       touch sub/conftst$i.h
3562     done
3563     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3564
3565     case $depmode in
3566     nosideeffect)
3567       # after this tag, mechanisms are not by side-effect, so they'll
3568       # only be used when explicitly requested
3569       if test "x$enable_dependency_tracking" = xyes; then
3570         continue
3571       else
3572         break
3573       fi
3574       ;;
3575     none) break ;;
3576     esac
3577     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3578     # mode.  It turns out that the SunPro C++ compiler does not properly
3579     # handle `-M -o', and we need to detect this.
3580     if depmode=$depmode \
3581        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3582        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3583        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3584          >/dev/null 2>conftest.err &&
3585        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3586        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3587        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3588       # icc doesn't choke on unknown options, it will just issue warnings
3589       # (even with -Werror).  So we grep stderr for any message
3590       # that says an option was ignored.
3591       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3592         am_cv_CC_dependencies_compiler_type=$depmode
3593         break
3594       fi
3595     fi
3596   done
3597
3598   cd ..
3599   rm -rf conftest.dir
3600 else
3601   am_cv_CC_dependencies_compiler_type=none
3602 fi
3603
3604 fi
3605 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3606 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3607 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3608
3609
3610
3611 if
3612   test "x$enable_dependency_tracking" != xno \
3613   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3614   am__fastdepCC_TRUE=
3615   am__fastdepCC_FALSE='#'
3616 else
3617   am__fastdepCC_TRUE='#'
3618   am__fastdepCC_FALSE=
3619 fi
3620
3621
3622 # Find a good install program.  We prefer a C program (faster),
3623 # so one script is as good as another.  But avoid the broken or
3624 # incompatible versions:
3625 # SysV /etc/install, /usr/sbin/install
3626 # SunOS /usr/etc/install
3627 # IRIX /sbin/install
3628 # AIX /bin/install
3629 # AmigaOS /C/install, which installs bootblocks on floppy discs
3630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3633 # OS/2's system install, which has a completely different semantic
3634 # ./install, which can be erroneously created by make from ./install.sh.
3635 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3636 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3637 if test -z "$INSTALL"; then
3638 if test "${ac_cv_path_install+set}" = set; then
3639   echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644   IFS=$as_save_IFS
3645   test -z "$as_dir" && as_dir=.
3646   # Account for people who put trailing slashes in PATH elements.
3647 case $as_dir/ in
3648   ./ | .// | /cC/* | \
3649   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3650   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3651   /usr/ucb/* ) ;;
3652   *)
3653     # OSF1 and SCO ODT 3.0 have their own names for install.
3654     # Don't use installbsd from OSF since it installs stuff as root
3655     # by default.
3656     for ac_prog in ginstall scoinst install; do
3657       for ac_exec_ext in '' $ac_executable_extensions; do
3658         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3659           if test $ac_prog = install &&
3660             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3661             # AIX install.  It has an incompatible calling convention.
3662             :
3663           elif test $ac_prog = install &&
3664             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3665             # program-specific install script used by HP pwplus--don't use.
3666             :
3667           else
3668             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3669             break 3
3670           fi
3671         fi
3672       done
3673     done
3674     ;;
3675 esac
3676 done
3677
3678
3679 fi
3680   if test "${ac_cv_path_install+set}" = set; then
3681     INSTALL=$ac_cv_path_install
3682   else
3683     # As a last resort, use the slow shell script.  We don't cache a
3684     # path for INSTALL within a source directory, because that will
3685     # break other packages using the cache if that directory is
3686     # removed, or if the path is relative.
3687     INSTALL=$ac_install_sh
3688   fi
3689 fi
3690 echo "$as_me:$LINENO: result: $INSTALL" >&5
3691 echo "${ECHO_T}$INSTALL" >&6
3692
3693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3694 # It thinks the first close brace ends the variable substitution.
3695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3696
3697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3698
3699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3700
3701 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3702 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3703 LN_S=$as_ln_s
3704 if test "$LN_S" = "ln -s"; then
3705   echo "$as_me:$LINENO: result: yes" >&5
3706 echo "${ECHO_T}yes" >&6
3707 else
3708   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3709 echo "${ECHO_T}no, using $LN_S" >&6
3710 fi
3711
3712 if test "x$CC" != xcc; then
3713   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3714 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3715 else
3716   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3717 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3718 fi
3719 set dummy $CC; ac_cc=`echo $2 |
3720                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3721 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   cat >conftest.$ac_ext <<_ACEOF
3725 /* confdefs.h.  */
3726 _ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h.  */
3730
3731 int
3732 main ()
3733 {
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 # Make sure it works both with $CC and with simple cc.
3740 # We do the test twice because some compilers refuse to overwrite an
3741 # existing .o file with -o, though they will create one.
3742 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3743 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744   (eval $ac_try) 2>&5
3745   ac_status=$?
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); } &&
3748    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749   (eval $ac_try) 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); };
3753 then
3754   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3755   if test "x$CC" != xcc; then
3756     # Test first that cc exists at all.
3757     if { ac_try='cc -c conftest.$ac_ext >&5'
3758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759   (eval $ac_try) 2>&5
3760   ac_status=$?
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); }; }; then
3763       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3764       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765   (eval $ac_try) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); } &&
3769          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770   (eval $ac_try) 2>&5
3771   ac_status=$?
3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); };
3774       then
3775         # cc works too.
3776         :
3777       else
3778         # cc exists but doesn't like -o.
3779         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3780       fi
3781     fi
3782   fi
3783 else
3784   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3785 fi
3786 rm -f conftest*
3787
3788 fi
3789 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3790   echo "$as_me:$LINENO: result: yes" >&5
3791 echo "${ECHO_T}yes" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795
3796 cat >>confdefs.h <<\_ACEOF
3797 #define NO_MINUS_C_MINUS_O 1
3798 _ACEOF
3799
3800 fi
3801
3802 # FIXME: we rely on the cache variable name because
3803 # there is no other way.
3804 set dummy $CC
3805 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3806 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3807    # Losing compiler, so override with the script.
3808    # FIXME: It is wrong to rewrite CC.
3809    # But if we don't then we get into trouble of one sort or another.
3810    # A longer-term fix would be to have automake use am__CC in this case,
3811    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3812    CC="$am_aux_dir/compile $CC"
3813 fi
3814
3815
3816
3817
3818
3819         if test -n "$PYTHON"; then
3820       # If the user set $PYTHON, use it and don't search something else.
3821       echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
3822 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6
3823       prog="import sys, string
3824 # split strings by '.' and convert to numeric.  Append some zeros
3825 # because we need at least 4 digits for the hex conversion.
3826 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
3827 minverhex = 0
3828 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3829 sys.exit(sys.hexversion < minverhex)"
3830   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3831    ($PYTHON -c "$prog") >&5 2>&5
3832    ac_status=$?
3833    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834    (exit $ac_status); }; then
3835   echo "$as_me:$LINENO: result: yes" >&5
3836 echo "${ECHO_T}yes" >&6
3837 else
3838   { { echo "$as_me:$LINENO: error: too old" >&5
3839 echo "$as_me: error: too old" >&2;}
3840    { (exit 1); exit 1; }; }
3841 fi
3842
3843     else
3844       # Otherwise, try each interpreter until we find one that satisfies
3845       # VERSION.
3846       echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
3847 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6
3848 if test "${am_cv_pathless_PYTHON+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851
3852         for am_cv_pathless_PYTHON in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
3853           test "$am_cv_pathless_PYTHON" = none && break
3854           prog="import sys, string
3855 # split strings by '.' and convert to numeric.  Append some zeros
3856 # because we need at least 4 digits for the hex conversion.
3857 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
3858 minverhex = 0
3859 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3860 sys.exit(sys.hexversion < minverhex)"
3861   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3862    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3863    ac_status=$?
3864    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865    (exit $ac_status); }; then
3866   break
3867 fi
3868
3869         done
3870 fi
3871 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
3872 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
3873       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3874       if test "$am_cv_pathless_PYTHON" = none; then
3875         PYTHON=:
3876       else
3877         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3878 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3879 echo "$as_me:$LINENO: checking for $ac_word" >&5
3880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3881 if test "${ac_cv_path_PYTHON+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   case $PYTHON in
3885   [\\/]* | ?:[\\/]*)
3886   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3887   ;;
3888   *)
3889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892   IFS=$as_save_IFS
3893   test -z "$as_dir" && as_dir=.
3894   for ac_exec_ext in '' $ac_executable_extensions; do
3895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898     break 2
3899   fi
3900 done
3901 done
3902
3903   ;;
3904 esac
3905 fi
3906 PYTHON=$ac_cv_path_PYTHON
3907
3908 if test -n "$PYTHON"; then
3909   echo "$as_me:$LINENO: result: $PYTHON" >&5
3910 echo "${ECHO_T}$PYTHON" >&6
3911 else
3912   echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3914 fi
3915
3916       fi
3917       am_display_PYTHON=$am_cv_pathless_PYTHON
3918     fi
3919
3920
3921   if test "$PYTHON" = :; then
3922       { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
3923 echo "$as_me: error: no suitable Python interpreter found" >&2;}
3924    { (exit 1); exit 1; }; }
3925   else
3926
3927
3928   echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
3929 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
3930 if test "${am_cv_python_version+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
3934 fi
3935 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
3936 echo "${ECHO_T}$am_cv_python_version" >&6
3937   PYTHON_VERSION=$am_cv_python_version
3938
3939
3940
3941   PYTHON_PREFIX='${prefix}'
3942
3943   PYTHON_EXEC_PREFIX='${exec_prefix}'
3944
3945
3946
3947   echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
3948 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
3949 if test "${am_cv_python_platform+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
3953 fi
3954 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
3955 echo "${ECHO_T}$am_cv_python_platform" >&6
3956   PYTHON_PLATFORM=$am_cv_python_platform
3957
3958
3959
3960
3961                 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
3962 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
3963 if test "${am_cv_python_pythondir+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
3967      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
3968 fi
3969 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
3970 echo "${ECHO_T}$am_cv_python_pythondir" >&6
3971   pythondir=$am_cv_python_pythondir
3972
3973
3974
3975   pkgpythondir=\${pythondir}/$PACKAGE
3976
3977
3978             echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
3979 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
3980 if test "${am_cv_python_pyexecdir+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
3984      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
3985 fi
3986 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
3987 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
3988   pyexecdir=$am_cv_python_pyexecdir
3989
3990
3991
3992   pkgpyexecdir=\${pyexecdir}/$PACKAGE
3993
3994
3995
3996   fi
3997
3998
3999
4000
4001
4002
4003         echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
4004 echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6
4005 if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008
4009                 ac_ext=cc
4010 ac_cpp='$CXXCPP $CPPFLAGS'
4011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4014
4015                 cat >conftest.$ac_ext <<_ACEOF
4016
4017                     #include <ostream>
4018
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022   (eval $ac_compile) 2>conftest.er1
4023   ac_status=$?
4024   grep -v '^ *+' conftest.er1 >conftest.err
4025   rm -f conftest.er1
4026   cat conftest.err >&5
4027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028   (exit $ac_status); } &&
4029          { ac_try='test -z "$ac_cxx_werror_flag"
4030                          || test ! -s conftest.err'
4031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032   (eval $ac_try) 2>&5
4033   ac_status=$?
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); }; } &&
4036          { ac_try='test -s conftest.$ac_objext'
4037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038   (eval $ac_try) 2>&5
4039   ac_status=$?
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); }; }; then
4042   ensc_cv_cxx_cxxcompiler=yes
4043 else
4044   echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047 ensc_cv_cxx_cxxcompiler=no
4048 fi
4049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4050                 ac_ext=c
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055
4056
4057 fi
4058 echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
4059 echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6
4060
4061
4062
4063 if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
4064   ENSC_HAVE_CXX_COMPILER_TRUE=
4065   ENSC_HAVE_CXX_COMPILER_FALSE='#'
4066 else
4067   ENSC_HAVE_CXX_COMPILER_TRUE='#'
4068   ENSC_HAVE_CXX_COMPILER_FALSE=
4069 fi
4070
4071
4072         if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
4073                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
4074 echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
4075         fi
4076
4077
4078
4079
4080
4081         echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
4082 echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6
4083 if test "${ensc_cv_c99_c99compiler+set}" = set; then
4084   echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086
4087                 ac_ext=c
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092
4093                 cat >conftest.$ac_ext <<_ACEOF
4094
4095 int main(int argc, char *argv) {
4096   struct { int x; }   a = { .x = argc };
4097   if (0) return 0;
4098   int b;
4099 }
4100
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4104   (eval $ac_compile) 2>conftest.er1
4105   ac_status=$?
4106   grep -v '^ *+' conftest.er1 >conftest.err
4107   rm -f conftest.er1
4108   cat conftest.err >&5
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); } &&
4111          { ac_try='test -z "$ac_c_werror_flag"
4112                          || test ! -s conftest.err'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; } &&
4118          { ac_try='test -s conftest.$ac_objext'
4119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120   (eval $ac_try) 2>&5
4121   ac_status=$?
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); }; }; then
4124   ensc_cv_c99_c99compiler=yes
4125 else
4126   echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 ensc_cv_c99_c99compiler=no
4130 fi
4131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4132                 ac_ext=c
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137
4138
4139 fi
4140 echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
4141 echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6
4142
4143
4144
4145 if test x"$ensc_cv_c99_c99compiler" = xyes; then
4146   ENSC_HAVE_C99_COMPILER_TRUE=
4147   ENSC_HAVE_C99_COMPILER_FALSE='#'
4148 else
4149   ENSC_HAVE_C99_COMPILER_TRUE='#'
4150   ENSC_HAVE_C99_COMPILER_FALSE=
4151 fi
4152
4153
4154         if test x"$ensc_cv_c99_c99compiler" = xno; then
4155                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
4156 echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
4157         fi
4158
4159
4160
4161         ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
4162
4163
4164         ENSC_PATHPROG_SED=
4165
4166
4167
4168
4169
4170
4171
4172         if test -z ""; then
4173                 rq=true
4174         else
4175                 rq=false
4176         fi
4177
4178         if $rq; then
4179                 ensc_dflt=
4180         else
4181                 ensc_dflt=""
4182         fi
4183
4184         for ac_prog in awk
4185 do
4186   # Extract the first word of "$ac_prog", so it can be a program name with args.
4187 set dummy $ac_prog; ac_word=$2
4188 echo "$as_me:$LINENO: checking for $ac_word" >&5
4189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4190 if test "${ac_cv_path_AWK+set}" = set; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193   case $AWK in
4194   [\\/]* | ?:[\\/]*)
4195   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4196   ;;
4197   *)
4198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $ensc_searchpath
4200 do
4201   IFS=$as_save_IFS
4202   test -z "$as_dir" && as_dir=.
4203   for ac_exec_ext in '' $ac_executable_extensions; do
4204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207     break 2
4208   fi
4209 done
4210 done
4211
4212   ;;
4213 esac
4214 fi
4215 AWK=$ac_cv_path_AWK
4216
4217 if test -n "$AWK"; then
4218   echo "$as_me:$LINENO: result: $AWK" >&5
4219 echo "${ECHO_T}$AWK" >&6
4220 else
4221   echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4223 fi
4224
4225   test -n "$AWK" && break
4226 done
4227 test -n "$AWK" || AWK="$ensc_dflt"
4228
4229
4230         if test -z "${AWK}" && $rq; then
4231                 if test -z ""; then
4232                         { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
4233 echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4234    { (exit 1); exit 1; }; }
4235                 else
4236                         { { echo "$as_me:$LINENO: error:
4237 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4238 " >&5
4239 echo "$as_me: error:
4240 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4241 " >&2;}
4242    { (exit 1); exit 1; }; }
4243                 fi
4244         fi
4245
4246         test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
4247
4248         test "${AWK}"
4249
4250
4251
4252
4253         if test -z ""; then
4254                 rq=true
4255         else
4256                 rq=false
4257         fi
4258
4259         if $rq; then
4260                 ensc_dflt=
4261         else
4262                 ensc_dflt=""
4263         fi
4264
4265         for ac_prog in cat
4266 do
4267   # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_path_CAT+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   case $CAT in
4275   [\\/]* | ?:[\\/]*)
4276   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4277   ;;
4278   *)
4279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $ensc_searchpath
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for ac_exec_ext in '' $ac_executable_extensions; do
4285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291 done
4292
4293   ;;
4294 esac
4295 fi
4296 CAT=$ac_cv_path_CAT
4297
4298 if test -n "$CAT"; then
4299   echo "$as_me:$LINENO: result: $CAT" >&5
4300 echo "${ECHO_T}$CAT" >&6
4301 else
4302   echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304 fi
4305
4306   test -n "$CAT" && break
4307 done
4308 test -n "$CAT" || CAT="$ensc_dflt"
4309
4310
4311         if test -z "${CAT}" && $rq; then
4312                 if test -z ""; then
4313                         { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
4314 echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4315    { (exit 1); exit 1; }; }
4316                 else
4317                         { { echo "$as_me:$LINENO: error:
4318 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4319 " >&5
4320 echo "$as_me: error:
4321 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4322 " >&2;}
4323    { (exit 1); exit 1; }; }
4324                 fi
4325         fi
4326
4327         test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
4328
4329         test "${CAT}"
4330
4331
4332
4333
4334         if test -z ""; then
4335                 rq=true
4336         else
4337                 rq=false
4338         fi
4339
4340         if $rq; then
4341                 ensc_dflt=
4342         else
4343                 ensc_dflt=""
4344         fi
4345
4346         for ac_prog in chown
4347 do
4348   # Extract the first word of "$ac_prog", so it can be a program name with args.
4349 set dummy $ac_prog; ac_word=$2
4350 echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4352 if test "${ac_cv_path_CHOWN+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   case $CHOWN in
4356   [\\/]* | ?:[\\/]*)
4357   ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
4358   ;;
4359   *)
4360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $ensc_searchpath
4362 do
4363   IFS=$as_save_IFS
4364   test -z "$as_dir" && as_dir=.
4365   for ac_exec_ext in '' $ac_executable_extensions; do
4366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367     ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
4368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369     break 2
4370   fi
4371 done
4372 done
4373
4374   ;;
4375 esac
4376 fi
4377 CHOWN=$ac_cv_path_CHOWN
4378
4379 if test -n "$CHOWN"; then
4380   echo "$as_me:$LINENO: result: $CHOWN" >&5
4381 echo "${ECHO_T}$CHOWN" >&6
4382 else
4383   echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6
4385 fi
4386
4387   test -n "$CHOWN" && break
4388 done
4389 test -n "$CHOWN" || CHOWN="$ensc_dflt"
4390
4391
4392         if test -z "${CHOWN}" && $rq; then
4393                 if test -z ""; then
4394                         { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
4395 echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4396    { (exit 1); exit 1; }; }
4397                 else
4398                         { { echo "$as_me:$LINENO: error:
4399 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4400 " >&5
4401 echo "$as_me: error:
4402 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4403 " >&2;}
4404    { (exit 1); exit 1; }; }
4405                 fi
4406         fi
4407
4408         test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
4409
4410         test "${CHOWN}"
4411
4412
4413
4414
4415         if test -z ""; then
4416                 rq=true
4417         else
4418                 rq=false
4419         fi
4420
4421         if $rq; then
4422                 ensc_dflt=
4423         else
4424                 ensc_dflt=""
4425         fi
4426
4427         for ac_prog in cmp
4428 do
4429   # Extract the first word of "$ac_prog", so it can be a program name with args.
4430 set dummy $ac_prog; ac_word=$2
4431 echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4433 if test "${ac_cv_path_CMP+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   case $CMP in
4437   [\\/]* | ?:[\\/]*)
4438   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4439   ;;
4440   *)
4441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $ensc_searchpath
4443 do
4444   IFS=$as_save_IFS
4445   test -z "$as_dir" && as_dir=.
4446   for ac_exec_ext in '' $ac_executable_extensions; do
4447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450     break 2
4451   fi
4452 done
4453 done
4454
4455   ;;
4456 esac
4457 fi
4458 CMP=$ac_cv_path_CMP
4459
4460 if test -n "$CMP"; then
4461   echo "$as_me:$LINENO: result: $CMP" >&5
4462 echo "${ECHO_T}$CMP" >&6
4463 else
4464   echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6
4466 fi
4467
4468   test -n "$CMP" && break
4469 done
4470 test -n "$CMP" || CMP="$ensc_dflt"
4471
4472
4473         if test -z "${CMP}" && $rq; then
4474                 if test -z ""; then
4475                         { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
4476 echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4477    { (exit 1); exit 1; }; }
4478                 else
4479                         { { echo "$as_me:$LINENO: error:
4480 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4481 " >&5
4482 echo "$as_me: error:
4483 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4484 " >&2;}
4485    { (exit 1); exit 1; }; }
4486                 fi
4487         fi
4488
4489         test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
4490
4491         test "${CMP}"
4492
4493
4494
4495
4496         if test -z ""; then
4497                 rq=true
4498         else
4499                 rq=false
4500         fi
4501
4502         if $rq; then
4503                 ensc_dflt=
4504         else
4505                 ensc_dflt=""
4506         fi
4507
4508         for ac_prog in cp
4509 do
4510   # Extract the first word of "$ac_prog", so it can be a program name with args.
4511 set dummy $ac_prog; ac_word=$2
4512 echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514 if test "${ac_cv_path_CP+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   case $CP in
4518   [\\/]* | ?:[\\/]*)
4519   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4520   ;;
4521   *)
4522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $ensc_searchpath
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535
4536   ;;
4537 esac
4538 fi
4539 CP=$ac_cv_path_CP
4540
4541 if test -n "$CP"; then
4542   echo "$as_me:$LINENO: result: $CP" >&5
4543 echo "${ECHO_T}$CP" >&6
4544 else
4545   echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4547 fi
4548
4549   test -n "$CP" && break
4550 done
4551 test -n "$CP" || CP="$ensc_dflt"
4552
4553
4554         if test -z "${CP}" && $rq; then
4555                 if test -z ""; then
4556                         { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
4557 echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4558    { (exit 1); exit 1; }; }
4559                 else
4560                         { { echo "$as_me:$LINENO: error:
4561 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4562 " >&5
4563 echo "$as_me: error:
4564 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4565 " >&2;}
4566    { (exit 1); exit 1; }; }
4567                 fi
4568         fi
4569
4570         test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
4571
4572         test "${CP}"
4573
4574
4575
4576
4577         if test -z ""; then
4578                 rq=true
4579         else
4580                 rq=false
4581         fi
4582
4583         if $rq; then
4584                 ensc_dflt=
4585         else
4586                 ensc_dflt=""
4587         fi
4588
4589         for ac_prog in dirname
4590 do
4591   # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy $ac_prog; ac_word=$2
4593 echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4595 if test "${ac_cv_path_DIRNAME+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   case $DIRNAME in
4599   [\\/]* | ?:[\\/]*)
4600   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4601   ;;
4602   *)
4603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $ensc_searchpath
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608   for ac_exec_ext in '' $ac_executable_extensions; do
4609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615 done
4616
4617   ;;
4618 esac
4619 fi
4620 DIRNAME=$ac_cv_path_DIRNAME
4621
4622 if test -n "$DIRNAME"; then
4623   echo "$as_me:$LINENO: result: $DIRNAME" >&5
4624 echo "${ECHO_T}$DIRNAME" >&6
4625 else
4626   echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4628 fi
4629
4630   test -n "$DIRNAME" && break
4631 done
4632 test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
4633
4634
4635         if test -z "${DIRNAME}" && $rq; then
4636                 if test -z ""; then
4637                         { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
4638 echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4639    { (exit 1); exit 1; }; }
4640                 else
4641                         { { echo "$as_me:$LINENO: error:
4642 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4643 " >&5
4644 echo "$as_me: error:
4645 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4646 " >&2;}
4647    { (exit 1); exit 1; }; }
4648                 fi
4649         fi
4650
4651         test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
4652
4653         test "${DIRNAME}"
4654
4655
4656
4657
4658         if test -z ""; then
4659                 rq=true
4660         else
4661                 rq=false
4662         fi
4663
4664         if $rq; then
4665                 ensc_dflt=
4666         else
4667                 ensc_dflt=""
4668         fi
4669
4670         for ac_prog in egrep
4671 do
4672   # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4676 if test "${ac_cv_path_EGREP+set}" = set; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   case $EGREP in
4680   [\\/]* | ?:[\\/]*)
4681   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
4682   ;;
4683   *)
4684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $ensc_searchpath
4686 do
4687   IFS=$as_save_IFS
4688   test -z "$as_dir" && as_dir=.
4689   for ac_exec_ext in '' $ac_executable_extensions; do
4690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
4692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693     break 2
4694   fi
4695 done
4696 done
4697
4698   ;;
4699 esac
4700 fi
4701 EGREP=$ac_cv_path_EGREP
4702
4703 if test -n "$EGREP"; then
4704   echo "$as_me:$LINENO: result: $EGREP" >&5
4705 echo "${ECHO_T}$EGREP" >&6
4706 else
4707   echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6
4709 fi
4710
4711   test -n "$EGREP" && break
4712 done
4713 test -n "$EGREP" || EGREP="$ensc_dflt"
4714
4715
4716         if test -z "${EGREP}" && $rq; then
4717                 if test -z ""; then
4718                         { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
4719 echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4720    { (exit 1); exit 1; }; }
4721                 else
4722                         { { echo "$as_me:$LINENO: error:
4723 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4724 " >&5
4725 echo "$as_me: error:
4726 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4727 " >&2;}
4728    { (exit 1); exit 1; }; }
4729                 fi
4730         fi
4731
4732         test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
4733
4734         test "${EGREP}"
4735
4736
4737
4738
4739         if test -z ""; then
4740                 rq=true
4741         else
4742                 rq=false
4743         fi
4744
4745         if $rq; then
4746                 ensc_dflt=
4747         else
4748                 ensc_dflt=""
4749         fi
4750
4751         for ac_prog in env
4752 do
4753   # Extract the first word of "$ac_prog", so it can be a program name with args.
4754 set dummy $ac_prog; ac_word=$2
4755 echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4757 if test "${ac_cv_path_ENV+set}" = set; then
4758   echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760   case $ENV in
4761   [\\/]* | ?:[\\/]*)
4762   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
4763   ;;
4764   *)
4765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $ensc_searchpath
4767 do
4768   IFS=$as_save_IFS
4769   test -z "$as_dir" && as_dir=.
4770   for ac_exec_ext in '' $ac_executable_extensions; do
4771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4772     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
4773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774     break 2
4775   fi
4776 done
4777 done
4778
4779   ;;
4780 esac
4781 fi
4782 ENV=$ac_cv_path_ENV
4783
4784 if test -n "$ENV"; then
4785   echo "$as_me:$LINENO: result: $ENV" >&5
4786 echo "${ECHO_T}$ENV" >&6
4787 else
4788   echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6
4790 fi
4791
4792   test -n "$ENV" && break
4793 done
4794 test -n "$ENV" || ENV="$ensc_dflt"
4795
4796
4797         if test -z "${ENV}" && $rq; then
4798                 if test -z ""; then
4799                         { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
4800 echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4801    { (exit 1); exit 1; }; }
4802                 else
4803                         { { echo "$as_me:$LINENO: error:
4804 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4805 " >&5
4806 echo "$as_me: error:
4807 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4808 " >&2;}
4809    { (exit 1); exit 1; }; }
4810                 fi
4811         fi
4812
4813         test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
4814
4815         test "${ENV}"
4816
4817
4818
4819
4820         if test -z ""; then
4821                 rq=true
4822         else
4823                 rq=false
4824         fi
4825
4826         if $rq; then
4827                 ensc_dflt=
4828         else
4829                 ensc_dflt=""
4830         fi
4831
4832         for ac_prog in grep
4833 do
4834   # Extract the first word of "$ac_prog", so it can be a program name with args.
4835 set dummy $ac_prog; ac_word=$2
4836 echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4838 if test "${ac_cv_path_GREP+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   case $GREP in
4842   [\\/]* | ?:[\\/]*)
4843   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4844   ;;
4845   *)
4846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $ensc_searchpath
4848 do
4849   IFS=$as_save_IFS
4850   test -z "$as_dir" && as_dir=.
4851   for ac_exec_ext in '' $ac_executable_extensions; do
4852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855     break 2
4856   fi
4857 done
4858 done
4859
4860   ;;
4861 esac
4862 fi
4863 GREP=$ac_cv_path_GREP
4864
4865 if test -n "$GREP"; then
4866   echo "$as_me:$LINENO: result: $GREP" >&5
4867 echo "${ECHO_T}$GREP" >&6
4868 else
4869   echo "$as_me:$LINENO: result: no" >&5
4870 echo "${ECHO_T}no" >&6
4871 fi
4872
4873   test -n "$GREP" && break
4874 done
4875 test -n "$GREP" || GREP="$ensc_dflt"
4876
4877
4878         if test -z "${GREP}" && $rq; then
4879                 if test -z ""; then
4880                         { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
4881 echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4882    { (exit 1); exit 1; }; }
4883                 else
4884                         { { echo "$as_me:$LINENO: error:
4885 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4886 " >&5
4887 echo "$as_me: error:
4888 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4889 " >&2;}
4890    { (exit 1); exit 1; }; }
4891                 fi
4892         fi
4893
4894         test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
4895
4896         test "${GREP}"
4897
4898
4899
4900
4901         if test -z ""; then
4902                 rq=true
4903         else
4904                 rq=false
4905         fi
4906
4907         if $rq; then
4908                 ensc_dflt=
4909         else
4910                 ensc_dflt=""
4911         fi
4912
4913         for ac_prog in ln
4914 do
4915   # Extract the first word of "$ac_prog", so it can be a program name with args.
4916 set dummy $ac_prog; ac_word=$2
4917 echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4919 if test "${ac_cv_path_LN+set}" = set; then
4920   echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922   case $LN in
4923   [\\/]* | ?:[\\/]*)
4924   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4925   ;;
4926   *)
4927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $ensc_searchpath
4929 do
4930   IFS=$as_save_IFS
4931   test -z "$as_dir" && as_dir=.
4932   for ac_exec_ext in '' $ac_executable_extensions; do
4933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936     break 2
4937   fi
4938 done
4939 done
4940
4941   ;;
4942 esac
4943 fi
4944 LN=$ac_cv_path_LN
4945
4946 if test -n "$LN"; then
4947   echo "$as_me:$LINENO: result: $LN" >&5
4948 echo "${ECHO_T}$LN" >&6
4949 else
4950   echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6
4952 fi
4953
4954   test -n "$LN" && break
4955 done
4956 test -n "$LN" || LN="$ensc_dflt"
4957
4958
4959         if test -z "${LN}" && $rq; then
4960                 if test -z ""; then
4961                         { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
4962 echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4963    { (exit 1); exit 1; }; }
4964                 else
4965                         { { echo "$as_me:$LINENO: error:
4966 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4967 " >&5
4968 echo "$as_me: error:
4969 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4970 " >&2;}
4971    { (exit 1); exit 1; }; }
4972                 fi
4973         fi
4974
4975         test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
4976
4977         test "${LN}"
4978
4979
4980
4981
4982         if test -z ""; then
4983                 rq=true
4984         else
4985                 rq=false
4986         fi
4987
4988         if $rq; then
4989                 ensc_dflt=
4990         else
4991                 ensc_dflt=""
4992         fi
4993
4994         for ac_prog in mkdir
4995 do
4996   # Extract the first word of "$ac_prog", so it can be a program name with args.
4997 set dummy $ac_prog; ac_word=$2
4998 echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5000 if test "${ac_cv_path_MKDIR+set}" = set; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   case $MKDIR in
5004   [\\/]* | ?:[\\/]*)
5005   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5006   ;;
5007   *)
5008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $ensc_searchpath
5010 do
5011   IFS=$as_save_IFS
5012   test -z "$as_dir" && as_dir=.
5013   for ac_exec_ext in '' $ac_executable_extensions; do
5014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017     break 2
5018   fi
5019 done
5020 done
5021
5022   ;;
5023 esac
5024 fi
5025 MKDIR=$ac_cv_path_MKDIR
5026
5027 if test -n "$MKDIR"; then
5028   echo "$as_me:$LINENO: result: $MKDIR" >&5
5029 echo "${ECHO_T}$MKDIR" >&6
5030 else
5031   echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6
5033 fi
5034
5035   test -n "$MKDIR" && break
5036 done
5037 test -n "$MKDIR" || MKDIR="$ensc_dflt"
5038
5039
5040         if test -z "${MKDIR}" && $rq; then
5041                 if test -z ""; then
5042                         { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5043 echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5044    { (exit 1); exit 1; }; }
5045                 else
5046                         { { echo "$as_me:$LINENO: error:
5047 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5048 " >&5
5049 echo "$as_me: error:
5050 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5051 " >&2;}
5052    { (exit 1); exit 1; }; }
5053                 fi
5054         fi
5055
5056         test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
5057
5058         test "${MKDIR}"
5059
5060
5061
5062
5063         if test -z ""; then
5064                 rq=true
5065         else
5066                 rq=false
5067         fi
5068
5069         if $rq; then
5070                 ensc_dflt=
5071         else
5072                 ensc_dflt=""
5073         fi
5074
5075         for ac_prog in mkfifo
5076 do
5077   # Extract the first word of "$ac_prog", so it can be a program name with args.
5078 set dummy $ac_prog; ac_word=$2
5079 echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5081 if test "${ac_cv_path_MKFIFO+set}" = set; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   case $MKFIFO in
5085   [\\/]* | ?:[\\/]*)
5086   ac_cv_path_MKFIFO="$MKFIFO" # Let the user override the test with a path.
5087   ;;
5088   *)
5089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $ensc_searchpath
5091 do
5092   IFS=$as_save_IFS
5093   test -z "$as_dir" && as_dir=.
5094   for ac_exec_ext in '' $ac_executable_extensions; do
5095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096     ac_cv_path_MKFIFO="$as_dir/$ac_word$ac_exec_ext"
5097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098     break 2
5099   fi
5100 done
5101 done
5102
5103   ;;
5104 esac
5105 fi
5106 MKFIFO=$ac_cv_path_MKFIFO
5107
5108 if test -n "$MKFIFO"; then
5109   echo "$as_me:$LINENO: result: $MKFIFO" >&5
5110 echo "${ECHO_T}$MKFIFO" >&6
5111 else
5112   echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6
5114 fi
5115
5116   test -n "$MKFIFO" && break
5117 done
5118 test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
5119
5120
5121         if test -z "${MKFIFO}" && $rq; then
5122                 if test -z ""; then
5123                         { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
5124 echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5125    { (exit 1); exit 1; }; }
5126                 else
5127                         { { echo "$as_me:$LINENO: error:
5128 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5129 " >&5
5130 echo "$as_me: error:
5131 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5132 " >&2;}
5133    { (exit 1); exit 1; }; }
5134                 fi
5135         fi
5136
5137         test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
5138
5139         test "${MKFIFO}"
5140
5141
5142
5143
5144         if test -z ""; then
5145                 rq=true
5146         else
5147                 rq=false
5148         fi
5149
5150         if $rq; then
5151                 ensc_dflt=
5152         else
5153                 ensc_dflt=""
5154         fi
5155
5156         for ac_prog in mktemp
5157 do
5158   # Extract the first word of "$ac_prog", so it can be a program name with args.
5159 set dummy $ac_prog; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_path_MKTEMP+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   case $MKTEMP in
5166   [\\/]* | ?:[\\/]*)
5167   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5168   ;;
5169   *)
5170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $ensc_searchpath
5172 do
5173   IFS=$as_save_IFS
5174   test -z "$as_dir" && as_dir=.
5175   for ac_exec_ext in '' $ac_executable_extensions; do
5176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179     break 2
5180   fi
5181 done
5182 done
5183
5184   ;;
5185 esac
5186 fi
5187 MKTEMP=$ac_cv_path_MKTEMP
5188
5189 if test -n "$MKTEMP"; then
5190   echo "$as_me:$LINENO: result: $MKTEMP" >&5
5191 echo "${ECHO_T}$MKTEMP" >&6
5192 else
5193   echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6
5195 fi
5196
5197   test -n "$MKTEMP" && break
5198 done
5199 test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
5200
5201
5202         if test -z "${MKTEMP}" && $rq; then
5203                 if test -z ""; then
5204                         { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
5205 echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5206    { (exit 1); exit 1; }; }
5207                 else
5208                         { { echo "$as_me:$LINENO: error:
5209 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5210 " >&5
5211 echo "$as_me: error:
5212 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5213 " >&2;}
5214    { (exit 1); exit 1; }; }
5215                 fi
5216         fi
5217
5218         test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
5219
5220         test "${MKTEMP}"
5221
5222
5223
5224
5225         if test -z ""; then
5226                 rq=true
5227         else
5228                 rq=false
5229         fi
5230
5231         if $rq; then
5232                 ensc_dflt=
5233         else
5234                 ensc_dflt=""
5235         fi
5236
5237         for ac_prog in mount
5238 do
5239   # Extract the first word of "$ac_prog", so it can be a program name with args.
5240 set dummy $ac_prog; ac_word=$2
5241 echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243 if test "${ac_cv_path_MOUNT+set}" = set; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   case $MOUNT in
5247   [\\/]* | ?:[\\/]*)
5248   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
5249   ;;
5250   *)
5251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $ensc_searchpath
5253 do
5254   IFS=$as_save_IFS
5255   test -z "$as_dir" && as_dir=.
5256   for ac_exec_ext in '' $ac_executable_extensions; do
5257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
5259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260     break 2
5261   fi
5262 done
5263 done
5264
5265   ;;
5266 esac
5267 fi
5268 MOUNT=$ac_cv_path_MOUNT
5269
5270 if test -n "$MOUNT"; then
5271   echo "$as_me:$LINENO: result: $MOUNT" >&5
5272 echo "${ECHO_T}$MOUNT" >&6
5273 else
5274   echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6
5276 fi
5277
5278   test -n "$MOUNT" && break
5279 done
5280 test -n "$MOUNT" || MOUNT="$ensc_dflt"
5281
5282
5283         if test -z "${MOUNT}" && $rq; then
5284                 if test -z ""; then
5285                         { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
5286 echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5287    { (exit 1); exit 1; }; }
5288                 else
5289                         { { echo "$as_me:$LINENO: error:
5290 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5291 " >&5
5292 echo "$as_me: error:
5293 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5294 " >&2;}
5295    { (exit 1); exit 1; }; }
5296                 fi
5297         fi
5298
5299         test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
5300
5301         test "${MOUNT}"
5302
5303
5304
5305
5306         if test -z ""; then
5307                 rq=true
5308         else
5309                 rq=false
5310         fi
5311
5312         if $rq; then
5313                 ensc_dflt=
5314         else
5315                 ensc_dflt=""
5316         fi
5317
5318         for ac_prog in mv
5319 do
5320   # Extract the first word of "$ac_prog", so it can be a program name with args.
5321 set dummy $ac_prog; ac_word=$2
5322 echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5324 if test "${ac_cv_path_MV+set}" = set; then
5325   echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327   case $MV in
5328   [\\/]* | ?:[\\/]*)
5329   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5330   ;;
5331   *)
5332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $ensc_searchpath
5334 do
5335   IFS=$as_save_IFS
5336   test -z "$as_dir" && as_dir=.
5337   for ac_exec_ext in '' $ac_executable_extensions; do
5338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341     break 2
5342   fi
5343 done
5344 done
5345
5346   ;;
5347 esac
5348 fi
5349 MV=$ac_cv_path_MV
5350
5351 if test -n "$MV"; then
5352   echo "$as_me:$LINENO: result: $MV" >&5
5353 echo "${ECHO_T}$MV" >&6
5354 else
5355   echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6
5357 fi
5358
5359   test -n "$MV" && break
5360 done
5361 test -n "$MV" || MV="$ensc_dflt"
5362
5363
5364         if test -z "${MV}" && $rq; then
5365                 if test -z ""; then
5366                         { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
5367 echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5368    { (exit 1); exit 1; }; }
5369                 else
5370                         { { echo "$as_me:$LINENO: error:
5371 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5372 " >&5
5373 echo "$as_me: error:
5374 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5375 " >&2;}
5376    { (exit 1); exit 1; }; }
5377                 fi
5378         fi
5379
5380         test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
5381
5382         test "${MV}"
5383
5384
5385
5386
5387         if test -z ""; then
5388                 rq=true
5389         else
5390                 rq=false
5391         fi
5392
5393         if $rq; then
5394                 ensc_dflt=
5395         else
5396                 ensc_dflt=""
5397         fi
5398
5399         for ac_prog in nice
5400 do
5401   # Extract the first word of "$ac_prog", so it can be a program name with args.
5402 set dummy $ac_prog; ac_word=$2
5403 echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5405 if test "${ac_cv_path_NICE+set}" = set; then
5406   echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408   case $NICE in
5409   [\\/]* | ?:[\\/]*)
5410   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
5411   ;;
5412   *)
5413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $ensc_searchpath
5415 do
5416   IFS=$as_save_IFS
5417   test -z "$as_dir" && as_dir=.
5418   for ac_exec_ext in '' $ac_executable_extensions; do
5419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
5421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422     break 2
5423   fi
5424 done
5425 done
5426
5427   ;;
5428 esac
5429 fi
5430 NICE=$ac_cv_path_NICE
5431
5432 if test -n "$NICE"; then
5433   echo "$as_me:$LINENO: result: $NICE" >&5
5434 echo "${ECHO_T}$NICE" >&6
5435 else
5436   echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6
5438 fi
5439
5440   test -n "$NICE" && break
5441 done
5442 test -n "$NICE" || NICE="$ensc_dflt"
5443
5444
5445         if test -z "${NICE}" && $rq; then
5446                 if test -z ""; then
5447                         { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
5448 echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5449    { (exit 1); exit 1; }; }
5450                 else
5451                         { { echo "$as_me:$LINENO: error:
5452 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5453 " >&5
5454 echo "$as_me: error:
5455 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5456 " >&2;}
5457    { (exit 1); exit 1; }; }
5458                 fi
5459         fi
5460
5461         test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
5462
5463         test "${NICE}"
5464
5465
5466
5467
5468         if test -z ""; then
5469                 rq=true
5470         else
5471                 rq=false
5472         fi
5473
5474         if $rq; then
5475                 ensc_dflt=
5476         else
5477                 ensc_dflt=""
5478         fi
5479
5480         for ac_prog in ps
5481 do
5482   # Extract the first word of "$ac_prog", so it can be a program name with args.
5483 set dummy $ac_prog; ac_word=$2
5484 echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486 if test "${ac_cv_path_PS+set}" = set; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489   case $PS in
5490   [\\/]* | ?:[\\/]*)
5491   ac_cv_path_PS="$PS" # Let the user override the test with a path.
5492   ;;
5493   *)
5494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $ensc_searchpath
5496 do
5497   IFS=$as_save_IFS
5498   test -z "$as_dir" && as_dir=.
5499   for ac_exec_ext in '' $ac_executable_extensions; do
5500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503     break 2
5504   fi
5505 done
5506 done
5507
5508   ;;
5509 esac
5510 fi
5511 PS=$ac_cv_path_PS
5512
5513 if test -n "$PS"; then
5514   echo "$as_me:$LINENO: result: $PS" >&5
5515 echo "${ECHO_T}$PS" >&6
5516 else
5517   echo "$as_me:$LINENO: result: no" >&5
5518 echo "${ECHO_T}no" >&6
5519 fi
5520
5521   test -n "$PS" && break
5522 done
5523 test -n "$PS" || PS="$ensc_dflt"
5524
5525
5526         if test -z "${PS}" && $rq; then
5527                 if test -z ""; then
5528                         { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
5529 echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5530    { (exit 1); exit 1; }; }
5531                 else
5532                         { { echo "$as_me:$LINENO: error:
5533 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5534 " >&5
5535 echo "$as_me: error:
5536 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5537 " >&2;}
5538    { (exit 1); exit 1; }; }
5539                 fi
5540         fi
5541
5542         test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
5543
5544         test "${PS}"
5545
5546
5547
5548
5549         if test -z ""; then
5550                 rq=true
5551         else
5552                 rq=false
5553         fi
5554
5555         if $rq; then
5556                 ensc_dflt=
5557         else
5558                 ensc_dflt=""
5559         fi
5560
5561         for ac_prog in rm
5562 do
5563   # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5567 if test "${ac_cv_path_RM+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   case $RM in
5571   [\\/]* | ?:[\\/]*)
5572   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5573   ;;
5574   *)
5575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $ensc_searchpath
5577 do
5578   IFS=$as_save_IFS
5579   test -z "$as_dir" && as_dir=.
5580   for ac_exec_ext in '' $ac_executable_extensions; do
5581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584     break 2
5585   fi
5586 done
5587 done
5588
5589   ;;
5590 esac
5591 fi
5592 RM=$ac_cv_path_RM
5593
5594 if test -n "$RM"; then
5595   echo "$as_me:$LINENO: result: $RM" >&5
5596 echo "${ECHO_T}$RM" >&6
5597 else
5598   echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5600 fi
5601
5602   test -n "$RM" && break
5603 done
5604 test -n "$RM" || RM="$ensc_dflt"
5605
5606
5607         if test -z "${RM}" && $rq; then
5608                 if test -z ""; then
5609                         { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
5610 echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5611    { (exit 1); exit 1; }; }
5612                 else
5613                         { { echo "$as_me:$LINENO: error:
5614 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5615 " >&5
5616 echo "$as_me: error:
5617 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5618 " >&2;}
5619    { (exit 1); exit 1; }; }
5620                 fi
5621         fi
5622
5623         test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
5624
5625         test "${RM}"
5626
5627
5628
5629
5630         if test -z ""; then
5631                 rq=true
5632         else
5633                 rq=false
5634         fi
5635
5636         if $rq; then
5637                 ensc_dflt=
5638         else
5639                 ensc_dflt=""
5640         fi
5641
5642         for ac_prog in rmdir
5643 do
5644   # Extract the first word of "$ac_prog", so it can be a program name with args.
5645 set dummy $ac_prog; ac_word=$2
5646 echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5648 if test "${ac_cv_path_RMDIR+set}" = set; then
5649   echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651   case $RMDIR in
5652   [\\/]* | ?:[\\/]*)
5653   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
5654   ;;
5655   *)
5656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $ensc_searchpath
5658 do
5659   IFS=$as_save_IFS
5660   test -z "$as_dir" && as_dir=.
5661   for ac_exec_ext in '' $ac_executable_extensions; do
5662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
5664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665     break 2
5666   fi
5667 done
5668 done
5669
5670   ;;
5671 esac
5672 fi
5673 RMDIR=$ac_cv_path_RMDIR
5674
5675 if test -n "$RMDIR"; then
5676   echo "$as_me:$LINENO: result: $RMDIR" >&5
5677 echo "${ECHO_T}$RMDIR" >&6
5678 else
5679   echo "$as_me:$LINENO: result: no" >&5
5680 echo "${ECHO_T}no" >&6
5681 fi
5682
5683   test -n "$RMDIR" && break
5684 done
5685 test -n "$RMDIR" || RMDIR="$ensc_dflt"
5686
5687
5688         if test -z "${RMDIR}" && $rq; then
5689                 if test -z ""; then
5690                         { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5691 echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5692    { (exit 1); exit 1; }; }
5693                 else
5694                         { { echo "$as_me:$LINENO: error:
5695 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5696 " >&5
5697 echo "$as_me: error:
5698 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5699 " >&2;}
5700    { (exit 1); exit 1; }; }
5701                 fi
5702         fi
5703
5704         test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
5705
5706         test "${RMDIR}"
5707
5708
5709
5710
5711         if test -z ""; then
5712                 rq=true
5713         else
5714                 rq=false
5715         fi
5716
5717         if $rq; then
5718                 ensc_dflt=
5719         else
5720                 ensc_dflt=""
5721         fi
5722
5723         for ac_prog in sed
5724 do
5725   # Extract the first word of "$ac_prog", so it can be a program name with args.
5726 set dummy $ac_prog; ac_word=$2
5727 echo "$as_me:$LINENO: checking for $ac_word" >&5
5728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5729 if test "${ac_cv_path_SED+set}" = set; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   case $SED in
5733   [\\/]* | ?:[\\/]*)
5734   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5735   ;;
5736   *)
5737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $ensc_searchpath
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742   for ac_exec_ext in '' $ac_executable_extensions; do
5743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749 done
5750
5751   ;;
5752 esac
5753 fi
5754 SED=$ac_cv_path_SED
5755
5756 if test -n "$SED"; then
5757   echo "$as_me:$LINENO: result: $SED" >&5
5758 echo "${ECHO_T}$SED" >&6
5759 else
5760   echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6
5762 fi
5763
5764   test -n "$SED" && break
5765 done
5766 test -n "$SED" || SED="$ensc_dflt"
5767
5768
5769         if test -z "${SED}" && $rq; then
5770                 if test -z ""; then
5771                         { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
5772 echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5773    { (exit 1); exit 1; }; }
5774                 else
5775                         { { echo "$as_me:$LINENO: error:
5776 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5777 " >&5
5778 echo "$as_me: error:
5779 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5780 " >&2;}
5781    { (exit 1); exit 1; }; }
5782                 fi
5783         fi
5784
5785         test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
5786
5787         test "${SED}"
5788
5789
5790
5791
5792         if test -z ""; then
5793                 rq=true
5794         else
5795                 rq=false
5796         fi
5797
5798         if $rq; then
5799                 ensc_dflt=
5800         else
5801                 ensc_dflt=""
5802         fi
5803
5804         for ac_prog in sh
5805 do
5806   # Extract the first word of "$ac_prog", so it can be a program name with args.
5807 set dummy $ac_prog; ac_word=$2
5808 echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5810 if test "${ac_cv_path_SH+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   case $SH in
5814   [\\/]* | ?:[\\/]*)
5815   ac_cv_path_SH="$SH" # Let the user override the test with a path.
5816   ;;
5817   *)
5818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $ensc_searchpath
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823   for ac_exec_ext in '' $ac_executable_extensions; do
5824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830 done
5831
5832   ;;
5833 esac
5834 fi
5835 SH=$ac_cv_path_SH
5836
5837 if test -n "$SH"; then
5838   echo "$as_me:$LINENO: result: $SH" >&5
5839 echo "${ECHO_T}$SH" >&6
5840 else
5841   echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6
5843 fi
5844
5845   test -n "$SH" && break
5846 done
5847 test -n "$SH" || SH="$ensc_dflt"
5848
5849
5850         if test -z "${SH}" && $rq; then
5851                 if test -z ""; then
5852                         { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
5853 echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5854    { (exit 1); exit 1; }; }
5855                 else
5856                         { { echo "$as_me:$LINENO: error:
5857 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5858 " >&5
5859 echo "$as_me: error:
5860 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5861 " >&2;}
5862    { (exit 1); exit 1; }; }
5863                 fi
5864         fi
5865
5866         test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
5867
5868         test "${SH}"
5869
5870
5871
5872
5873         if test -z ""; then
5874                 rq=true
5875         else
5876                 rq=false
5877         fi
5878
5879         if $rq; then
5880                 ensc_dflt=
5881         else
5882                 ensc_dflt=""
5883         fi
5884
5885         for ac_prog in tac
5886 do
5887   # Extract the first word of "$ac_prog", so it can be a program name with args.
5888 set dummy $ac_prog; ac_word=$2
5889 echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891 if test "${ac_cv_path_TAC+set}" = set; then
5892   echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894   case $TAC in
5895   [\\/]* | ?:[\\/]*)
5896   ac_cv_path_TAC="$TAC" # Let the user override the test with a path.
5897   ;;
5898   *)
5899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $ensc_searchpath
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904   for ac_exec_ext in '' $ac_executable_extensions; do
5905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906     ac_cv_path_TAC="$as_dir/$ac_word$ac_exec_ext"
5907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911 done
5912
5913   ;;
5914 esac
5915 fi
5916 TAC=$ac_cv_path_TAC
5917
5918 if test -n "$TAC"; then
5919   echo "$as_me:$LINENO: result: $TAC" >&5
5920 echo "${ECHO_T}$TAC" >&6
5921 else
5922   echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5924 fi
5925
5926   test -n "$TAC" && break
5927 done
5928 test -n "$TAC" || TAC="$ensc_dflt"
5929
5930
5931         if test -z "${TAC}" && $rq; then
5932                 if test -z ""; then
5933                         { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
5934 echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5935    { (exit 1); exit 1; }; }
5936                 else
5937                         { { echo "$as_me:$LINENO: error:
5938 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5939 " >&5
5940 echo "$as_me: error:
5941 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5942 " >&2;}
5943    { (exit 1); exit 1; }; }
5944                 fi
5945         fi
5946
5947         test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
5948
5949         test "${TAC}"
5950
5951
5952
5953
5954         if test -z ""; then
5955                 rq=true
5956         else
5957                 rq=false
5958         fi
5959
5960         if $rq; then
5961                 ensc_dflt=
5962         else
5963                 ensc_dflt=""
5964         fi
5965
5966         for ac_prog in tar
5967 do
5968   # Extract the first word of "$ac_prog", so it can be a program name with args.
5969 set dummy $ac_prog; ac_word=$2
5970 echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5972 if test "${ac_cv_path_TAR+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   case $TAR in
5976   [\\/]* | ?:[\\/]*)
5977   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5978   ;;
5979   *)
5980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $ensc_searchpath
5982 do
5983   IFS=$as_save_IFS
5984   test -z "$as_dir" && as_dir=.
5985   for ac_exec_ext in '' $ac_executable_extensions; do
5986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989     break 2
5990   fi
5991 done
5992 done
5993
5994   ;;
5995 esac
5996 fi
5997 TAR=$ac_cv_path_TAR
5998
5999 if test -n "$TAR"; then
6000   echo "$as_me:$LINENO: result: $TAR" >&5
6001 echo "${ECHO_T}$TAR" >&6
6002 else
6003   echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6
6005 fi
6006
6007   test -n "$TAR" && break
6008 done
6009 test -n "$TAR" || TAR="$ensc_dflt"
6010
6011
6012         if test -z "${TAR}" && $rq; then
6013                 if test -z ""; then
6014                         { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
6015 echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6016    { (exit 1); exit 1; }; }
6017                 else
6018                         { { echo "$as_me:$LINENO: error:
6019 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6020 " >&5
6021 echo "$as_me: error:
6022 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6023 " >&2;}
6024    { (exit 1); exit 1; }; }
6025                 fi
6026         fi
6027
6028         test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
6029
6030         test "${TAR}"
6031
6032
6033
6034
6035         if test -z ""; then
6036                 rq=true
6037         else
6038                 rq=false
6039         fi
6040
6041         if $rq; then
6042                 ensc_dflt=
6043         else
6044                 ensc_dflt=""
6045         fi
6046
6047         for ac_prog in touch
6048 do
6049   # Extract the first word of "$ac_prog", so it can be a program name with args.
6050 set dummy $ac_prog; ac_word=$2
6051 echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6053 if test "${ac_cv_path_TOUCH+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   case $TOUCH in
6057   [\\/]* | ?:[\\/]*)
6058   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
6059   ;;
6060   *)
6061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $ensc_searchpath
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066   for ac_exec_ext in '' $ac_executable_extensions; do
6067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
6069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070     break 2
6071   fi
6072 done
6073 done
6074
6075   ;;
6076 esac
6077 fi
6078 TOUCH=$ac_cv_path_TOUCH
6079
6080 if test -n "$TOUCH"; then
6081   echo "$as_me:$LINENO: result: $TOUCH" >&5
6082 echo "${ECHO_T}$TOUCH" >&6
6083 else
6084   echo "$as_me:$LINENO: result: no" >&5
6085 echo "${ECHO_T}no" >&6
6086 fi
6087
6088   test -n "$TOUCH" && break
6089 done
6090 test -n "$TOUCH" || TOUCH="$ensc_dflt"
6091
6092
6093         if test -z "${TOUCH}" && $rq; then
6094                 if test -z ""; then
6095                         { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
6096 echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6097    { (exit 1); exit 1; }; }
6098                 else
6099                         { { echo "$as_me:$LINENO: error:
6100 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6101 " >&5
6102 echo "$as_me: error:
6103 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6104 " >&2;}
6105    { (exit 1); exit 1; }; }
6106                 fi
6107         fi
6108
6109         test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
6110
6111         test "${TOUCH}"
6112
6113
6114
6115
6116         if test -z ""; then
6117                 rq=true
6118         else
6119                 rq=false
6120         fi
6121
6122         if $rq; then
6123                 ensc_dflt=
6124         else
6125                 ensc_dflt=""
6126         fi
6127
6128         for ac_prog in tty
6129 do
6130   # Extract the first word of "$ac_prog", so it can be a program name with args.
6131 set dummy $ac_prog; ac_word=$2
6132 echo "$as_me:$LINENO: checking for $ac_word" >&5
6133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6134 if test "${ac_cv_path_TTY+set}" = set; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137   case $TTY in
6138   [\\/]* | ?:[\\/]*)
6139   ac_cv_path_TTY="$TTY" # Let the user override the test with a path.
6140   ;;
6141   *)
6142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $ensc_searchpath
6144 do
6145   IFS=$as_save_IFS
6146   test -z "$as_dir" && as_dir=.
6147   for ac_exec_ext in '' $ac_executable_extensions; do
6148   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149     ac_cv_path_TTY="$as_dir/$ac_word$ac_exec_ext"
6150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151     break 2
6152   fi
6153 done
6154 done
6155
6156   ;;
6157 esac
6158 fi
6159 TTY=$ac_cv_path_TTY
6160
6161 if test -n "$TTY"; then
6162   echo "$as_me:$LINENO: result: $TTY" >&5
6163 echo "${ECHO_T}$TTY" >&6
6164 else
6165   echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6
6167 fi
6168
6169   test -n "$TTY" && break
6170 done
6171 test -n "$TTY" || TTY="$ensc_dflt"
6172
6173
6174         if test -z "${TTY}" && $rq; then
6175                 if test -z ""; then
6176                         { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
6177 echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6178    { (exit 1); exit 1; }; }
6179                 else
6180                         { { echo "$as_me:$LINENO: error:
6181 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6182 " >&5
6183 echo "$as_me: error:
6184 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6185 " >&2;}
6186    { (exit 1); exit 1; }; }
6187                 fi
6188         fi
6189
6190         test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
6191
6192         test "${TTY}"
6193
6194
6195
6196
6197         if test -z ""; then
6198                 rq=true
6199         else
6200                 rq=false
6201         fi
6202
6203         if $rq; then
6204                 ensc_dflt=
6205         else
6206                 ensc_dflt=""
6207         fi
6208
6209         for ac_prog in umount
6210 do
6211   # Extract the first word of "$ac_prog", so it can be a program name with args.
6212 set dummy $ac_prog; ac_word=$2
6213 echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6215 if test "${ac_cv_path_UMOUNT+set}" = set; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   case $UMOUNT in
6219   [\\/]* | ?:[\\/]*)
6220   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
6221   ;;
6222   *)
6223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $ensc_searchpath
6225 do
6226   IFS=$as_save_IFS
6227   test -z "$as_dir" && as_dir=.
6228   for ac_exec_ext in '' $ac_executable_extensions; do
6229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
6231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232     break 2
6233   fi
6234 done
6235 done
6236
6237   ;;
6238 esac
6239 fi
6240 UMOUNT=$ac_cv_path_UMOUNT
6241
6242 if test -n "$UMOUNT"; then
6243   echo "$as_me:$LINENO: result: $UMOUNT" >&5
6244 echo "${ECHO_T}$UMOUNT" >&6
6245 else
6246   echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6
6248 fi
6249
6250   test -n "$UMOUNT" && break
6251 done
6252 test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
6253
6254
6255         if test -z "${UMOUNT}" && $rq; then
6256                 if test -z ""; then
6257                         { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
6258 echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6259    { (exit 1); exit 1; }; }
6260                 else
6261                         { { echo "$as_me:$LINENO: error:
6262 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6263 " >&5
6264 echo "$as_me: error:
6265 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6266 " >&2;}
6267    { (exit 1); exit 1; }; }
6268                 fi
6269         fi
6270
6271         test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
6272
6273         test "${UMOUNT}"
6274
6275
6276
6277
6278         if test -z ""; then
6279                 rq=true
6280         else
6281                 rq=false
6282         fi
6283
6284         if $rq; then
6285                 ensc_dflt=
6286         else
6287                 ensc_dflt=""
6288         fi
6289
6290         for ac_prog in wc
6291 do
6292   # Extract the first word of "$ac_prog", so it can be a program name with args.
6293 set dummy $ac_prog; ac_word=$2
6294 echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6296 if test "${ac_cv_path_WC+set}" = set; then
6297   echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299   case $WC in
6300   [\\/]* | ?:[\\/]*)
6301   ac_cv_path_WC="$WC" # Let the user override the test with a path.
6302   ;;
6303   *)
6304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $ensc_searchpath
6306 do
6307   IFS=$as_save_IFS
6308   test -z "$as_dir" && as_dir=.
6309   for ac_exec_ext in '' $ac_executable_extensions; do
6310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
6312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313     break 2
6314   fi
6315 done
6316 done
6317
6318   ;;
6319 esac
6320 fi
6321 WC=$ac_cv_path_WC
6322
6323 if test -n "$WC"; then
6324   echo "$as_me:$LINENO: result: $WC" >&5
6325 echo "${ECHO_T}$WC" >&6
6326 else
6327   echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6
6329 fi
6330
6331   test -n "$WC" && break
6332 done
6333 test -n "$WC" || WC="$ensc_dflt"
6334
6335
6336         if test -z "${WC}" && $rq; then
6337                 if test -z ""; then
6338                         { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
6339 echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6340    { (exit 1); exit 1; }; }
6341                 else
6342                         { { echo "$as_me:$LINENO: error:
6343 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6344 " >&5
6345 echo "$as_me: error:
6346 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6347 " >&2;}
6348    { (exit 1); exit 1; }; }
6349                 fi
6350         fi
6351
6352         test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
6353
6354         test "${WC}"
6355
6356
6357
6358
6359
6360
6361         if test -z ""; then
6362                 rq=true
6363         else
6364                 rq=false
6365         fi
6366
6367         if $rq; then
6368                 ensc_dflt=
6369         else
6370                 ensc_dflt=""
6371         fi
6372
6373         for ac_prog in ip
6374 do
6375   # Extract the first word of "$ac_prog", so it can be a program name with args.
6376 set dummy $ac_prog; ac_word=$2
6377 echo "$as_me:$LINENO: checking for $ac_word" >&5
6378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6379 if test "${ac_cv_path_IP+set}" = set; then
6380   echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382   case $IP in
6383   [\\/]* | ?:[\\/]*)
6384   ac_cv_path_IP="$IP" # Let the user override the test with a path.
6385   ;;
6386   *)
6387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $ensc_searchpath
6389 do
6390   IFS=$as_save_IFS
6391   test -z "$as_dir" && as_dir=.
6392   for ac_exec_ext in '' $ac_executable_extensions; do
6393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394     ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
6395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396     break 2
6397   fi
6398 done
6399 done
6400
6401   ;;
6402 esac
6403 fi
6404 IP=$ac_cv_path_IP
6405
6406 if test -n "$IP"; then
6407   echo "$as_me:$LINENO: result: $IP" >&5
6408 echo "${ECHO_T}$IP" >&6
6409 else
6410   echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6
6412 fi
6413
6414   test -n "$IP" && break
6415 done
6416 test -n "$IP" || IP="$ensc_dflt"
6417
6418
6419         if test -z "${IP}" && $rq; then
6420                 if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
6421                         { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
6422 echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6423    { (exit 1); exit 1; }; }
6424                 else
6425                         { { echo "$as_me:$LINENO: error:
6426 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6427 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
6428 echo "$as_me: error:
6429 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6430 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
6431    { (exit 1); exit 1; }; }
6432                 fi
6433         fi
6434
6435         test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
6436
6437         test "${IP}"
6438
6439
6440
6441
6442         if test -z ""; then
6443                 rq=true
6444         else
6445                 rq=false
6446         fi
6447
6448         if $rq; then
6449                 ensc_dflt=
6450         else
6451                 ensc_dflt=""
6452         fi
6453
6454         for ac_prog in iptables
6455 do
6456   # Extract the first word of "$ac_prog", so it can be a program name with args.
6457 set dummy $ac_prog; ac_word=$2
6458 echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6460 if test "${ac_cv_path_IPTABLES+set}" = set; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   case $IPTABLES in
6464   [\\/]* | ?:[\\/]*)
6465   ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
6466   ;;
6467   *)
6468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $ensc_searchpath
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473   for ac_exec_ext in '' $ac_executable_extensions; do
6474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475     ac_cv_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
6476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480 done
6481
6482   ;;
6483 esac
6484 fi
6485 IPTABLES=$ac_cv_path_IPTABLES
6486
6487 if test -n "$IPTABLES"; then
6488   echo "$as_me:$LINENO: result: $IPTABLES" >&5
6489 echo "${ECHO_T}$IPTABLES" >&6
6490 else
6491   echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6
6493 fi
6494
6495   test -n "$IPTABLES" && break
6496 done
6497 test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
6498
6499
6500         if test -z "${IPTABLES}" && $rq; then
6501                 if test -z ""; then
6502                         { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
6503 echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6504    { (exit 1); exit 1; }; }
6505                 else
6506                         { { echo "$as_me:$LINENO: error:
6507 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6508 " >&5
6509 echo "$as_me: error:
6510 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6511 " >&2;}
6512    { (exit 1); exit 1; }; }
6513                 fi
6514         fi
6515
6516         test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
6517
6518         test "${IPTABLES}"
6519
6520
6521
6522
6523         if test -z ""; then
6524                 rq=true
6525         else
6526                 rq=false
6527         fi
6528
6529         if $rq; then
6530                 ensc_dflt=
6531         else
6532                 ensc_dflt=""
6533         fi
6534
6535         for ac_prog in modprobe
6536 do
6537   # Extract the first word of "$ac_prog", so it can be a program name with args.
6538 set dummy $ac_prog; ac_word=$2
6539 echo "$as_me:$LINENO: checking for $ac_word" >&5
6540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6541 if test "${ac_cv_path_MODPROBE+set}" = set; then
6542   echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544   case $MODPROBE in
6545   [\\/]* | ?:[\\/]*)
6546   ac_cv_path_MODPROBE="$MODPROBE" # Let the user override the test with a path.
6547   ;;
6548   *)
6549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $ensc_searchpath
6551 do
6552   IFS=$as_save_IFS
6553   test -z "$as_dir" && as_dir=.
6554   for ac_exec_ext in '' $ac_executable_extensions; do
6555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6556     ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
6557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558     break 2
6559   fi
6560 done
6561 done
6562
6563   ;;
6564 esac
6565 fi
6566 MODPROBE=$ac_cv_path_MODPROBE
6567
6568 if test -n "$MODPROBE"; then
6569   echo "$as_me:$LINENO: result: $MODPROBE" >&5
6570 echo "${ECHO_T}$MODPROBE" >&6
6571 else
6572   echo "$as_me:$LINENO: result: no" >&5
6573 echo "${ECHO_T}no" >&6
6574 fi
6575
6576   test -n "$MODPROBE" && break
6577 done
6578 test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
6579
6580
6581         if test -z "${MODPROBE}" && $rq; then
6582                 if test -z ""; then
6583                         { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
6584 echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6585    { (exit 1); exit 1; }; }
6586                 else
6587                         { { echo "$as_me:$LINENO: error:
6588 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6589 " >&5
6590 echo "$as_me: error:
6591 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6592 " >&2;}
6593    { (exit 1); exit 1; }; }
6594                 fi
6595         fi
6596
6597         test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
6598
6599         test "${MODPROBE}"
6600
6601
6602
6603
6604         if test -z ""; then
6605                 rq=true
6606         else
6607                 rq=false
6608         fi
6609
6610         if $rq; then
6611                 ensc_dflt=
6612         else
6613                 ensc_dflt=""
6614         fi
6615
6616         for ac_prog in nameif
6617 do
6618   # Extract the first word of "$ac_prog", so it can be a program name with args.
6619 set dummy $ac_prog; ac_word=$2
6620 echo "$as_me:$LINENO: checking for $ac_word" >&5
6621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6622 if test "${ac_cv_path_NAMEIF+set}" = set; then
6623   echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625   case $NAMEIF in
6626   [\\/]* | ?:[\\/]*)
6627   ac_cv_path_NAMEIF="$NAMEIF" # Let the user override the test with a path.
6628   ;;
6629   *)
6630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $ensc_searchpath
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635   for ac_exec_ext in '' $ac_executable_extensions; do
6636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637     ac_cv_path_NAMEIF="$as_dir/$ac_word$ac_exec_ext"
6638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642 done
6643
6644   ;;
6645 esac
6646 fi
6647 NAMEIF=$ac_cv_path_NAMEIF
6648
6649 if test -n "$NAMEIF"; then
6650   echo "$as_me:$LINENO: result: $NAMEIF" >&5
6651 echo "${ECHO_T}$NAMEIF" >&6
6652 else
6653   echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6
6655 fi
6656
6657   test -n "$NAMEIF" && break
6658 done
6659 test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
6660
6661
6662         if test -z "${NAMEIF}" && $rq; then
6663                 if test -z ""; then
6664                         { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
6665 echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6666    { (exit 1); exit 1; }; }
6667                 else
6668                         { { echo "$as_me:$LINENO: error:
6669 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6670 " >&5
6671 echo "$as_me: error:
6672 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6673 " >&2;}
6674    { (exit 1); exit 1; }; }
6675                 fi
6676         fi
6677
6678         test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
6679
6680         test "${NAMEIF}"
6681
6682
6683
6684
6685         if test -z ""; then
6686                 rq=true
6687         else
6688                 rq=false
6689         fi
6690
6691         if $rq; then
6692                 ensc_dflt=
6693         else
6694                 ensc_dflt=""
6695         fi
6696
6697         for ac_prog in nohup
6698 do
6699   # Extract the first word of "$ac_prog", so it can be a program name with args.
6700 set dummy $ac_prog; ac_word=$2
6701 echo "$as_me:$LINENO: checking for $ac_word" >&5
6702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6703 if test "${ac_cv_path_NOHUP+set}" = set; then
6704   echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706   case $NOHUP in
6707   [\\/]* | ?:[\\/]*)
6708   ac_cv_path_NOHUP="$NOHUP" # Let the user override the test with a path.
6709   ;;
6710   *)
6711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $ensc_searchpath
6713 do
6714   IFS=$as_save_IFS
6715   test -z "$as_dir" && as_dir=.
6716   for ac_exec_ext in '' $ac_executable_extensions; do
6717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718     ac_cv_path_NOHUP="$as_dir/$ac_word$ac_exec_ext"
6719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720     break 2
6721   fi
6722 done
6723 done
6724
6725   ;;
6726 esac
6727 fi
6728 NOHUP=$ac_cv_path_NOHUP
6729
6730 if test -n "$NOHUP"; then
6731   echo "$as_me:$LINENO: result: $NOHUP" >&5
6732 echo "${ECHO_T}$NOHUP" >&6
6733 else
6734   echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6
6736 fi
6737
6738   test -n "$NOHUP" && break
6739 done
6740 test -n "$NOHUP" || NOHUP="$ensc_dflt"
6741
6742
6743         if test -z "${NOHUP}" && $rq; then
6744                 if test -z ""; then
6745                         { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
6746 echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6747    { (exit 1); exit 1; }; }
6748                 else
6749                         { { echo "$as_me:$LINENO: error:
6750 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6751 " >&5
6752 echo "$as_me: error:
6753 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6754 " >&2;}
6755    { (exit 1); exit 1; }; }
6756                 fi
6757         fi
6758
6759         test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
6760
6761         test "${NOHUP}"
6762
6763
6764
6765
6766         if test -z ""; then
6767                 rq=true
6768         else
6769                 rq=false
6770         fi
6771
6772         if $rq; then
6773                 ensc_dflt=
6774         else
6775                 ensc_dflt=""
6776         fi
6777
6778         for ac_prog in rmmod
6779 do
6780   # Extract the first word of "$ac_prog", so it can be a program name with args.
6781 set dummy $ac_prog; ac_word=$2
6782 echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6784 if test "${ac_cv_path_RMMOD+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   case $RMMOD in
6788   [\\/]* | ?:[\\/]*)
6789   ac_cv_path_RMMOD="$RMMOD" # Let the user override the test with a path.
6790   ;;
6791   *)
6792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $ensc_searchpath
6794 do
6795   IFS=$as_save_IFS
6796   test -z "$as_dir" && as_dir=.
6797   for ac_exec_ext in '' $ac_executable_extensions; do
6798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799     ac_cv_path_RMMOD="$as_dir/$ac_word$ac_exec_ext"
6800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801     break 2
6802   fi
6803 done
6804 done
6805
6806   ;;
6807 esac
6808 fi
6809 RMMOD=$ac_cv_path_RMMOD
6810
6811 if test -n "$RMMOD"; then
6812   echo "$as_me:$LINENO: result: $RMMOD" >&5
6813 echo "${ECHO_T}$RMMOD" >&6
6814 else
6815   echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6
6817 fi
6818
6819   test -n "$RMMOD" && break
6820 done
6821 test -n "$RMMOD" || RMMOD="$ensc_dflt"
6822
6823
6824         if test -z "${RMMOD}" && $rq; then
6825                 if test -z ""; then
6826                         { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
6827 echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6828    { (exit 1); exit 1; }; }
6829                 else
6830                         { { echo "$as_me:$LINENO: error:
6831 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6832 " >&5
6833 echo "$as_me: error:
6834 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6835 " >&2;}
6836    { (exit 1); exit 1; }; }
6837                 fi
6838         fi
6839
6840         test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
6841
6842         test "${RMMOD}"
6843
6844
6845
6846
6847         if test -z ""; then
6848                 rq=true
6849         else
6850                 rq=false
6851         fi
6852
6853         if $rq; then
6854                 ensc_dflt=
6855         else
6856                 ensc_dflt=""
6857         fi
6858
6859         for ac_prog in vconfig
6860 do
6861   # Extract the first word of "$ac_prog", so it can be a program name with args.
6862 set dummy $ac_prog; ac_word=$2
6863 echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6865 if test "${ac_cv_path_VCONFIG+set}" = set; then
6866   echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868   case $VCONFIG in
6869   [\\/]* | ?:[\\/]*)
6870   ac_cv_path_VCONFIG="$VCONFIG" # Let the user override the test with a path.
6871   ;;
6872   *)
6873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $ensc_searchpath
6875 do
6876   IFS=$as_save_IFS
6877   test -z "$as_dir" && as_dir=.
6878   for ac_exec_ext in '' $ac_executable_extensions; do
6879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880     ac_cv_path_VCONFIG="$as_dir/$ac_word$ac_exec_ext"
6881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882     break 2
6883   fi
6884 done
6885 done
6886
6887   ;;
6888 esac
6889 fi
6890 VCONFIG=$ac_cv_path_VCONFIG
6891
6892 if test -n "$VCONFIG"; then
6893   echo "$as_me:$LINENO: result: $VCONFIG" >&5
6894 echo "${ECHO_T}$VCONFIG" >&6
6895 else
6896   echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6
6898 fi
6899
6900   test -n "$VCONFIG" && break
6901 done
6902 test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
6903
6904
6905         if test -z "${VCONFIG}" && $rq; then
6906                 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
6907                         { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
6908 echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6909    { (exit 1); exit 1; }; }
6910                 else
6911                         { { echo "$as_me:$LINENO: error:
6912 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6913 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
6914 echo "$as_me: error:
6915 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6916 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
6917    { (exit 1); exit 1; }; }
6918                 fi
6919         fi
6920
6921         test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
6922
6923         test "${VCONFIG}"
6924
6925
6926
6927
6928         if test -z ""; then
6929                 rq=true
6930         else
6931                 rq=false
6932         fi
6933
6934         if $rq; then
6935                 ensc_dflt=
6936         else
6937                 ensc_dflt=""
6938         fi
6939
6940         for ac_prog in wget
6941 do
6942   # Extract the first word of "$ac_prog", so it can be a program name with args.
6943 set dummy $ac_prog; ac_word=$2
6944 echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6946 if test "${ac_cv_path_WGET+set}" = set; then
6947   echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949   case $WGET in
6950   [\\/]* | ?:[\\/]*)
6951   ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
6952   ;;
6953   *)
6954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $ensc_searchpath
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959   for ac_exec_ext in '' $ac_executable_extensions; do
6960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961     ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
6962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966 done
6967
6968   ;;
6969 esac
6970 fi
6971 WGET=$ac_cv_path_WGET
6972
6973 if test -n "$WGET"; then
6974   echo "$as_me:$LINENO: result: $WGET" >&5
6975 echo "${ECHO_T}$WGET" >&6
6976 else
6977   echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6
6979 fi
6980
6981   test -n "$WGET" && break
6982 done
6983 test -n "$WGET" || WGET="$ensc_dflt"
6984
6985
6986         if test -z "${WGET}" && $rq; then
6987                 if test -z ""; then
6988                         { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
6989 echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6990    { (exit 1); exit 1; }; }
6991                 else
6992                         { { echo "$as_me:$LINENO: error:
6993 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
6994 " >&5
6995 echo "$as_me: error:
6996 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
6997 " >&2;}
6998    { (exit 1); exit 1; }; }
6999                 fi
7000         fi
7001
7002         test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
7003
7004         test "${WGET}"
7005
7006
7007
7008
7009
7010         if test -z ":"; then
7011                 rq=true
7012         else
7013                 rq=false
7014         fi
7015
7016         if $rq; then
7017                 ensc_dflt=
7018         else
7019                 ensc_dflt=":"
7020         fi
7021
7022         for ac_prog in doxygen
7023 do
7024   # Extract the first word of "$ac_prog", so it can be a program name with args.
7025 set dummy $ac_prog; ac_word=$2
7026 echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7028 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   case $DOXYGEN in
7032   [\\/]* | ?:[\\/]*)
7033   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7034   ;;
7035   *)
7036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $ensc_searchpath
7038 do
7039   IFS=$as_save_IFS
7040   test -z "$as_dir" && as_dir=.
7041   for ac_exec_ext in '' $ac_executable_extensions; do
7042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045     break 2
7046   fi
7047 done
7048 done
7049
7050   ;;
7051 esac
7052 fi
7053 DOXYGEN=$ac_cv_path_DOXYGEN
7054
7055 if test -n "$DOXYGEN"; then
7056   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7057 echo "${ECHO_T}$DOXYGEN" >&6
7058 else
7059   echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6
7061 fi
7062
7063   test -n "$DOXYGEN" && break
7064 done
7065 test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
7066
7067
7068         if test -z "${DOXYGEN}" && $rq; then
7069                 if test -z ""; then
7070                         { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
7071 echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7072    { (exit 1); exit 1; }; }
7073                 else
7074                         { { echo "$as_me:$LINENO: error:
7075 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7076 " >&5
7077 echo "$as_me: error:
7078 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7079 " >&2;}
7080    { (exit 1); exit 1; }; }
7081                 fi
7082         fi
7083
7084         test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
7085
7086         test "${DOXYGEN}"
7087
7088
7089
7090
7091         if test -z ":"; then
7092                 rq=true
7093         else
7094                 rq=false
7095         fi
7096
7097         if $rq; then
7098                 ensc_dflt=
7099         else
7100                 ensc_dflt=":"
7101         fi
7102
7103         for ac_prog in xsltp
7104 do
7105   # Extract the first word of "$ac_prog", so it can be a program name with args.
7106 set dummy $ac_prog; ac_word=$2
7107 echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7109 if test "${ac_cv_path_XSLTP+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   case $XSLTP in
7113   [\\/]* | ?:[\\/]*)
7114   ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
7115   ;;
7116   *)
7117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $ensc_searchpath
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124     ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130
7131   ;;
7132 esac
7133 fi
7134 XSLTP=$ac_cv_path_XSLTP
7135
7136 if test -n "$XSLTP"; then
7137   echo "$as_me:$LINENO: result: $XSLTP" >&5
7138 echo "${ECHO_T}$XSLTP" >&6
7139 else
7140   echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6
7142 fi
7143
7144   test -n "$XSLTP" && break
7145 done
7146 test -n "$XSLTP" || XSLTP="$ensc_dflt"
7147
7148
7149         if test -z "${XSLTP}" && $rq; then
7150                 if test -z ""; then
7151                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
7152 echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7153    { (exit 1); exit 1; }; }
7154                 else
7155                         { { echo "$as_me:$LINENO: error:
7156 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7157 " >&5
7158 echo "$as_me: error:
7159 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7160 " >&2;}
7161    { (exit 1); exit 1; }; }
7162                 fi
7163         fi
7164
7165         test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
7166
7167         test "${XSLTP}"
7168
7169
7170
7171
7172         if test -z ":"; then
7173                 rq=true
7174         else
7175                 rq=false
7176         fi
7177
7178         if $rq; then
7179                 ensc_dflt=
7180         else
7181                 ensc_dflt=":"
7182         fi
7183
7184         for ac_prog in xsltproc
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_XSLTPROC+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   case $XSLTPROC in
7194   [\\/]* | ?:[\\/]*)
7195   ac_cv_path_XSLTPROC="$XSLTPROC" # 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_XSLTPROC="$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 XSLTPROC=$ac_cv_path_XSLTPROC
7216
7217 if test -n "$XSLTPROC"; then
7218   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
7219 echo "${ECHO_T}$XSLTPROC" >&6
7220 else
7221   echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6
7223 fi
7224
7225   test -n "$XSLTPROC" && break
7226 done
7227 test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
7228
7229
7230         if test -z "${XSLTPROC}" && $rq; then
7231                 if test -z ""; then
7232                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
7233 echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7234    { (exit 1); exit 1; }; }
7235                 else
7236                         { { echo "$as_me:$LINENO: error:
7237 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7238 " >&5
7239 echo "$as_me: error:
7240 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7241 " >&2;}
7242    { (exit 1); exit 1; }; }
7243                 fi
7244         fi
7245
7246         test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
7247
7248         test "${XSLTPROC}"
7249
7250
7251
7252
7253 if test "$XSLTP"    != ':'; then
7254   HAVE_XSLTP_TRUE=
7255   HAVE_XSLTP_FALSE='#'
7256 else
7257   HAVE_XSLTP_TRUE='#'
7258   HAVE_XSLTP_FALSE=
7259 fi
7260
7261
7262
7263 if test "$XSLTPROC" != ':'; then
7264   HAVE_XSLTPROC_TRUE=
7265   HAVE_XSLTPROC_FALSE='#'
7266 else
7267   HAVE_XSLTPROC_TRUE='#'
7268   HAVE_XSLTPROC_FALSE=
7269 fi
7270
7271
7272
7273
7274
7275         warn_flags="-Werror -W"
7276         echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
7277 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6
7278         ac_ext=c
7279 ac_cpp='$CPP $CPPFLAGS'
7280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7283
7284         __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
7285         CFLAGS="$warn_flags"
7286         cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h.  */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h.  */
7292 inline static void f(){}
7293 int
7294 main ()
7295 {
7296
7297   ;
7298   return 0;
7299 }
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303   (eval $ac_compile) 2>conftest.er1
7304   ac_status=$?
7305   grep -v '^ *+' conftest.er1 >conftest.err
7306   rm -f conftest.er1
7307   cat conftest.err >&5
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); } &&
7310          { ac_try='test -z "$ac_c_werror_flag"
7311                          || test ! -s conftest.err'
7312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313   (eval $ac_try) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); }; } &&
7317          { ac_try='test -s conftest.$ac_objext'
7318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319   (eval $ac_try) 2>&5
7320   ac_status=$?
7321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); }; }; then
7323   ensc_sys_compilerwarnflags_C=${warn_flags}
7324 else
7325   echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7327
7328 ensc_sys_compilerwarnflags_C=
7329 fi
7330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7331         ac_ext=c
7332 ac_cpp='$CPP $CPPFLAGS'
7333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7336
7337         CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7338
7339         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
7340                 echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7342         else
7343                 echo "$as_me:$LINENO: result: yes" >&5
7344 echo "${ECHO_T}yes" >&6
7345         fi
7346
7347
7348
7349
7350
7351 echo 'void f(){}' > conftest.c
7352   for i in -std=c99 -Wall -pedantic -W
7353   do
7354     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7355 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7356     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7357     then
7358       CFLAGS="${CFLAGS} $i"
7359       echo "$as_me:$LINENO: result: yes" >&5
7360 echo "${ECHO_T}yes" >&6
7361     else
7362       echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6
7364     fi
7365   done
7366   rm -f conftest.c conftest.o
7367
7368
7369
7370         warn_flags="-Werror -W"
7371         echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
7372 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6
7373         ac_ext=cc
7374 ac_cpp='$CXXCPP $CPPFLAGS'
7375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7378
7379         __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
7380         CXXFLAGS="$warn_flags"
7381         cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h.  */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h.  */
7387 inline static void f(){}
7388 int
7389 main ()
7390 {
7391
7392   ;
7393   return 0;
7394 }
7395 _ACEOF
7396 rm -f conftest.$ac_objext
7397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7398   (eval $ac_compile) 2>conftest.er1
7399   ac_status=$?
7400   grep -v '^ *+' conftest.er1 >conftest.err
7401   rm -f conftest.er1
7402   cat conftest.err >&5
7403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404   (exit $ac_status); } &&
7405          { ac_try='test -z "$ac_cxx_werror_flag"
7406                          || test ! -s conftest.err'
7407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408   (eval $ac_try) 2>&5
7409   ac_status=$?
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); }; } &&
7412          { ac_try='test -s conftest.$ac_objext'
7413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414   (eval $ac_try) 2>&5
7415   ac_status=$?
7416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417   (exit $ac_status); }; }; then
7418   ensc_sys_compilerwarnflags_CXX=${warn_flags}
7419 else
7420   echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423 ensc_sys_compilerwarnflags_CXX=
7424 fi
7425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7426         ac_ext=c
7427 ac_cpp='$CPP $CPPFLAGS'
7428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7431
7432         CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7433
7434         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
7435                 echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6
7437         else
7438                 echo "$as_me:$LINENO: result: yes" >&5
7439 echo "${ECHO_T}yes" >&6
7440         fi
7441
7442
7443
7444
7445
7446   echo 'void f(){}' > conftest.cc
7447   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
7448   do
7449     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
7450 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
7451     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
7452     then
7453       CXXFLAGS="${CXXFLAGS} $i"
7454       echo "$as_me:$LINENO: result: yes" >&5
7455 echo "${ECHO_T}yes" >&6
7456     else
7457       echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6
7459     fi
7460   done
7461   rm -f conftest.cc conftest.o
7462
7463
7464 echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
7465 echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6
7466 # Check whether --enable-extra-optimizations or --disable-extra-optimizations was given.
7467 if test "${enable_extra_optimizations+set}" = set; then
7468   enableval="$enable_extra_optimizations"
7469   case "$enableval" in
7470                   (yes) use_extra_optimizations=1;;
7471                   (no)  use_extra_optimizations=;;
7472                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
7473 echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
7474    { (exit 1); exit 1; }; };;
7475                esac
7476 else
7477   use_extra_optimizations=1
7478 fi;
7479
7480 if test x"$use_extra_optimizations" = x; then
7481         echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6
7483 else
7484         echo "$as_me:$LINENO: result: yes" >&5
7485 echo "${ECHO_T}yes" >&6
7486
7487
7488
7489 echo 'void f(){}' > conftest.c
7490   for i in -funit-at-a-time
7491   do
7492     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7493 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7494     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7495     then
7496       CFLAGS="${CFLAGS} $i"
7497       echo "$as_me:$LINENO: result: yes" >&5
7498 echo "${ECHO_T}yes" >&6
7499     else
7500       echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6
7502     fi
7503   done
7504   rm -f conftest.c conftest.o
7505
7506
7507
7508
7509   echo 'void f(){}' > conftest.cc
7510   for i in -funit-at-a-time
7511   do
7512     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
7513 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
7514     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
7515     then
7516       CXXFLAGS="${CXXFLAGS} $i"
7517       echo "$as_me:$LINENO: result: yes" >&5
7518 echo "${ECHO_T}yes" >&6
7519     else
7520       echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6
7522     fi
7523   done
7524   rm -f conftest.cc conftest.o
7525
7526 fi
7527
7528 echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
7529 echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6
7530 # Check whether --enable-lib-debug or --disable-lib-debug was given.
7531 if test "${enable_lib_debug+set}" = set; then
7532   enableval="$enable_lib_debug"
7533   case "$enableval" in
7534                   (yes) use_lib_debug=1;;
7535                   (no)  use_lib_debug=;;
7536                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
7537 echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
7538    { (exit 1); exit 1; }; };;
7539                esac
7540 else
7541    use_lib_debug=
7542 fi;
7543
7544 if test x"$use_lib_debug" = x; then
7545         LIB_DEBUG_CPPFLAGS=-DNDEBUG
7546
7547         echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7549 else
7550
7551         echo "$as_me:$LINENO: result: yes" >&5
7552 echo "${ECHO_T}yes" >&6
7553 fi
7554
7555 echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
7556 echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6
7557 # Check whether --enable-expensive-tests or --disable-expensive-tests was given.
7558 if test "${enable_expensive_tests+set}" = set; then
7559   enableval="$enable_expensive_tests"
7560   case "$enableval" in
7561                  (yes|no)  use_expensive_tests=$enableval;;
7562                  (*)       { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-expensive-tests'" >&5
7563 echo "$as_me: error: '$enableval' is not a valid value for '--disable-expensive-tests'" >&2;}
7564    { (exit 1); exit 1; }; };;
7565                esac
7566 else
7567    use_expensive_tests=yes
7568 fi;
7569 echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
7570 echo "${ECHO_T}$use_expensive_tests" >&6
7571
7572 ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
7573
7574
7575
7576
7577         echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
7578 echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6
7579         echo "$as_me:$LINENO: result: " >&5
7580 echo "${ECHO_T}" >&6
7581
7582         ac_ext=c
7583 ac_cpp='$CPP $CPPFLAGS'
7584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587
7588         echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
7589 echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6
7590 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   cat >conftest.$ac_ext <<_ACEOF
7594 /* confdefs.h.  */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h.  */
7599
7600 #include <linux/personality.h>
7601
7602
7603 int
7604 main ()
7605 {
7606 #ifndef MMAP_PAGE_ZERO
7607   char *p = (char *) MMAP_PAGE_ZERO;
7608 #endif
7609
7610   ;
7611   return 0;
7612 }
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7616   (eval $ac_compile) 2>conftest.er1
7617   ac_status=$?
7618   grep -v '^ *+' conftest.er1 >conftest.err
7619   rm -f conftest.er1
7620   cat conftest.err >&5
7621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622   (exit $ac_status); } &&
7623          { ac_try='test -z "$ac_c_werror_flag"
7624                          || test ! -s conftest.err'
7625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626   (eval $ac_try) 2>&5
7627   ac_status=$?
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); }; } &&
7630          { ac_try='test -s conftest.$ac_objext'
7631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632   (eval $ac_try) 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }; }; then
7636   ac_cv_have_decl_MMAP_PAGE_ZERO=yes
7637 else
7638   echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7640
7641 ac_cv_have_decl_MMAP_PAGE_ZERO=no
7642 fi
7643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7644 fi
7645 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
7646 echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6
7647 if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
7648
7649 cat >>confdefs.h <<_ACEOF
7650 #define HAVE_DECL_MMAP_PAGE_ZERO 1
7651 _ACEOF
7652
7653
7654 else
7655   cat >>confdefs.h <<_ACEOF
7656 #define HAVE_DECL_MMAP_PAGE_ZERO 0
7657 _ACEOF
7658
7659
7660 fi
7661 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
7662 echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6
7663 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h.  */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h.  */
7672
7673 #include <linux/personality.h>
7674
7675
7676 int
7677 main ()
7678 {
7679 #ifndef ADDR_LIMIT_32BIT
7680   char *p = (char *) ADDR_LIMIT_32BIT;
7681 #endif
7682
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689   (eval $ac_compile) 2>conftest.er1
7690   ac_status=$?
7691   grep -v '^ *+' conftest.er1 >conftest.err
7692   rm -f conftest.er1
7693   cat conftest.err >&5
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); } &&
7696          { ac_try='test -z "$ac_c_werror_flag"
7697                          || test ! -s conftest.err'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; } &&
7703          { ac_try='test -s conftest.$ac_objext'
7704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705   (eval $ac_try) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); }; }; then
7709   ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
7710 else
7711   echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714 ac_cv_have_decl_ADDR_LIMIT_32BIT=no
7715 fi
7716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7717 fi
7718 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
7719 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6
7720 if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
7721
7722 cat >>confdefs.h <<_ACEOF
7723 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
7724 _ACEOF
7725
7726
7727 else
7728   cat >>confdefs.h <<_ACEOF
7729 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
7730 _ACEOF
7731
7732
7733 fi
7734 echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
7735 echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6
7736 if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745
7746 #include <linux/personality.h>
7747
7748
7749 int
7750 main ()
7751 {
7752 #ifndef SHORT_INODE
7753   char *p = (char *) SHORT_INODE;
7754 #endif
7755
7756   ;
7757   return 0;
7758 }
7759 _ACEOF
7760 rm -f conftest.$ac_objext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7762   (eval $ac_compile) 2>conftest.er1
7763   ac_status=$?
7764   grep -v '^ *+' conftest.er1 >conftest.err
7765   rm -f conftest.er1
7766   cat conftest.err >&5
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); } &&
7769          { ac_try='test -z "$ac_c_werror_flag"
7770                          || test ! -s conftest.err'
7771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772   (eval $ac_try) 2>&5
7773   ac_status=$?
7774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775   (exit $ac_status); }; } &&
7776          { ac_try='test -s conftest.$ac_objext'
7777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778   (eval $ac_try) 2>&5
7779   ac_status=$?
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); }; }; then
7782   ac_cv_have_decl_SHORT_INODE=yes
7783 else
7784   echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7786
7787 ac_cv_have_decl_SHORT_INODE=no
7788 fi
7789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7790 fi
7791 echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
7792 echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6
7793 if test $ac_cv_have_decl_SHORT_INODE = yes; then
7794
7795 cat >>confdefs.h <<_ACEOF
7796 #define HAVE_DECL_SHORT_INODE 1
7797 _ACEOF
7798
7799
7800 else
7801   cat >>confdefs.h <<_ACEOF
7802 #define HAVE_DECL_SHORT_INODE 0
7803 _ACEOF
7804
7805
7806 fi
7807 echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
7808 echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6
7809 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
7810   echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812   cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h.  */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h.  */
7818
7819 #include <linux/personality.h>
7820
7821
7822 int
7823 main ()
7824 {
7825 #ifndef WHOLE_SECONDS
7826   char *p = (char *) WHOLE_SECONDS;
7827 #endif
7828
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835   (eval $ac_compile) 2>conftest.er1
7836   ac_status=$?
7837   grep -v '^ *+' conftest.er1 >conftest.err
7838   rm -f conftest.er1
7839   cat conftest.err >&5
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } &&
7842          { ac_try='test -z "$ac_c_werror_flag"
7843                          || test ! -s conftest.err'
7844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; } &&
7849          { ac_try='test -s conftest.$ac_objext'
7850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851   (eval $ac_try) 2>&5
7852   ac_status=$?
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); }; }; then
7855   ac_cv_have_decl_WHOLE_SECONDS=yes
7856 else
7857   echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7859
7860 ac_cv_have_decl_WHOLE_SECONDS=no
7861 fi
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
7865 echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6
7866 if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
7867
7868 cat >>confdefs.h <<_ACEOF
7869 #define HAVE_DECL_WHOLE_SECONDS 1
7870 _ACEOF
7871
7872
7873 else
7874   cat >>confdefs.h <<_ACEOF
7875 #define HAVE_DECL_WHOLE_SECONDS 0
7876 _ACEOF
7877
7878
7879 fi
7880 echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
7881 echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6
7882 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
7883   echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885   cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891
7892 #include <linux/personality.h>
7893
7894
7895 int
7896 main ()
7897 {
7898 #ifndef STICKY_TIMEOUTS
7899   char *p = (char *) STICKY_TIMEOUTS;
7900 #endif
7901
7902   ;
7903   return 0;
7904 }
7905 _ACEOF
7906 rm -f conftest.$ac_objext
7907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7908   (eval $ac_compile) 2>conftest.er1
7909   ac_status=$?
7910   grep -v '^ *+' conftest.er1 >conftest.err
7911   rm -f conftest.er1
7912   cat conftest.err >&5
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); } &&
7915          { ac_try='test -z "$ac_c_werror_flag"
7916                          || test ! -s conftest.err'
7917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918   (eval $ac_try) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; } &&
7922          { ac_try='test -s conftest.$ac_objext'
7923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924   (eval $ac_try) 2>&5
7925   ac_status=$?
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); }; }; then
7928   ac_cv_have_decl_STICKY_TIMEOUTS=yes
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 ac_cv_have_decl_STICKY_TIMEOUTS=no
7934 fi
7935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7936 fi
7937 echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
7938 echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6
7939 if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
7940
7941 cat >>confdefs.h <<_ACEOF
7942 #define HAVE_DECL_STICKY_TIMEOUTS 1
7943 _ACEOF
7944
7945
7946 else
7947   cat >>confdefs.h <<_ACEOF
7948 #define HAVE_DECL_STICKY_TIMEOUTS 0
7949 _ACEOF
7950
7951
7952 fi
7953 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
7954 echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6
7955 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
7956   echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958   cat >conftest.$ac_ext <<_ACEOF
7959 /* confdefs.h.  */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h.  */
7964
7965 #include <linux/personality.h>
7966
7967
7968 int
7969 main ()
7970 {
7971 #ifndef ADDR_LIMIT_3GB
7972   char *p = (char *) ADDR_LIMIT_3GB;
7973 #endif
7974
7975   ;
7976   return 0;
7977 }
7978 _ACEOF
7979 rm -f conftest.$ac_objext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981   (eval $ac_compile) 2>conftest.er1
7982   ac_status=$?
7983   grep -v '^ *+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } &&
7988          { ac_try='test -z "$ac_c_werror_flag"
7989                          || test ! -s conftest.err'
7990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991   (eval $ac_try) 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; } &&
7995          { ac_try='test -s conftest.$ac_objext'
7996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997   (eval $ac_try) 2>&5
7998   ac_status=$?
7999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000   (exit $ac_status); }; }; then
8001   ac_cv_have_decl_ADDR_LIMIT_3GB=yes
8002 else
8003   echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8005
8006 ac_cv_have_decl_ADDR_LIMIT_3GB=no
8007 fi
8008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8009 fi
8010 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
8011 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6
8012 if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
8013
8014 cat >>confdefs.h <<_ACEOF
8015 #define HAVE_DECL_ADDR_LIMIT_3GB 1
8016 _ACEOF
8017
8018
8019 else
8020   cat >>confdefs.h <<_ACEOF
8021 #define HAVE_DECL_ADDR_LIMIT_3GB 0
8022 _ACEOF
8023
8024
8025 fi
8026
8027
8028
8029         echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
8030 echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6
8031 if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
8032   echo $ECHO_N "(cached) $ECHO_C" >&6
8033 else
8034   cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h.  */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h.  */
8040
8041 #include <linux/personality.h>
8042
8043
8044 int
8045 main ()
8046 {
8047 #ifndef PER_LINUX
8048   char *p = (char *) PER_LINUX;
8049 #endif
8050
8051   ;
8052   return 0;
8053 }
8054 _ACEOF
8055 rm -f conftest.$ac_objext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8057   (eval $ac_compile) 2>conftest.er1
8058   ac_status=$?
8059   grep -v '^ *+' conftest.er1 >conftest.err
8060   rm -f conftest.er1
8061   cat conftest.err >&5
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); } &&
8064          { ac_try='test -z "$ac_c_werror_flag"
8065                          || test ! -s conftest.err'
8066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067   (eval $ac_try) 2>&5
8068   ac_status=$?
8069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070   (exit $ac_status); }; } &&
8071          { ac_try='test -s conftest.$ac_objext'
8072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073   (eval $ac_try) 2>&5
8074   ac_status=$?
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); }; }; then
8077   ac_cv_have_decl_PER_LINUX=yes
8078 else
8079   echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082 ac_cv_have_decl_PER_LINUX=no
8083 fi
8084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8085 fi
8086 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
8087 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6
8088 if test $ac_cv_have_decl_PER_LINUX = yes; then
8089
8090 cat >>confdefs.h <<_ACEOF
8091 #define HAVE_DECL_PER_LINUX 1
8092 _ACEOF
8093
8094
8095 else
8096   cat >>confdefs.h <<_ACEOF
8097 #define HAVE_DECL_PER_LINUX 0
8098 _ACEOF
8099
8100
8101 fi
8102 echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
8103 echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6
8104 if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107   cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h.  */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h.  */
8113
8114 #include <linux/personality.h>
8115
8116
8117 int
8118 main ()
8119 {
8120 #ifndef PER_LINUX_32BIT
8121   char *p = (char *) PER_LINUX_32BIT;
8122 #endif
8123
8124   ;
8125   return 0;
8126 }
8127 _ACEOF
8128 rm -f conftest.$ac_objext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130   (eval $ac_compile) 2>conftest.er1
8131   ac_status=$?
8132   grep -v '^ *+' conftest.er1 >conftest.err
8133   rm -f conftest.er1
8134   cat conftest.err >&5
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); } &&
8137          { ac_try='test -z "$ac_c_werror_flag"
8138                          || test ! -s conftest.err'
8139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; } &&
8144          { ac_try='test -s conftest.$ac_objext'
8145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146   (eval $ac_try) 2>&5
8147   ac_status=$?
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); }; }; then
8150   ac_cv_have_decl_PER_LINUX_32BIT=yes
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155 ac_cv_have_decl_PER_LINUX_32BIT=no
8156 fi
8157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8158 fi
8159 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
8160 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6
8161 if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
8162
8163 cat >>confdefs.h <<_ACEOF
8164 #define HAVE_DECL_PER_LINUX_32BIT 1
8165 _ACEOF
8166
8167
8168 else
8169   cat >>confdefs.h <<_ACEOF
8170 #define HAVE_DECL_PER_LINUX_32BIT 0
8171 _ACEOF
8172
8173
8174 fi
8175 echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
8176 echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6
8177 if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
8178   echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180   cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h.  */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h.  */
8186
8187 #include <linux/personality.h>
8188
8189
8190 int
8191 main ()
8192 {
8193 #ifndef PER_SVR4
8194   char *p = (char *) PER_SVR4;
8195 #endif
8196
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8203   (eval $ac_compile) 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -z "$ac_c_werror_flag"
8211                          || test ! -s conftest.err'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; } &&
8217          { ac_try='test -s conftest.$ac_objext'
8218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219   (eval $ac_try) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; }; then
8223   ac_cv_have_decl_PER_SVR4=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 ac_cv_have_decl_PER_SVR4=no
8229 fi
8230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8231 fi
8232 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
8233 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6
8234 if test $ac_cv_have_decl_PER_SVR4 = yes; then
8235
8236 cat >>confdefs.h <<_ACEOF
8237 #define HAVE_DECL_PER_SVR4 1
8238 _ACEOF
8239
8240
8241 else
8242   cat >>confdefs.h <<_ACEOF
8243 #define HAVE_DECL_PER_SVR4 0
8244 _ACEOF
8245
8246
8247 fi
8248 echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
8249 echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6
8250 if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   cat >conftest.$ac_ext <<_ACEOF
8254 /* confdefs.h.  */
8255 _ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h.  */
8259
8260 #include <linux/personality.h>
8261
8262
8263 int
8264 main ()
8265 {
8266 #ifndef PER_SVR3
8267   char *p = (char *) PER_SVR3;
8268 #endif
8269
8270   ;
8271   return 0;
8272 }
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8276   (eval $ac_compile) 2>conftest.er1
8277   ac_status=$?
8278   grep -v '^ *+' conftest.er1 >conftest.err
8279   rm -f conftest.er1
8280   cat conftest.err >&5
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); } &&
8283          { ac_try='test -z "$ac_c_werror_flag"
8284                          || test ! -s conftest.err'
8285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286   (eval $ac_try) 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; } &&
8290          { ac_try='test -s conftest.$ac_objext'
8291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292   (eval $ac_try) 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); }; }; then
8296   ac_cv_have_decl_PER_SVR3=yes
8297 else
8298   echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301 ac_cv_have_decl_PER_SVR3=no
8302 fi
8303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8304 fi
8305 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
8306 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6
8307 if test $ac_cv_have_decl_PER_SVR3 = yes; then
8308
8309 cat >>confdefs.h <<_ACEOF
8310 #define HAVE_DECL_PER_SVR3 1
8311 _ACEOF
8312
8313
8314 else
8315   cat >>confdefs.h <<_ACEOF
8316 #define HAVE_DECL_PER_SVR3 0
8317 _ACEOF
8318
8319
8320 fi
8321 echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
8322 echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6
8323 if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326   cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h.  */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h.  */
8332
8333 #include <linux/personality.h>
8334
8335
8336 int
8337 main ()
8338 {
8339 #ifndef PER_SCOSVR3
8340   char *p = (char *) PER_SCOSVR3;
8341 #endif
8342
8343   ;
8344   return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8349   (eval $ac_compile) 2>conftest.er1
8350   ac_status=$?
8351   grep -v '^ *+' conftest.er1 >conftest.err
8352   rm -f conftest.er1
8353   cat conftest.err >&5
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); } &&
8356          { ac_try='test -z "$ac_c_werror_flag"
8357                          || test ! -s conftest.err'
8358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359   (eval $ac_try) 2>&5
8360   ac_status=$?
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); }; } &&
8363          { ac_try='test -s conftest.$ac_objext'
8364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365   (eval $ac_try) 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; }; then
8369   ac_cv_have_decl_PER_SCOSVR3=yes
8370 else
8371   echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8373
8374 ac_cv_have_decl_PER_SCOSVR3=no
8375 fi
8376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8377 fi
8378 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
8379 echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6
8380 if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
8381
8382 cat >>confdefs.h <<_ACEOF
8383 #define HAVE_DECL_PER_SCOSVR3 1
8384 _ACEOF
8385
8386
8387 else
8388   cat >>confdefs.h <<_ACEOF
8389 #define HAVE_DECL_PER_SCOSVR3 0
8390 _ACEOF
8391
8392
8393 fi
8394 echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
8395 echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6
8396 if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
8397   echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399   cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h.  */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h.  */
8405
8406 #include <linux/personality.h>
8407
8408
8409 int
8410 main ()
8411 {
8412 #ifndef PER_OSR5
8413   char *p = (char *) PER_OSR5;
8414 #endif
8415
8416   ;
8417   return 0;
8418 }
8419 _ACEOF
8420 rm -f conftest.$ac_objext
8421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8422   (eval $ac_compile) 2>conftest.er1
8423   ac_status=$?
8424   grep -v '^ *+' conftest.er1 >conftest.err
8425   rm -f conftest.er1
8426   cat conftest.err >&5
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); } &&
8429          { ac_try='test -z "$ac_c_werror_flag"
8430                          || test ! -s conftest.err'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; } &&
8436          { ac_try='test -s conftest.$ac_objext'
8437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438   (eval $ac_try) 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; }; then
8442   ac_cv_have_decl_PER_OSR5=yes
8443 else
8444   echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8446
8447 ac_cv_have_decl_PER_OSR5=no
8448 fi
8449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8450 fi
8451 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
8452 echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6
8453 if test $ac_cv_have_decl_PER_OSR5 = yes; then
8454
8455 cat >>confdefs.h <<_ACEOF
8456 #define HAVE_DECL_PER_OSR5 1
8457 _ACEOF
8458
8459
8460 else
8461   cat >>confdefs.h <<_ACEOF
8462 #define HAVE_DECL_PER_OSR5 0
8463 _ACEOF
8464
8465
8466 fi
8467 echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
8468 echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6
8469 if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
8470   echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472   cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478
8479 #include <linux/personality.h>
8480
8481
8482 int
8483 main ()
8484 {
8485 #ifndef PER_WYSEV386
8486   char *p = (char *) PER_WYSEV386;
8487 #endif
8488
8489   ;
8490   return 0;
8491 }
8492 _ACEOF
8493 rm -f conftest.$ac_objext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495   (eval $ac_compile) 2>conftest.er1
8496   ac_status=$?
8497   grep -v '^ *+' conftest.er1 >conftest.err
8498   rm -f conftest.er1
8499   cat conftest.err >&5
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); } &&
8502          { ac_try='test -z "$ac_c_werror_flag"
8503                          || test ! -s conftest.err'
8504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505   (eval $ac_try) 2>&5
8506   ac_status=$?
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); }; } &&
8509          { ac_try='test -s conftest.$ac_objext'
8510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511   (eval $ac_try) 2>&5
8512   ac_status=$?
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); }; }; then
8515   ac_cv_have_decl_PER_WYSEV386=yes
8516 else
8517   echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520 ac_cv_have_decl_PER_WYSEV386=no
8521 fi
8522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8523 fi
8524 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
8525 echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6
8526 if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
8527
8528 cat >>confdefs.h <<_ACEOF
8529 #define HAVE_DECL_PER_WYSEV386 1
8530 _ACEOF
8531
8532
8533 else
8534   cat >>confdefs.h <<_ACEOF
8535 #define HAVE_DECL_PER_WYSEV386 0
8536 _ACEOF
8537
8538
8539 fi
8540 echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
8541 echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6
8542 if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h.  */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h.  */
8551
8552 #include <linux/personality.h>
8553
8554
8555 int
8556 main ()
8557 {
8558 #ifndef PER_ISCR4
8559   char *p = (char *) PER_ISCR4;
8560 #endif
8561
8562   ;
8563   return 0;
8564 }
8565 _ACEOF
8566 rm -f conftest.$ac_objext
8567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8568   (eval $ac_compile) 2>conftest.er1
8569   ac_status=$?
8570   grep -v '^ *+' conftest.er1 >conftest.err
8571   rm -f conftest.er1
8572   cat conftest.err >&5
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } &&
8575          { ac_try='test -z "$ac_c_werror_flag"
8576                          || test ! -s conftest.err'
8577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578   (eval $ac_try) 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; } &&
8582          { ac_try='test -s conftest.$ac_objext'
8583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584   (eval $ac_try) 2>&5
8585   ac_status=$?
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); }; }; then
8588   ac_cv_have_decl_PER_ISCR4=yes
8589 else
8590   echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8592
8593 ac_cv_have_decl_PER_ISCR4=no
8594 fi
8595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8596 fi
8597 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
8598 echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6
8599 if test $ac_cv_have_decl_PER_ISCR4 = yes; then
8600
8601 cat >>confdefs.h <<_ACEOF
8602 #define HAVE_DECL_PER_ISCR4 1
8603 _ACEOF
8604
8605
8606 else
8607   cat >>confdefs.h <<_ACEOF
8608 #define HAVE_DECL_PER_ISCR4 0
8609 _ACEOF
8610
8611
8612 fi
8613 echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
8614 echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6
8615 if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
8616   echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618   cat >conftest.$ac_ext <<_ACEOF
8619 /* confdefs.h.  */
8620 _ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h.  */
8624
8625 #include <linux/personality.h>
8626
8627
8628 int
8629 main ()
8630 {
8631 #ifndef PER_BSD
8632   char *p = (char *) PER_BSD;
8633 #endif
8634
8635   ;
8636   return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8641   (eval $ac_compile) 2>conftest.er1
8642   ac_status=$?
8643   grep -v '^ *+' conftest.er1 >conftest.err
8644   rm -f conftest.er1
8645   cat conftest.err >&5
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); } &&
8648          { ac_try='test -z "$ac_c_werror_flag"
8649                          || test ! -s conftest.err'
8650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651   (eval $ac_try) 2>&5
8652   ac_status=$?
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); }; } &&
8655          { ac_try='test -s conftest.$ac_objext'
8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657   (eval $ac_try) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; }; then
8661   ac_cv_have_decl_PER_BSD=yes
8662 else
8663   echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 ac_cv_have_decl_PER_BSD=no
8667 fi
8668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8669 fi
8670 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
8671 echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6
8672 if test $ac_cv_have_decl_PER_BSD = yes; then
8673
8674 cat >>confdefs.h <<_ACEOF
8675 #define HAVE_DECL_PER_BSD 1
8676 _ACEOF
8677
8678
8679 else
8680   cat >>confdefs.h <<_ACEOF
8681 #define HAVE_DECL_PER_BSD 0
8682 _ACEOF
8683
8684
8685 fi
8686 echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
8687 echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6
8688 if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
8689   echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691   cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h.  */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h.  */
8697
8698 #include <linux/personality.h>
8699
8700
8701 int
8702 main ()
8703 {
8704 #ifndef PER_SUNOS
8705   char *p = (char *) PER_SUNOS;
8706 #endif
8707
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8714   (eval $ac_compile) 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } &&
8721          { ac_try='test -z "$ac_c_werror_flag"
8722                          || test ! -s conftest.err'
8723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724   (eval $ac_try) 2>&5
8725   ac_status=$?
8726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727   (exit $ac_status); }; } &&
8728          { ac_try='test -s conftest.$ac_objext'
8729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730   (eval $ac_try) 2>&5
8731   ac_status=$?
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); }; }; then
8734   ac_cv_have_decl_PER_SUNOS=yes
8735 else
8736   echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8738
8739 ac_cv_have_decl_PER_SUNOS=no
8740 fi
8741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8742 fi
8743 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
8744 echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6
8745 if test $ac_cv_have_decl_PER_SUNOS = yes; then
8746
8747 cat >>confdefs.h <<_ACEOF
8748 #define HAVE_DECL_PER_SUNOS 1
8749 _ACEOF
8750
8751
8752 else
8753   cat >>confdefs.h <<_ACEOF
8754 #define HAVE_DECL_PER_SUNOS 0
8755 _ACEOF
8756
8757
8758 fi
8759 echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
8760 echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6
8761 if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
8762   echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764   cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h.  */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h.  */
8770
8771 #include <linux/personality.h>
8772
8773
8774 int
8775 main ()
8776 {
8777 #ifndef PER_XENIX
8778   char *p = (char *) PER_XENIX;
8779 #endif
8780
8781   ;
8782   return 0;
8783 }
8784 _ACEOF
8785 rm -f conftest.$ac_objext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8787   (eval $ac_compile) 2>conftest.er1
8788   ac_status=$?
8789   grep -v '^ *+' conftest.er1 >conftest.err
8790   rm -f conftest.er1
8791   cat conftest.err >&5
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); } &&
8794          { ac_try='test -z "$ac_c_werror_flag"
8795                          || test ! -s conftest.err'
8796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797   (eval $ac_try) 2>&5
8798   ac_status=$?
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); }; } &&
8801          { ac_try='test -s conftest.$ac_objext'
8802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803   (eval $ac_try) 2>&5
8804   ac_status=$?
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); }; }; then
8807   ac_cv_have_decl_PER_XENIX=yes
8808 else
8809   echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8811
8812 ac_cv_have_decl_PER_XENIX=no
8813 fi
8814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8815 fi
8816 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
8817 echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6
8818 if test $ac_cv_have_decl_PER_XENIX = yes; then
8819
8820 cat >>confdefs.h <<_ACEOF
8821 #define HAVE_DECL_PER_XENIX 1
8822 _ACEOF
8823
8824
8825 else
8826   cat >>confdefs.h <<_ACEOF
8827 #define HAVE_DECL_PER_XENIX 0
8828 _ACEOF
8829
8830
8831 fi
8832 echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
8833 echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6
8834 if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
8835   echo $ECHO_N "(cached) $ECHO_C" >&6
8836 else
8837   cat >conftest.$ac_ext <<_ACEOF
8838 /* confdefs.h.  */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h.  */
8843
8844 #include <linux/personality.h>
8845
8846
8847 int
8848 main ()
8849 {
8850 #ifndef PER_LINUX32
8851   char *p = (char *) PER_LINUX32;
8852 #endif
8853
8854   ;
8855   return 0;
8856 }
8857 _ACEOF
8858 rm -f conftest.$ac_objext
8859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8860   (eval $ac_compile) 2>conftest.er1
8861   ac_status=$?
8862   grep -v '^ *+' conftest.er1 >conftest.err
8863   rm -f conftest.er1
8864   cat conftest.err >&5
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); } &&
8867          { ac_try='test -z "$ac_c_werror_flag"
8868                          || test ! -s conftest.err'
8869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870   (eval $ac_try) 2>&5
8871   ac_status=$?
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); }; } &&
8874          { ac_try='test -s conftest.$ac_objext'
8875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876   (eval $ac_try) 2>&5
8877   ac_status=$?
8878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879   (exit $ac_status); }; }; then
8880   ac_cv_have_decl_PER_LINUX32=yes
8881 else
8882   echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8884
8885 ac_cv_have_decl_PER_LINUX32=no
8886 fi
8887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8888 fi
8889 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
8890 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6
8891 if test $ac_cv_have_decl_PER_LINUX32 = yes; then
8892
8893 cat >>confdefs.h <<_ACEOF
8894 #define HAVE_DECL_PER_LINUX32 1
8895 _ACEOF
8896
8897
8898 else
8899   cat >>confdefs.h <<_ACEOF
8900 #define HAVE_DECL_PER_LINUX32 0
8901 _ACEOF
8902
8903
8904 fi
8905 echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
8906 echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6
8907 if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
8908   echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910   cat >conftest.$ac_ext <<_ACEOF
8911 /* confdefs.h.  */
8912 _ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h.  */
8916
8917 #include <linux/personality.h>
8918
8919
8920 int
8921 main ()
8922 {
8923 #ifndef PER_LINUX32_3GB
8924   char *p = (char *) PER_LINUX32_3GB;
8925 #endif
8926
8927   ;
8928   return 0;
8929 }
8930 _ACEOF
8931 rm -f conftest.$ac_objext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8933   (eval $ac_compile) 2>conftest.er1
8934   ac_status=$?
8935   grep -v '^ *+' conftest.er1 >conftest.err
8936   rm -f conftest.er1
8937   cat conftest.err >&5
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); } &&
8940          { ac_try='test -z "$ac_c_werror_flag"
8941                          || test ! -s conftest.err'
8942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943   (eval $ac_try) 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); }; } &&
8947          { ac_try='test -s conftest.$ac_objext'
8948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949   (eval $ac_try) 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); }; }; then
8953   ac_cv_have_decl_PER_LINUX32_3GB=yes
8954 else
8955   echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 ac_cv_have_decl_PER_LINUX32_3GB=no
8959 fi
8960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8961 fi
8962 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
8963 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6
8964 if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
8965
8966 cat >>confdefs.h <<_ACEOF
8967 #define HAVE_DECL_PER_LINUX32_3GB 1
8968 _ACEOF
8969
8970
8971 else
8972   cat >>confdefs.h <<_ACEOF
8973 #define HAVE_DECL_PER_LINUX32_3GB 0
8974 _ACEOF
8975
8976
8977 fi
8978 echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
8979 echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6
8980 if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
8981   echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983   cat >conftest.$ac_ext <<_ACEOF
8984 /* confdefs.h.  */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h.  */
8989
8990 #include <linux/personality.h>
8991
8992
8993 int
8994 main ()
8995 {
8996 #ifndef PER_IRIX32
8997   char *p = (char *) PER_IRIX32;
8998 #endif
8999
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 rm -f conftest.$ac_objext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9006   (eval $ac_compile) 2>conftest.er1
9007   ac_status=$?
9008   grep -v '^ *+' conftest.er1 >conftest.err
9009   rm -f conftest.er1
9010   cat conftest.err >&5
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); } &&
9013          { ac_try='test -z "$ac_c_werror_flag"
9014                          || test ! -s conftest.err'
9015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016   (eval $ac_try) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; } &&
9020          { ac_try='test -s conftest.$ac_objext'
9021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022   (eval $ac_try) 2>&5
9023   ac_status=$?
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); }; }; then
9026   ac_cv_have_decl_PER_IRIX32=yes
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031 ac_cv_have_decl_PER_IRIX32=no
9032 fi
9033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9034 fi
9035 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
9036 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6
9037 if test $ac_cv_have_decl_PER_IRIX32 = yes; then
9038
9039 cat >>confdefs.h <<_ACEOF
9040 #define HAVE_DECL_PER_IRIX32 1
9041 _ACEOF
9042
9043
9044 else
9045   cat >>confdefs.h <<_ACEOF
9046 #define HAVE_DECL_PER_IRIX32 0
9047 _ACEOF
9048
9049
9050 fi
9051 echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
9052 echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6
9053 if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
9054   echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056   cat >conftest.$ac_ext <<_ACEOF
9057 /* confdefs.h.  */
9058 _ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h.  */
9062
9063 #include <linux/personality.h>
9064
9065
9066 int
9067 main ()
9068 {
9069 #ifndef PER_IRIXN32
9070   char *p = (char *) PER_IRIXN32;
9071 #endif
9072
9073   ;
9074   return 0;
9075 }
9076 _ACEOF
9077 rm -f conftest.$ac_objext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9079   (eval $ac_compile) 2>conftest.er1
9080   ac_status=$?
9081   grep -v '^ *+' conftest.er1 >conftest.err
9082   rm -f conftest.er1
9083   cat conftest.err >&5
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); } &&
9086          { ac_try='test -z "$ac_c_werror_flag"
9087                          || test ! -s conftest.err'
9088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089   (eval $ac_try) 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); }; } &&
9093          { ac_try='test -s conftest.$ac_objext'
9094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095   (eval $ac_try) 2>&5
9096   ac_status=$?
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); }; }; then
9099   ac_cv_have_decl_PER_IRIXN32=yes
9100 else
9101   echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9103
9104 ac_cv_have_decl_PER_IRIXN32=no
9105 fi
9106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9107 fi
9108 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
9109 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6
9110 if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
9111
9112 cat >>confdefs.h <<_ACEOF
9113 #define HAVE_DECL_PER_IRIXN32 1
9114 _ACEOF
9115
9116
9117 else
9118   cat >>confdefs.h <<_ACEOF
9119 #define HAVE_DECL_PER_IRIXN32 0
9120 _ACEOF
9121
9122
9123 fi
9124 echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
9125 echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6
9126 if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
9127   echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129   cat >conftest.$ac_ext <<_ACEOF
9130 /* confdefs.h.  */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h.  */
9135
9136 #include <linux/personality.h>
9137
9138
9139 int
9140 main ()
9141 {
9142 #ifndef PER_IRIX64
9143   char *p = (char *) PER_IRIX64;
9144 #endif
9145
9146   ;
9147   return 0;
9148 }
9149 _ACEOF
9150 rm -f conftest.$ac_objext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9152   (eval $ac_compile) 2>conftest.er1
9153   ac_status=$?
9154   grep -v '^ *+' conftest.er1 >conftest.err
9155   rm -f conftest.er1
9156   cat conftest.err >&5
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); } &&
9159          { ac_try='test -z "$ac_c_werror_flag"
9160                          || test ! -s conftest.err'
9161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162   (eval $ac_try) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; } &&
9166          { ac_try='test -s conftest.$ac_objext'
9167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168   (eval $ac_try) 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); }; }; then
9172   ac_cv_have_decl_PER_IRIX64=yes
9173 else
9174   echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177 ac_cv_have_decl_PER_IRIX64=no
9178 fi
9179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9180 fi
9181 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
9182 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6
9183 if test $ac_cv_have_decl_PER_IRIX64 = yes; then
9184
9185 cat >>confdefs.h <<_ACEOF
9186 #define HAVE_DECL_PER_IRIX64 1
9187 _ACEOF
9188
9189
9190 else
9191   cat >>confdefs.h <<_ACEOF
9192 #define HAVE_DECL_PER_IRIX64 0
9193 _ACEOF
9194
9195
9196 fi
9197 echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
9198 echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6
9199 if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
9200   echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202   cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208
9209 #include <linux/personality.h>
9210
9211
9212 int
9213 main ()
9214 {
9215 #ifndef PER_RISCOS
9216   char *p = (char *) PER_RISCOS;
9217 #endif
9218
9219   ;
9220   return 0;
9221 }
9222 _ACEOF
9223 rm -f conftest.$ac_objext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9225   (eval $ac_compile) 2>conftest.er1
9226   ac_status=$?
9227   grep -v '^ *+' conftest.er1 >conftest.err
9228   rm -f conftest.er1
9229   cat conftest.err >&5
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); } &&
9232          { ac_try='test -z "$ac_c_werror_flag"
9233                          || test ! -s conftest.err'
9234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235   (eval $ac_try) 2>&5
9236   ac_status=$?
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); }; } &&
9239          { ac_try='test -s conftest.$ac_objext'
9240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241   (eval $ac_try) 2>&5
9242   ac_status=$?
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); }; }; then
9245   ac_cv_have_decl_PER_RISCOS=yes
9246 else
9247   echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9249
9250 ac_cv_have_decl_PER_RISCOS=no
9251 fi
9252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9253 fi
9254 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
9255 echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6
9256 if test $ac_cv_have_decl_PER_RISCOS = yes; then
9257
9258 cat >>confdefs.h <<_ACEOF
9259 #define HAVE_DECL_PER_RISCOS 1
9260 _ACEOF
9261
9262
9263 else
9264   cat >>confdefs.h <<_ACEOF
9265 #define HAVE_DECL_PER_RISCOS 0
9266 _ACEOF
9267
9268
9269 fi
9270 echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
9271 echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6
9272 if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275   cat >conftest.$ac_ext <<_ACEOF
9276 /* confdefs.h.  */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h.  */
9281
9282 #include <linux/personality.h>
9283
9284
9285 int
9286 main ()
9287 {
9288 #ifndef PER_SOLARIS
9289   char *p = (char *) PER_SOLARIS;
9290 #endif
9291
9292   ;
9293   return 0;
9294 }
9295 _ACEOF
9296 rm -f conftest.$ac_objext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9298   (eval $ac_compile) 2>conftest.er1
9299   ac_status=$?
9300   grep -v '^ *+' conftest.er1 >conftest.err
9301   rm -f conftest.er1
9302   cat conftest.err >&5
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); } &&
9305          { ac_try='test -z "$ac_c_werror_flag"
9306                          || test ! -s conftest.err'
9307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308   (eval $ac_try) 2>&5
9309   ac_status=$?
9310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311   (exit $ac_status); }; } &&
9312          { ac_try='test -s conftest.$ac_objext'
9313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314   (eval $ac_try) 2>&5
9315   ac_status=$?
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); }; }; then
9318   ac_cv_have_decl_PER_SOLARIS=yes
9319 else
9320   echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9322
9323 ac_cv_have_decl_PER_SOLARIS=no
9324 fi
9325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9326 fi
9327 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
9328 echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6
9329 if test $ac_cv_have_decl_PER_SOLARIS = yes; then
9330
9331 cat >>confdefs.h <<_ACEOF
9332 #define HAVE_DECL_PER_SOLARIS 1
9333 _ACEOF
9334
9335
9336 else
9337   cat >>confdefs.h <<_ACEOF
9338 #define HAVE_DECL_PER_SOLARIS 0
9339 _ACEOF
9340
9341
9342 fi
9343 echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
9344 echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6
9345 if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
9346   echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348   cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354
9355 #include <linux/personality.h>
9356
9357
9358 int
9359 main ()
9360 {
9361 #ifndef PER_UW7
9362   char *p = (char *) PER_UW7;
9363 #endif
9364
9365   ;
9366   return 0;
9367 }
9368 _ACEOF
9369 rm -f conftest.$ac_objext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371   (eval $ac_compile) 2>conftest.er1
9372   ac_status=$?
9373   grep -v '^ *+' conftest.er1 >conftest.err
9374   rm -f conftest.er1
9375   cat conftest.err >&5
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); } &&
9378          { ac_try='test -z "$ac_c_werror_flag"
9379                          || test ! -s conftest.err'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; } &&
9385          { ac_try='test -s conftest.$ac_objext'
9386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387   (eval $ac_try) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); }; }; then
9391   ac_cv_have_decl_PER_UW7=yes
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 ac_cv_have_decl_PER_UW7=no
9397 fi
9398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9399 fi
9400 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
9401 echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6
9402 if test $ac_cv_have_decl_PER_UW7 = yes; then
9403
9404 cat >>confdefs.h <<_ACEOF
9405 #define HAVE_DECL_PER_UW7 1
9406 _ACEOF
9407
9408
9409 else
9410   cat >>confdefs.h <<_ACEOF
9411 #define HAVE_DECL_PER_UW7 0
9412 _ACEOF
9413
9414
9415 fi
9416 echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
9417 echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6
9418 if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
9419   echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
9421   cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427
9428 #include <linux/personality.h>
9429
9430
9431 int
9432 main ()
9433 {
9434 #ifndef PER_HPUX
9435   char *p = (char *) PER_HPUX;
9436 #endif
9437
9438   ;
9439   return 0;
9440 }
9441 _ACEOF
9442 rm -f conftest.$ac_objext
9443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9444   (eval $ac_compile) 2>conftest.er1
9445   ac_status=$?
9446   grep -v '^ *+' conftest.er1 >conftest.err
9447   rm -f conftest.er1
9448   cat conftest.err >&5
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); } &&
9451          { ac_try='test -z "$ac_c_werror_flag"
9452                          || test ! -s conftest.err'
9453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454   (eval $ac_try) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; } &&
9458          { ac_try='test -s conftest.$ac_objext'
9459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460   (eval $ac_try) 2>&5
9461   ac_status=$?
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); }; }; then
9464   ac_cv_have_decl_PER_HPUX=yes
9465 else
9466   echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9468
9469 ac_cv_have_decl_PER_HPUX=no
9470 fi
9471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9472 fi
9473 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
9474 echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6
9475 if test $ac_cv_have_decl_PER_HPUX = yes; then
9476
9477 cat >>confdefs.h <<_ACEOF
9478 #define HAVE_DECL_PER_HPUX 1
9479 _ACEOF
9480
9481
9482 else
9483   cat >>confdefs.h <<_ACEOF
9484 #define HAVE_DECL_PER_HPUX 0
9485 _ACEOF
9486
9487
9488 fi
9489 echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
9490 echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6
9491 if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
9492   echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494   cat >conftest.$ac_ext <<_ACEOF
9495 /* confdefs.h.  */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h.  */
9500
9501 #include <linux/personality.h>
9502
9503
9504 int
9505 main ()
9506 {
9507 #ifndef PER_OSF4
9508   char *p = (char *) PER_OSF4;
9509 #endif
9510
9511   ;
9512   return 0;
9513 }
9514 _ACEOF
9515 rm -f conftest.$ac_objext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517   (eval $ac_compile) 2>conftest.er1
9518   ac_status=$?
9519   grep -v '^ *+' conftest.er1 >conftest.err
9520   rm -f conftest.er1
9521   cat conftest.err >&5
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } &&
9524          { ac_try='test -z "$ac_c_werror_flag"
9525                          || test ! -s conftest.err'
9526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527   (eval $ac_try) 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); }; } &&
9531          { ac_try='test -s conftest.$ac_objext'
9532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533   (eval $ac_try) 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); }; }; then
9537   ac_cv_have_decl_PER_OSF4=yes
9538 else
9539   echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9541
9542 ac_cv_have_decl_PER_OSF4=no
9543 fi
9544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9545 fi
9546 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
9547 echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6
9548 if test $ac_cv_have_decl_PER_OSF4 = yes; then
9549
9550 cat >>confdefs.h <<_ACEOF
9551 #define HAVE_DECL_PER_OSF4 1
9552 _ACEOF
9553
9554
9555 else
9556   cat >>confdefs.h <<_ACEOF
9557 #define HAVE_DECL_PER_OSF4 0
9558 _ACEOF
9559
9560
9561 fi
9562
9563
9564         ac_ext=c
9565 ac_cpp='$CPP $CPPFLAGS'
9566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9569
9570
9571
9572
9573
9574
9575         echo "$as_me:$LINENO: checking for initrddir" >&5
9576 echo $ECHO_N "checking for initrddir... $ECHO_C" >&6
9577
9578 # Check whether --with-initrddir or --without-initrddir was given.
9579 if test "${with_initrddir+set}" = set; then
9580   withval="$with_initrddir"
9581   case "$withval" in
9582                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
9583 echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
9584    { (exit 1); exit 1; }; };;
9585                         *)      ensc_initrddir=$withval;;
9586                      esac
9587 else
9588   ensc_initrddir='$(sysconfdir)/init.d'
9589 fi;
9590
9591         if test "initrddir"; then
9592                 initrddir=$ensc_initrddir
9593
9594         fi
9595
9596         echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
9597 echo "${ECHO_T}$ensc_initrddir" >&6
9598
9599
9600         echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
9601 echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6
9602         # Check whether --enable-release or --disable-release was given.
9603 if test "${enable_release+set}" = set; then
9604   enableval="$enable_release"
9605   case "$enableval" in
9606                           yes)  ensc_release_mode=yes;;
9607                           no)   ensc_release_mode=no;;
9608                           *)    { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
9609 echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
9610    { (exit 1); exit 1; }; };;
9611                        esac
9612 else
9613    ensc_release_mode=no
9614 fi;
9615
9616         if test x"$ensc_release_mode" = xno; then
9617                 RELEASE_CPPFLAGS=
9618         else
9619                 RELEASE_CPPFLAGS='-DNDEBUG'
9620         fi
9621
9622
9623         echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
9624 echo "${ECHO_T}$ensc_release_mode" >&6
9625
9626
9627
9628 case $host_cpu in
9629         (i*86|athlon)   min_diet_ver=0.25;;
9630         (ia64|hppa*)    min_diet_ver=0.29;;
9631         (*)             min_diet_ver=0.28;;
9632 esac
9633
9634
9635         echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
9636 echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6
9637
9638
9639
9640
9641         : ${DIET:=diet}
9642         : ${DIETFLAGS=-Os}
9643
9644         # Check whether --enable-dietlibc or --disable-dietlibc was given.
9645 if test "${enable_dietlibc+set}" = set; then
9646   enableval="$enable_dietlibc"
9647   case "$enableval" in
9648                           (yes) use_dietlibc=forced;;
9649                           (no)  use_dietlibc=forced_no;;
9650                           (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
9651 echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
9652    { (exit 1); exit 1; }; };;
9653                        esac
9654 else
9655   which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
9656 fi;
9657
9658         if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
9659             _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
9660             _dietlibc_ver=${_dietlibc_ver##*diet version }
9661             _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
9662             _dietlibc_ver_maj=${_dietlibc_ver%%.*}
9663             _dietlibc_ver_min=${_dietlibc_ver##*.}
9664             _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
9665             _dietlibc_cmp="$min_diet_ver"
9666             _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
9667             _dietlibc_cmp_min=${_dietlibc_cmp##*.}
9668
9669             ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
9670
9671             let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
9672             let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
9673
9674             test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
9675         else
9676             ENSC_VERSION_DIETLIBC=
9677             _dietlibc_ver=-1
9678         fi
9679
9680         ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
9681         ensc_have_dietlibc=no
9682
9683         case x"$use_dietlibc" in
9684             xdetected)
9685
9686
9687 if true; then
9688   USE_DIETLIBC_TRUE=
9689   USE_DIETLIBC_FALSE='#'
9690 else
9691   USE_DIETLIBC_TRUE='#'
9692   USE_DIETLIBC_FALSE=
9693 fi
9694
9695                 echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
9696 echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6
9697                 ensc_have_dietlibc=yes
9698                 ;;
9699             xforced)
9700
9701
9702 if true; then
9703   USE_DIETLIBC_TRUE=
9704   USE_DIETLIBC_FALSE='#'
9705 else
9706   USE_DIETLIBC_TRUE='#'
9707   USE_DIETLIBC_FALSE=
9708 fi
9709
9710                 echo "$as_me:$LINENO: result: yes (forced)" >&5
9711 echo "${ECHO_T}yes (forced)" >&6
9712                 ensc_have_dietlibc=yes
9713                 ;;
9714             xdetected_no)
9715
9716
9717 if false; then
9718   USE_DIETLIBC_TRUE=
9719   USE_DIETLIBC_FALSE='#'
9720 else
9721   USE_DIETLIBC_TRUE='#'
9722   USE_DIETLIBC_FALSE=
9723 fi
9724
9725                 echo "$as_me:$LINENO: result: no (detected)" >&5
9726 echo "${ECHO_T}no (detected)" >&6
9727                 ;;
9728             xdetected_old)
9729
9730
9731 if false; then
9732   USE_DIETLIBC_TRUE=
9733   USE_DIETLIBC_FALSE='#'
9734 else
9735   USE_DIETLIBC_TRUE='#'
9736   USE_DIETLIBC_FALSE=
9737 fi
9738
9739                 echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
9740 echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6
9741                 ;;
9742             xforced_no)
9743
9744
9745 if false; then
9746   USE_DIETLIBC_TRUE=
9747   USE_DIETLIBC_FALSE='#'
9748 else
9749   USE_DIETLIBC_TRUE='#'
9750   USE_DIETLIBC_FALSE=
9751 fi
9752
9753                 echo "$as_me:$LINENO: result: no (forced)" >&5
9754 echo "${ECHO_T}no (forced)" >&6
9755                 ;;
9756             *)
9757                 { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
9758 echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
9759    { (exit 1); exit 1; }; }
9760                 ;;
9761         esac
9762
9763         if test x"$ensc_have_dietlibc" != xno; then
9764
9765
9766
9767
9768         echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
9769 echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6
9770 if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773
9774                 _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
9775                 _ensc_dietlibc_c99_old_CC=$CC
9776
9777                 CFLAGS="-std=c99"
9778                 CC="${DIET:-diet} $CC"
9779
9780                 ac_ext=c
9781 ac_cpp='$CPP $CPPFLAGS'
9782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9785
9786                 cat >conftest.$ac_ext <<_ACEOF
9787 /* */
9788 _ACEOF
9789 rm -f conftest.$ac_objext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9791   (eval $ac_compile) 2>conftest.er1
9792   ac_status=$?
9793   grep -v '^ *+' conftest.er1 >conftest.err
9794   rm -f conftest.er1
9795   cat conftest.err >&5
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); } &&
9798          { ac_try='test -z "$ac_c_werror_flag"
9799                          || test ! -s conftest.err'
9800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801   (eval $ac_try) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; } &&
9805          { ac_try='test -s conftest.$ac_objext'
9806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807   (eval $ac_try) 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; }; then
9811
9812                         cat >conftest.$ac_ext <<_ACEOF
9813
9814                                 #include <stdint.h>
9815                                 #include <sys/cdefs.h>
9816                                 #if defined(inline)
9817                                 #  error 'inline' badly defined
9818                                 #endif
9819                                 volatile uint64_t       a;
9820
9821 _ACEOF
9822 rm -f conftest.$ac_objext
9823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9824   (eval $ac_compile) 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } &&
9831          { ac_try='test -z "$ac_c_werror_flag"
9832                          || test ! -s conftest.err'
9833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834   (eval $ac_try) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); }; } &&
9838          { ac_try='test -s conftest.$ac_objext'
9839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840   (eval $ac_try) 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; }; then
9844   ensc_cv_c_dietlibc_c99=yes
9845 else
9846   echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9848
9849 ensc_cv_c_dietlibc_c99=no
9850 fi
9851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
9857 fi
9858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9859                 ac_ext=c
9860 ac_cpp='$CPP $CPPFLAGS'
9861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9864
9865
9866                 CC=$_ensc_dietlibc_c99_old_CC
9867                 CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
9868
9869 fi
9870 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
9871 echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6
9872
9873         if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
9874                 cat >>confdefs.h <<\_ACEOF
9875 #define ENSC_DIETLIBC_C99 1
9876 _ACEOF
9877
9878         fi
9879
9880         fi
9881
9882
9883 if test x"$ensc_have_dietlibc" = xno; then
9884         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
9885 echo "$as_me: WARNING: ***                                                         ***" >&2;}
9886         { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
9887 echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
9888         { echo "$as_me:$LINENO: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&5
9889 echo "$as_me: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&2;}
9890         { echo "$as_me:$LINENO: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&5
9891 echo "$as_me: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&2;}
9892         { echo "$as_me:$LINENO: WARNING: *** there.                                                  ***" >&5
9893 echo "$as_me: WARNING: *** there.                                                  ***" >&2;}
9894         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
9895 echo "$as_me: WARNING: ***                                                         ***" >&2;}
9896
9897
9898 if false; then
9899   USE_DIETLIBC_COMPAT_TRUE=
9900   USE_DIETLIBC_COMPAT_FALSE='#'
9901 else
9902   USE_DIETLIBC_COMPAT_TRUE='#'
9903   USE_DIETLIBC_COMPAT_FALSE=
9904 fi
9905
9906 else
9907         # HACK: libtool does not have cmdline options to build only
9908         # dynamic libraries; this can be done with the
9909         # '--disable-static' ./configure option only.  As our static
9910         # libraries will be build with dietlibc, we have to do set
9911         # this option which is evaluated by 'AC_PROG_LIBTOOL'
9912         # below.  Therefore, this macro must not be called earlier.
9913         enable_static=no
9914
9915
9916
9917
9918
9919         if test "$host_cpu" = x86_64 -a $ENSC_VERSION_DIETLIBC_NUM -le 0027; then
9920                 { echo "$as_me:$LINENO: WARNING: ***                                                             ***" >&5
9921 echo "$as_me: WARNING: ***                                                             ***" >&2;}
9922                 { echo "$as_me:$LINENO: WARNING: *** dietlibc<=0.27 is known to be broken for x86_64 systems     ***" >&5
9923 echo "$as_me: WARNING: *** dietlibc<=0.27 is known to be broken for x86_64 systems     ***" >&2;}
9924                 { echo "$as_me:$LINENO: WARNING: *** please make sure that at least the environ.S fix is applied ***" >&5
9925 echo "$as_me: WARNING: *** please make sure that at least the environ.S fix is applied ***" >&2;}
9926                 { echo "$as_me:$LINENO: WARNING: *** and lib/__nice.c added                                      ***" >&5
9927 echo "$as_me: WARNING: *** and lib/__nice.c added                                      ***" >&2;}
9928                 { echo "$as_me:$LINENO: WARNING: ***                                                             ***" >&5
9929 echo "$as_me: WARNING: ***                                                             ***" >&2;}
9930         fi
9931
9932
9933         echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
9934 echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6
9935         # Check whether --enable-alternative-syscalls or --disable-alternative-syscalls was given.
9936 if test "${enable_alternative_syscalls+set}" = set; then
9937   enableval="$enable_alternative_syscalls"
9938   case $enableval in
9939                            (yes|no)   ensc_use_alternative_syscall_macros=$enableval;;
9940                            (*)        { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
9941 echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
9942    { (exit 1); exit 1; }; };;
9943                        esac
9944 else
9945   ensc_use_alternative_syscall_macros=yes
9946 fi;
9947
9948         case $ensc_use_alternative_syscall_macros in
9949                 (yes)
9950 cat >>confdefs.h <<\_ACEOF
9951 #define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
9952 _ACEOF
9953 ;;
9954         esac
9955
9956         echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
9957 echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6
9958
9959
9960
9961
9962         echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
9963 echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6
9964 if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
9965   echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967
9968                 ac_ext=c
9969 ac_cpp='$CPP $CPPFLAGS'
9970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9973
9974                 ensc_dietlibc_need_compat_old_CC=$CC
9975                 CC="${DIET:-diet} $CC"
9976                 cat >conftest.$ac_ext <<_ACEOF
9977
9978                         /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983
9984 #include "$srcdir/lib/syscall-wrap.h"
9985 #include <errno.h>
9986
9987 #define __NR_foo0               42
9988 #define __NR_foo1               42
9989 #define __NR_foo2               42
9990 #define __NR_foo3               42
9991 #define __NR_foo4               42
9992 #define __NR_foo5               42
9993 inline static _syscall0(int, foo0)
9994 inline static _syscall1(int, foo1, int, a)
9995 inline static _syscall2(int, foo2, int, a, int, b)
9996 inline static _syscall3(int, foo3, int, a, int, b, int, c)
9997 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
9998 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
9999
10000 int
10001 main ()
10002 {
10003 foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
10004   ;
10005   return 0;
10006 }
10007 _ACEOF
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010   (eval $ac_link) 2>conftest.er1
10011   ac_status=$?
10012   grep -v '^ *+' conftest.er1 >conftest.err
10013   rm -f conftest.er1
10014   cat conftest.err >&5
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); } &&
10017          { ac_try='test -z "$ac_c_werror_flag"
10018                          || test ! -s conftest.err'
10019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020   (eval $ac_try) 2>&5
10021   ac_status=$?
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); }; } &&
10024          { ac_try='test -s conftest$ac_exeext'
10025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026   (eval $ac_try) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; }; then
10030   ensc_cv_c_dietlibc_compat=no
10031 else
10032   echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10034
10035 ensc_cv_c_dietlibc_compat=yes
10036 fi
10037 rm -f conftest.err conftest.$ac_objext \
10038       conftest$ac_exeext conftest.$ac_ext
10039                 CC=$ensc_dietlibc_need_compat_old_CC
10040                 ac_ext=c
10041 ac_cpp='$CPP $CPPFLAGS'
10042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10045
10046
10047 fi
10048 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
10049 echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6
10050
10051         if test x"USE_DIETLIBC_COMPAT" != x; then
10052
10053
10054 if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
10055   USE_DIETLIBC_COMPAT_TRUE=
10056   USE_DIETLIBC_COMPAT_FALSE='#'
10057 else
10058   USE_DIETLIBC_COMPAT_TRUE='#'
10059   USE_DIETLIBC_COMPAT_FALSE=
10060 fi
10061
10062         fi
10063
10064 fi
10065
10066
10067
10068 if test x"$ensc_have_dietlibc" = xyes; then
10069   ENSC_USE_DIETLIBC_TRUE=
10070   ENSC_USE_DIETLIBC_FALSE='#'
10071 else
10072   ENSC_USE_DIETLIBC_TRUE='#'
10073   ENSC_USE_DIETLIBC_FALSE=
10074 fi
10075
10076
10077
10078 if true; then
10079   ENSC_USE_GLIBC_TRUE=
10080   ENSC_USE_GLIBC_FALSE='#'
10081 else
10082   ENSC_USE_GLIBC_TRUE='#'
10083   ENSC_USE_GLIBC_FALSE=
10084 fi
10085
10086
10087 # HACK: see comments at 'enable_static' above
10088 # Check whether --enable-shared or --disable-shared was given.
10089 if test "${enable_shared+set}" = set; then
10090   enableval="$enable_shared"
10091   p=${PACKAGE-default}
10092     case $enableval in
10093     yes) enable_shared=yes ;;
10094     no) enable_shared=no ;;
10095     *)
10096       enable_shared=no
10097       # Look at the argument we got.  We use all the common list separators.
10098       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10099       for pkg in $enableval; do
10100         IFS="$lt_save_ifs"
10101         if test "X$pkg" = "X$p"; then
10102           enable_shared=yes
10103         fi
10104       done
10105       IFS="$lt_save_ifs"
10106       ;;
10107     esac
10108 else
10109   enable_shared=yes
10110 fi;
10111
10112 # Check whether --enable-static or --disable-static was given.
10113 if test "${enable_static+set}" = set; then
10114   enableval="$enable_static"
10115   p=${PACKAGE-default}
10116     case $enableval in
10117     yes) enable_static=yes ;;
10118     no) enable_static=no ;;
10119     *)
10120      enable_static=no
10121       # Look at the argument we got.  We use all the common list separators.
10122       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10123       for pkg in $enableval; do
10124         IFS="$lt_save_ifs"
10125         if test "X$pkg" = "X$p"; then
10126           enable_static=yes
10127         fi
10128       done
10129       IFS="$lt_save_ifs"
10130       ;;
10131     esac
10132 else
10133   enable_static=yes
10134 fi;
10135
10136 # Check whether --enable-fast-install or --disable-fast-install was given.
10137 if test "${enable_fast_install+set}" = set; then
10138   enableval="$enable_fast_install"
10139   p=${PACKAGE-default}
10140     case $enableval in
10141     yes) enable_fast_install=yes ;;
10142     no) enable_fast_install=no ;;
10143     *)
10144       enable_fast_install=no
10145       # Look at the argument we got.  We use all the common list separators.
10146       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10147       for pkg in $enableval; do
10148         IFS="$lt_save_ifs"
10149         if test "X$pkg" = "X$p"; then
10150           enable_fast_install=yes
10151         fi
10152       done
10153       IFS="$lt_save_ifs"
10154       ;;
10155     esac
10156 else
10157   enable_fast_install=yes
10158 fi;
10159
10160 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10161 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10162 if test "${lt_cv_path_SED+set}" = set; then
10163   echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165   # Loop through the user's path and test for sed and gsed.
10166 # Then use that list of sed's as ones to test for truncation.
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10169 do
10170   IFS=$as_save_IFS
10171   test -z "$as_dir" && as_dir=.
10172   for lt_ac_prog in sed gsed; do
10173     for ac_exec_ext in '' $ac_executable_extensions; do
10174       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10175         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10176       fi
10177     done
10178   done
10179 done
10180 lt_ac_max=0
10181 lt_ac_count=0
10182 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10183 # along with /bin/sed that truncates output.
10184 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10185   test ! -f $lt_ac_sed && break
10186   cat /dev/null > conftest.in
10187   lt_ac_count=0
10188   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10189   # Check for GNU sed and select it if it is found.
10190   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10191     lt_cv_path_SED=$lt_ac_sed
10192     break
10193   fi
10194   while true; do
10195     cat conftest.in conftest.in >conftest.tmp
10196     mv conftest.tmp conftest.in
10197     cp conftest.in conftest.nl
10198     echo >>conftest.nl
10199     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10200     cmp -s conftest.out conftest.nl || break
10201     # 10000 chars as input seems more than enough
10202     test $lt_ac_count -gt 10 && break
10203     lt_ac_count=`expr $lt_ac_count + 1`
10204     if test $lt_ac_count -gt $lt_ac_max; then
10205       lt_ac_max=$lt_ac_count
10206       lt_cv_path_SED=$lt_ac_sed
10207     fi
10208   done
10209 done
10210 SED=$lt_cv_path_SED
10211
10212 fi
10213
10214 echo "$as_me:$LINENO: result: $SED" >&5
10215 echo "${ECHO_T}$SED" >&6
10216
10217 echo "$as_me:$LINENO: checking for egrep" >&5
10218 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10219 if test "${ac_cv_prog_egrep+set}" = set; then
10220   echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10223     then ac_cv_prog_egrep='grep -E'
10224     else ac_cv_prog_egrep='egrep'
10225     fi
10226 fi
10227 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10228 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10229  EGREP=$ac_cv_prog_egrep
10230
10231
10232
10233 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10234 if test "${with_gnu_ld+set}" = set; then
10235   withval="$with_gnu_ld"
10236   test "$withval" = no || with_gnu_ld=yes
10237 else
10238   with_gnu_ld=no
10239 fi;
10240 ac_prog=ld
10241 if test "$GCC" = yes; then
10242   # Check if gcc -print-prog-name=ld gives a path.
10243   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10244 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10245   case $host in
10246   *-*-mingw*)
10247     # gcc leaves a trailing carriage return which upsets mingw
10248     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10249   *)
10250     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10251   esac
10252   case $ac_prog in
10253     # Accept absolute paths.
10254     [\\/]* | ?:[\\/]*)
10255       re_direlt='/[^/][^/]*/\.\./'
10256       # Canonicalize the pathname of ld
10257       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10258       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10259         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10260       done
10261       test -z "$LD" && LD="$ac_prog"
10262       ;;
10263   "")
10264     # If it fails, then pretend we aren't using GCC.
10265     ac_prog=ld
10266     ;;
10267   *)
10268     # If it is relative, then search for the first ld in PATH.
10269     with_gnu_ld=unknown
10270     ;;
10271   esac
10272 elif test "$with_gnu_ld" = yes; then
10273   echo "$as_me:$LINENO: checking for GNU ld" >&5
10274 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10275 else
10276   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10277 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10278 fi
10279 if test "${lt_cv_path_LD+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282   if test -z "$LD"; then
10283   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10284   for ac_dir in $PATH; do
10285     IFS="$lt_save_ifs"
10286     test -z "$ac_dir" && ac_dir=.
10287     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10288       lt_cv_path_LD="$ac_dir/$ac_prog"
10289       # Check to see if the program is GNU ld.  I'd rather use --version,
10290       # but apparently some GNU ld's only accept -v.
10291       # Break only if it was the GNU/non-GNU ld that we prefer.
10292       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10293       *GNU* | *'with BFD'*)
10294         test "$with_gnu_ld" != no && break
10295         ;;
10296       *)
10297         test "$with_gnu_ld" != yes && break
10298         ;;
10299       esac
10300     fi
10301   done
10302   IFS="$lt_save_ifs"
10303 else
10304   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10305 fi
10306 fi
10307
10308 LD="$lt_cv_path_LD"
10309 if test -n "$LD"; then
10310   echo "$as_me:$LINENO: result: $LD" >&5
10311 echo "${ECHO_T}$LD" >&6
10312 else
10313   echo "$as_me:$LINENO: result: no" >&5
10314 echo "${ECHO_T}no" >&6
10315 fi
10316 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10317 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10318    { (exit 1); exit 1; }; }
10319 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10320 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10321 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10322   echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10324   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10325 case `$LD -v 2>&1 </dev/null` in
10326 *GNU* | *'with BFD'*)
10327   lt_cv_prog_gnu_ld=yes
10328   ;;
10329 *)
10330   lt_cv_prog_gnu_ld=no
10331   ;;
10332 esac
10333 fi
10334 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10335 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10336 with_gnu_ld=$lt_cv_prog_gnu_ld
10337
10338
10339 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10340 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10341 if test "${lt_cv_ld_reload_flag+set}" = set; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344   lt_cv_ld_reload_flag='-r'
10345 fi
10346 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10347 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10348 reload_flag=$lt_cv_ld_reload_flag
10349 case $reload_flag in
10350 "" | " "*) ;;
10351 *) reload_flag=" $reload_flag" ;;
10352 esac
10353 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10354
10355 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10356 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10357 if test "${lt_cv_path_NM+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   if test -n "$NM"; then
10361   # Let the user override the test.
10362   lt_cv_path_NM="$NM"
10363 else
10364   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10365   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
10366     IFS="$lt_save_ifs"
10367     test -z "$ac_dir" && ac_dir=.
10368     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
10369     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10370       # Check to see if the nm accepts a BSD-compat flag.
10371       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10372       #   nm: unknown option "B" ignored
10373       # Tru64's nm complains that /dev/null is an invalid object file
10374       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10375       */dev/null* | *'Invalid file or object type'*)
10376         lt_cv_path_NM="$tmp_nm -B"
10377         break
10378         ;;
10379       *)
10380         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10381         */dev/null*)
10382           lt_cv_path_NM="$tmp_nm -p"
10383           break
10384           ;;
10385         *)
10386           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10387           continue # so that we can try to find one that supports BSD flags
10388           ;;
10389         esac
10390       esac
10391     fi
10392   done
10393   IFS="$lt_save_ifs"
10394   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10395 fi
10396 fi
10397 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10398 echo "${ECHO_T}$lt_cv_path_NM" >&6
10399 NM="$lt_cv_path_NM"
10400
10401 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10402 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10403 if test "${lt_cv_deplibs_check_method+set}" = set; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   lt_cv_file_magic_cmd='$MAGIC_CMD'
10407 lt_cv_file_magic_test_file=
10408 lt_cv_deplibs_check_method='unknown'
10409 # Need to set the preceding variable on all platforms that support
10410 # interlibrary dependencies.
10411 # 'none' -- dependencies not supported.
10412 # `unknown' -- same as none, but documents that we really don't know.
10413 # 'pass_all' -- all dependencies passed with no checks.
10414 # 'test_compile' -- check by making test program.
10415 # 'file_magic [[regex]]' -- check by looking for files in library path
10416 # which responds to the $file_magic_cmd with a given extended regex.
10417 # If you have `file' or equivalent on your system and you're not sure
10418 # whether `pass_all' will *always* work, you probably want this one.
10419
10420 case $host_os in
10421 aix4* | aix5*)
10422   lt_cv_deplibs_check_method=pass_all
10423   ;;
10424
10425 beos*)
10426   lt_cv_deplibs_check_method=pass_all
10427   ;;
10428
10429 bsdi4*)
10430   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10431   lt_cv_file_magic_cmd='/usr/bin/file -L'
10432   lt_cv_file_magic_test_file=/shlib/libc.so
10433   ;;
10434
10435 cygwin*)
10436   # func_win32_libid is a shell function defined in ltmain.sh
10437   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10438   lt_cv_file_magic_cmd='func_win32_libid'
10439   ;;
10440
10441 mingw* | pw32*)
10442   # Base MSYS/MinGW do not provide the 'file' command needed by
10443   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10444   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10445   lt_cv_file_magic_cmd='$OBJDUMP -f'
10446   ;;
10447
10448 darwin* | rhapsody*)
10449   lt_cv_deplibs_check_method=pass_all
10450   ;;
10451
10452 freebsd* | kfreebsd*-gnu)
10453   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10454     case $host_cpu in
10455     i*86 )
10456       # Not sure whether the presence of OpenBSD here was a mistake.
10457       # Let's accept both of them until this is cleared up.
10458       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10459       lt_cv_file_magic_cmd=/usr/bin/file
10460       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10461       ;;
10462     esac
10463   else
10464     lt_cv_deplibs_check_method=pass_all
10465   fi
10466   ;;
10467
10468 gnu*)
10469   lt_cv_deplibs_check_method=pass_all
10470   ;;
10471
10472 hpux10.20* | hpux11*)
10473   lt_cv_file_magic_cmd=/usr/bin/file
10474   case "$host_cpu" in
10475   ia64*)
10476     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10477     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10478     ;;
10479   hppa*64*)
10480     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]'
10481     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10482     ;;
10483   *)
10484     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10485     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10486     ;;
10487   esac
10488   ;;
10489
10490 irix5* | irix6* | nonstopux*)
10491   case $LD in
10492   *-32|*"-32 ") libmagic=32-bit;;
10493   *-n32|*"-n32 ") libmagic=N32;;
10494   *-64|*"-64 ") libmagic=64-bit;;
10495   *) libmagic=never-match;;
10496   esac
10497   lt_cv_deplibs_check_method=pass_all
10498   ;;
10499
10500 # This must be Linux ELF.
10501 linux*)
10502   case $host_cpu in
10503   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
10504     lt_cv_deplibs_check_method=pass_all ;;
10505   *)
10506     # glibc up to 2.1.1 does not perform some relocations on ARM
10507     # this will be overridden with pass_all, but let us keep it just in case
10508     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
10509   esac
10510   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
10511   lt_cv_deplibs_check_method=pass_all
10512   ;;
10513
10514 netbsd*)
10515   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10516     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10517   else
10518     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10519   fi
10520   ;;
10521
10522 newos6*)
10523   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10524   lt_cv_file_magic_cmd=/usr/bin/file
10525   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10526   ;;
10527
10528 nto-qnx*)
10529   lt_cv_deplibs_check_method=unknown
10530   ;;
10531
10532 openbsd*)
10533   lt_cv_file_magic_cmd=/usr/bin/file
10534   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10535   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10536     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
10537   else
10538     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
10539   fi
10540   ;;
10541
10542 osf3* | osf4* | osf5*)
10543   lt_cv_deplibs_check_method=pass_all
10544   ;;
10545
10546 sco3.2v5*)
10547   lt_cv_deplibs_check_method=pass_all
10548   ;;
10549
10550 solaris*)
10551   lt_cv_deplibs_check_method=pass_all
10552   ;;
10553
10554 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10555   case $host_vendor in
10556   motorola)
10557     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]'
10558     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10559     ;;
10560   ncr)
10561     lt_cv_deplibs_check_method=pass_all
10562     ;;
10563   sequent)
10564     lt_cv_file_magic_cmd='/bin/file'
10565     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10566     ;;
10567   sni)
10568     lt_cv_file_magic_cmd='/bin/file'
10569     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10570     lt_cv_file_magic_test_file=/lib/libc.so
10571     ;;
10572   siemens)
10573     lt_cv_deplibs_check_method=pass_all
10574     ;;
10575   esac
10576   ;;
10577
10578 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10579   lt_cv_deplibs_check_method=pass_all
10580   ;;
10581 esac
10582
10583 fi
10584 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10585 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10586 file_magic_cmd=$lt_cv_file_magic_cmd
10587 deplibs_check_method=$lt_cv_deplibs_check_method
10588 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10589
10590
10591
10592
10593 # If no C compiler was specified, use CC.
10594 LTCC=${LTCC-"$CC"}
10595
10596 # Allow CC to be a program name with arguments.
10597 compiler=$CC
10598
10599 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10600 if test "${enable_libtool_lock+set}" = set; then
10601   enableval="$enable_libtool_lock"
10602
10603 fi;
10604 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10605
10606 # Some flags need to be propagated to the compiler or linker for good
10607 # libtool support.
10608 case $host in
10609 ia64-*-hpux*)
10610   # Find out which ABI we are using.
10611   echo 'int i;' > conftest.$ac_ext
10612   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613   (eval $ac_compile) 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); }; then
10617     case `/usr/bin/file conftest.$ac_objext` in
10618     *ELF-32*)
10619       HPUX_IA64_MODE="32"
10620       ;;
10621     *ELF-64*)
10622       HPUX_IA64_MODE="64"
10623       ;;
10624     esac
10625   fi
10626   rm -rf conftest*
10627   ;;
10628 *-*-irix6*)
10629   # Find out which ABI we are using.
10630   echo '#line 10630 "configure"' > conftest.$ac_ext
10631   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10632   (eval $ac_compile) 2>&5
10633   ac_status=$?
10634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635   (exit $ac_status); }; then
10636    if test "$lt_cv_prog_gnu_ld" = yes; then
10637     case `/usr/bin/file conftest.$ac_objext` in
10638     *32-bit*)
10639       LD="${LD-ld} -melf32bsmip"
10640       ;;
10641     *N32*)
10642       LD="${LD-ld} -melf32bmipn32"
10643       ;;
10644     *64-bit*)
10645       LD="${LD-ld} -melf64bmip"
10646       ;;
10647     esac
10648    else
10649     case `/usr/bin/file conftest.$ac_objext` in
10650     *32-bit*)
10651       LD="${LD-ld} -32"
10652       ;;
10653     *N32*)
10654       LD="${LD-ld} -n32"
10655       ;;
10656     *64-bit*)
10657       LD="${LD-ld} -64"
10658       ;;
10659     esac
10660    fi
10661   fi
10662   rm -rf conftest*
10663   ;;
10664
10665 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10666   # Find out which ABI we are using.
10667   echo 'int i;' > conftest.$ac_ext
10668   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669   (eval $ac_compile) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }; then
10673     case "`/usr/bin/file conftest.o`" in
10674     *32-bit*)
10675       case $host in
10676         x86_64-*linux*)
10677           LD="${LD-ld} -m elf_i386"
10678           ;;
10679         ppc64-*linux*|powerpc64-*linux*)
10680           LD="${LD-ld} -m elf32ppclinux"
10681           ;;
10682         s390x-*linux*)
10683           LD="${LD-ld} -m elf_s390"
10684           ;;
10685         sparc64-*linux*)
10686           LD="${LD-ld} -m elf32_sparc"
10687           ;;
10688       esac
10689       ;;
10690     *64-bit*)
10691       case $host in
10692         x86_64-*linux*)
10693           LD="${LD-ld} -m elf_x86_64"
10694           ;;
10695         ppc*-*linux*|powerpc*-*linux*)
10696           LD="${LD-ld} -m elf64ppc"
10697           ;;
10698         s390*-*linux*)
10699           LD="${LD-ld} -m elf64_s390"
10700           ;;
10701         sparc*-*linux*)
10702           LD="${LD-ld} -m elf64_sparc"
10703           ;;
10704       esac
10705       ;;
10706     esac
10707   fi
10708   rm -rf conftest*
10709   ;;
10710
10711 *-*-sco3.2v5*)
10712   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10713   SAVE_CFLAGS="$CFLAGS"
10714   CFLAGS="$CFLAGS -belf"
10715   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10716 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10717 if test "${lt_cv_cc_needs_belf+set}" = set; then
10718   echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720   ac_ext=c
10721 ac_cpp='$CPP $CPPFLAGS'
10722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10725
10726      cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h.  */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h.  */
10732
10733 int
10734 main ()
10735 {
10736
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10743   (eval $ac_link) 2>conftest.er1
10744   ac_status=$?
10745   grep -v '^ *+' conftest.er1 >conftest.err
10746   rm -f conftest.er1
10747   cat conftest.err >&5
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); } &&
10750          { ac_try='test -z "$ac_c_werror_flag"
10751                          || test ! -s conftest.err'
10752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753   (eval $ac_try) 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); }; } &&
10757          { ac_try='test -s conftest$ac_exeext'
10758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759   (eval $ac_try) 2>&5
10760   ac_status=$?
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); }; }; then
10763   lt_cv_cc_needs_belf=yes
10764 else
10765   echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10767
10768 lt_cv_cc_needs_belf=no
10769 fi
10770 rm -f conftest.err conftest.$ac_objext \
10771       conftest$ac_exeext conftest.$ac_ext
10772      ac_ext=c
10773 ac_cpp='$CPP $CPPFLAGS'
10774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10777
10778 fi
10779 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10780 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10781   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10782     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10783     CFLAGS="$SAVE_CFLAGS"
10784   fi
10785   ;;
10786
10787 esac
10788
10789 need_locks="$enable_libtool_lock"
10790
10791
10792 ac_ext=c
10793 ac_cpp='$CPP $CPPFLAGS'
10794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10797 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10798 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10799 # On Suns, sometimes $CPP names a directory.
10800 if test -n "$CPP" && test -d "$CPP"; then
10801   CPP=
10802 fi
10803 if test -z "$CPP"; then
10804   if test "${ac_cv_prog_CPP+set}" = set; then
10805   echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807       # Double quotes because CPP needs to be expanded
10808     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10809     do
10810       ac_preproc_ok=false
10811 for ac_c_preproc_warn_flag in '' yes
10812 do
10813   # Use a header file that comes with gcc, so configuring glibc
10814   # with a fresh cross-compiler works.
10815   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10816   # <limits.h> exists even on freestanding compilers.
10817   # On the NeXT, cc -E runs the code through the compiler's parser,
10818   # not just through cpp. "Syntax error" is here to catch this case.
10819   cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h.  */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h.  */
10825 #ifdef __STDC__
10826 # include <limits.h>
10827 #else
10828 # include <assert.h>
10829 #endif
10830                      Syntax error
10831 _ACEOF
10832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10834   ac_status=$?
10835   grep -v '^ *+' conftest.er1 >conftest.err
10836   rm -f conftest.er1
10837   cat conftest.err >&5
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } >/dev/null; then
10840   if test -s conftest.err; then
10841     ac_cpp_err=$ac_c_preproc_warn_flag
10842     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10843   else
10844     ac_cpp_err=
10845   fi
10846 else
10847   ac_cpp_err=yes
10848 fi
10849 if test -z "$ac_cpp_err"; then
10850   :
10851 else
10852   echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10854
10855   # Broken: fails on valid input.
10856 continue
10857 fi
10858 rm -f conftest.err conftest.$ac_ext
10859
10860   # OK, works on sane cases.  Now check whether non-existent headers
10861   # can be detected and how.
10862   cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h.  */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h.  */
10868 #include <ac_nonexistent.h>
10869 _ACEOF
10870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10872   ac_status=$?
10873   grep -v '^ *+' conftest.er1 >conftest.err
10874   rm -f conftest.er1
10875   cat conftest.err >&5
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); } >/dev/null; then
10878   if test -s conftest.err; then
10879     ac_cpp_err=$ac_c_preproc_warn_flag
10880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10881   else
10882     ac_cpp_err=
10883   fi
10884 else
10885   ac_cpp_err=yes
10886 fi
10887 if test -z "$ac_cpp_err"; then
10888   # Broken: success on invalid input.
10889 continue
10890 else
10891   echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10893
10894   # Passes both tests.
10895 ac_preproc_ok=:
10896 break
10897 fi
10898 rm -f conftest.err conftest.$ac_ext
10899
10900 done
10901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10902 rm -f conftest.err conftest.$ac_ext
10903 if $ac_preproc_ok; then
10904   break
10905 fi
10906
10907     done
10908     ac_cv_prog_CPP=$CPP
10909
10910 fi
10911   CPP=$ac_cv_prog_CPP
10912 else
10913   ac_cv_prog_CPP=$CPP
10914 fi
10915 echo "$as_me:$LINENO: result: $CPP" >&5
10916 echo "${ECHO_T}$CPP" >&6
10917 ac_preproc_ok=false
10918 for ac_c_preproc_warn_flag in '' yes
10919 do
10920   # Use a header file that comes with gcc, so configuring glibc
10921   # with a fresh cross-compiler works.
10922   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10923   # <limits.h> exists even on freestanding compilers.
10924   # On the NeXT, cc -E runs the code through the compiler's parser,
10925   # not just through cpp. "Syntax error" is here to catch this case.
10926   cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h.  */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h.  */
10932 #ifdef __STDC__
10933 # include <limits.h>
10934 #else
10935 # include <assert.h>
10936 #endif
10937                      Syntax error
10938 _ACEOF
10939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10941   ac_status=$?
10942   grep -v '^ *+' conftest.er1 >conftest.err
10943   rm -f conftest.er1
10944   cat conftest.err >&5
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); } >/dev/null; then
10947   if test -s conftest.err; then
10948     ac_cpp_err=$ac_c_preproc_warn_flag
10949     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10950   else
10951     ac_cpp_err=
10952   fi
10953 else
10954   ac_cpp_err=yes
10955 fi
10956 if test -z "$ac_cpp_err"; then
10957   :
10958 else
10959   echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10961
10962   # Broken: fails on valid input.
10963 continue
10964 fi
10965 rm -f conftest.err conftest.$ac_ext
10966
10967   # OK, works on sane cases.  Now check whether non-existent headers
10968   # can be detected and how.
10969   cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h.  */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h.  */
10975 #include <ac_nonexistent.h>
10976 _ACEOF
10977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10979   ac_status=$?
10980   grep -v '^ *+' conftest.er1 >conftest.err
10981   rm -f conftest.er1
10982   cat conftest.err >&5
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); } >/dev/null; then
10985   if test -s conftest.err; then
10986     ac_cpp_err=$ac_c_preproc_warn_flag
10987     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10988   else
10989     ac_cpp_err=
10990   fi
10991 else
10992   ac_cpp_err=yes
10993 fi
10994 if test -z "$ac_cpp_err"; then
10995   # Broken: success on invalid input.
10996 continue
10997 else
10998   echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001   # Passes both tests.
11002 ac_preproc_ok=:
11003 break
11004 fi
11005 rm -f conftest.err conftest.$ac_ext
11006
11007 done
11008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11009 rm -f conftest.err conftest.$ac_ext
11010 if $ac_preproc_ok; then
11011   :
11012 else
11013   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11014 See \`config.log' for more details." >&5
11015 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11016 See \`config.log' for more details." >&2;}
11017    { (exit 1); exit 1; }; }
11018 fi
11019
11020 ac_ext=c
11021 ac_cpp='$CPP $CPPFLAGS'
11022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11025
11026
11027 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11028 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11029 if test "${ac_cv_header_stdc+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032   cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h.  */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h.  */
11038 #include <stdlib.h>
11039 #include <stdarg.h>
11040 #include <string.h>
11041 #include <float.h>
11042
11043 int
11044 main ()
11045 {
11046
11047   ;
11048   return 0;
11049 }
11050 _ACEOF
11051 rm -f conftest.$ac_objext
11052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11053   (eval $ac_compile) 2>conftest.er1
11054   ac_status=$?
11055   grep -v '^ *+' conftest.er1 >conftest.err
11056   rm -f conftest.er1
11057   cat conftest.err >&5
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); } &&
11060          { ac_try='test -z "$ac_c_werror_flag"
11061                          || test ! -s conftest.err'
11062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063   (eval $ac_try) 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); }; } &&
11067          { ac_try='test -s conftest.$ac_objext'
11068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069   (eval $ac_try) 2>&5
11070   ac_status=$?
11071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); }; }; then
11073   ac_cv_header_stdc=yes
11074 else
11075   echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11077
11078 ac_cv_header_stdc=no
11079 fi
11080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11081
11082 if test $ac_cv_header_stdc = yes; then
11083   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11084   cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h.  */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h.  */
11090 #include <string.h>
11091
11092 _ACEOF
11093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11094   $EGREP "memchr" >/dev/null 2>&1; then
11095   :
11096 else
11097   ac_cv_header_stdc=no
11098 fi
11099 rm -f conftest*
11100
11101 fi
11102
11103 if test $ac_cv_header_stdc = yes; then
11104   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11105   cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h.  */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h.  */
11111 #include <stdlib.h>
11112
11113 _ACEOF
11114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11115   $EGREP "free" >/dev/null 2>&1; then
11116   :
11117 else
11118   ac_cv_header_stdc=no
11119 fi
11120 rm -f conftest*
11121
11122 fi
11123
11124 if test $ac_cv_header_stdc = yes; then
11125   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11126   if test "$cross_compiling" = yes; then
11127   :
11128 else
11129   cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135 #include <ctype.h>
11136 #if ((' ' & 0x0FF) == 0x020)
11137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11139 #else
11140 # define ISLOWER(c) \
11141                    (('a' <= (c) && (c) <= 'i') \
11142                      || ('j' <= (c) && (c) <= 'r') \
11143                      || ('s' <= (c) && (c) <= 'z'))
11144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11145 #endif
11146
11147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11148 int
11149 main ()
11150 {
11151   int i;
11152   for (i = 0; i < 256; i++)
11153     if (XOR (islower (i), ISLOWER (i))
11154         || toupper (i) != TOUPPER (i))
11155       exit(2);
11156   exit (0);
11157 }
11158 _ACEOF
11159 rm -f conftest$ac_exeext
11160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11161   (eval $ac_link) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166   (eval $ac_try) 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; }; then
11170   :
11171 else
11172   echo "$as_me: program exited with status $ac_status" >&5
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11175
11176 ( exit $ac_status )
11177 ac_cv_header_stdc=no
11178 fi
11179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11180 fi
11181 fi
11182 fi
11183 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11184 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11185 if test $ac_cv_header_stdc = yes; then
11186
11187 cat >>confdefs.h <<\_ACEOF
11188 #define STDC_HEADERS 1
11189 _ACEOF
11190
11191 fi
11192
11193 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11204                   inttypes.h stdint.h unistd.h
11205 do
11206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11207 echo "$as_me:$LINENO: checking for $ac_header" >&5
11208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11210   echo $ECHO_N "(cached) $ECHO_C" >&6
11211 else
11212   cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h.  */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h.  */
11218 $ac_includes_default
11219
11220 #include <$ac_header>
11221 _ACEOF
11222 rm -f conftest.$ac_objext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11224   (eval $ac_compile) 2>conftest.er1
11225   ac_status=$?
11226   grep -v '^ *+' conftest.er1 >conftest.err
11227   rm -f conftest.er1
11228   cat conftest.err >&5
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); } &&
11231          { ac_try='test -z "$ac_c_werror_flag"
11232                          || test ! -s conftest.err'
11233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234   (eval $ac_try) 2>&5
11235   ac_status=$?
11236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237   (exit $ac_status); }; } &&
11238          { ac_try='test -s conftest.$ac_objext'
11239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240   (eval $ac_try) 2>&5
11241   ac_status=$?
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); }; }; then
11244   eval "$as_ac_Header=yes"
11245 else
11246   echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11248
11249 eval "$as_ac_Header=no"
11250 fi
11251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11252 fi
11253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11256   cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11258 _ACEOF
11259
11260 fi
11261
11262 done
11263
11264
11265
11266 for ac_header in dlfcn.h
11267 do
11268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11270   echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 fi
11275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11277 else
11278   # Is the header compilable?
11279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11281 cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h.  */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h.  */
11287 $ac_includes_default
11288 #include <$ac_header>
11289 _ACEOF
11290 rm -f conftest.$ac_objext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11292   (eval $ac_compile) 2>conftest.er1
11293   ac_status=$?
11294   grep -v '^ *+' conftest.er1 >conftest.err
11295   rm -f conftest.er1
11296   cat conftest.err >&5
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); } &&
11299          { ac_try='test -z "$ac_c_werror_flag"
11300                          || test ! -s conftest.err'
11301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302   (eval $ac_try) 2>&5
11303   ac_status=$?
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); }; } &&
11306          { ac_try='test -s conftest.$ac_objext'
11307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308   (eval $ac_try) 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; }; then
11312   ac_header_compiler=yes
11313 else
11314   echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 ac_header_compiler=no
11318 fi
11319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11321 echo "${ECHO_T}$ac_header_compiler" >&6
11322
11323 # Is the header present?
11324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11326 cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h.  */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h.  */
11332 #include <$ac_header>
11333 _ACEOF
11334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11336   ac_status=$?
11337   grep -v '^ *+' conftest.er1 >conftest.err
11338   rm -f conftest.er1
11339   cat conftest.err >&5
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } >/dev/null; then
11342   if test -s conftest.err; then
11343     ac_cpp_err=$ac_c_preproc_warn_flag
11344     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11345   else
11346     ac_cpp_err=
11347   fi
11348 else
11349   ac_cpp_err=yes
11350 fi
11351 if test -z "$ac_cpp_err"; then
11352   ac_header_preproc=yes
11353 else
11354   echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357   ac_header_preproc=no
11358 fi
11359 rm -f conftest.err conftest.$ac_ext
11360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11361 echo "${ECHO_T}$ac_header_preproc" >&6
11362
11363 # So?  What about this header?
11364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11365   yes:no: )
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11370     ac_header_preproc=yes
11371     ;;
11372   no:yes:* )
11373     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11375     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11376 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11380 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11385     (
11386       cat <<\_ASBOX
11387 ## ------------------------------------------------------ ##
11388 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
11389 ## ------------------------------------------------------ ##
11390 _ASBOX
11391     ) |
11392       sed "s/^/$as_me: WARNING:     /" >&2
11393     ;;
11394 esac
11395 echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11398   echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400   eval "$as_ac_Header=\$ac_header_preproc"
11401 fi
11402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11404
11405 fi
11406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11407   cat >>confdefs.h <<_ACEOF
11408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11409 _ACEOF
11410
11411 fi
11412
11413 done
11414
11415 ac_ext=cc
11416 ac_cpp='$CXXCPP $CPPFLAGS'
11417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11420 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11421 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11422 if test -z "$CXXCPP"; then
11423   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426       # Double quotes because CXXCPP needs to be expanded
11427     for CXXCPP in "$CXX -E" "/lib/cpp"
11428     do
11429       ac_preproc_ok=false
11430 for ac_cxx_preproc_warn_flag in '' yes
11431 do
11432   # Use a header file that comes with gcc, so configuring glibc
11433   # with a fresh cross-compiler works.
11434   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11435   # <limits.h> exists even on freestanding compilers.
11436   # On the NeXT, cc -E runs the code through the compiler's parser,
11437   # not just through cpp. "Syntax error" is here to catch this case.
11438   cat >conftest.$ac_ext <<_ACEOF
11439 /* confdefs.h.  */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h.  */
11444 #ifdef __STDC__
11445 # include <limits.h>
11446 #else
11447 # include <assert.h>
11448 #endif
11449                      Syntax error
11450 _ACEOF
11451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11453   ac_status=$?
11454   grep -v '^ *+' conftest.er1 >conftest.err
11455   rm -f conftest.er1
11456   cat conftest.err >&5
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); } >/dev/null; then
11459   if test -s conftest.err; then
11460     ac_cpp_err=$ac_cxx_preproc_warn_flag
11461     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11462   else
11463     ac_cpp_err=
11464   fi
11465 else
11466   ac_cpp_err=yes
11467 fi
11468 if test -z "$ac_cpp_err"; then
11469   :
11470 else
11471   echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11473
11474   # Broken: fails on valid input.
11475 continue
11476 fi
11477 rm -f conftest.err conftest.$ac_ext
11478
11479   # OK, works on sane cases.  Now check whether non-existent headers
11480   # can be detected and how.
11481   cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h.  */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h.  */
11487 #include <ac_nonexistent.h>
11488 _ACEOF
11489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11491   ac_status=$?
11492   grep -v '^ *+' conftest.er1 >conftest.err
11493   rm -f conftest.er1
11494   cat conftest.err >&5
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); } >/dev/null; then
11497   if test -s conftest.err; then
11498     ac_cpp_err=$ac_cxx_preproc_warn_flag
11499     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11500   else
11501     ac_cpp_err=
11502   fi
11503 else
11504   ac_cpp_err=yes
11505 fi
11506 if test -z "$ac_cpp_err"; then
11507   # Broken: success on invalid input.
11508 continue
11509 else
11510   echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513   # Passes both tests.
11514 ac_preproc_ok=:
11515 break
11516 fi
11517 rm -f conftest.err conftest.$ac_ext
11518
11519 done
11520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11521 rm -f conftest.err conftest.$ac_ext
11522 if $ac_preproc_ok; then
11523   break
11524 fi
11525
11526     done
11527     ac_cv_prog_CXXCPP=$CXXCPP
11528
11529 fi
11530   CXXCPP=$ac_cv_prog_CXXCPP
11531 else
11532   ac_cv_prog_CXXCPP=$CXXCPP
11533 fi
11534 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11535 echo "${ECHO_T}$CXXCPP" >&6
11536 ac_preproc_ok=false
11537 for ac_cxx_preproc_warn_flag in '' yes
11538 do
11539   # Use a header file that comes with gcc, so configuring glibc
11540   # with a fresh cross-compiler works.
11541   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11542   # <limits.h> exists even on freestanding compilers.
11543   # On the NeXT, cc -E runs the code through the compiler's parser,
11544   # not just through cpp. "Syntax error" is here to catch this case.
11545   cat >conftest.$ac_ext <<_ACEOF
11546 /* confdefs.h.  */
11547 _ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h.  */
11551 #ifdef __STDC__
11552 # include <limits.h>
11553 #else
11554 # include <assert.h>
11555 #endif
11556                      Syntax error
11557 _ACEOF
11558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11560   ac_status=$?
11561   grep -v '^ *+' conftest.er1 >conftest.err
11562   rm -f conftest.er1
11563   cat conftest.err >&5
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } >/dev/null; then
11566   if test -s conftest.err; then
11567     ac_cpp_err=$ac_cxx_preproc_warn_flag
11568     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11569   else
11570     ac_cpp_err=
11571   fi
11572 else
11573   ac_cpp_err=yes
11574 fi
11575 if test -z "$ac_cpp_err"; then
11576   :
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581   # Broken: fails on valid input.
11582 continue
11583 fi
11584 rm -f conftest.err conftest.$ac_ext
11585
11586   # OK, works on sane cases.  Now check whether non-existent headers
11587   # can be detected and how.
11588   cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594 #include <ac_nonexistent.h>
11595 _ACEOF
11596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11597   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11598   ac_status=$?
11599   grep -v '^ *+' conftest.er1 >conftest.err
11600   rm -f conftest.er1
11601   cat conftest.err >&5
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); } >/dev/null; then
11604   if test -s conftest.err; then
11605     ac_cpp_err=$ac_cxx_preproc_warn_flag
11606     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11607   else
11608     ac_cpp_err=
11609   fi
11610 else
11611   ac_cpp_err=yes
11612 fi
11613 if test -z "$ac_cpp_err"; then
11614   # Broken: success on invalid input.
11615 continue
11616 else
11617   echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11619
11620   # Passes both tests.
11621 ac_preproc_ok=:
11622 break
11623 fi
11624 rm -f conftest.err conftest.$ac_ext
11625
11626 done
11627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11628 rm -f conftest.err conftest.$ac_ext
11629 if $ac_preproc_ok; then
11630   :
11631 else
11632   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11633 See \`config.log' for more details." >&5
11634 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11635 See \`config.log' for more details." >&2;}
11636    { (exit 1); exit 1; }; }
11637 fi
11638
11639 ac_ext=cc
11640 ac_cpp='$CXXCPP $CPPFLAGS'
11641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11644
11645 ac_ext=f
11646 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11647 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11648 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11649 if test -n "$ac_tool_prefix"; then
11650   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11651   do
11652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11654 echo "$as_me:$LINENO: checking for $ac_word" >&5
11655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11656 if test "${ac_cv_prog_F77+set}" = set; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659   if test -n "$F77"; then
11660   ac_cv_prog_F77="$F77" # Let the user override the test.
11661 else
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11664 do
11665   IFS=$as_save_IFS
11666   test -z "$as_dir" && as_dir=.
11667   for ac_exec_ext in '' $ac_executable_extensions; do
11668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11669     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11671     break 2
11672   fi
11673 done
11674 done
11675
11676 fi
11677 fi
11678 F77=$ac_cv_prog_F77
11679 if test -n "$F77"; then
11680   echo "$as_me:$LINENO: result: $F77" >&5
11681 echo "${ECHO_T}$F77" >&6
11682 else
11683   echo "$as_me:$LINENO: result: no" >&5
11684 echo "${ECHO_T}no" >&6
11685 fi
11686
11687     test -n "$F77" && break
11688   done
11689 fi
11690 if test -z "$F77"; then
11691   ac_ct_F77=$F77
11692   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11693 do
11694   # Extract the first word of "$ac_prog", so it can be a program name with args.
11695 set dummy $ac_prog; ac_word=$2
11696 echo "$as_me:$LINENO: checking for $ac_word" >&5
11697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11698 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11699   echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701   if test -n "$ac_ct_F77"; then
11702   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11703 else
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11706 do
11707   IFS=$as_save_IFS
11708   test -z "$as_dir" && as_dir=.
11709   for ac_exec_ext in '' $ac_executable_extensions; do
11710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711     ac_cv_prog_ac_ct_F77="$ac_prog"
11712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11713     break 2
11714   fi
11715 done
11716 done
11717
11718 fi
11719 fi
11720 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11721 if test -n "$ac_ct_F77"; then
11722   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11723 echo "${ECHO_T}$ac_ct_F77" >&6
11724 else
11725   echo "$as_me:$LINENO: result: no" >&5
11726 echo "${ECHO_T}no" >&6
11727 fi
11728
11729   test -n "$ac_ct_F77" && break
11730 done
11731
11732   F77=$ac_ct_F77
11733 fi
11734
11735
11736 # Provide some information about the compiler.
11737 echo "$as_me:11737:" \
11738      "checking for Fortran 77 compiler version" >&5
11739 ac_compiler=`set X $ac_compile; echo $2`
11740 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11741   (eval $ac_compiler --version </dev/null >&5) 2>&5
11742   ac_status=$?
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); }
11745 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11746   (eval $ac_compiler -v </dev/null >&5) 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); }
11750 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11751   (eval $ac_compiler -V </dev/null >&5) 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); }
11755 rm -f a.out
11756
11757 # If we don't use `.F' as extension, the preprocessor is not run on the
11758 # input file.  (Note that this only needs to work for GNU compilers.)
11759 ac_save_ext=$ac_ext
11760 ac_ext=F
11761 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11762 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11763 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11764   echo $ECHO_N "(cached) $ECHO_C" >&6
11765 else
11766   cat >conftest.$ac_ext <<_ACEOF
11767       program main
11768 #ifndef __GNUC__
11769        choke me
11770 #endif
11771
11772       end
11773 _ACEOF
11774 rm -f conftest.$ac_objext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776   (eval $ac_compile) 2>conftest.er1
11777   ac_status=$?
11778   grep -v '^ *+' conftest.er1 >conftest.err
11779   rm -f conftest.er1
11780   cat conftest.err >&5
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); } &&
11783          { ac_try='test -z "$ac_f77_werror_flag"
11784                          || test ! -s conftest.err'
11785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786   (eval $ac_try) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; } &&
11790          { ac_try='test -s conftest.$ac_objext'
11791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792   (eval $ac_try) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }; }; then
11796   ac_compiler_gnu=yes
11797 else
11798   echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 ac_compiler_gnu=no
11802 fi
11803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11804 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11805
11806 fi
11807 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11808 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11809 ac_ext=$ac_save_ext
11810 ac_test_FFLAGS=${FFLAGS+set}
11811 ac_save_FFLAGS=$FFLAGS
11812 FFLAGS=
11813 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11814 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11815 if test "${ac_cv_prog_f77_g+set}" = set; then
11816   echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818   FFLAGS=-g
11819 cat >conftest.$ac_ext <<_ACEOF
11820       program main
11821
11822       end
11823 _ACEOF
11824 rm -f conftest.$ac_objext
11825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11826   (eval $ac_compile) 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } &&
11833          { ac_try='test -z "$ac_f77_werror_flag"
11834                          || test ! -s conftest.err'
11835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836   (eval $ac_try) 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; } &&
11840          { ac_try='test -s conftest.$ac_objext'
11841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842   (eval $ac_try) 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); }; }; then
11846   ac_cv_prog_f77_g=yes
11847 else
11848   echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11850
11851 ac_cv_prog_f77_g=no
11852 fi
11853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11854
11855 fi
11856 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11857 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11858 if test "$ac_test_FFLAGS" = set; then
11859   FFLAGS=$ac_save_FFLAGS
11860 elif test $ac_cv_prog_f77_g = yes; then
11861   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11862     FFLAGS="-g -O2"
11863   else
11864     FFLAGS="-g"
11865   fi
11866 else
11867   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11868     FFLAGS="-O2"
11869   else
11870     FFLAGS=
11871   fi
11872 fi
11873
11874 G77=`test $ac_compiler_gnu = yes && echo yes`
11875 ac_ext=c
11876 ac_cpp='$CPP $CPPFLAGS'
11877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11880
11881
11882
11883 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11884
11885 # find the maximum length of command line arguments
11886 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11887 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11888 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11889   echo $ECHO_N "(cached) $ECHO_C" >&6
11890 else
11891     i=0
11892   teststring="ABCD"
11893
11894   case $build_os in
11895   msdosdjgpp*)
11896     # On DJGPP, this test can blow up pretty badly due to problems in libc
11897     # (any single argument exceeding 2000 bytes causes a buffer overrun
11898     # during glob expansion).  Even if it were fixed, the result of this
11899     # check would be larger than it should be.
11900     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11901     ;;
11902
11903   gnu*)
11904     # Under GNU Hurd, this test is not required because there is
11905     # no limit to the length of command line arguments.
11906     # Libtool will interpret -1 as no limit whatsoever
11907     lt_cv_sys_max_cmd_len=-1;
11908     ;;
11909
11910   cygwin* | mingw*)
11911     # On Win9x/ME, this test blows up -- it succeeds, but takes
11912     # about 5 minutes as the teststring grows exponentially.
11913     # Worse, since 9x/ME are not pre-emptively multitasking,
11914     # you end up with a "frozen" computer, even though with patience
11915     # the test eventually succeeds (with a max line length of 256k).
11916     # Instead, let's just punt: use the minimum linelength reported by
11917     # all of the supported platforms: 8192 (on NT/2K/XP).
11918     lt_cv_sys_max_cmd_len=8192;
11919     ;;
11920
11921   amigaos*)
11922     # On AmigaOS with pdksh, this test takes hours, literally.
11923     # So we just punt and use a minimum line length of 8192.
11924     lt_cv_sys_max_cmd_len=8192;
11925     ;;
11926
11927  *)
11928     # If test is not a shell built-in, we'll probably end up computing a
11929     # maximum length that is only half of the actual maximum length, but
11930     # we can't tell.
11931     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11932                = "XX$teststring") >/dev/null 2>&1 &&
11933             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11934             lt_cv_sys_max_cmd_len=$new_result &&
11935             test $i != 17 # 1/2 MB should be enough
11936     do
11937       i=`expr $i + 1`
11938       teststring=$teststring$teststring
11939     done
11940     teststring=
11941     # Add a significant safety factor because C++ compilers can tack on massive
11942     # amounts of additional arguments before passing them to the linker.
11943     # It appears as though 1/2 is a usable value.
11944     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11945     ;;
11946   esac
11947
11948 fi
11949
11950 if test -n $lt_cv_sys_max_cmd_len ; then
11951   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11952 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11953 else
11954   echo "$as_me:$LINENO: result: none" >&5
11955 echo "${ECHO_T}none" >&6
11956 fi
11957
11958
11959
11960
11961 # Check for command to grab the raw symbol name followed by C symbol from nm.
11962 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11963 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11964 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11965   echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967
11968 # These are sane defaults that work on at least a few old systems.
11969 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11970
11971 # Character class describing NM global symbol codes.
11972 symcode='[BCDEGRST]'
11973
11974 # Regexp to match symbols that can be accessed directly from C.
11975 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11976
11977 # Transform the above into a raw symbol and a C symbol.
11978 symxfrm='\1 \2\3 \3'
11979
11980 # Transform an extracted symbol line into a proper C declaration
11981 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11982
11983 # Transform an extracted symbol line into symbol name and symbol address
11984 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'"
11985
11986 # Define system-specific variables.
11987 case $host_os in
11988 aix*)
11989   symcode='[BCDT]'
11990   ;;
11991 cygwin* | mingw* | pw32*)
11992   symcode='[ABCDGISTW]'
11993   ;;
11994 hpux*) # Its linker distinguishes data from code symbols
11995   if test "$host_cpu" = ia64; then
11996     symcode='[ABCDEGRST]'
11997   fi
11998   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11999   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'"
12000   ;;
12001 irix* | nonstopux*)
12002   symcode='[BCDEGRST]'
12003   ;;
12004 osf*)
12005   symcode='[BCDEGQRST]'
12006   ;;
12007 solaris* | sysv5*)
12008   symcode='[BDRT]'
12009   ;;
12010 sysv4)
12011   symcode='[DFNSTU]'
12012   ;;
12013 esac
12014
12015 # Handle CRLF in mingw tool chain
12016 opt_cr=
12017 case $build_os in
12018 mingw*)
12019   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12020   ;;
12021 esac
12022
12023 # If we're using GNU nm, then use its standard symbol codes.
12024 case `$NM -V 2>&1` in
12025 *GNU* | *'with BFD'*)
12026   symcode='[ABCDGIRSTW]' ;;
12027 esac
12028
12029 # Try without a prefix undercore, then with it.
12030 for ac_symprfx in "" "_"; do
12031
12032   # Write the raw and C identifiers.
12033   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
12034
12035   # Check to see that the pipe works correctly.
12036   pipe_works=no
12037
12038   rm -f conftest*
12039   cat > conftest.$ac_ext <<EOF
12040 #ifdef __cplusplus
12041 extern "C" {
12042 #endif
12043 char nm_test_var;
12044 void nm_test_func(){}
12045 #ifdef __cplusplus
12046 }
12047 #endif
12048 int main(){nm_test_var='a';nm_test_func();return(0);}
12049 EOF
12050
12051   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052   (eval $ac_compile) 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); }; then
12056     # Now try to grab the symbols.
12057     nlist=conftest.nm
12058     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12059   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } && test -s "$nlist"; then
12063       # Try sorting and uniquifying the output.
12064       if sort "$nlist" | uniq > "$nlist"T; then
12065         mv -f "$nlist"T "$nlist"
12066       else
12067         rm -f "$nlist"T
12068       fi
12069
12070       # Make sure that we snagged all the symbols we need.
12071       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12072         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12073           cat <<EOF > conftest.$ac_ext
12074 #ifdef __cplusplus
12075 extern "C" {
12076 #endif
12077
12078 EOF
12079           # Now generate the symbol file.
12080           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12081
12082           cat <<EOF >> conftest.$ac_ext
12083 #if defined (__STDC__) && __STDC__
12084 # define lt_ptr_t void *
12085 #else
12086 # define lt_ptr_t char *
12087 # define const
12088 #endif
12089
12090 /* The mapping between symbol names and symbols. */
12091 const struct {
12092   const char *name;
12093   lt_ptr_t address;
12094 }
12095 lt_preloaded_symbols[] =
12096 {
12097 EOF
12098           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12099           cat <<\EOF >> conftest.$ac_ext
12100   {0, (lt_ptr_t) 0}
12101 };
12102
12103 #ifdef __cplusplus
12104 }
12105 #endif
12106 EOF
12107           # Now try linking the two files.
12108           mv conftest.$ac_objext conftstm.$ac_objext
12109           lt_save_LIBS="$LIBS"
12110           lt_save_CFLAGS="$CFLAGS"
12111           LIBS="conftstm.$ac_objext"
12112           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12113           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114   (eval $ac_link) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); } && test -s conftest${ac_exeext}; then
12118             pipe_works=yes
12119           fi
12120           LIBS="$lt_save_LIBS"
12121           CFLAGS="$lt_save_CFLAGS"
12122         else
12123           echo "cannot find nm_test_func in $nlist" >&5
12124         fi
12125       else
12126         echo "cannot find nm_test_var in $nlist" >&5
12127       fi
12128     else
12129       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12130     fi
12131   else
12132     echo "$progname: failed program was:" >&5
12133     cat conftest.$ac_ext >&5
12134   fi
12135   rm -f conftest* conftst*
12136
12137   # Do not use the global_symbol_pipe unless it works.
12138   if test "$pipe_works" = yes; then
12139     break
12140   else
12141     lt_cv_sys_global_symbol_pipe=
12142   fi
12143 done
12144
12145 fi
12146
12147 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12148   lt_cv_sys_global_symbol_to_cdecl=
12149 fi
12150 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12151   echo "$as_me:$LINENO: result: failed" >&5
12152 echo "${ECHO_T}failed" >&6
12153 else
12154   echo "$as_me:$LINENO: result: ok" >&5
12155 echo "${ECHO_T}ok" >&6
12156 fi
12157
12158 echo "$as_me:$LINENO: checking for objdir" >&5
12159 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
12160 if test "${lt_cv_objdir+set}" = set; then
12161   echo $ECHO_N "(cached) $ECHO_C" >&6
12162 else
12163   rm -f .libs 2>/dev/null
12164 mkdir .libs 2>/dev/null
12165 if test -d .libs; then
12166   lt_cv_objdir=.libs
12167 else
12168   # MS-DOS does not allow filenames that begin with a dot.
12169   lt_cv_objdir=_libs
12170 fi
12171 rmdir .libs 2>/dev/null
12172 fi
12173 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12174 echo "${ECHO_T}$lt_cv_objdir" >&6
12175 objdir=$lt_cv_objdir
12176
12177
12178
12179
12180
12181 case $host_os in
12182 aix3*)
12183   # AIX sometimes has problems with the GCC collect2 program.  For some
12184   # reason, if we set the COLLECT_NAMES environment variable, the problems
12185   # vanish in a puff of smoke.
12186   if test "X${COLLECT_NAMES+set}" != Xset; then
12187     COLLECT_NAMES=
12188     export COLLECT_NAMES
12189   fi
12190   ;;
12191 esac
12192
12193 # Sed substitution that helps us do robust quoting.  It backslashifies
12194 # metacharacters that are still active within double-quoted strings.
12195 Xsed='sed -e s/^X//'
12196 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12197
12198 # Same as above, but do not quote variable references.
12199 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12200
12201 # Sed substitution to delay expansion of an escaped shell variable in a
12202 # double_quote_subst'ed string.
12203 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12204
12205 # Sed substitution to avoid accidental globbing in evaled expressions
12206 no_glob_subst='s/\*/\\\*/g'
12207
12208 # Constants:
12209 rm="rm -f"
12210
12211 # Global variables:
12212 default_ofile=libtool
12213 can_build_shared=yes
12214
12215 # All known linkers require a `.a' archive for static linking (except M$VC,
12216 # which needs '.lib').
12217 libext=a
12218 ltmain="$ac_aux_dir/ltmain.sh"
12219 ofile="$default_ofile"
12220 with_gnu_ld="$lt_cv_prog_gnu_ld"
12221
12222 if test -n "$ac_tool_prefix"; then
12223   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12224 set dummy ${ac_tool_prefix}ar; ac_word=$2
12225 echo "$as_me:$LINENO: checking for $ac_word" >&5
12226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12227 if test "${ac_cv_prog_AR+set}" = set; then
12228   echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230   if test -n "$AR"; then
12231   ac_cv_prog_AR="$AR" # Let the user override the test.
12232 else
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12235 do
12236   IFS=$as_save_IFS
12237   test -z "$as_dir" && as_dir=.
12238   for ac_exec_ext in '' $ac_executable_extensions; do
12239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12240     ac_cv_prog_AR="${ac_tool_prefix}ar"
12241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12242     break 2
12243   fi
12244 done
12245 done
12246
12247 fi
12248 fi
12249 AR=$ac_cv_prog_AR
12250 if test -n "$AR"; then
12251   echo "$as_me:$LINENO: result: $AR" >&5
12252 echo "${ECHO_T}$AR" >&6
12253 else
12254   echo "$as_me:$LINENO: result: no" >&5
12255 echo "${ECHO_T}no" >&6
12256 fi
12257
12258 fi
12259 if test -z "$ac_cv_prog_AR"; then
12260   ac_ct_AR=$AR
12261   # Extract the first word of "ar", so it can be a program name with args.
12262 set dummy ar; ac_word=$2
12263 echo "$as_me:$LINENO: checking for $ac_word" >&5
12264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12265 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12266   echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268   if test -n "$ac_ct_AR"; then
12269   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12270 else
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH
12273 do
12274   IFS=$as_save_IFS
12275   test -z "$as_dir" && as_dir=.
12276   for ac_exec_ext in '' $ac_executable_extensions; do
12277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12278     ac_cv_prog_ac_ct_AR="ar"
12279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12280     break 2
12281   fi
12282 done
12283 done
12284
12285   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
12286 fi
12287 fi
12288 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12289 if test -n "$ac_ct_AR"; then
12290   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12291 echo "${ECHO_T}$ac_ct_AR" >&6
12292 else
12293   echo "$as_me:$LINENO: result: no" >&5
12294 echo "${ECHO_T}no" >&6
12295 fi
12296
12297   AR=$ac_ct_AR
12298 else
12299   AR="$ac_cv_prog_AR"
12300 fi
12301
12302 if test -n "$ac_tool_prefix"; then
12303   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12305 echo "$as_me:$LINENO: checking for $ac_word" >&5
12306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12307 if test "${ac_cv_prog_RANLIB+set}" = set; then
12308   echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310   if test -n "$RANLIB"; then
12311   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12312 else
12313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314 for as_dir in $PATH
12315 do
12316   IFS=$as_save_IFS
12317   test -z "$as_dir" && as_dir=.
12318   for ac_exec_ext in '' $ac_executable_extensions; do
12319   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12320     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12322     break 2
12323   fi
12324 done
12325 done
12326
12327 fi
12328 fi
12329 RANLIB=$ac_cv_prog_RANLIB
12330 if test -n "$RANLIB"; then
12331   echo "$as_me:$LINENO: result: $RANLIB" >&5
12332 echo "${ECHO_T}$RANLIB" >&6
12333 else
12334   echo "$as_me:$LINENO: result: no" >&5
12335 echo "${ECHO_T}no" >&6
12336 fi
12337
12338 fi
12339 if test -z "$ac_cv_prog_RANLIB"; then
12340   ac_ct_RANLIB=$RANLIB
12341   # Extract the first word of "ranlib", so it can be a program name with args.
12342 set dummy ranlib; ac_word=$2
12343 echo "$as_me:$LINENO: checking for $ac_word" >&5
12344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12345 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12346   echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348   if test -n "$ac_ct_RANLIB"; then
12349   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12350 else
12351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352 for as_dir in $PATH
12353 do
12354   IFS=$as_save_IFS
12355   test -z "$as_dir" && as_dir=.
12356   for ac_exec_ext in '' $ac_executable_extensions; do
12357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12358     ac_cv_prog_ac_ct_RANLIB="ranlib"
12359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12360     break 2
12361   fi
12362 done
12363 done
12364
12365   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12366 fi
12367 fi
12368 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12369 if test -n "$ac_ct_RANLIB"; then
12370   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12371 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12372 else
12373   echo "$as_me:$LINENO: result: no" >&5
12374 echo "${ECHO_T}no" >&6
12375 fi
12376
12377   RANLIB=$ac_ct_RANLIB
12378 else
12379   RANLIB="$ac_cv_prog_RANLIB"
12380 fi
12381
12382 if test -n "$ac_tool_prefix"; then
12383   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12384 set dummy ${ac_tool_prefix}strip; ac_word=$2
12385 echo "$as_me:$LINENO: checking for $ac_word" >&5
12386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12387 if test "${ac_cv_prog_STRIP+set}" = set; then
12388   echo $ECHO_N "(cached) $ECHO_C" >&6
12389 else
12390   if test -n "$STRIP"; then
12391   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12392 else
12393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12394 for as_dir in $PATH
12395 do
12396   IFS=$as_save_IFS
12397   test -z "$as_dir" && as_dir=.
12398   for ac_exec_ext in '' $ac_executable_extensions; do
12399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12400     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12402     break 2
12403   fi
12404 done
12405 done
12406
12407 fi
12408 fi
12409 STRIP=$ac_cv_prog_STRIP
12410 if test -n "$STRIP"; then
12411   echo "$as_me:$LINENO: result: $STRIP" >&5
12412 echo "${ECHO_T}$STRIP" >&6
12413 else
12414   echo "$as_me:$LINENO: result: no" >&5
12415 echo "${ECHO_T}no" >&6
12416 fi
12417
12418 fi
12419 if test -z "$ac_cv_prog_STRIP"; then
12420   ac_ct_STRIP=$STRIP
12421   # Extract the first word of "strip", so it can be a program name with args.
12422 set dummy strip; ac_word=$2
12423 echo "$as_me:$LINENO: checking for $ac_word" >&5
12424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12425 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12426   echo $ECHO_N "(cached) $ECHO_C" >&6
12427 else
12428   if test -n "$ac_ct_STRIP"; then
12429   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12430 else
12431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12432 for as_dir in $PATH
12433 do
12434   IFS=$as_save_IFS
12435   test -z "$as_dir" && as_dir=.
12436   for ac_exec_ext in '' $ac_executable_extensions; do
12437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12438     ac_cv_prog_ac_ct_STRIP="strip"
12439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12440     break 2
12441   fi
12442 done
12443 done
12444
12445   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12446 fi
12447 fi
12448 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12449 if test -n "$ac_ct_STRIP"; then
12450   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12451 echo "${ECHO_T}$ac_ct_STRIP" >&6
12452 else
12453   echo "$as_me:$LINENO: result: no" >&5
12454 echo "${ECHO_T}no" >&6
12455 fi
12456
12457   STRIP=$ac_ct_STRIP
12458 else
12459   STRIP="$ac_cv_prog_STRIP"
12460 fi
12461
12462
12463 old_CC="$CC"
12464 old_CFLAGS="$CFLAGS"
12465
12466 # Set sane defaults for various variables
12467 test -z "$AR" && AR=ar
12468 test -z "$AR_FLAGS" && AR_FLAGS=cru
12469 test -z "$AS" && AS=as
12470 test -z "$CC" && CC=cc
12471 test -z "$LTCC" && LTCC=$CC
12472 test -z "$DLLTOOL" && DLLTOOL=dlltool
12473 test -z "$LD" && LD=ld
12474 test -z "$LN_S" && LN_S="ln -s"
12475 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12476 test -z "$NM" && NM=nm
12477 test -z "$SED" && SED=sed
12478 test -z "$OBJDUMP" && OBJDUMP=objdump
12479 test -z "$RANLIB" && RANLIB=:
12480 test -z "$STRIP" && STRIP=:
12481 test -z "$ac_objext" && ac_objext=o
12482
12483 # Determine commands to create old-style static archives.
12484 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12485 old_postinstall_cmds='chmod 644 $oldlib'
12486 old_postuninstall_cmds=
12487
12488 if test -n "$RANLIB"; then
12489   case $host_os in
12490   openbsd*)
12491     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12492     ;;
12493   *)
12494     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12495     ;;
12496   esac
12497   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12498 fi
12499
12500 # Only perform the check for file, if the check method requires it
12501 case $deplibs_check_method in
12502 file_magic*)
12503   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12504     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12505 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12506 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12507   echo $ECHO_N "(cached) $ECHO_C" >&6
12508 else
12509   case $MAGIC_CMD in
12510 [\\/*] |  ?:[\\/]*)
12511   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12512   ;;
12513 *)
12514   lt_save_MAGIC_CMD="$MAGIC_CMD"
12515   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12516   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12517   for ac_dir in $ac_dummy; do
12518     IFS="$lt_save_ifs"
12519     test -z "$ac_dir" && ac_dir=.
12520     if test -f $ac_dir/${ac_tool_prefix}file; then
12521       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12522       if test -n "$file_magic_test_file"; then
12523         case $deplibs_check_method in
12524         "file_magic "*)
12525           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12526           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12527           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12528             $EGREP "$file_magic_regex" > /dev/null; then
12529             :
12530           else
12531             cat <<EOF 1>&2
12532
12533 *** Warning: the command libtool uses to detect shared libraries,
12534 *** $file_magic_cmd, produces output that libtool cannot recognize.
12535 *** The result is that libtool may fail to recognize shared libraries
12536 *** as such.  This will affect the creation of libtool libraries that
12537 *** depend on shared libraries, but programs linked with such libtool
12538 *** libraries will work regardless of this problem.  Nevertheless, you
12539 *** may want to report the problem to your system manager and/or to
12540 *** bug-libtool@gnu.org
12541
12542 EOF
12543           fi ;;
12544         esac
12545       fi
12546       break
12547     fi
12548   done
12549   IFS="$lt_save_ifs"
12550   MAGIC_CMD="$lt_save_MAGIC_CMD"
12551   ;;
12552 esac
12553 fi
12554
12555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12556 if test -n "$MAGIC_CMD"; then
12557   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12558 echo "${ECHO_T}$MAGIC_CMD" >&6
12559 else
12560   echo "$as_me:$LINENO: result: no" >&5
12561 echo "${ECHO_T}no" >&6
12562 fi
12563
12564 if test -z "$lt_cv_path_MAGIC_CMD"; then
12565   if test -n "$ac_tool_prefix"; then
12566     echo "$as_me:$LINENO: checking for file" >&5
12567 echo $ECHO_N "checking for file... $ECHO_C" >&6
12568 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12569   echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571   case $MAGIC_CMD in
12572 [\\/*] |  ?:[\\/]*)
12573   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12574   ;;
12575 *)
12576   lt_save_MAGIC_CMD="$MAGIC_CMD"
12577   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12578   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12579   for ac_dir in $ac_dummy; do
12580     IFS="$lt_save_ifs"
12581     test -z "$ac_dir" && ac_dir=.
12582     if test -f $ac_dir/file; then
12583       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12584       if test -n "$file_magic_test_file"; then
12585         case $deplibs_check_method in
12586         "file_magic "*)
12587           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12588           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12589           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12590             $EGREP "$file_magic_regex" > /dev/null; then
12591             :
12592           else
12593             cat <<EOF 1>&2
12594
12595 *** Warning: the command libtool uses to detect shared libraries,
12596 *** $file_magic_cmd, produces output that libtool cannot recognize.
12597 *** The result is that libtool may fail to recognize shared libraries
12598 *** as such.  This will affect the creation of libtool libraries that
12599 *** depend on shared libraries, but programs linked with such libtool
12600 *** libraries will work regardless of this problem.  Nevertheless, you
12601 *** may want to report the problem to your system manager and/or to
12602 *** bug-libtool@gnu.org
12603
12604 EOF
12605           fi ;;
12606         esac
12607       fi
12608       break
12609     fi
12610   done
12611   IFS="$lt_save_ifs"
12612   MAGIC_CMD="$lt_save_MAGIC_CMD"
12613   ;;
12614 esac
12615 fi
12616
12617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12618 if test -n "$MAGIC_CMD"; then
12619   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12620 echo "${ECHO_T}$MAGIC_CMD" >&6
12621 else
12622   echo "$as_me:$LINENO: result: no" >&5
12623 echo "${ECHO_T}no" >&6
12624 fi
12625
12626   else
12627     MAGIC_CMD=:
12628   fi
12629 fi
12630
12631   fi
12632   ;;
12633 esac
12634
12635 enable_dlopen=no
12636 enable_win32_dll=no
12637
12638 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12639 if test "${enable_libtool_lock+set}" = set; then
12640   enableval="$enable_libtool_lock"
12641
12642 fi;
12643 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12644
12645
12646 # Check whether --with-pic or --without-pic was given.
12647 if test "${with_pic+set}" = set; then
12648   withval="$with_pic"
12649   pic_mode="$withval"
12650 else
12651   pic_mode=default
12652 fi;
12653 test -z "$pic_mode" && pic_mode=default
12654
12655 # Use C for the default configuration in the libtool script
12656 tagname=
12657 lt_save_CC="$CC"
12658 ac_ext=c
12659 ac_cpp='$CPP $CPPFLAGS'
12660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12663
12664
12665 # Source file extension for C test sources.
12666 ac_ext=c
12667
12668 # Object file extension for compiled C test sources.
12669 objext=o
12670 objext=$objext
12671
12672 # Code to be used in simple compile tests
12673 lt_simple_compile_test_code="int some_variable = 0;\n"
12674
12675 # Code to be used in simple link tests
12676 lt_simple_link_test_code='int main(){return(0);}\n'
12677
12678
12679 # If no C compiler was specified, use CC.
12680 LTCC=${LTCC-"$CC"}
12681
12682 # Allow CC to be a program name with arguments.
12683 compiler=$CC
12684
12685
12686 #
12687 # Check for any special shared library compilation flags.
12688 #
12689 lt_prog_cc_shlib=
12690 if test "$GCC" = no; then
12691   case $host_os in
12692   sco3.2v5*)
12693     lt_prog_cc_shlib='-belf'
12694     ;;
12695   esac
12696 fi
12697 if test -n "$lt_prog_cc_shlib"; then
12698   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12699 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12700   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
12701   else
12702     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12703 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12704     lt_cv_prog_cc_can_build_shared=no
12705   fi
12706 fi
12707
12708
12709 #
12710 # Check to make sure the static flag actually works.
12711 #
12712 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12713 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12714 if test "${lt_prog_compiler_static_works+set}" = set; then
12715   echo $ECHO_N "(cached) $ECHO_C" >&6
12716 else
12717   lt_prog_compiler_static_works=no
12718    save_LDFLAGS="$LDFLAGS"
12719    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12720    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12721    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12722      # The compiler can only warn and ignore the option if not recognized
12723      # So say no if there are warnings
12724      if test -s conftest.err; then
12725        # Append any errors to the config.log.
12726        cat conftest.err 1>&5
12727      else
12728        lt_prog_compiler_static_works=yes
12729      fi
12730    fi
12731    $rm conftest*
12732    LDFLAGS="$save_LDFLAGS"
12733
12734 fi
12735 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12736 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12737
12738 if test x"$lt_prog_compiler_static_works" = xyes; then
12739     :
12740 else
12741     lt_prog_compiler_static=
12742 fi
12743
12744
12745
12746
12747 lt_prog_compiler_no_builtin_flag=
12748
12749 if test "$GCC" = yes; then
12750   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12751
12752
12753 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12754 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12755 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12756   echo $ECHO_N "(cached) $ECHO_C" >&6
12757 else
12758   lt_cv_prog_compiler_rtti_exceptions=no
12759   ac_outfile=conftest.$ac_objext
12760    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12761    lt_compiler_flag="-fno-rtti -fno-exceptions"
12762    # Insert the option either (1) after the last *FLAGS variable, or
12763    # (2) before a word containing "conftest.", or (3) at the end.
12764    # Note that $ac_compile itself does not contain backslashes and begins
12765    # with a dollar sign (not a hyphen), so the echo should work correctly.
12766    # The option is referenced via a variable to avoid confusing sed.
12767    lt_compile=`echo "$ac_compile" | $SED \
12768    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12769    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12770    -e 's:$: $lt_compiler_flag:'`
12771    (eval echo "\"\$as_me:12771: $lt_compile\"" >&5)
12772    (eval "$lt_compile" 2>conftest.err)
12773    ac_status=$?
12774    cat conftest.err >&5
12775    echo "$as_me:12775: \$? = $ac_status" >&5
12776    if (exit $ac_status) && test -s "$ac_outfile"; then
12777      # The compiler can only warn and ignore the option if not recognized
12778      # So say no if there are warnings
12779      if test ! -s conftest.err; then
12780        lt_cv_prog_compiler_rtti_exceptions=yes
12781      fi
12782    fi
12783    $rm conftest*
12784
12785 fi
12786 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12787 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12788
12789 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12790     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12791 else
12792     :
12793 fi
12794
12795 fi
12796
12797 lt_prog_compiler_wl=
12798 lt_prog_compiler_pic=
12799 lt_prog_compiler_static=
12800
12801 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12802 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12803
12804   if test "$GCC" = yes; then
12805     lt_prog_compiler_wl='-Wl,'
12806     lt_prog_compiler_static='-static'
12807
12808     case $host_os in
12809       aix*)
12810       # All AIX code is PIC.
12811       if test "$host_cpu" = ia64; then
12812         # AIX 5 now supports IA64 processor
12813         lt_prog_compiler_static='-Bstatic'
12814       fi
12815       ;;
12816
12817     amigaos*)
12818       # FIXME: we need at least 68020 code to build shared libraries, but
12819       # adding the `-m68020' flag to GCC prevents building anything better,
12820       # like `-m68040'.
12821       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12822       ;;
12823
12824     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12825       # PIC is the default for these OSes.
12826       ;;
12827
12828     mingw* | pw32* | os2*)
12829       # This hack is so that the source file can tell whether it is being
12830       # built for inclusion in a dll (and should export symbols for example).
12831       lt_prog_compiler_pic='-DDLL_EXPORT'
12832       ;;
12833
12834     darwin* | rhapsody*)
12835       # PIC is the default on this platform
12836       # Common symbols not allowed in MH_DYLIB files
12837       lt_prog_compiler_pic='-fno-common'
12838       ;;
12839
12840     msdosdjgpp*)
12841       # Just because we use GCC doesn't mean we suddenly get shared libraries
12842       # on systems that don't support them.
12843       lt_prog_compiler_can_build_shared=no
12844       enable_shared=no
12845       ;;
12846
12847     sysv4*MP*)
12848       if test -d /usr/nec; then
12849         lt_prog_compiler_pic=-Kconform_pic
12850       fi
12851       ;;
12852
12853     hpux*)
12854       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12855       # not for PA HP-UX.
12856       case "$host_cpu" in
12857       hppa*64*|ia64*)
12858         # +Z the default
12859         ;;
12860       *)
12861         lt_prog_compiler_pic='-fPIC'
12862         ;;
12863       esac
12864       ;;
12865
12866     *)
12867       lt_prog_compiler_pic='-fPIC'
12868       ;;
12869     esac
12870   else
12871     # PORTME Check for flag to pass linker flags through the system compiler.
12872     case $host_os in
12873     aix*)
12874       lt_prog_compiler_wl='-Wl,'
12875       if test "$host_cpu" = ia64; then
12876         # AIX 5 now supports IA64 processor
12877         lt_prog_compiler_static='-Bstatic'
12878       else
12879         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12880       fi
12881       ;;
12882
12883     mingw* | pw32* | os2*)
12884       # This hack is so that the source file can tell whether it is being
12885       # built for inclusion in a dll (and should export symbols for example).
12886       lt_prog_compiler_pic='-DDLL_EXPORT'
12887       ;;
12888
12889     hpux9* | hpux10* | hpux11*)
12890       lt_prog_compiler_wl='-Wl,'
12891       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12892       # not for PA HP-UX.
12893       case "$host_cpu" in
12894       hppa*64*|ia64*)
12895         # +Z the default
12896         ;;
12897       *)
12898         lt_prog_compiler_pic='+Z'
12899         ;;
12900       esac
12901       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12902       lt_prog_compiler_static='${wl}-a ${wl}archive'
12903       ;;
12904
12905     irix5* | irix6* | nonstopux*)
12906       lt_prog_compiler_wl='-Wl,'
12907       # PIC (with -KPIC) is the default.
12908       lt_prog_compiler_static='-non_shared'
12909       ;;
12910
12911     newsos6)
12912       lt_prog_compiler_pic='-KPIC'
12913       lt_prog_compiler_static='-Bstatic'
12914       ;;
12915
12916     linux*)
12917       case $CC in
12918       icc* | ecc*)
12919         lt_prog_compiler_wl='-Wl,'
12920         lt_prog_compiler_pic='-KPIC'
12921         lt_prog_compiler_static='-static'
12922         ;;
12923       ccc*)
12924         lt_prog_compiler_wl='-Wl,'
12925         # All Alpha code is PIC.
12926         lt_prog_compiler_static='-non_shared'
12927         ;;
12928       esac
12929       ;;
12930
12931     osf3* | osf4* | osf5*)
12932       lt_prog_compiler_wl='-Wl,'
12933       # All OSF/1 code is PIC.
12934       lt_prog_compiler_static='-non_shared'
12935       ;;
12936
12937     sco3.2v5*)
12938       lt_prog_compiler_pic='-Kpic'
12939       lt_prog_compiler_static='-dn'
12940       ;;
12941
12942     solaris*)
12943       lt_prog_compiler_wl='-Wl,'
12944       lt_prog_compiler_pic='-KPIC'
12945       lt_prog_compiler_static='-Bstatic'
12946       ;;
12947
12948     sunos4*)
12949       lt_prog_compiler_wl='-Qoption ld '
12950       lt_prog_compiler_pic='-PIC'
12951       lt_prog_compiler_static='-Bstatic'
12952       ;;
12953
12954     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12955       lt_prog_compiler_wl='-Wl,'
12956       lt_prog_compiler_pic='-KPIC'
12957       lt_prog_compiler_static='-Bstatic'
12958       ;;
12959
12960     sysv4*MP*)
12961       if test -d /usr/nec ;then
12962         lt_prog_compiler_pic='-Kconform_pic'
12963         lt_prog_compiler_static='-Bstatic'
12964       fi
12965       ;;
12966
12967     uts4*)
12968       lt_prog_compiler_pic='-pic'
12969       lt_prog_compiler_static='-Bstatic'
12970       ;;
12971
12972     *)
12973       lt_prog_compiler_can_build_shared=no
12974       ;;
12975     esac
12976   fi
12977
12978 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12979 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12980
12981 #
12982 # Check to make sure the PIC flag actually works.
12983 #
12984 if test -n "$lt_prog_compiler_pic"; then
12985
12986 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12987 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12988 if test "${lt_prog_compiler_pic_works+set}" = set; then
12989   echo $ECHO_N "(cached) $ECHO_C" >&6
12990 else
12991   lt_prog_compiler_pic_works=no
12992   ac_outfile=conftest.$ac_objext
12993    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12994    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12995    # Insert the option either (1) after the last *FLAGS variable, or
12996    # (2) before a word containing "conftest.", or (3) at the end.
12997    # Note that $ac_compile itself does not contain backslashes and begins
12998    # with a dollar sign (not a hyphen), so the echo should work correctly.
12999    # The option is referenced via a variable to avoid confusing sed.
13000    lt_compile=`echo "$ac_compile" | $SED \
13001    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13003    -e 's:$: $lt_compiler_flag:'`
13004    (eval echo "\"\$as_me:13004: $lt_compile\"" >&5)
13005    (eval "$lt_compile" 2>conftest.err)
13006    ac_status=$?
13007    cat conftest.err >&5
13008    echo "$as_me:13008: \$? = $ac_status" >&5
13009    if (exit $ac_status) && test -s "$ac_outfile"; then
13010      # The compiler can only warn and ignore the option if not recognized
13011      # So say no if there are warnings
13012      if test ! -s conftest.err; then
13013        lt_prog_compiler_pic_works=yes
13014      fi
13015    fi
13016    $rm conftest*
13017
13018 fi
13019 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13020 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
13021
13022 if test x"$lt_prog_compiler_pic_works" = xyes; then
13023     case $lt_prog_compiler_pic in
13024      "" | " "*) ;;
13025      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13026      esac
13027 else
13028     lt_prog_compiler_pic=
13029      lt_prog_compiler_can_build_shared=no
13030 fi
13031
13032 fi
13033 case "$host_os" in
13034   # For platforms which do not support PIC, -DPIC is meaningless:
13035   *djgpp*)
13036     lt_prog_compiler_pic=
13037     ;;
13038   *)
13039     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13040     ;;
13041 esac
13042
13043 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13044 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13045 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13046   echo $ECHO_N "(cached) $ECHO_C" >&6
13047 else
13048   lt_cv_prog_compiler_c_o=no
13049    $rm -r conftest 2>/dev/null
13050    mkdir conftest
13051    cd conftest
13052    mkdir out
13053    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13054
13055    lt_compiler_flag="-o out/conftest2.$ac_objext"
13056    # Insert the option either (1) after the last *FLAGS variable, or
13057    # (2) before a word containing "conftest.", or (3) at the end.
13058    # Note that $ac_compile itself does not contain backslashes and begins
13059    # with a dollar sign (not a hyphen), so the echo should work correctly.
13060    lt_compile=`echo "$ac_compile" | $SED \
13061    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13062    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13063    -e 's:$: $lt_compiler_flag:'`
13064    (eval echo "\"\$as_me:13064: $lt_compile\"" >&5)
13065    (eval "$lt_compile" 2>out/conftest.err)
13066    ac_status=$?
13067    cat out/conftest.err >&5
13068    echo "$as_me:13068: \$? = $ac_status" >&5
13069    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13070    then
13071      # The compiler can only warn and ignore the option if not recognized
13072      # So say no if there are warnings
13073      if test ! -s out/conftest.err; then
13074        lt_cv_prog_compiler_c_o=yes
13075      fi
13076    fi
13077    chmod u+w .
13078    $rm conftest*
13079    # SGI C++ compiler will create directory out/ii_files/ for
13080    # template instantiation
13081    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13082    $rm out/* && rmdir out
13083    cd ..
13084    rmdir conftest
13085    $rm conftest*
13086
13087 fi
13088 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13089 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
13090
13091
13092 hard_links="nottested"
13093 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13094   # do not overwrite the value of need_locks provided by the user
13095   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13096 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13097   hard_links=yes
13098   $rm conftest*
13099   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13100   touch conftest.a
13101   ln conftest.a conftest.b 2>&5 || hard_links=no
13102   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13103   echo "$as_me:$LINENO: result: $hard_links" >&5
13104 echo "${ECHO_T}$hard_links" >&6
13105   if test "$hard_links" = no; then
13106     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13107 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13108     need_locks=warn
13109   fi
13110 else
13111   need_locks=no
13112 fi
13113
13114 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13115 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13116
13117   runpath_var=
13118   allow_undefined_flag=
13119   enable_shared_with_static_runtimes=no
13120   archive_cmds=
13121   archive_expsym_cmds=
13122   old_archive_From_new_cmds=
13123   old_archive_from_expsyms_cmds=
13124   export_dynamic_flag_spec=
13125   whole_archive_flag_spec=
13126   thread_safe_flag_spec=
13127   hardcode_libdir_flag_spec=
13128   hardcode_libdir_flag_spec_ld=
13129   hardcode_libdir_separator=
13130   hardcode_direct=no
13131   hardcode_minus_L=no
13132   hardcode_shlibpath_var=unsupported
13133   link_all_deplibs=unknown
13134   hardcode_automatic=no
13135   module_cmds=
13136   module_expsym_cmds=
13137   always_export_symbols=no
13138   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13139   # include_expsyms should be a list of space-separated symbols to be *always*
13140   # included in the symbol list
13141   include_expsyms=
13142   # exclude_expsyms can be an extended regexp of symbols to exclude
13143   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13144   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13145   # as well as any symbol that contains `d'.
13146   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13147   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13148   # platforms (ab)use it in PIC code, but their linkers get confused if
13149   # the symbol is explicitly referenced.  Since portable code cannot
13150   # rely on this symbol name, it's probably fine to never include it in
13151   # preloaded symbol tables.
13152   extract_expsyms_cmds=
13153
13154   case $host_os in
13155   cygwin* | mingw* | pw32*)
13156     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13157     # When not using gcc, we currently assume that we are using
13158     # Microsoft Visual C++.
13159     if test "$GCC" != yes; then
13160       with_gnu_ld=no
13161     fi
13162     ;;
13163   openbsd*)
13164     with_gnu_ld=no
13165     ;;
13166   esac
13167
13168   ld_shlibs=yes
13169   if test "$with_gnu_ld" = yes; then
13170     # If archive_cmds runs LD, not CC, wlarc should be empty
13171     wlarc='${wl}'
13172
13173     # See if GNU ld supports shared libraries.
13174     case $host_os in
13175     aix3* | aix4* | aix5*)
13176       # On AIX/PPC, the GNU linker is very broken
13177       if test "$host_cpu" != ia64; then
13178         ld_shlibs=no
13179         cat <<EOF 1>&2
13180
13181 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13182 *** to be unable to reliably create shared libraries on AIX.
13183 *** Therefore, libtool is disabling shared libraries support.  If you
13184 *** really care for shared libraries, you may want to modify your PATH
13185 *** so that a non-GNU linker is found, and then restart.
13186
13187 EOF
13188       fi
13189       ;;
13190
13191     amigaos*)
13192       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)'
13193       hardcode_libdir_flag_spec='-L$libdir'
13194       hardcode_minus_L=yes
13195
13196       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13197       # that the semantics of dynamic libraries on AmigaOS, at least up
13198       # to version 4, is to share data among multiple programs linked
13199       # with the same dynamic library.  Since this doesn't match the
13200       # behavior of shared libraries on other platforms, we can't use
13201       # them.
13202       ld_shlibs=no
13203       ;;
13204
13205     beos*)
13206       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13207         allow_undefined_flag=unsupported
13208         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13209         # support --undefined.  This deserves some investigation.  FIXME
13210         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13211       else
13212         ld_shlibs=no
13213       fi
13214       ;;
13215
13216     cygwin* | mingw* | pw32*)
13217       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13218       # as there is no search path for DLLs.
13219       hardcode_libdir_flag_spec='-L$libdir'
13220       allow_undefined_flag=unsupported
13221       always_export_symbols=no
13222       enable_shared_with_static_runtimes=yes
13223       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13224
13225       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13226         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13227         # If the export-symbols file already is a .def file (1st line
13228         # is EXPORTS), use it as is; otherwise, prepend...
13229         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13230           cp $export_symbols $output_objdir/$soname.def;
13231         else
13232           echo EXPORTS > $output_objdir/$soname.def;
13233           cat $export_symbols >> $output_objdir/$soname.def;
13234         fi~
13235         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13236       else
13237         ld_shlibs=no
13238       fi
13239       ;;
13240
13241     netbsd*)
13242       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13243         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13244         wlarc=
13245       else
13246         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13247         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13248       fi
13249       ;;
13250
13251     solaris* | sysv5*)
13252       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13253         ld_shlibs=no
13254         cat <<EOF 1>&2
13255
13256 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13257 *** create shared libraries on Solaris systems.  Therefore, libtool
13258 *** is disabling shared libraries support.  We urge you to upgrade GNU
13259 *** binutils to release 2.9.1 or newer.  Another option is to modify
13260 *** your PATH or compiler configuration so that the native linker is
13261 *** used, and then restart.
13262
13263 EOF
13264       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13265         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13266         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13267       else
13268         ld_shlibs=no
13269       fi
13270       ;;
13271
13272     sunos4*)
13273       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13274       wlarc=
13275       hardcode_direct=yes
13276       hardcode_shlibpath_var=no
13277       ;;
13278
13279   linux*)
13280     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13281         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13282         archive_cmds="$tmp_archive_cmds"
13283       supports_anon_versioning=no
13284       case `$LD -v 2>/dev/null` in
13285         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13286         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13287         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13288         *\ 2.11.*) ;; # other 2.11 versions
13289         *) supports_anon_versioning=yes ;;
13290       esac
13291       if test $supports_anon_versioning = yes; then
13292         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13294 $echo "local: *; };" >> $output_objdir/$libname.ver~
13295         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13296       else
13297         archive_expsym_cmds="$tmp_archive_cmds"
13298       fi
13299     else
13300       ld_shlibs=no
13301     fi
13302     ;;
13303
13304     *)
13305       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13306         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13307         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13308       else
13309         ld_shlibs=no
13310       fi
13311       ;;
13312     esac
13313
13314     if test "$ld_shlibs" = yes; then
13315       runpath_var=LD_RUN_PATH
13316       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13317       export_dynamic_flag_spec='${wl}--export-dynamic'
13318       # ancient GNU ld didn't support --whole-archive et. al.
13319       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13320         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13321       else
13322         whole_archive_flag_spec=
13323       fi
13324     fi
13325   else
13326     # PORTME fill in a description of your system's linker (not GNU ld)
13327     case $host_os in
13328     aix3*)
13329       allow_undefined_flag=unsupported
13330       always_export_symbols=yes
13331       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'
13332       # Note: this linker hardcodes the directories in LIBPATH if there
13333       # are no directories specified by -L.
13334       hardcode_minus_L=yes
13335       if test "$GCC" = yes && test -z "$link_static_flag"; then
13336         # Neither direct hardcoding nor static linking is supported with a
13337         # broken collect2.
13338         hardcode_direct=unsupported
13339       fi
13340       ;;
13341
13342     aix4* | aix5*)
13343       if test "$host_cpu" = ia64; then
13344         # On IA64, the linker does run time linking by default, so we don't
13345         # have to do anything special.
13346         aix_use_runtimelinking=no
13347         exp_sym_flag='-Bexport'
13348         no_entry_flag=""
13349       else
13350         # If we're using GNU nm, then we don't want the "-C" option.
13351         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13352         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13353           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'
13354         else
13355           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'
13356         fi
13357         aix_use_runtimelinking=no
13358
13359         # Test if we are trying to use run time linking or normal
13360         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13361         # need to do runtime linking.
13362         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13363           for ld_flag in $LDFLAGS; do
13364           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13365             aix_use_runtimelinking=yes
13366             break
13367           fi
13368           done
13369         esac
13370
13371         exp_sym_flag='-bexport'
13372         no_entry_flag='-bnoentry'
13373       fi
13374
13375       # When large executables or shared objects are built, AIX ld can
13376       # have problems creating the table of contents.  If linking a library
13377       # or program results in "error TOC overflow" add -mminimal-toc to
13378       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13379       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13380
13381       archive_cmds=''
13382       hardcode_direct=yes
13383       hardcode_libdir_separator=':'
13384       link_all_deplibs=yes
13385
13386       if test "$GCC" = yes; then
13387         case $host_os in aix4.012|aix4.012.*)
13388         # We only want to do this on AIX 4.2 and lower, the check
13389         # below for broken collect2 doesn't work under 4.3+
13390           collect2name=`${CC} -print-prog-name=collect2`
13391           if test -f "$collect2name" && \
13392            strings "$collect2name" | grep resolve_lib_name >/dev/null
13393           then
13394           # We have reworked collect2
13395           hardcode_direct=yes
13396           else
13397           # We have old collect2
13398           hardcode_direct=unsupported
13399           # It fails to find uninstalled libraries when the uninstalled
13400           # path is not listed in the libpath.  Setting hardcode_minus_L
13401           # to unsupported forces relinking
13402           hardcode_minus_L=yes
13403           hardcode_libdir_flag_spec='-L$libdir'
13404           hardcode_libdir_separator=
13405           fi
13406         esac
13407         shared_flag='-shared'
13408       else
13409         # not using gcc
13410         if test "$host_cpu" = ia64; then
13411         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13412         # chokes on -Wl,-G. The following line is correct:
13413           shared_flag='-G'
13414         else
13415         if test "$aix_use_runtimelinking" = yes; then
13416             shared_flag='${wl}-G'
13417           else
13418             shared_flag='${wl}-bM:SRE'
13419         fi
13420         fi
13421       fi
13422
13423       # It seems that -bexpall does not export symbols beginning with
13424       # underscore (_), so it is better to generate a list of symbols to export.
13425       always_export_symbols=yes
13426       if test "$aix_use_runtimelinking" = yes; then
13427         # Warning - without using the other runtime loading flags (-brtl),
13428         # -berok will link without error, but may produce a broken library.
13429         allow_undefined_flag='-berok'
13430        # Determine the default libpath from the value encoded in an empty executable.
13431        cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h.  */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h.  */
13437
13438 int
13439 main ()
13440 {
13441
13442   ;
13443   return 0;
13444 }
13445 _ACEOF
13446 rm -f conftest.$ac_objext conftest$ac_exeext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448   (eval $ac_link) 2>conftest.er1
13449   ac_status=$?
13450   grep -v '^ *+' conftest.er1 >conftest.err
13451   rm -f conftest.er1
13452   cat conftest.err >&5
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); } &&
13455          { ac_try='test -z "$ac_c_werror_flag"
13456                          || test ! -s conftest.err'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; } &&
13462          { ac_try='test -s conftest$ac_exeext'
13463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464   (eval $ac_try) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); }; }; then
13468
13469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13470 }'`
13471 # Check for a 64-bit object if we didn't find anything.
13472 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; }
13473 }'`; fi
13474 else
13475   echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13477
13478 fi
13479 rm -f conftest.err conftest.$ac_objext \
13480       conftest$ac_exeext conftest.$ac_ext
13481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13482
13483        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13484         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13485        else
13486         if test "$host_cpu" = ia64; then
13487           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13488           allow_undefined_flag="-z nodefs"
13489           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13490         else
13491          # Determine the default libpath from the value encoded in an empty executable.
13492          cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498
13499 int
13500 main ()
13501 {
13502
13503   ;
13504   return 0;
13505 }
13506 _ACEOF
13507 rm -f conftest.$ac_objext conftest$ac_exeext
13508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13509   (eval $ac_link) 2>conftest.er1
13510   ac_status=$?
13511   grep -v '^ *+' conftest.er1 >conftest.err
13512   rm -f conftest.er1
13513   cat conftest.err >&5
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); } &&
13516          { ac_try='test -z "$ac_c_werror_flag"
13517                          || test ! -s conftest.err'
13518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519   (eval $ac_try) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; } &&
13523          { ac_try='test -s conftest$ac_exeext'
13524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525   (eval $ac_try) 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); }; }; then
13529
13530 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13531 }'`
13532 # Check for a 64-bit object if we didn't find anything.
13533 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; }
13534 }'`; fi
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539 fi
13540 rm -f conftest.err conftest.$ac_objext \
13541       conftest$ac_exeext conftest.$ac_ext
13542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13543
13544          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13545           # Warning - without using the other run time loading flags,
13546           # -berok will link without error, but may produce a broken library.
13547           no_undefined_flag=' ${wl}-bernotok'
13548           allow_undefined_flag=' ${wl}-berok'
13549           # -bexpall does not export symbols beginning with underscore (_)
13550           always_export_symbols=yes
13551           # Exported symbols can be pulled into shared objects from archives
13552           whole_archive_flag_spec=' '
13553           archive_cmds_need_lc=yes
13554           # This is similar to how AIX traditionally builds it's shared libraries.
13555           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13556         fi
13557       fi
13558       ;;
13559
13560     amigaos*)
13561       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)'
13562       hardcode_libdir_flag_spec='-L$libdir'
13563       hardcode_minus_L=yes
13564       # see comment about different semantics on the GNU ld section
13565       ld_shlibs=no
13566       ;;
13567
13568     bsdi4*)
13569       export_dynamic_flag_spec=-rdynamic
13570       ;;
13571
13572     cygwin* | mingw* | pw32*)
13573       # When not using gcc, we currently assume that we are using
13574       # Microsoft Visual C++.
13575       # hardcode_libdir_flag_spec is actually meaningless, as there is
13576       # no search path for DLLs.
13577       hardcode_libdir_flag_spec=' '
13578       allow_undefined_flag=unsupported
13579       # Tell ltmain to make .lib files, not .a files.
13580       libext=lib
13581       # Tell ltmain to make .dll files, not .so files.
13582       shrext_cmds=".dll"
13583       # FIXME: Setting linknames here is a bad hack.
13584       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13585       # The linker will automatically build a .lib file if we build a DLL.
13586       old_archive_From_new_cmds='true'
13587       # FIXME: Should let the user specify the lib program.
13588       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13589       fix_srcfile_path='`cygpath -w "$srcfile"`'
13590       enable_shared_with_static_runtimes=yes
13591       ;;
13592
13593     darwin* | rhapsody*)
13594     if test "$GXX" = yes ; then
13595       archive_cmds_need_lc=no
13596       case "$host_os" in
13597       rhapsody* | darwin1.[012])
13598         allow_undefined_flag='-undefined suppress'
13599         ;;
13600       *) # Darwin 1.3 on
13601       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13602         allow_undefined_flag='-flat_namespace -undefined suppress'
13603       else
13604         case ${MACOSX_DEPLOYMENT_TARGET} in
13605           10.[012])
13606             allow_undefined_flag='-flat_namespace -undefined suppress'
13607             ;;
13608           10.*)
13609             allow_undefined_flag='-undefined dynamic_lookup'
13610             ;;
13611         esac
13612       fi
13613         ;;
13614       esac
13615         lt_int_apple_cc_single_mod=no
13616         output_verbose_link_cmd='echo'
13617         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13618           lt_int_apple_cc_single_mod=yes
13619         fi
13620         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13621           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13622         else
13623         archive_cmds='$CC -r ${wl}-bind_at_load -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'
13624       fi
13625       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13626       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13627         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13628           archive_expsym_cmds='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}'
13629         else
13630           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13631         fi
13632           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}'
13633       hardcode_direct=no
13634       hardcode_automatic=yes
13635       hardcode_shlibpath_var=unsupported
13636       whole_archive_flag_spec='-all_load $convenience'
13637       link_all_deplibs=yes
13638     else
13639       ld_shlibs=no
13640     fi
13641       ;;
13642
13643     dgux*)
13644       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13645       hardcode_libdir_flag_spec='-L$libdir'
13646       hardcode_shlibpath_var=no
13647       ;;
13648
13649     freebsd1*)
13650       ld_shlibs=no
13651       ;;
13652
13653     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13654     # support.  Future versions do this automatically, but an explicit c++rt0.o
13655     # does not break anything, and helps significantly (at the cost of a little
13656     # extra space).
13657     freebsd2.2*)
13658       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13659       hardcode_libdir_flag_spec='-R$libdir'
13660       hardcode_direct=yes
13661       hardcode_shlibpath_var=no
13662       ;;
13663
13664     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13665     freebsd2*)
13666       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13667       hardcode_direct=yes
13668       hardcode_minus_L=yes
13669       hardcode_shlibpath_var=no
13670       ;;
13671
13672     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13673     freebsd* | kfreebsd*-gnu)
13674       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13675       hardcode_libdir_flag_spec='-R$libdir'
13676       hardcode_direct=yes
13677       hardcode_shlibpath_var=no
13678       ;;
13679
13680     hpux9*)
13681       if test "$GCC" = yes; then
13682         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'
13683       else
13684         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'
13685       fi
13686       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13687       hardcode_libdir_separator=:
13688       hardcode_direct=yes
13689
13690       # hardcode_minus_L: Not really in the search PATH,
13691       # but as the default location of the library.
13692       hardcode_minus_L=yes
13693       export_dynamic_flag_spec='${wl}-E'
13694       ;;
13695
13696     hpux10* | hpux11*)
13697       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13698         case "$host_cpu" in
13699         hppa*64*|ia64*)
13700           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13701           ;;
13702         *)
13703           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13704           ;;
13705         esac
13706       else
13707         case "$host_cpu" in
13708         hppa*64*|ia64*)
13709           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13710           ;;
13711         *)
13712           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13713           ;;
13714         esac
13715       fi
13716       if test "$with_gnu_ld" = no; then
13717         case "$host_cpu" in
13718         hppa*64*)
13719           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13720           hardcode_libdir_flag_spec_ld='+b $libdir'
13721           hardcode_libdir_separator=:
13722           hardcode_direct=no
13723           hardcode_shlibpath_var=no
13724           ;;
13725         ia64*)
13726           hardcode_libdir_flag_spec='-L$libdir'
13727           hardcode_direct=no
13728           hardcode_shlibpath_var=no
13729
13730           # hardcode_minus_L: Not really in the search PATH,
13731           # but as the default location of the library.
13732           hardcode_minus_L=yes
13733           ;;
13734         *)
13735           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13736           hardcode_libdir_separator=:
13737           hardcode_direct=yes
13738           export_dynamic_flag_spec='${wl}-E'
13739
13740           # hardcode_minus_L: Not really in the search PATH,
13741           # but as the default location of the library.
13742           hardcode_minus_L=yes
13743           ;;
13744         esac
13745       fi
13746       ;;
13747
13748     irix5* | irix6* | nonstopux*)
13749       if test "$GCC" = yes; then
13750         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'
13751       else
13752         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'
13753         hardcode_libdir_flag_spec_ld='-rpath $libdir'
13754       fi
13755       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13756       hardcode_libdir_separator=:
13757       link_all_deplibs=yes
13758       ;;
13759
13760     netbsd*)
13761       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13762         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13763       else
13764         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13765       fi
13766       hardcode_libdir_flag_spec='-R$libdir'
13767       hardcode_direct=yes
13768       hardcode_shlibpath_var=no
13769       ;;
13770
13771     newsos6)
13772       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13773       hardcode_direct=yes
13774       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13775       hardcode_libdir_separator=:
13776       hardcode_shlibpath_var=no
13777       ;;
13778
13779     openbsd*)
13780       hardcode_direct=yes
13781       hardcode_shlibpath_var=no
13782       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13783         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13784         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13785         export_dynamic_flag_spec='${wl}-E'
13786       else
13787        case $host_os in
13788          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13789            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13790            hardcode_libdir_flag_spec='-R$libdir'
13791            ;;
13792          *)
13793            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13794            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13795            ;;
13796        esac
13797       fi
13798       ;;
13799
13800     os2*)
13801       hardcode_libdir_flag_spec='-L$libdir'
13802       hardcode_minus_L=yes
13803       allow_undefined_flag=unsupported
13804       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'
13805       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13806       ;;
13807
13808     osf3*)
13809       if test "$GCC" = yes; then
13810         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13811         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'
13812       else
13813         allow_undefined_flag=' -expect_unresolved \*'
13814         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'
13815       fi
13816       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13817       hardcode_libdir_separator=:
13818       ;;
13819
13820     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13821       if test "$GCC" = yes; then
13822         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13823         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'
13824         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13825       else
13826         allow_undefined_flag=' -expect_unresolved \*'
13827         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'
13828         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13829         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13830
13831         # Both c and cxx compiler support -rpath directly
13832         hardcode_libdir_flag_spec='-rpath $libdir'
13833       fi
13834       hardcode_libdir_separator=:
13835       ;;
13836
13837     sco3.2v5*)
13838       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13839       hardcode_shlibpath_var=no
13840       export_dynamic_flag_spec='${wl}-Bexport'
13841       runpath_var=LD_RUN_PATH
13842       hardcode_runpath_var=yes
13843       ;;
13844
13845     solaris*)
13846       no_undefined_flag=' -z text'
13847       if test "$GCC" = yes; then
13848         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13849         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13850           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13851       else
13852         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13853         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13854         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13855       fi
13856       hardcode_libdir_flag_spec='-R$libdir'
13857       hardcode_shlibpath_var=no
13858       case $host_os in
13859       solaris2.[0-5] | solaris2.[0-5].*) ;;
13860       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13861         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13862       esac
13863       link_all_deplibs=yes
13864       ;;
13865
13866     sunos4*)
13867       if test "x$host_vendor" = xsequent; then
13868         # Use $CC to link under sequent, because it throws in some extra .o
13869         # files that make .init and .fini sections work.
13870         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13871       else
13872         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13873       fi
13874       hardcode_libdir_flag_spec='-L$libdir'
13875       hardcode_direct=yes
13876       hardcode_minus_L=yes
13877       hardcode_shlibpath_var=no
13878       ;;
13879
13880     sysv4)
13881       case $host_vendor in
13882         sni)
13883           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13884           hardcode_direct=yes # is this really true???
13885         ;;
13886         siemens)
13887           ## LD is ld it makes a PLAMLIB
13888           ## CC just makes a GrossModule.
13889           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13890           reload_cmds='$CC -r -o $output$reload_objs'
13891           hardcode_direct=no
13892         ;;
13893         motorola)
13894           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13895           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13896         ;;
13897       esac
13898       runpath_var='LD_RUN_PATH'
13899       hardcode_shlibpath_var=no
13900       ;;
13901
13902     sysv4.3*)
13903       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13904       hardcode_shlibpath_var=no
13905       export_dynamic_flag_spec='-Bexport'
13906       ;;
13907
13908     sysv4*MP*)
13909       if test -d /usr/nec; then
13910         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13911         hardcode_shlibpath_var=no
13912         runpath_var=LD_RUN_PATH
13913         hardcode_runpath_var=yes
13914         ld_shlibs=yes
13915       fi
13916       ;;
13917
13918     sysv4.2uw2*)
13919       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13920       hardcode_direct=yes
13921       hardcode_minus_L=no
13922       hardcode_shlibpath_var=no
13923       hardcode_runpath_var=yes
13924       runpath_var=LD_RUN_PATH
13925       ;;
13926
13927    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13928       no_undefined_flag='${wl}-z ${wl}text'
13929       if test "$GCC" = yes; then
13930         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13931       else
13932         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13933       fi
13934       runpath_var='LD_RUN_PATH'
13935       hardcode_shlibpath_var=no
13936       ;;
13937
13938     sysv5*)
13939       no_undefined_flag=' -z text'
13940       # $CC -shared without GNU ld will not create a library from C++
13941       # object files and a static libstdc++, better avoid it by now
13942       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13943       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13944                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13945       hardcode_libdir_flag_spec=
13946       hardcode_shlibpath_var=no
13947       runpath_var='LD_RUN_PATH'
13948       ;;
13949
13950     uts4*)
13951       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13952       hardcode_libdir_flag_spec='-L$libdir'
13953       hardcode_shlibpath_var=no
13954       ;;
13955
13956     *)
13957       ld_shlibs=no
13958       ;;
13959     esac
13960   fi
13961
13962 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13963 echo "${ECHO_T}$ld_shlibs" >&6
13964 test "$ld_shlibs" = no && can_build_shared=no
13965
13966 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13967 if test "$GCC" = yes; then
13968   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13969 fi
13970
13971 #
13972 # Do we need to explicitly link libc?
13973 #
13974 case "x$archive_cmds_need_lc" in
13975 x|xyes)
13976   # Assume -lc should be added
13977   archive_cmds_need_lc=yes
13978
13979   if test "$enable_shared" = yes && test "$GCC" = yes; then
13980     case $archive_cmds in
13981     *'~'*)
13982       # FIXME: we may have to deal with multi-command sequences.
13983       ;;
13984     '$CC '*)
13985       # Test whether the compiler implicitly links with -lc since on some
13986       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13987       # to ld, don't add -lc before -lgcc.
13988       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13989 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13990       $rm conftest*
13991       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13992
13993       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13994   (eval $ac_compile) 2>&5
13995   ac_status=$?
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); } 2>conftest.err; then
13998         soname=conftest
13999         lib=conftest
14000         libobjs=conftest.$ac_objext
14001         deplibs=
14002         wl=$lt_prog_compiler_wl
14003         compiler_flags=-v
14004         linker_flags=-v
14005         verstring=
14006         output_objdir=.
14007         libname=conftest
14008         lt_save_allow_undefined_flag=$allow_undefined_flag
14009         allow_undefined_flag=
14010         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14011   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14012   ac_status=$?
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); }
14015         then
14016           archive_cmds_need_lc=no
14017         else
14018           archive_cmds_need_lc=yes
14019         fi
14020         allow_undefined_flag=$lt_save_allow_undefined_flag
14021       else
14022         cat conftest.err 1>&5
14023       fi
14024       $rm conftest*
14025       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14026 echo "${ECHO_T}$archive_cmds_need_lc" >&6
14027       ;;
14028     esac
14029   fi
14030   ;;
14031 esac
14032
14033 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14034 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14035 library_names_spec=
14036 libname_spec='lib$name'
14037 soname_spec=
14038 shrext_cmds=".so"
14039 postinstall_cmds=
14040 postuninstall_cmds=
14041 finish_cmds=
14042 finish_eval=
14043 shlibpath_var=
14044 shlibpath_overrides_runpath=unknown
14045 version_type=none
14046 dynamic_linker="$host_os ld.so"
14047 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14048 if test "$GCC" = yes; then
14049   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14050   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14051     # if the path contains ";" then we assume it to be the separator
14052     # otherwise default to the standard path separator (i.e. ":") - it is
14053     # assumed that no part of a normal pathname contains ";" but that should
14054     # okay in the real world where ";" in dirpaths is itself problematic.
14055     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14056   else
14057     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14058   fi
14059 else
14060   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14061 fi
14062 need_lib_prefix=unknown
14063 hardcode_into_libs=no
14064
14065 # when you set need_version to no, make sure it does not cause -set_version
14066 # flags to be left without arguments
14067 need_version=unknown
14068
14069 case $host_os in
14070 aix3*)
14071   version_type=linux
14072   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14073   shlibpath_var=LIBPATH
14074
14075   # AIX 3 has no versioning support, so we append a major version to the name.
14076   soname_spec='${libname}${release}${shared_ext}$major'
14077   ;;
14078
14079 aix4* | aix5*)
14080   version_type=linux
14081   need_lib_prefix=no
14082   need_version=no
14083   hardcode_into_libs=yes
14084   if test "$host_cpu" = ia64; then
14085     # AIX 5 supports IA64
14086     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14087     shlibpath_var=LD_LIBRARY_PATH
14088   else
14089     # With GCC up to 2.95.x, collect2 would create an import file
14090     # for dependence libraries.  The import file would start with
14091     # the line `#! .'.  This would cause the generated library to
14092     # depend on `.', always an invalid library.  This was fixed in
14093     # development snapshots of GCC prior to 3.0.
14094     case $host_os in
14095       aix4 | aix4.[01] | aix4.[01].*)
14096       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14097            echo ' yes '
14098            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14099         :
14100       else
14101         can_build_shared=no
14102       fi
14103       ;;
14104     esac
14105     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14106     # soname into executable. Probably we can add versioning support to
14107     # collect2, so additional links can be useful in future.
14108     if test "$aix_use_runtimelinking" = yes; then
14109       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14110       # instead of lib<name>.a to let people know that these are not
14111       # typical AIX shared libraries.
14112       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113     else
14114       # We preserve .a as extension for shared libraries through AIX4.2
14115       # and later when we are not doing run time linking.
14116       library_names_spec='${libname}${release}.a $libname.a'
14117       soname_spec='${libname}${release}${shared_ext}$major'
14118     fi
14119     shlibpath_var=LIBPATH
14120   fi
14121   ;;
14122
14123 amigaos*)
14124   library_names_spec='$libname.ixlibrary $libname.a'
14125   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14126   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'
14127   ;;
14128
14129 beos*)
14130   library_names_spec='${libname}${shared_ext}'
14131   dynamic_linker="$host_os ld.so"
14132   shlibpath_var=LIBRARY_PATH
14133   ;;
14134
14135 bsdi4*)
14136   version_type=linux
14137   need_version=no
14138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139   soname_spec='${libname}${release}${shared_ext}$major'
14140   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14141   shlibpath_var=LD_LIBRARY_PATH
14142   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14143   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14144   # the default ld.so.conf also contains /usr/contrib/lib and
14145   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14146   # libtool to hard-code these into programs
14147   ;;
14148
14149 cygwin* | mingw* | pw32*)
14150   version_type=windows
14151   shrext_cmds=".dll"
14152   need_version=no
14153   need_lib_prefix=no
14154
14155   case $GCC,$host_os in
14156   yes,cygwin* | yes,mingw* | yes,pw32*)
14157     library_names_spec='$libname.dll.a'
14158     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14159     postinstall_cmds='base_file=`basename \${file}`~
14160       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14161       dldir=$destdir/`dirname \$dlpath`~
14162       test -d \$dldir || mkdir -p \$dldir~
14163       $install_prog $dir/$dlname \$dldir/$dlname'
14164     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14165       dlpath=$dir/\$dldll~
14166        $rm \$dlpath'
14167     shlibpath_overrides_runpath=yes
14168
14169     case $host_os in
14170     cygwin*)
14171       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14172       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14173       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14174       ;;
14175     mingw*)
14176       # MinGW DLLs use traditional 'lib' prefix
14177       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14178       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14179       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14180         # It is most probably a Windows format PATH printed by
14181         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14182         # path with ; separators, and with drive letters. We can handle the
14183         # drive letters (cygwin fileutils understands them), so leave them,
14184         # especially as we might pass files found there to a mingw objdump,
14185         # which wouldn't understand a cygwinified path. Ahh.
14186         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14187       else
14188         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14189       fi
14190       ;;
14191     pw32*)
14192       # pw32 DLLs use 'pw' prefix rather than 'lib'
14193       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14194       ;;
14195     esac
14196     ;;
14197
14198   *)
14199     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14200     ;;
14201   esac
14202   dynamic_linker='Win32 ld.exe'
14203   # FIXME: first we should search . and the directory the executable is in
14204   shlibpath_var=PATH
14205   ;;
14206
14207 darwin* | rhapsody*)
14208   dynamic_linker="$host_os dyld"
14209   version_type=darwin
14210   need_lib_prefix=no
14211   need_version=no
14212   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14213   soname_spec='${libname}${release}${major}$shared_ext'
14214   shlibpath_overrides_runpath=yes
14215   shlibpath_var=DYLD_LIBRARY_PATH
14216   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14217   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14218   if test "$GCC" = yes; then
14219     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"`
14220   else
14221     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14222   fi
14223   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14224   ;;
14225
14226 dgux*)
14227   version_type=linux
14228   need_lib_prefix=no
14229   need_version=no
14230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14231   soname_spec='${libname}${release}${shared_ext}$major'
14232   shlibpath_var=LD_LIBRARY_PATH
14233   ;;
14234
14235 freebsd1*)
14236   dynamic_linker=no
14237   ;;
14238
14239 kfreebsd*-gnu)
14240   version_type=linux
14241   need_lib_prefix=no
14242   need_version=no
14243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14244   soname_spec='${libname}${release}${shared_ext}$major'
14245   shlibpath_var=LD_LIBRARY_PATH
14246   shlibpath_overrides_runpath=no
14247   hardcode_into_libs=yes
14248   dynamic_linker='GNU ld.so'
14249   ;;
14250
14251 freebsd*)
14252   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14253   version_type=freebsd-$objformat
14254   case $version_type in
14255     freebsd-elf*)
14256       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14257       need_version=no
14258       need_lib_prefix=no
14259       ;;
14260     freebsd-*)
14261       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14262       need_version=yes
14263       ;;
14264   esac
14265   shlibpath_var=LD_LIBRARY_PATH
14266   case $host_os in
14267   freebsd2*)
14268     shlibpath_overrides_runpath=yes
14269     ;;
14270   freebsd3.01* | freebsdelf3.01*)
14271     shlibpath_overrides_runpath=yes
14272     hardcode_into_libs=yes
14273     ;;
14274   *) # from 3.2 on
14275     shlibpath_overrides_runpath=no
14276     hardcode_into_libs=yes
14277     ;;
14278   esac
14279   ;;
14280
14281 gnu*)
14282   version_type=linux
14283   need_lib_prefix=no
14284   need_version=no
14285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14286   soname_spec='${libname}${release}${shared_ext}$major'
14287   shlibpath_var=LD_LIBRARY_PATH
14288   hardcode_into_libs=yes
14289   ;;
14290
14291 hpux9* | hpux10* | hpux11*)
14292   # Give a soname corresponding to the major version so that dld.sl refuses to
14293   # link against other versions.
14294   version_type=sunos
14295   need_lib_prefix=no
14296   need_version=no
14297   case "$host_cpu" in
14298   ia64*)
14299     shrext_cmds='.so'
14300     hardcode_into_libs=yes
14301     dynamic_linker="$host_os dld.so"
14302     shlibpath_var=LD_LIBRARY_PATH
14303     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14305     soname_spec='${libname}${release}${shared_ext}$major'
14306     if test "X$HPUX_IA64_MODE" = X32; then
14307       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14308     else
14309       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14310     fi
14311     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14312     ;;
14313    hppa*64*)
14314      shrext_cmds='.sl'
14315      hardcode_into_libs=yes
14316      dynamic_linker="$host_os dld.sl"
14317      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14318      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14319      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14320      soname_spec='${libname}${release}${shared_ext}$major'
14321      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14322      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14323      ;;
14324    *)
14325     shrext_cmds='.sl'
14326     dynamic_linker="$host_os dld.sl"
14327     shlibpath_var=SHLIB_PATH
14328     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14330     soname_spec='${libname}${release}${shared_ext}$major'
14331     ;;
14332   esac
14333   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14334   postinstall_cmds='chmod 555 $lib'
14335   ;;
14336
14337 irix5* | irix6* | nonstopux*)
14338   case $host_os in
14339     nonstopux*) version_type=nonstopux ;;
14340     *)
14341         if test "$lt_cv_prog_gnu_ld" = yes; then
14342                 version_type=linux
14343         else
14344                 version_type=irix
14345         fi ;;
14346   esac
14347   need_lib_prefix=no
14348   need_version=no
14349   soname_spec='${libname}${release}${shared_ext}$major'
14350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14351   case $host_os in
14352   irix5* | nonstopux*)
14353     libsuff= shlibsuff=
14354     ;;
14355   *)
14356     case $LD in # libtool.m4 will add one of these switches to LD
14357     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14358       libsuff= shlibsuff= libmagic=32-bit;;
14359     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14360       libsuff=32 shlibsuff=N32 libmagic=N32;;
14361     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14362       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14363     *) libsuff= shlibsuff= libmagic=never-match;;
14364     esac
14365     ;;
14366   esac
14367   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14368   shlibpath_overrides_runpath=no
14369   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14370   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14371   hardcode_into_libs=yes
14372   ;;
14373
14374 # No shared lib support for Linux oldld, aout, or coff.
14375 linux*oldld* | linux*aout* | linux*coff*)
14376   dynamic_linker=no
14377   ;;
14378
14379 # This must be Linux ELF.
14380 linux*)
14381   version_type=linux
14382   need_lib_prefix=no
14383   need_version=no
14384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14385   soname_spec='${libname}${release}${shared_ext}$major'
14386   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14387   shlibpath_var=LD_LIBRARY_PATH
14388   shlibpath_overrides_runpath=no
14389   # This implies no fast_install, which is unacceptable.
14390   # Some rework will be needed to allow for fast_install
14391   # before this can be enabled.
14392   hardcode_into_libs=yes
14393
14394   # find out which ABI we are using
14395   libsuff=
14396   case "$host_cpu" in
14397   x86_64*|s390x*|powerpc64*)
14398     echo '#line 14398 "configure"' > conftest.$ac_ext
14399     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14400   (eval $ac_compile) 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); }; then
14404       case `/usr/bin/file conftest.$ac_objext` in
14405       *64-bit*)
14406         libsuff=64
14407         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14408         ;;
14409       esac
14410     fi
14411     rm -rf conftest*
14412     ;;
14413   esac
14414
14415   # Append ld.so.conf contents to the search path
14416   if test -f /etc/ld.so.conf; then
14417     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14418     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14419   fi
14420
14421   # We used to test for /lib/ld.so.1 and disable shared libraries on
14422   # powerpc, because MkLinux only supported shared libraries with the
14423   # GNU dynamic linker.  Since this was broken with cross compilers,
14424   # most powerpc-linux boxes support dynamic linking these days and
14425   # people can always --disable-shared, the test was removed, and we
14426   # assume the GNU/Linux dynamic linker is in use.
14427   dynamic_linker='GNU/Linux ld.so'
14428   ;;
14429
14430 knetbsd*-gnu)
14431   version_type=linux
14432   need_lib_prefix=no
14433   need_version=no
14434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14435   soname_spec='${libname}${release}${shared_ext}$major'
14436   shlibpath_var=LD_LIBRARY_PATH
14437   shlibpath_overrides_runpath=no
14438   hardcode_into_libs=yes
14439   dynamic_linker='GNU ld.so'
14440   ;;
14441
14442 netbsd*)
14443   version_type=sunos
14444   need_lib_prefix=no
14445   need_version=no
14446   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14448     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14449     dynamic_linker='NetBSD (a.out) ld.so'
14450   else
14451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14452     soname_spec='${libname}${release}${shared_ext}$major'
14453     dynamic_linker='NetBSD ld.elf_so'
14454   fi
14455   shlibpath_var=LD_LIBRARY_PATH
14456   shlibpath_overrides_runpath=yes
14457   hardcode_into_libs=yes
14458   ;;
14459
14460 newsos6)
14461   version_type=linux
14462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463   shlibpath_var=LD_LIBRARY_PATH
14464   shlibpath_overrides_runpath=yes
14465   ;;
14466
14467 nto-qnx*)
14468   version_type=linux
14469   need_lib_prefix=no
14470   need_version=no
14471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14472   soname_spec='${libname}${release}${shared_ext}$major'
14473   shlibpath_var=LD_LIBRARY_PATH
14474   shlibpath_overrides_runpath=yes
14475   ;;
14476
14477 openbsd*)
14478   version_type=sunos
14479   need_lib_prefix=no
14480   need_version=yes
14481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14482   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14483   shlibpath_var=LD_LIBRARY_PATH
14484   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14485     case $host_os in
14486       openbsd2.[89] | openbsd2.[89].*)
14487         shlibpath_overrides_runpath=no
14488         ;;
14489       *)
14490         shlibpath_overrides_runpath=yes
14491         ;;
14492       esac
14493   else
14494     shlibpath_overrides_runpath=yes
14495   fi
14496   ;;
14497
14498 os2*)
14499   libname_spec='$name'
14500   shrext_cmds=".dll"
14501   need_lib_prefix=no
14502   library_names_spec='$libname${shared_ext} $libname.a'
14503   dynamic_linker='OS/2 ld.exe'
14504   shlibpath_var=LIBPATH
14505   ;;
14506
14507 osf3* | osf4* | osf5*)
14508   version_type=osf
14509   need_lib_prefix=no
14510   need_version=no
14511   soname_spec='${libname}${release}${shared_ext}$major'
14512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513   shlibpath_var=LD_LIBRARY_PATH
14514   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14515   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14516   ;;
14517
14518 sco3.2v5*)
14519   version_type=osf
14520   soname_spec='${libname}${release}${shared_ext}$major'
14521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522   shlibpath_var=LD_LIBRARY_PATH
14523   ;;
14524
14525 solaris*)
14526   version_type=linux
14527   need_lib_prefix=no
14528   need_version=no
14529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14530   soname_spec='${libname}${release}${shared_ext}$major'
14531   shlibpath_var=LD_LIBRARY_PATH
14532   shlibpath_overrides_runpath=yes
14533   hardcode_into_libs=yes
14534   # ldd complains unless libraries are executable
14535   postinstall_cmds='chmod +x $lib'
14536   ;;
14537
14538 sunos4*)
14539   version_type=sunos
14540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14541   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14542   shlibpath_var=LD_LIBRARY_PATH
14543   shlibpath_overrides_runpath=yes
14544   if test "$with_gnu_ld" = yes; then
14545     need_lib_prefix=no
14546   fi
14547   need_version=yes
14548   ;;
14549
14550 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14551   version_type=linux
14552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553   soname_spec='${libname}${release}${shared_ext}$major'
14554   shlibpath_var=LD_LIBRARY_PATH
14555   case $host_vendor in
14556     sni)
14557       shlibpath_overrides_runpath=no
14558       need_lib_prefix=no
14559       export_dynamic_flag_spec='${wl}-Blargedynsym'
14560       runpath_var=LD_RUN_PATH
14561       ;;
14562     siemens)
14563       need_lib_prefix=no
14564       ;;
14565     motorola)
14566       need_lib_prefix=no
14567       need_version=no
14568       shlibpath_overrides_runpath=no
14569       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14570       ;;
14571   esac
14572   ;;
14573
14574 sysv4*MP*)
14575   if test -d /usr/nec ;then
14576     version_type=linux
14577     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14578     soname_spec='$libname${shared_ext}.$major'
14579     shlibpath_var=LD_LIBRARY_PATH
14580   fi
14581   ;;
14582
14583 uts4*)
14584   version_type=linux
14585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586   soname_spec='${libname}${release}${shared_ext}$major'
14587   shlibpath_var=LD_LIBRARY_PATH
14588   ;;
14589
14590 *)
14591   dynamic_linker=no
14592   ;;
14593 esac
14594 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14595 echo "${ECHO_T}$dynamic_linker" >&6
14596 test "$dynamic_linker" = no && can_build_shared=no
14597
14598 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14599 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14600 hardcode_action=
14601 if test -n "$hardcode_libdir_flag_spec" || \
14602    test -n "$runpath_var " || \
14603    test "X$hardcode_automatic"="Xyes" ; then
14604
14605   # We can hardcode non-existant directories.
14606   if test "$hardcode_direct" != no &&
14607      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14608      # have to relink, otherwise we might link with an installed library
14609      # when we should be linking with a yet-to-be-installed one
14610      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14611      test "$hardcode_minus_L" != no; then
14612     # Linking always hardcodes the temporary library directory.
14613     hardcode_action=relink
14614   else
14615     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14616     hardcode_action=immediate
14617   fi
14618 else
14619   # We cannot hardcode anything, or else we can only hardcode existing
14620   # directories.
14621   hardcode_action=unsupported
14622 fi
14623 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14624 echo "${ECHO_T}$hardcode_action" >&6
14625
14626 if test "$hardcode_action" = relink; then
14627   # Fast installation is not supported
14628   enable_fast_install=no
14629 elif test "$shlibpath_overrides_runpath" = yes ||
14630      test "$enable_shared" = no; then
14631   # Fast installation is not necessary
14632   enable_fast_install=needless
14633 fi
14634
14635 striplib=
14636 old_striplib=
14637 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14638 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14639 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14640   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14641   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14642   echo "$as_me:$LINENO: result: yes" >&5
14643 echo "${ECHO_T}yes" >&6
14644 else
14645 # FIXME - insert some real tests, host_os isn't really good enough
14646   case $host_os in
14647    darwin*)
14648        if test -n "$STRIP" ; then
14649          striplib="$STRIP -x"
14650          echo "$as_me:$LINENO: result: yes" >&5
14651 echo "${ECHO_T}yes" >&6
14652        else
14653   echo "$as_me:$LINENO: result: no" >&5
14654 echo "${ECHO_T}no" >&6
14655 fi
14656        ;;
14657    *)
14658   echo "$as_me:$LINENO: result: no" >&5
14659 echo "${ECHO_T}no" >&6
14660     ;;
14661   esac
14662 fi
14663
14664 if test "x$enable_dlopen" != xyes; then
14665   enable_dlopen=unknown
14666   enable_dlopen_self=unknown
14667   enable_dlopen_self_static=unknown
14668 else
14669   lt_cv_dlopen=no
14670   lt_cv_dlopen_libs=
14671
14672   case $host_os in
14673   beos*)
14674     lt_cv_dlopen="load_add_on"
14675     lt_cv_dlopen_libs=
14676     lt_cv_dlopen_self=yes
14677     ;;
14678
14679   mingw* | pw32*)
14680     lt_cv_dlopen="LoadLibrary"
14681     lt_cv_dlopen_libs=
14682    ;;
14683
14684   cygwin*)
14685     lt_cv_dlopen="dlopen"
14686     lt_cv_dlopen_libs=
14687    ;;
14688
14689   darwin*)
14690   # if libdl is installed we need to link against it
14691     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14692 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14693 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14694   echo $ECHO_N "(cached) $ECHO_C" >&6
14695 else
14696   ac_check_lib_save_LIBS=$LIBS
14697 LIBS="-ldl  $LIBS"
14698 cat >conftest.$ac_ext <<_ACEOF
14699 /* confdefs.h.  */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h.  */
14704
14705 /* Override any gcc2 internal prototype to avoid an error.  */
14706 #ifdef __cplusplus
14707 extern "C"
14708 #endif
14709 /* We use char because int might match the return type of a gcc2
14710    builtin and then its argument prototype would still apply.  */
14711 char dlopen ();
14712 int
14713 main ()
14714 {
14715 dlopen ();
14716   ;
14717   return 0;
14718 }
14719 _ACEOF
14720 rm -f conftest.$ac_objext conftest$ac_exeext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14722   (eval $ac_link) 2>conftest.er1
14723   ac_status=$?
14724   grep -v '^ *+' conftest.er1 >conftest.err
14725   rm -f conftest.er1
14726   cat conftest.err >&5
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); } &&
14729          { ac_try='test -z "$ac_c_werror_flag"
14730                          || test ! -s conftest.err'
14731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732   (eval $ac_try) 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); }; } &&
14736          { ac_try='test -s conftest$ac_exeext'
14737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738   (eval $ac_try) 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); }; }; then
14742   ac_cv_lib_dl_dlopen=yes
14743 else
14744   echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 ac_cv_lib_dl_dlopen=no
14748 fi
14749 rm -f conftest.err conftest.$ac_objext \
14750       conftest$ac_exeext conftest.$ac_ext
14751 LIBS=$ac_check_lib_save_LIBS
14752 fi
14753 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14754 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14755 if test $ac_cv_lib_dl_dlopen = yes; then
14756   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14757 else
14758
14759     lt_cv_dlopen="dyld"
14760     lt_cv_dlopen_libs=
14761     lt_cv_dlopen_self=yes
14762
14763 fi
14764
14765    ;;
14766
14767   *)
14768     echo "$as_me:$LINENO: checking for shl_load" >&5
14769 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14770 if test "${ac_cv_func_shl_load+set}" = set; then
14771   echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773   cat >conftest.$ac_ext <<_ACEOF
14774 /* confdefs.h.  */
14775 _ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h.  */
14779 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14781 #define shl_load innocuous_shl_load
14782
14783 /* System header to define __stub macros and hopefully few prototypes,
14784     which can conflict with char shl_load (); below.
14785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14786     <limits.h> exists even on freestanding compilers.  */
14787
14788 #ifdef __STDC__
14789 # include <limits.h>
14790 #else
14791 # include <assert.h>
14792 #endif
14793
14794 #undef shl_load
14795
14796 /* Override any gcc2 internal prototype to avoid an error.  */
14797 #ifdef __cplusplus
14798 extern "C"
14799 {
14800 #endif
14801 /* We use char because int might match the return type of a gcc2
14802    builtin and then its argument prototype would still apply.  */
14803 char shl_load ();
14804 /* The GNU C library defines this for functions which it implements
14805     to always fail with ENOSYS.  Some functions are actually named
14806     something starting with __ and the normal name is an alias.  */
14807 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14808 choke me
14809 #else
14810 char (*f) () = shl_load;
14811 #endif
14812 #ifdef __cplusplus
14813 }
14814 #endif
14815
14816 int
14817 main ()
14818 {
14819 return f != shl_load;
14820   ;
14821   return 0;
14822 }
14823 _ACEOF
14824 rm -f conftest.$ac_objext conftest$ac_exeext
14825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14826   (eval $ac_link) 2>conftest.er1
14827   ac_status=$?
14828   grep -v '^ *+' conftest.er1 >conftest.err
14829   rm -f conftest.er1
14830   cat conftest.err >&5
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); } &&
14833          { ac_try='test -z "$ac_c_werror_flag"
14834                          || test ! -s conftest.err'
14835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836   (eval $ac_try) 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); }; } &&
14840          { ac_try='test -s conftest$ac_exeext'
14841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; }; then
14846   ac_cv_func_shl_load=yes
14847 else
14848   echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14850
14851 ac_cv_func_shl_load=no
14852 fi
14853 rm -f conftest.err conftest.$ac_objext \
14854       conftest$ac_exeext conftest.$ac_ext
14855 fi
14856 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14857 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14858 if test $ac_cv_func_shl_load = yes; then
14859   lt_cv_dlopen="shl_load"
14860 else
14861   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14862 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14863 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14864   echo $ECHO_N "(cached) $ECHO_C" >&6
14865 else
14866   ac_check_lib_save_LIBS=$LIBS
14867 LIBS="-ldld  $LIBS"
14868 cat >conftest.$ac_ext <<_ACEOF
14869 /* confdefs.h.  */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h.  */
14874
14875 /* Override any gcc2 internal prototype to avoid an error.  */
14876 #ifdef __cplusplus
14877 extern "C"
14878 #endif
14879 /* We use char because int might match the return type of a gcc2
14880    builtin and then its argument prototype would still apply.  */
14881 char shl_load ();
14882 int
14883 main ()
14884 {
14885 shl_load ();
14886   ;
14887   return 0;
14888 }
14889 _ACEOF
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14892   (eval $ac_link) 2>conftest.er1
14893   ac_status=$?
14894   grep -v '^ *+' conftest.er1 >conftest.err
14895   rm -f conftest.er1
14896   cat conftest.err >&5
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); } &&
14899          { ac_try='test -z "$ac_c_werror_flag"
14900                          || test ! -s conftest.err'
14901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902   (eval $ac_try) 2>&5
14903   ac_status=$?
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   (exit $ac_status); }; } &&
14906          { ac_try='test -s conftest$ac_exeext'
14907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908   (eval $ac_try) 2>&5
14909   ac_status=$?
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); }; }; then
14912   ac_cv_lib_dld_shl_load=yes
14913 else
14914   echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14916
14917 ac_cv_lib_dld_shl_load=no
14918 fi
14919 rm -f conftest.err conftest.$ac_objext \
14920       conftest$ac_exeext conftest.$ac_ext
14921 LIBS=$ac_check_lib_save_LIBS
14922 fi
14923 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14924 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14925 if test $ac_cv_lib_dld_shl_load = yes; then
14926   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14927 else
14928   echo "$as_me:$LINENO: checking for dlopen" >&5
14929 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14930 if test "${ac_cv_func_dlopen+set}" = set; then
14931   echo $ECHO_N "(cached) $ECHO_C" >&6
14932 else
14933   cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h.  */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h.  */
14939 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14941 #define dlopen innocuous_dlopen
14942
14943 /* System header to define __stub macros and hopefully few prototypes,
14944     which can conflict with char dlopen (); below.
14945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14946     <limits.h> exists even on freestanding compilers.  */
14947
14948 #ifdef __STDC__
14949 # include <limits.h>
14950 #else
14951 # include <assert.h>
14952 #endif
14953
14954 #undef dlopen
14955
14956 /* Override any gcc2 internal prototype to avoid an error.  */
14957 #ifdef __cplusplus
14958 extern "C"
14959 {
14960 #endif
14961 /* We use char because int might match the return type of a gcc2
14962    builtin and then its argument prototype would still apply.  */
14963 char dlopen ();
14964 /* The GNU C library defines this for functions which it implements
14965     to always fail with ENOSYS.  Some functions are actually named
14966     something starting with __ and the normal name is an alias.  */
14967 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14968 choke me
14969 #else
14970 char (*f) () = dlopen;
14971 #endif
14972 #ifdef __cplusplus
14973 }
14974 #endif
14975
14976 int
14977 main ()
14978 {
14979 return f != dlopen;
14980   ;
14981   return 0;
14982 }
14983 _ACEOF
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986   (eval $ac_link) 2>conftest.er1
14987   ac_status=$?
14988   grep -v '^ *+' conftest.er1 >conftest.err
14989   rm -f conftest.er1
14990   cat conftest.err >&5
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); } &&
14993          { ac_try='test -z "$ac_c_werror_flag"
14994                          || test ! -s conftest.err'
14995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996   (eval $ac_try) 2>&5
14997   ac_status=$?
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); }; } &&
15000          { ac_try='test -s conftest$ac_exeext'
15001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002   (eval $ac_try) 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }; }; then
15006   ac_cv_func_dlopen=yes
15007 else
15008   echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_cv_func_dlopen=no
15012 fi
15013 rm -f conftest.err conftest.$ac_objext \
15014       conftest$ac_exeext conftest.$ac_ext
15015 fi
15016 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15017 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15018 if test $ac_cv_func_dlopen = yes; then
15019   lt_cv_dlopen="dlopen"
15020 else
15021   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15022 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15023 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15024   echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026   ac_check_lib_save_LIBS=$LIBS
15027 LIBS="-ldl  $LIBS"
15028 cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h.  */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h.  */
15034
15035 /* Override any gcc2 internal prototype to avoid an error.  */
15036 #ifdef __cplusplus
15037 extern "C"
15038 #endif
15039 /* We use char because int might match the return type of a gcc2
15040    builtin and then its argument prototype would still apply.  */
15041 char dlopen ();
15042 int
15043 main ()
15044 {
15045 dlopen ();
15046   ;
15047   return 0;
15048 }
15049 _ACEOF
15050 rm -f conftest.$ac_objext conftest$ac_exeext
15051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15052   (eval $ac_link) 2>conftest.er1
15053   ac_status=$?
15054   grep -v '^ *+' conftest.er1 >conftest.err
15055   rm -f conftest.er1
15056   cat conftest.err >&5
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); } &&
15059          { ac_try='test -z "$ac_c_werror_flag"
15060                          || test ! -s conftest.err'
15061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062   (eval $ac_try) 2>&5
15063   ac_status=$?
15064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065   (exit $ac_status); }; } &&
15066          { ac_try='test -s conftest$ac_exeext'
15067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068   (eval $ac_try) 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); }; }; then
15072   ac_cv_lib_dl_dlopen=yes
15073 else
15074   echo "$as_me: failed program was:" >&5
15075 sed 's/^/| /' conftest.$ac_ext >&5
15076
15077 ac_cv_lib_dl_dlopen=no
15078 fi
15079 rm -f conftest.err conftest.$ac_objext \
15080       conftest$ac_exeext conftest.$ac_ext
15081 LIBS=$ac_check_lib_save_LIBS
15082 fi
15083 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15084 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15085 if test $ac_cv_lib_dl_dlopen = yes; then
15086   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15087 else
15088   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15089 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15090 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15091   echo $ECHO_N "(cached) $ECHO_C" >&6
15092 else
15093   ac_check_lib_save_LIBS=$LIBS
15094 LIBS="-lsvld  $LIBS"
15095 cat >conftest.$ac_ext <<_ACEOF
15096 /* confdefs.h.  */
15097 _ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h.  */
15101
15102 /* Override any gcc2 internal prototype to avoid an error.  */
15103 #ifdef __cplusplus
15104 extern "C"
15105 #endif
15106 /* We use char because int might match the return type of a gcc2
15107    builtin and then its argument prototype would still apply.  */
15108 char dlopen ();
15109 int
15110 main ()
15111 {
15112 dlopen ();
15113   ;
15114   return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext conftest$ac_exeext
15118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15119   (eval $ac_link) 2>conftest.er1
15120   ac_status=$?
15121   grep -v '^ *+' conftest.er1 >conftest.err
15122   rm -f conftest.er1
15123   cat conftest.err >&5
15124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); } &&
15126          { ac_try='test -z "$ac_c_werror_flag"
15127                          || test ! -s conftest.err'
15128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129   (eval $ac_try) 2>&5
15130   ac_status=$?
15131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132   (exit $ac_status); }; } &&
15133          { ac_try='test -s conftest$ac_exeext'
15134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135   (eval $ac_try) 2>&5
15136   ac_status=$?
15137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138   (exit $ac_status); }; }; then
15139   ac_cv_lib_svld_dlopen=yes
15140 else
15141   echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15143
15144 ac_cv_lib_svld_dlopen=no
15145 fi
15146 rm -f conftest.err conftest.$ac_objext \
15147       conftest$ac_exeext conftest.$ac_ext
15148 LIBS=$ac_check_lib_save_LIBS
15149 fi
15150 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15151 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15152 if test $ac_cv_lib_svld_dlopen = yes; then
15153   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15154 else
15155   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15156 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15157 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15158   echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160   ac_check_lib_save_LIBS=$LIBS
15161 LIBS="-ldld  $LIBS"
15162 cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h.  */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h.  */
15168
15169 /* Override any gcc2 internal prototype to avoid an error.  */
15170 #ifdef __cplusplus
15171 extern "C"
15172 #endif
15173 /* We use char because int might match the return type of a gcc2
15174    builtin and then its argument prototype would still apply.  */
15175 char dld_link ();
15176 int
15177 main ()
15178 {
15179 dld_link ();
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 rm -f conftest.$ac_objext conftest$ac_exeext
15185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15186   (eval $ac_link) 2>conftest.er1
15187   ac_status=$?
15188   grep -v '^ *+' conftest.er1 >conftest.err
15189   rm -f conftest.er1
15190   cat conftest.err >&5
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); } &&
15193          { ac_try='test -z "$ac_c_werror_flag"
15194                          || test ! -s conftest.err'
15195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196   (eval $ac_try) 2>&5
15197   ac_status=$?
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); }; } &&
15200          { ac_try='test -s conftest$ac_exeext'
15201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202   (eval $ac_try) 2>&5
15203   ac_status=$?
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); }; }; then
15206   ac_cv_lib_dld_dld_link=yes
15207 else
15208   echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15210
15211 ac_cv_lib_dld_dld_link=no
15212 fi
15213 rm -f conftest.err conftest.$ac_objext \
15214       conftest$ac_exeext conftest.$ac_ext
15215 LIBS=$ac_check_lib_save_LIBS
15216 fi
15217 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15218 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15219 if test $ac_cv_lib_dld_dld_link = yes; then
15220   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15221 fi
15222
15223
15224 fi
15225
15226
15227 fi
15228
15229
15230 fi
15231
15232
15233 fi
15234
15235
15236 fi
15237
15238     ;;
15239   esac
15240
15241   if test "x$lt_cv_dlopen" != xno; then
15242     enable_dlopen=yes
15243   else
15244     enable_dlopen=no
15245   fi
15246
15247   case $lt_cv_dlopen in
15248   dlopen)
15249     save_CPPFLAGS="$CPPFLAGS"
15250     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15251
15252     save_LDFLAGS="$LDFLAGS"
15253     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15254
15255     save_LIBS="$LIBS"
15256     LIBS="$lt_cv_dlopen_libs $LIBS"
15257
15258     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15259 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15260 if test "${lt_cv_dlopen_self+set}" = set; then
15261   echo $ECHO_N "(cached) $ECHO_C" >&6
15262 else
15263           if test "$cross_compiling" = yes; then :
15264   lt_cv_dlopen_self=cross
15265 else
15266   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15267   lt_status=$lt_dlunknown
15268   cat > conftest.$ac_ext <<EOF
15269 #line 15269 "configure"
15270 #include "confdefs.h"
15271
15272 #if HAVE_DLFCN_H
15273 #include <dlfcn.h>
15274 #endif
15275
15276 #include <stdio.h>
15277
15278 #ifdef RTLD_GLOBAL
15279 #  define LT_DLGLOBAL           RTLD_GLOBAL
15280 #else
15281 #  ifdef DL_GLOBAL
15282 #    define LT_DLGLOBAL         DL_GLOBAL
15283 #  else
15284 #    define LT_DLGLOBAL         0
15285 #  endif
15286 #endif
15287
15288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15289    find out it does not work in some platform. */
15290 #ifndef LT_DLLAZY_OR_NOW
15291 #  ifdef RTLD_LAZY
15292 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15293 #  else
15294 #    ifdef DL_LAZY
15295 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15296 #    else
15297 #      ifdef RTLD_NOW
15298 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15299 #      else
15300 #        ifdef DL_NOW
15301 #          define LT_DLLAZY_OR_NOW      DL_NOW
15302 #        else
15303 #          define LT_DLLAZY_OR_NOW      0
15304 #        endif
15305 #      endif
15306 #    endif
15307 #  endif
15308 #endif
15309
15310 #ifdef __cplusplus
15311 extern "C" void exit (int);
15312 #endif
15313
15314 void fnord() { int i=42;}
15315 int main ()
15316 {
15317   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15318   int status = $lt_dlunknown;
15319
15320   if (self)
15321     {
15322       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15323       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15324       /* dlclose (self); */
15325     }
15326
15327     exit (status);
15328 }
15329 EOF
15330   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15331   (eval $ac_link) 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15335     (./conftest; exit; ) 2>/dev/null
15336     lt_status=$?
15337     case x$lt_status in
15338       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15339       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15340       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15341     esac
15342   else :
15343     # compilation failed
15344     lt_cv_dlopen_self=no
15345   fi
15346 fi
15347 rm -fr conftest*
15348
15349
15350 fi
15351 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15352 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15353
15354     if test "x$lt_cv_dlopen_self" = xyes; then
15355       LDFLAGS="$LDFLAGS $link_static_flag"
15356       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15357 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15358 if test "${lt_cv_dlopen_self_static+set}" = set; then
15359   echo $ECHO_N "(cached) $ECHO_C" >&6
15360 else
15361           if test "$cross_compiling" = yes; then :
15362   lt_cv_dlopen_self_static=cross
15363 else
15364   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15365   lt_status=$lt_dlunknown
15366   cat > conftest.$ac_ext <<EOF
15367 #line 15367 "configure"
15368 #include "confdefs.h"
15369
15370 #if HAVE_DLFCN_H
15371 #include <dlfcn.h>
15372 #endif
15373
15374 #include <stdio.h>
15375
15376 #ifdef RTLD_GLOBAL
15377 #  define LT_DLGLOBAL           RTLD_GLOBAL
15378 #else
15379 #  ifdef DL_GLOBAL
15380 #    define LT_DLGLOBAL         DL_GLOBAL
15381 #  else
15382 #    define LT_DLGLOBAL         0
15383 #  endif
15384 #endif
15385
15386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15387    find out it does not work in some platform. */
15388 #ifndef LT_DLLAZY_OR_NOW
15389 #  ifdef RTLD_LAZY
15390 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15391 #  else
15392 #    ifdef DL_LAZY
15393 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15394 #    else
15395 #      ifdef RTLD_NOW
15396 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15397 #      else
15398 #        ifdef DL_NOW
15399 #          define LT_DLLAZY_OR_NOW      DL_NOW
15400 #        else
15401 #          define LT_DLLAZY_OR_NOW      0
15402 #        endif
15403 #      endif
15404 #    endif
15405 #  endif
15406 #endif
15407
15408 #ifdef __cplusplus
15409 extern "C" void exit (int);
15410 #endif
15411
15412 void fnord() { int i=42;}
15413 int main ()
15414 {
15415   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15416   int status = $lt_dlunknown;
15417
15418   if (self)
15419     {
15420       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15421       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15422       /* dlclose (self); */
15423     }
15424
15425     exit (status);
15426 }
15427 EOF
15428   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15429   (eval $ac_link) 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15433     (./conftest; exit; ) 2>/dev/null
15434     lt_status=$?
15435     case x$lt_status in
15436       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15437       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15438       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15439     esac
15440   else :
15441     # compilation failed
15442     lt_cv_dlopen_self_static=no
15443   fi
15444 fi
15445 rm -fr conftest*
15446
15447
15448 fi
15449 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15450 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15451     fi
15452
15453     CPPFLAGS="$save_CPPFLAGS"
15454     LDFLAGS="$save_LDFLAGS"
15455     LIBS="$save_LIBS"
15456     ;;
15457   esac
15458
15459   case $lt_cv_dlopen_self in
15460   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15461   *) enable_dlopen_self=unknown ;;
15462   esac
15463
15464   case $lt_cv_dlopen_self_static in
15465   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15466   *) enable_dlopen_self_static=unknown ;;
15467   esac
15468 fi
15469
15470
15471 # Report which librarie types wil actually be built
15472 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15473 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15474 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15475 echo "${ECHO_T}$can_build_shared" >&6
15476
15477 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15478 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15479 test "$can_build_shared" = "no" && enable_shared=no
15480
15481 # On AIX, shared libraries and static libraries use the same namespace, and
15482 # are all built from PIC.
15483 case "$host_os" in
15484 aix3*)
15485   test "$enable_shared" = yes && enable_static=no
15486   if test -n "$RANLIB"; then
15487     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15488     postinstall_cmds='$RANLIB $lib'
15489   fi
15490   ;;
15491
15492 aix4* | aix5*)
15493   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15494     test "$enable_shared" = yes && enable_static=no
15495   fi
15496   ;;
15497   darwin* | rhapsody*)
15498   if test "$GCC" = yes; then
15499     archive_cmds_need_lc=no
15500     case "$host_os" in
15501     rhapsody* | darwin1.[012])
15502       allow_undefined_flag='-undefined suppress'
15503       ;;
15504     *) # Darwin 1.3 on
15505       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15506         allow_undefined_flag='-flat_namespace -undefined suppress'
15507       else
15508         case ${MACOSX_DEPLOYMENT_TARGET} in
15509           10.[012])
15510             allow_undefined_flag='-flat_namespace -undefined suppress'
15511             ;;
15512           10.*)
15513             allow_undefined_flag='-undefined dynamic_lookup'
15514             ;;
15515         esac
15516       fi
15517       ;;
15518     esac
15519     output_verbose_link_cmd='echo'
15520     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
15521     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15522     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15523     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}'
15524     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}'
15525     hardcode_direct=no
15526     hardcode_automatic=yes
15527     hardcode_shlibpath_var=unsupported
15528     whole_archive_flag_spec='-all_load $convenience'
15529     link_all_deplibs=yes
15530   else
15531     ld_shlibs=no
15532   fi
15533     ;;
15534 esac
15535 echo "$as_me:$LINENO: result: $enable_shared" >&5
15536 echo "${ECHO_T}$enable_shared" >&6
15537
15538 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15539 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15540 # Make sure either enable_shared or enable_static is yes.
15541 test "$enable_shared" = yes || enable_static=yes
15542 echo "$as_me:$LINENO: result: $enable_static" >&5
15543 echo "${ECHO_T}$enable_static" >&6
15544
15545 # The else clause should only fire when bootstrapping the
15546 # libtool distribution, otherwise you forgot to ship ltmain.sh
15547 # with your package, and you will get complaints that there are
15548 # no rules to generate ltmain.sh.
15549 if test -f "$ltmain"; then
15550   # See if we are running on zsh, and set the options which allow our commands through
15551   # without removal of \ escapes.
15552   if test -n "${ZSH_VERSION+set}" ; then
15553     setopt NO_GLOB_SUBST
15554   fi
15555   # Now quote all the things that may contain metacharacters while being
15556   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15557   # variables and quote the copies for generation of the libtool script.
15558   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15559     SED SHELL STRIP \
15560     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15561     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15562     deplibs_check_method reload_flag reload_cmds need_locks \
15563     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15564     lt_cv_sys_global_symbol_to_c_name_address \
15565     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15566     old_postinstall_cmds old_postuninstall_cmds \
15567     compiler \
15568     CC \
15569     LD \
15570     lt_prog_compiler_wl \
15571     lt_prog_compiler_pic \
15572     lt_prog_compiler_static \
15573     lt_prog_compiler_no_builtin_flag \
15574     export_dynamic_flag_spec \
15575     thread_safe_flag_spec \
15576     whole_archive_flag_spec \
15577     enable_shared_with_static_runtimes \
15578     old_archive_cmds \
15579     old_archive_from_new_cmds \
15580     predep_objects \
15581     postdep_objects \
15582     predeps \
15583     postdeps \
15584     compiler_lib_search_path \
15585     archive_cmds \
15586     archive_expsym_cmds \
15587     postinstall_cmds \
15588     postuninstall_cmds \
15589     old_archive_from_expsyms_cmds \
15590     allow_undefined_flag \
15591     no_undefined_flag \
15592     export_symbols_cmds \
15593     hardcode_libdir_flag_spec \
15594     hardcode_libdir_flag_spec_ld \
15595     hardcode_libdir_separator \
15596     hardcode_automatic \
15597     module_cmds \
15598     module_expsym_cmds \
15599     lt_cv_prog_compiler_c_o \
15600     exclude_expsyms \
15601     include_expsyms; do
15602
15603     case $var in
15604     old_archive_cmds | \
15605     old_archive_from_new_cmds | \
15606     archive_cmds | \
15607     archive_expsym_cmds | \
15608     module_cmds | \
15609     module_expsym_cmds | \
15610     old_archive_from_expsyms_cmds | \
15611     export_symbols_cmds | \
15612     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15613     postinstall_cmds | postuninstall_cmds | \
15614     old_postinstall_cmds | old_postuninstall_cmds | \
15615     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15616       # Double-quote double-evaled strings.
15617       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15618       ;;
15619     *)
15620       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15621       ;;
15622     esac
15623   done
15624
15625   case $lt_echo in
15626   *'\$0 --fallback-echo"')
15627     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15628     ;;
15629   esac
15630
15631 cfgfile="${ofile}T"
15632   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15633   $rm -f "$cfgfile"
15634   { echo "$as_me:$LINENO: creating $ofile" >&5
15635 echo "$as_me: creating $ofile" >&6;}
15636
15637   cat <<__EOF__ >> "$cfgfile"
15638 #! $SHELL
15639
15640 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15641 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15642 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15643 #
15644 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15645 # Free Software Foundation, Inc.
15646 #
15647 # This file is part of GNU Libtool:
15648 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15649 #
15650 # This program is free software; you can redistribute it and/or modify
15651 # it under the terms of the GNU General Public License as published by
15652 # the Free Software Foundation; either version 2 of the License, or
15653 # (at your option) any later version.
15654 #
15655 # This program is distributed in the hope that it will be useful, but
15656 # WITHOUT ANY WARRANTY; without even the implied warranty of
15657 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15658 # General Public License for more details.
15659 #
15660 # You should have received a copy of the GNU General Public License
15661 # along with this program; if not, write to the Free Software
15662 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15663 #
15664 # As a special exception to the GNU General Public License, if you
15665 # distribute this file as part of a program that contains a
15666 # configuration script generated by Autoconf, you may include it under
15667 # the same distribution terms that you use for the rest of that program.
15668
15669 # A sed program that does not truncate output.
15670 SED=$lt_SED
15671
15672 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15673 Xsed="$SED -e s/^X//"
15674
15675 # The HP-UX ksh and POSIX shell print the target directory to stdout
15676 # if CDPATH is set.
15677 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
15678
15679 # The names of the tagged configurations supported by this script.
15680 available_tags=
15681
15682 # ### BEGIN LIBTOOL CONFIG
15683
15684 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15685
15686 # Shell to use when invoking shell scripts.
15687 SHELL=$lt_SHELL
15688
15689 # Whether or not to build shared libraries.
15690 build_libtool_libs=$enable_shared
15691
15692 # Whether or not to build static libraries.
15693 build_old_libs=$enable_static
15694
15695 # Whether or not to add -lc for building shared libraries.
15696 build_libtool_need_lc=$archive_cmds_need_lc
15697
15698 # Whether or not to disallow shared libs when runtime libs are static
15699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15700
15701 # Whether or not to optimize for fast installation.
15702 fast_install=$enable_fast_install
15703
15704 # The host system.
15705 host_alias=$host_alias
15706 host=$host
15707
15708 # An echo program that does not interpret backslashes.
15709 echo=$lt_echo
15710
15711 # The archiver.
15712 AR=$lt_AR
15713 AR_FLAGS=$lt_AR_FLAGS
15714
15715 # A C compiler.
15716 LTCC=$lt_LTCC
15717
15718 # A language-specific compiler.
15719 CC=$lt_compiler
15720
15721 # Is the compiler the GNU C compiler?
15722 with_gcc=$GCC
15723
15724 # An ERE matcher.
15725 EGREP=$lt_EGREP
15726
15727 # The linker used to build libraries.
15728 LD=$lt_LD
15729
15730 # Whether we need hard or soft links.
15731 LN_S=$lt_LN_S
15732
15733 # A BSD-compatible nm program.
15734 NM=$lt_NM
15735
15736 # A symbol stripping program
15737 STRIP=$lt_STRIP
15738
15739 # Used to examine libraries when file_magic_cmd begins "file"
15740 MAGIC_CMD=$MAGIC_CMD
15741
15742 # Used on cygwin: DLL creation program.
15743 DLLTOOL="$DLLTOOL"
15744
15745 # Used on cygwin: object dumper.
15746 OBJDUMP="$OBJDUMP"
15747
15748 # Used on cygwin: assembler.
15749 AS="$AS"
15750
15751 # The name of the directory that contains temporary libtool files.
15752 objdir=$objdir
15753
15754 # How to create reloadable object files.
15755 reload_flag=$lt_reload_flag
15756 reload_cmds=$lt_reload_cmds
15757
15758 # How to pass a linker flag through the compiler.
15759 wl=$lt_lt_prog_compiler_wl
15760
15761 # Object file suffix (normally "o").
15762 objext="$ac_objext"
15763
15764 # Old archive suffix (normally "a").
15765 libext="$libext"
15766
15767 # Shared library suffix (normally ".so").
15768 shrext_cmds='$shrext_cmds'
15769
15770 # Executable file suffix (normally "").
15771 exeext="$exeext"
15772
15773 # Additional compiler flags for building library objects.
15774 pic_flag=$lt_lt_prog_compiler_pic
15775 pic_mode=$pic_mode
15776
15777 # What is the maximum length of a command?
15778 max_cmd_len=$lt_cv_sys_max_cmd_len
15779
15780 # Does compiler simultaneously support -c and -o options?
15781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15782
15783 # Must we lock files when doing compilation ?
15784 need_locks=$lt_need_locks
15785
15786 # Do we need the lib prefix for modules?
15787 need_lib_prefix=$need_lib_prefix
15788
15789 # Do we need a version for libraries?
15790 need_version=$need_version
15791
15792 # Whether dlopen is supported.
15793 dlopen_support=$enable_dlopen
15794
15795 # Whether dlopen of programs is supported.
15796 dlopen_self=$enable_dlopen_self
15797
15798 # Whether dlopen of statically linked programs is supported.
15799 dlopen_self_static=$enable_dlopen_self_static
15800
15801 # Compiler flag to prevent dynamic linking.
15802 link_static_flag=$lt_lt_prog_compiler_static
15803
15804 # Compiler flag to turn off builtin functions.
15805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15806
15807 # Compiler flag to allow reflexive dlopens.
15808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15809
15810 # Compiler flag to generate shared objects directly from archives.
15811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15812
15813 # Compiler flag to generate thread-safe objects.
15814 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15815
15816 # Library versioning type.
15817 version_type=$version_type
15818
15819 # Format of library name prefix.
15820 libname_spec=$lt_libname_spec
15821
15822 # List of archive names.  First name is the real one, the rest are links.
15823 # The last name is the one that the linker finds with -lNAME.
15824 library_names_spec=$lt_library_names_spec
15825
15826 # The coded name of the library, if different from the real name.
15827 soname_spec=$lt_soname_spec
15828
15829 # Commands used to build and install an old-style archive.
15830 RANLIB=$lt_RANLIB
15831 old_archive_cmds=$lt_old_archive_cmds
15832 old_postinstall_cmds=$lt_old_postinstall_cmds
15833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15834
15835 # Create an old-style archive from a shared archive.
15836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15837
15838 # Create a temporary old-style archive to link instead of a shared archive.
15839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15840
15841 # Commands used to build and install a shared archive.
15842 archive_cmds=$lt_archive_cmds
15843 archive_expsym_cmds=$lt_archive_expsym_cmds
15844 postinstall_cmds=$lt_postinstall_cmds
15845 postuninstall_cmds=$lt_postuninstall_cmds
15846
15847 # Commands used to build a loadable module (assumed same as above if empty)
15848 module_cmds=$lt_module_cmds
15849 module_expsym_cmds=$lt_module_expsym_cmds
15850
15851 # Commands to strip libraries.
15852 old_striplib=$lt_old_striplib
15853 striplib=$lt_striplib
15854
15855 # Dependencies to place before the objects being linked to create a
15856 # shared library.
15857 predep_objects=$lt_predep_objects
15858
15859 # Dependencies to place after the objects being linked to create a
15860 # shared library.
15861 postdep_objects=$lt_postdep_objects
15862
15863 # Dependencies to place before the objects being linked to create a
15864 # shared library.
15865 predeps=$lt_predeps
15866
15867 # Dependencies to place after the objects being linked to create a
15868 # shared library.
15869 postdeps=$lt_postdeps
15870
15871 # The library search path used internally by the compiler when linking
15872 # a shared library.
15873 compiler_lib_search_path=$lt_compiler_lib_search_path
15874
15875 # Method to check whether dependent libraries are shared objects.
15876 deplibs_check_method=$lt_deplibs_check_method
15877
15878 # Command to use when deplibs_check_method == file_magic.
15879 file_magic_cmd=$lt_file_magic_cmd
15880
15881 # Flag that allows shared libraries with undefined symbols to be built.
15882 allow_undefined_flag=$lt_allow_undefined_flag
15883
15884 # Flag that forces no undefined symbols.
15885 no_undefined_flag=$lt_no_undefined_flag
15886
15887 # Commands used to finish a libtool library installation in a directory.
15888 finish_cmds=$lt_finish_cmds
15889
15890 # Same as above, but a single script fragment to be evaled but not shown.
15891 finish_eval=$lt_finish_eval
15892
15893 # Take the output of nm and produce a listing of raw symbols and C names.
15894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15895
15896 # Transform the output of nm in a proper C declaration
15897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15898
15899 # Transform the output of nm in a C name address pair
15900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15901
15902 # This is the shared library runtime path variable.
15903 runpath_var=$runpath_var
15904
15905 # This is the shared library path variable.
15906 shlibpath_var=$shlibpath_var
15907
15908 # Is shlibpath searched before the hard-coded library search path?
15909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15910
15911 # How to hardcode a shared library path into an executable.
15912 hardcode_action=$hardcode_action
15913
15914 # Whether we should hardcode library paths into libraries.
15915 hardcode_into_libs=$hardcode_into_libs
15916
15917 # Flag to hardcode \$libdir into a binary during linking.
15918 # This must work even if \$libdir does not exist.
15919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15920
15921 # If ld is used when linking, flag to hardcode \$libdir into
15922 # a binary during linking. This must work even if \$libdir does
15923 # not exist.
15924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15925
15926 # Whether we need a single -rpath flag with a separated argument.
15927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15928
15929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15930 # resulting binary.
15931 hardcode_direct=$hardcode_direct
15932
15933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15934 # resulting binary.
15935 hardcode_minus_L=$hardcode_minus_L
15936
15937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15938 # the resulting binary.
15939 hardcode_shlibpath_var=$hardcode_shlibpath_var
15940
15941 # Set to yes if building a shared library automatically hardcodes DIR into the library
15942 # and all subsequent libraries and executables linked against it.
15943 hardcode_automatic=$hardcode_automatic
15944
15945 # Variables whose values should be saved in libtool wrapper scripts and
15946 # restored at relink time.
15947 variables_saved_for_relink="$variables_saved_for_relink"
15948
15949 # Whether libtool must link a program against all its dependency libraries.
15950 link_all_deplibs=$link_all_deplibs
15951
15952 # Compile-time system search path for libraries
15953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15954
15955 # Run-time system search path for libraries
15956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15957
15958 # Fix the shell variable \$srcfile for the compiler.
15959 fix_srcfile_path="$fix_srcfile_path"
15960
15961 # Set to yes if exported symbols are required.
15962 always_export_symbols=$always_export_symbols
15963
15964 # The commands to list exported symbols.
15965 export_symbols_cmds=$lt_export_symbols_cmds
15966
15967 # The commands to extract the exported symbol list from a shared archive.
15968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15969
15970 # Symbols that should not be listed in the preloaded symbols.
15971 exclude_expsyms=$lt_exclude_expsyms
15972
15973 # Symbols that must always be exported.
15974 include_expsyms=$lt_include_expsyms
15975
15976 # ### END LIBTOOL CONFIG
15977
15978 __EOF__
15979
15980
15981   case $host_os in
15982   aix3*)
15983     cat <<\EOF >> "$cfgfile"
15984
15985 # AIX sometimes has problems with the GCC collect2 program.  For some
15986 # reason, if we set the COLLECT_NAMES environment variable, the problems
15987 # vanish in a puff of smoke.
15988 if test "X${COLLECT_NAMES+set}" != Xset; then
15989   COLLECT_NAMES=
15990   export COLLECT_NAMES
15991 fi
15992 EOF
15993     ;;
15994   esac
15995
15996   # We use sed instead of cat because bash on DJGPP gets confused if
15997   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15998   # text mode, it properly converts lines to CR/LF.  This bash problem
15999   # is reportedly fixed, but why not run on old versions too?
16000   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16001
16002   mv -f "$cfgfile" "$ofile" || \
16003     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16004   chmod +x "$ofile"
16005
16006 else
16007   # If there is no Makefile yet, we rely on a make rule to execute
16008   # `config.status --recheck' to rerun these tests and create the
16009   # libtool script then.
16010   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16011   if test -f "$ltmain_in"; then
16012     test -f Makefile && make "$ltmain"
16013   fi
16014 fi
16015
16016
16017 ac_ext=c
16018 ac_cpp='$CPP $CPPFLAGS'
16019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16022
16023 CC="$lt_save_CC"
16024
16025
16026 # Check whether --with-tags or --without-tags was given.
16027 if test "${with_tags+set}" = set; then
16028   withval="$with_tags"
16029   tagnames="$withval"
16030 fi;
16031
16032 if test -f "$ltmain" && test -n "$tagnames"; then
16033   if test ! -f "${ofile}"; then
16034     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16035 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16036   fi
16037
16038   if test -z "$LTCC"; then
16039     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16040     if test -z "$LTCC"; then
16041       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16042 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16043     else
16044       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16045 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16046     fi
16047   fi
16048
16049   # Extract list of available tagged configurations in $ofile.
16050   # Note that this assumes the entire list is on one line.
16051   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16052
16053   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16054   for tagname in $tagnames; do
16055     IFS="$lt_save_ifs"
16056     # Check whether tagname contains only valid characters
16057     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16058     "") ;;
16059     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16060 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16061    { (exit 1); exit 1; }; }
16062         ;;
16063     esac
16064
16065     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16066     then
16067       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16068 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16069    { (exit 1); exit 1; }; }
16070     fi
16071
16072     # Update the list of available tags.
16073     if test -n "$tagname"; then
16074       echo appending configuration tag \"$tagname\" to $ofile
16075
16076       case $tagname in
16077       CXX)
16078         if test -n "$CXX" && test "X$CXX" != "Xno"; then
16079           ac_ext=cc
16080 ac_cpp='$CXXCPP $CPPFLAGS'
16081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16084
16085
16086
16087
16088 archive_cmds_need_lc_CXX=no
16089 allow_undefined_flag_CXX=
16090 always_export_symbols_CXX=no
16091 archive_expsym_cmds_CXX=
16092 export_dynamic_flag_spec_CXX=
16093 hardcode_direct_CXX=no
16094 hardcode_libdir_flag_spec_CXX=
16095 hardcode_libdir_flag_spec_ld_CXX=
16096 hardcode_libdir_separator_CXX=
16097 hardcode_minus_L_CXX=no
16098 hardcode_automatic_CXX=no
16099 module_cmds_CXX=
16100 module_expsym_cmds_CXX=
16101 link_all_deplibs_CXX=unknown
16102 old_archive_cmds_CXX=$old_archive_cmds
16103 no_undefined_flag_CXX=
16104 whole_archive_flag_spec_CXX=
16105 enable_shared_with_static_runtimes_CXX=no
16106
16107 # Dependencies to place before and after the object being linked:
16108 predep_objects_CXX=
16109 postdep_objects_CXX=
16110 predeps_CXX=
16111 postdeps_CXX=
16112 compiler_lib_search_path_CXX=
16113
16114 # Source file extension for C++ test sources.
16115 ac_ext=cc
16116
16117 # Object file extension for compiled C++ test sources.
16118 objext=o
16119 objext_CXX=$objext
16120
16121 # Code to be used in simple compile tests
16122 lt_simple_compile_test_code="int some_variable = 0;\n"
16123
16124 # Code to be used in simple link tests
16125 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
16126
16127 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16128
16129 # If no C compiler was specified, use CC.
16130 LTCC=${LTCC-"$CC"}
16131
16132 # Allow CC to be a program name with arguments.
16133 compiler=$CC
16134
16135
16136 # Allow CC to be a program name with arguments.
16137 lt_save_CC=$CC
16138 lt_save_LD=$LD
16139 lt_save_GCC=$GCC
16140 GCC=$GXX
16141 lt_save_with_gnu_ld=$with_gnu_ld
16142 lt_save_path_LD=$lt_cv_path_LD
16143 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16144   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16145 else
16146   unset lt_cv_prog_gnu_ld
16147 fi
16148 if test -n "${lt_cv_path_LDCXX+set}"; then
16149   lt_cv_path_LD=$lt_cv_path_LDCXX
16150 else
16151   unset lt_cv_path_LD
16152 fi
16153 test -z "${LDCXX+set}" || LD=$LDCXX
16154 CC=${CXX-"c++"}
16155 compiler=$CC
16156 compiler_CXX=$CC
16157 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16158
16159 # We don't want -fno-exception wen compiling C++ code, so set the
16160 # no_builtin_flag separately
16161 if test "$GXX" = yes; then
16162   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16163 else
16164   lt_prog_compiler_no_builtin_flag_CXX=
16165 fi
16166
16167 if test "$GXX" = yes; then
16168   # Set up default GNU C++ configuration
16169
16170
16171 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16172 if test "${with_gnu_ld+set}" = set; then
16173   withval="$with_gnu_ld"
16174   test "$withval" = no || with_gnu_ld=yes
16175 else
16176   with_gnu_ld=no
16177 fi;
16178 ac_prog=ld
16179 if test "$GCC" = yes; then
16180   # Check if gcc -print-prog-name=ld gives a path.
16181   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16182 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16183   case $host in
16184   *-*-mingw*)
16185     # gcc leaves a trailing carriage return which upsets mingw
16186     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16187   *)
16188     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16189   esac
16190   case $ac_prog in
16191     # Accept absolute paths.
16192     [\\/]* | ?:[\\/]*)
16193       re_direlt='/[^/][^/]*/\.\./'
16194       # Canonicalize the pathname of ld
16195       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16196       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16197         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16198       done
16199       test -z "$LD" && LD="$ac_prog"
16200       ;;
16201   "")
16202     # If it fails, then pretend we aren't using GCC.
16203     ac_prog=ld
16204     ;;
16205   *)
16206     # If it is relative, then search for the first ld in PATH.
16207     with_gnu_ld=unknown
16208     ;;
16209   esac
16210 elif test "$with_gnu_ld" = yes; then
16211   echo "$as_me:$LINENO: checking for GNU ld" >&5
16212 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16213 else
16214   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16215 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16216 fi
16217 if test "${lt_cv_path_LD+set}" = set; then
16218   echo $ECHO_N "(cached) $ECHO_C" >&6
16219 else
16220   if test -z "$LD"; then
16221   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16222   for ac_dir in $PATH; do
16223     IFS="$lt_save_ifs"
16224     test -z "$ac_dir" && ac_dir=.
16225     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16226       lt_cv_path_LD="$ac_dir/$ac_prog"
16227       # Check to see if the program is GNU ld.  I'd rather use --version,
16228       # but apparently some GNU ld's only accept -v.
16229       # Break only if it was the GNU/non-GNU ld that we prefer.
16230       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16231       *GNU* | *'with BFD'*)
16232         test "$with_gnu_ld" != no && break
16233         ;;
16234       *)
16235         test "$with_gnu_ld" != yes && break
16236         ;;
16237       esac
16238     fi
16239   done
16240   IFS="$lt_save_ifs"
16241 else
16242   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16243 fi
16244 fi
16245
16246 LD="$lt_cv_path_LD"
16247 if test -n "$LD"; then
16248   echo "$as_me:$LINENO: result: $LD" >&5
16249 echo "${ECHO_T}$LD" >&6
16250 else
16251   echo "$as_me:$LINENO: result: no" >&5
16252 echo "${ECHO_T}no" >&6
16253 fi
16254 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16255 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16256    { (exit 1); exit 1; }; }
16257 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16258 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16259 if test "${lt_cv_prog_gnu_ld+set}" = set; then
16260   echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16263 case `$LD -v 2>&1 </dev/null` in
16264 *GNU* | *'with BFD'*)
16265   lt_cv_prog_gnu_ld=yes
16266   ;;
16267 *)
16268   lt_cv_prog_gnu_ld=no
16269   ;;
16270 esac
16271 fi
16272 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16273 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
16274 with_gnu_ld=$lt_cv_prog_gnu_ld
16275
16276
16277
16278   # Check if GNU C++ uses GNU ld as the underlying linker, since the
16279   # archiving commands below assume that GNU ld is being used.
16280   if test "$with_gnu_ld" = yes; then
16281     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16282     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'
16283
16284     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16285     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16286
16287     # If archive_cmds runs LD, not CC, wlarc should be empty
16288     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16289     #     investigate it a little bit more. (MM)
16290     wlarc='${wl}'
16291
16292     # ancient GNU ld didn't support --whole-archive et. al.
16293     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
16294         grep 'no-whole-archive' > /dev/null; then
16295       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16296     else
16297       whole_archive_flag_spec_CXX=
16298     fi
16299   else
16300     with_gnu_ld=no
16301     wlarc=
16302
16303     # A generic and very simple default shared library creation
16304     # command for GNU C++ for the case where it uses the native
16305     # linker, instead of GNU ld.  If possible, this setting should
16306     # overridden to take advantage of the native linker features on
16307     # the platform it is being used on.
16308     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16309   fi
16310
16311   # Commands to make compiler produce verbose output that lists
16312   # what "hidden" libraries, object files and flags are used when
16313   # linking a shared library.
16314   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16315
16316 else
16317   GXX=no
16318   with_gnu_ld=no
16319   wlarc=
16320 fi
16321
16322 # PORTME: fill in a description of your system's C++ link characteristics
16323 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16324 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16325 ld_shlibs_CXX=yes
16326 case $host_os in
16327   aix3*)
16328     # FIXME: insert proper C++ library support
16329     ld_shlibs_CXX=no
16330     ;;
16331   aix4* | aix5*)
16332     if test "$host_cpu" = ia64; then
16333       # On IA64, the linker does run time linking by default, so we don't
16334       # have to do anything special.
16335       aix_use_runtimelinking=no
16336       exp_sym_flag='-Bexport'
16337       no_entry_flag=""
16338     else
16339       aix_use_runtimelinking=no
16340
16341       # Test if we are trying to use run time linking or normal
16342       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16343       # need to do runtime linking.
16344       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16345         for ld_flag in $LDFLAGS; do
16346           case $ld_flag in
16347           *-brtl*)
16348             aix_use_runtimelinking=yes
16349             break
16350             ;;
16351           esac
16352         done
16353       esac
16354
16355       exp_sym_flag='-bexport'
16356       no_entry_flag='-bnoentry'
16357     fi
16358
16359     # When large executables or shared objects are built, AIX ld can
16360     # have problems creating the table of contents.  If linking a library
16361     # or program results in "error TOC overflow" add -mminimal-toc to
16362     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16363     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16364
16365     archive_cmds_CXX=''
16366     hardcode_direct_CXX=yes
16367     hardcode_libdir_separator_CXX=':'
16368     link_all_deplibs_CXX=yes
16369
16370     if test "$GXX" = yes; then
16371       case $host_os in aix4.012|aix4.012.*)
16372       # We only want to do this on AIX 4.2 and lower, the check
16373       # below for broken collect2 doesn't work under 4.3+
16374         collect2name=`${CC} -print-prog-name=collect2`
16375         if test -f "$collect2name" && \
16376            strings "$collect2name" | grep resolve_lib_name >/dev/null
16377         then
16378           # We have reworked collect2
16379           hardcode_direct_CXX=yes
16380         else
16381           # We have old collect2
16382           hardcode_direct_CXX=unsupported
16383           # It fails to find uninstalled libraries when the uninstalled
16384           # path is not listed in the libpath.  Setting hardcode_minus_L
16385           # to unsupported forces relinking
16386           hardcode_minus_L_CXX=yes
16387           hardcode_libdir_flag_spec_CXX='-L$libdir'
16388           hardcode_libdir_separator_CXX=
16389         fi
16390       esac
16391       shared_flag='-shared'
16392     else
16393       # not using gcc
16394       if test "$host_cpu" = ia64; then
16395         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16396         # chokes on -Wl,-G. The following line is correct:
16397         shared_flag='-G'
16398       else
16399         if test "$aix_use_runtimelinking" = yes; then
16400           shared_flag='${wl}-G'
16401         else
16402           shared_flag='${wl}-bM:SRE'
16403         fi
16404       fi
16405     fi
16406
16407     # It seems that -bexpall does not export symbols beginning with
16408     # underscore (_), so it is better to generate a list of symbols to export.
16409     always_export_symbols_CXX=yes
16410     if test "$aix_use_runtimelinking" = yes; then
16411       # Warning - without using the other runtime loading flags (-brtl),
16412       # -berok will link without error, but may produce a broken library.
16413       allow_undefined_flag_CXX='-berok'
16414       # Determine the default libpath from the value encoded in an empty executable.
16415       cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h.  */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h.  */
16421
16422 int
16423 main ()
16424 {
16425
16426   ;
16427   return 0;
16428 }
16429 _ACEOF
16430 rm -f conftest.$ac_objext conftest$ac_exeext
16431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16432   (eval $ac_link) 2>conftest.er1
16433   ac_status=$?
16434   grep -v '^ *+' conftest.er1 >conftest.err
16435   rm -f conftest.er1
16436   cat conftest.err >&5
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); } &&
16439          { ac_try='test -z "$ac_cxx_werror_flag"
16440                          || test ! -s conftest.err'
16441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442   (eval $ac_try) 2>&5
16443   ac_status=$?
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); }; } &&
16446          { ac_try='test -s conftest$ac_exeext'
16447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448   (eval $ac_try) 2>&5
16449   ac_status=$?
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); }; }; then
16452
16453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16454 }'`
16455 # Check for a 64-bit object if we didn't find anything.
16456 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; }
16457 }'`; fi
16458 else
16459   echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16461
16462 fi
16463 rm -f conftest.err conftest.$ac_objext \
16464       conftest$ac_exeext conftest.$ac_ext
16465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16466
16467       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16468
16469       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16470      else
16471       if test "$host_cpu" = ia64; then
16472         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16473         allow_undefined_flag_CXX="-z nodefs"
16474         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16475       else
16476         # Determine the default libpath from the value encoded in an empty executable.
16477         cat >conftest.$ac_ext <<_ACEOF
16478 /* confdefs.h.  */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h.  */
16483
16484 int
16485 main ()
16486 {
16487
16488   ;
16489   return 0;
16490 }
16491 _ACEOF
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16494   (eval $ac_link) 2>conftest.er1
16495   ac_status=$?
16496   grep -v '^ *+' conftest.er1 >conftest.err
16497   rm -f conftest.er1
16498   cat conftest.err >&5
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); } &&
16501          { ac_try='test -z "$ac_cxx_werror_flag"
16502                          || test ! -s conftest.err'
16503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504   (eval $ac_try) 2>&5
16505   ac_status=$?
16506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507   (exit $ac_status); }; } &&
16508          { ac_try='test -s conftest$ac_exeext'
16509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510   (eval $ac_try) 2>&5
16511   ac_status=$?
16512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513   (exit $ac_status); }; }; then
16514
16515 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16516 }'`
16517 # Check for a 64-bit object if we didn't find anything.
16518 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; }
16519 }'`; fi
16520 else
16521   echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16523
16524 fi
16525 rm -f conftest.err conftest.$ac_objext \
16526       conftest$ac_exeext conftest.$ac_ext
16527 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16528
16529         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16530         # Warning - without using the other run time loading flags,
16531         # -berok will link without error, but may produce a broken library.
16532         no_undefined_flag_CXX=' ${wl}-bernotok'
16533         allow_undefined_flag_CXX=' ${wl}-berok'
16534         # -bexpall does not export symbols beginning with underscore (_)
16535         always_export_symbols_CXX=yes
16536         # Exported symbols can be pulled into shared objects from archives
16537         whole_archive_flag_spec_CXX=' '
16538         archive_cmds_need_lc_CXX=yes
16539         # This is similar to how AIX traditionally builds it's shared libraries.
16540         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16541       fi
16542     fi
16543     ;;
16544   chorus*)
16545     case $cc_basename in
16546       *)
16547         # FIXME: insert proper C++ library support
16548         ld_shlibs_CXX=no
16549         ;;
16550     esac
16551     ;;
16552
16553   cygwin* | mingw* | pw32*)
16554     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16555     # as there is no search path for DLLs.
16556     hardcode_libdir_flag_spec_CXX='-L$libdir'
16557     allow_undefined_flag_CXX=unsupported
16558     always_export_symbols_CXX=no
16559     enable_shared_with_static_runtimes_CXX=yes
16560
16561     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16562       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16563       # If the export-symbols file already is a .def file (1st line
16564       # is EXPORTS), use it as is; otherwise, prepend...
16565       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16566         cp $export_symbols $output_objdir/$soname.def;
16567       else
16568         echo EXPORTS > $output_objdir/$soname.def;
16569         cat $export_symbols >> $output_objdir/$soname.def;
16570       fi~
16571       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16572     else
16573       ld_shlibs_CXX=no
16574     fi
16575   ;;
16576
16577   darwin* | rhapsody*)
16578   if test "$GXX" = yes; then
16579     archive_cmds_need_lc_CXX=no
16580     case "$host_os" in
16581     rhapsody* | darwin1.[012])
16582       allow_undefined_flag_CXX='-undefined suppress'
16583       ;;
16584     *) # Darwin 1.3 on
16585       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16586         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
16587       else
16588         case ${MACOSX_DEPLOYMENT_TARGET} in
16589           10.[012])
16590             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
16591             ;;
16592           10.*)
16593             allow_undefined_flag_CXX='-undefined dynamic_lookup'
16594             ;;
16595         esac
16596       fi
16597       ;;
16598     esac
16599     lt_int_apple_cc_single_mod=no
16600     output_verbose_link_cmd='echo'
16601     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16602       lt_int_apple_cc_single_mod=yes
16603     fi
16604     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16605       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16606     else
16607       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
16608     fi
16609     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16610
16611     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16612     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16613       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}'
16614     else
16615       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16616     fi
16617     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}'
16618     hardcode_direct_CXX=no
16619     hardcode_automatic_CXX=yes
16620     hardcode_shlibpath_var_CXX=unsupported
16621     whole_archive_flag_spec_CXX='-all_load $convenience'
16622     link_all_deplibs_CXX=yes
16623   else
16624     ld_shlibs_CXX=no
16625   fi
16626     ;;
16627
16628   dgux*)
16629     case $cc_basename in
16630       ec++)
16631         # FIXME: insert proper C++ library support
16632         ld_shlibs_CXX=no
16633         ;;
16634       ghcx)
16635         # Green Hills C++ Compiler
16636         # FIXME: insert proper C++ library support
16637         ld_shlibs_CXX=no
16638         ;;
16639       *)
16640         # FIXME: insert proper C++ library support
16641         ld_shlibs_CXX=no
16642         ;;
16643     esac
16644     ;;
16645   freebsd12*)
16646     # C++ shared libraries reported to be fairly broken before switch to ELF
16647     ld_shlibs_CXX=no
16648     ;;
16649   freebsd-elf*)
16650     archive_cmds_need_lc_CXX=no
16651     ;;
16652   freebsd* | kfreebsd*-gnu)
16653     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16654     # conventions
16655     ld_shlibs_CXX=yes
16656     ;;
16657   gnu*)
16658     ;;
16659   hpux9*)
16660     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16661     hardcode_libdir_separator_CXX=:
16662     export_dynamic_flag_spec_CXX='${wl}-E'
16663     hardcode_direct_CXX=yes
16664     hardcode_minus_L_CXX=yes # Not in the search PATH,
16665                                 # but as the default
16666                                 # location of the library.
16667
16668     case $cc_basename in
16669     CC)
16670       # FIXME: insert proper C++ library support
16671       ld_shlibs_CXX=no
16672       ;;
16673     aCC)
16674       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'
16675       # Commands to make compiler produce verbose output that lists
16676       # what "hidden" libraries, object files and flags are used when
16677       # linking a shared library.
16678       #
16679       # There doesn't appear to be a way to prevent this compiler from
16680       # explicitly linking system object files so we need to strip them
16681       # from the output so that they don't get included in the library
16682       # dependencies.
16683       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'
16684       ;;
16685     *)
16686       if test "$GXX" = yes; then
16687         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'
16688       else
16689         # FIXME: insert proper C++ library support
16690         ld_shlibs_CXX=no
16691       fi
16692       ;;
16693     esac
16694     ;;
16695   hpux10*|hpux11*)
16696     if test $with_gnu_ld = no; then
16697       case "$host_cpu" in
16698       hppa*64*)
16699         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16700         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16701         hardcode_libdir_separator_CXX=:
16702         ;;
16703       ia64*)
16704         hardcode_libdir_flag_spec_CXX='-L$libdir'
16705         ;;
16706       *)
16707         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16708         hardcode_libdir_separator_CXX=:
16709         export_dynamic_flag_spec_CXX='${wl}-E'
16710         ;;
16711       esac
16712     fi
16713     case "$host_cpu" in
16714     hppa*64*)
16715       hardcode_direct_CXX=no
16716       hardcode_shlibpath_var_CXX=no
16717       ;;
16718     ia64*)
16719       hardcode_direct_CXX=no
16720       hardcode_shlibpath_var_CXX=no
16721       hardcode_minus_L_CXX=yes # Not in the search PATH,
16722                                               # but as the default
16723                                               # location of the library.
16724       ;;
16725     *)
16726       hardcode_direct_CXX=yes
16727       hardcode_minus_L_CXX=yes # Not in the search PATH,
16728                                               # but as the default
16729                                               # location of the library.
16730       ;;
16731     esac
16732
16733     case $cc_basename in
16734       CC)
16735         # FIXME: insert proper C++ library support
16736         ld_shlibs_CXX=no
16737         ;;
16738       aCC)
16739         case "$host_cpu" in
16740         hppa*64*|ia64*)
16741           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16742           ;;
16743         *)
16744           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16745           ;;
16746         esac
16747         # Commands to make compiler produce verbose output that lists
16748         # what "hidden" libraries, object files and flags are used when
16749         # linking a shared library.
16750         #
16751         # There doesn't appear to be a way to prevent this compiler from
16752         # explicitly linking system object files so we need to strip them
16753         # from the output so that they don't get included in the library
16754         # dependencies.
16755         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'
16756         ;;
16757       *)
16758         if test "$GXX" = yes; then
16759           if test $with_gnu_ld = no; then
16760             case "$host_cpu" in
16761             ia64*|hppa*64*)
16762               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16763               ;;
16764             *)
16765               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'
16766               ;;
16767             esac
16768           fi
16769         else
16770           # FIXME: insert proper C++ library support
16771           ld_shlibs_CXX=no
16772         fi
16773         ;;
16774     esac
16775     ;;
16776   irix5* | irix6*)
16777     case $cc_basename in
16778       CC)
16779         # SGI C++
16780         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 ${objdir}/so_locations -o $lib'
16781
16782         # Archives containing C++ object files must be created using
16783         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16784         # necessary to make sure instantiated templates are included
16785         # in the archive.
16786         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16787         ;;
16788       *)
16789         if test "$GXX" = yes; then
16790           if test "$with_gnu_ld" = no; then
16791             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}${objdir}/so_locations -o $lib'
16792           else
16793             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'
16794           fi
16795         fi
16796         link_all_deplibs_CXX=yes
16797         ;;
16798     esac
16799     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16800     hardcode_libdir_separator_CXX=:
16801     ;;
16802   linux*)
16803     case $cc_basename in
16804       KCC)
16805         # Kuck and Associates, Inc. (KAI) C++ Compiler
16806
16807         # KCC will only create a shared library if the output file
16808         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16809         # to its proper name (with version) after linking.
16810         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'
16811         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'
16812         # Commands to make compiler produce verbose output that lists
16813         # what "hidden" libraries, object files and flags are used when
16814         # linking a shared library.
16815         #
16816         # There doesn't appear to be a way to prevent this compiler from
16817         # explicitly linking system object files so we need to strip them
16818         # from the output so that they don't get included in the library
16819         # dependencies.
16820         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'
16821
16822         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16823         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16824
16825         # Archives containing C++ object files must be created using
16826         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16827         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16828         ;;
16829       icpc)
16830         # Intel C++
16831         with_gnu_ld=yes
16832         archive_cmds_need_lc_CXX=no
16833         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16834         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'
16835         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16836         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16837         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16838         ;;
16839       cxx)
16840         # Compaq C++
16841         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16842         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'
16843
16844         runpath_var=LD_RUN_PATH
16845         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16846         hardcode_libdir_separator_CXX=:
16847
16848         # Commands to make compiler produce verbose output that lists
16849         # what "hidden" libraries, object files and flags are used when
16850         # linking a shared library.
16851         #
16852         # There doesn't appear to be a way to prevent this compiler from
16853         # explicitly linking system object files so we need to strip them
16854         # from the output so that they don't get included in the library
16855         # dependencies.
16856         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'
16857         ;;
16858     esac
16859     ;;
16860   lynxos*)
16861     # FIXME: insert proper C++ library support
16862     ld_shlibs_CXX=no
16863     ;;
16864   m88k*)
16865     # FIXME: insert proper C++ library support
16866     ld_shlibs_CXX=no
16867     ;;
16868   mvs*)
16869     case $cc_basename in
16870       cxx)
16871         # FIXME: insert proper C++ library support
16872         ld_shlibs_CXX=no
16873         ;;
16874       *)
16875         # FIXME: insert proper C++ library support
16876         ld_shlibs_CXX=no
16877         ;;
16878     esac
16879     ;;
16880   netbsd*)
16881     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16882       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16883       wlarc=
16884       hardcode_libdir_flag_spec_CXX='-R$libdir'
16885       hardcode_direct_CXX=yes
16886       hardcode_shlibpath_var_CXX=no
16887     fi
16888     # Workaround some broken pre-1.5 toolchains
16889     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16890     ;;
16891   osf3*)
16892     case $cc_basename in
16893       KCC)
16894         # Kuck and Associates, Inc. (KAI) C++ Compiler
16895
16896         # KCC will only create a shared library if the output file
16897         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16898         # to its proper name (with version) after linking.
16899         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'
16900
16901         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16902         hardcode_libdir_separator_CXX=:
16903
16904         # Archives containing C++ object files must be created using
16905         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16906         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16907
16908         ;;
16909       RCC)
16910         # Rational C++ 2.4.1
16911         # FIXME: insert proper C++ library support
16912         ld_shlibs_CXX=no
16913         ;;
16914       cxx)
16915         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16916         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 ${objdir}/so_locations -o $lib'
16917
16918         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16919         hardcode_libdir_separator_CXX=:
16920
16921         # Commands to make compiler produce verbose output that lists
16922         # what "hidden" libraries, object files and flags are used when
16923         # linking a shared library.
16924         #
16925         # There doesn't appear to be a way to prevent this compiler from
16926         # explicitly linking system object files so we need to strip them
16927         # from the output so that they don't get included in the library
16928         # dependencies.
16929         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'
16930         ;;
16931       *)
16932         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16933           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16934           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}${objdir}/so_locations -o $lib'
16935
16936           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16937           hardcode_libdir_separator_CXX=:
16938
16939           # Commands to make compiler produce verbose output that lists
16940           # what "hidden" libraries, object files and flags are used when
16941           # linking a shared library.
16942           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16943
16944         else
16945           # FIXME: insert proper C++ library support
16946           ld_shlibs_CXX=no
16947         fi
16948         ;;
16949     esac
16950     ;;
16951   osf4* | osf5*)
16952     case $cc_basename in
16953       KCC)
16954         # Kuck and Associates, Inc. (KAI) C++ Compiler
16955
16956         # KCC will only create a shared library if the output file
16957         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16958         # to its proper name (with version) after linking.
16959         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'
16960
16961         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16962         hardcode_libdir_separator_CXX=:
16963
16964         # Archives containing C++ object files must be created using
16965         # the KAI C++ compiler.
16966         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16967         ;;
16968       RCC)
16969         # Rational C++ 2.4.1
16970         # FIXME: insert proper C++ library support
16971         ld_shlibs_CXX=no
16972         ;;
16973       cxx)
16974         allow_undefined_flag_CXX=' -expect_unresolved \*'
16975         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 ${objdir}/so_locations -o $lib'
16976         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16977           echo "-hidden">> $lib.exp~
16978           $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 $objdir/so_locations -o $lib~
16979           $rm $lib.exp'
16980
16981         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16982         hardcode_libdir_separator_CXX=:
16983
16984         # Commands to make compiler produce verbose output that lists
16985         # what "hidden" libraries, object files and flags are used when
16986         # linking a shared library.
16987         #
16988         # There doesn't appear to be a way to prevent this compiler from
16989         # explicitly linking system object files so we need to strip them
16990         # from the output so that they don't get included in the library
16991         # dependencies.
16992         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'
16993         ;;
16994       *)
16995         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16996           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16997          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}${objdir}/so_locations -o $lib'
16998
16999           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17000           hardcode_libdir_separator_CXX=:
17001
17002           # Commands to make compiler produce verbose output that lists
17003           # what "hidden" libraries, object files and flags are used when
17004           # linking a shared library.
17005           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17006
17007         else
17008           # FIXME: insert proper C++ library support
17009           ld_shlibs_CXX=no
17010         fi
17011         ;;
17012     esac
17013     ;;
17014   psos*)
17015     # FIXME: insert proper C++ library support
17016     ld_shlibs_CXX=no
17017     ;;
17018   sco*)
17019     archive_cmds_need_lc_CXX=no
17020     case $cc_basename in
17021       CC)
17022         # FIXME: insert proper C++ library support
17023         ld_shlibs_CXX=no
17024         ;;
17025       *)
17026         # FIXME: insert proper C++ library support
17027         ld_shlibs_CXX=no
17028         ;;
17029     esac
17030     ;;
17031   sunos4*)
17032     case $cc_basename in
17033       CC)
17034         # Sun C++ 4.x
17035         # FIXME: insert proper C++ library support
17036         ld_shlibs_CXX=no
17037         ;;
17038       lcc)
17039         # Lucid
17040         # FIXME: insert proper C++ library support
17041         ld_shlibs_CXX=no
17042         ;;
17043       *)
17044         # FIXME: insert proper C++ library support
17045         ld_shlibs_CXX=no
17046         ;;
17047     esac
17048     ;;
17049   solaris*)
17050     case $cc_basename in
17051       CC)
17052         # Sun C++ 4.2, 5.x and Centerline C++
17053         no_undefined_flag_CXX=' -zdefs'
17054         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17055         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17056         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17057
17058         hardcode_libdir_flag_spec_CXX='-R$libdir'
17059         hardcode_shlibpath_var_CXX=no
17060         case $host_os in
17061           solaris2.0-5 | solaris2.0-5.*) ;;
17062           *)
17063             # The C++ compiler is used as linker so we must use $wl
17064             # flag to pass the commands to the underlying system
17065             # linker.
17066             # Supported since Solaris 2.6 (maybe 2.5.1?)
17067             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17068             ;;
17069         esac
17070         link_all_deplibs_CXX=yes
17071
17072         # Commands to make compiler produce verbose output that lists
17073         # what "hidden" libraries, object files and flags are used when
17074         # linking a shared library.
17075         #
17076         # There doesn't appear to be a way to prevent this compiler from
17077         # explicitly linking system object files so we need to strip them
17078         # from the output so that they don't get included in the library
17079         # dependencies.
17080         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17081
17082         # Archives containing C++ object files must be created using
17083         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17084         # necessary to make sure instantiated templates are included
17085         # in the archive.
17086         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17087         ;;
17088       gcx)
17089         # Green Hills C++ Compiler
17090         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17091
17092         # The C++ compiler must be used to create the archive.
17093         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17094         ;;
17095       *)
17096         # GNU C++ compiler with Solaris linker
17097         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17098           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17099           if $CC --version | grep -v '^2\.7' > /dev/null; then
17100             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17101             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17102                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17103
17104             # Commands to make compiler produce verbose output that lists
17105             # what "hidden" libraries, object files and flags are used when
17106             # linking a shared library.
17107             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17108           else
17109             # g++ 2.7 appears to require `-G' NOT `-shared' on this
17110             # platform.
17111             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17112             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17113                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17114
17115             # Commands to make compiler produce verbose output that lists
17116             # what "hidden" libraries, object files and flags are used when
17117             # linking a shared library.
17118             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17119           fi
17120
17121           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17122         fi
17123         ;;
17124     esac
17125     ;;
17126   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17127     archive_cmds_need_lc_CXX=no
17128     ;;
17129   tandem*)
17130     case $cc_basename in
17131       NCC)
17132         # NonStop-UX NCC 3.20
17133         # FIXME: insert proper C++ library support
17134         ld_shlibs_CXX=no
17135         ;;
17136       *)
17137         # FIXME: insert proper C++ library support
17138         ld_shlibs_CXX=no
17139         ;;
17140     esac
17141     ;;
17142   vxworks*)
17143     # FIXME: insert proper C++ library support
17144     ld_shlibs_CXX=no
17145     ;;
17146   *)
17147     # FIXME: insert proper C++ library support
17148     ld_shlibs_CXX=no
17149     ;;
17150 esac
17151 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17152 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17153 test "$ld_shlibs_CXX" = no && can_build_shared=no
17154
17155 GCC_CXX="$GXX"
17156 LD_CXX="$LD"
17157
17158
17159 cat > conftest.$ac_ext <<EOF
17160 class Foo
17161 {
17162 public:
17163   Foo (void) { a = 0; }
17164 private:
17165   int a;
17166 };
17167 EOF
17168
17169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17170   (eval $ac_compile) 2>&5
17171   ac_status=$?
17172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173   (exit $ac_status); }; then
17174   # Parse the compiler output and extract the necessary
17175   # objects, libraries and library flags.
17176
17177   # Sentinel used to keep track of whether or not we are before
17178   # the conftest object file.
17179   pre_test_object_deps_done=no
17180
17181   # The `*' in the case matches for architectures that use `case' in
17182   # $output_verbose_cmd can trigger glob expansion during the loop
17183   # eval without this substitution.
17184   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
17185
17186   for p in `eval $output_verbose_link_cmd`; do
17187     case $p in
17188
17189     -L* | -R* | -l*)
17190        # Some compilers place space between "-{L,R}" and the path.
17191        # Remove the space.
17192        if test $p = "-L" \
17193           || test $p = "-R"; then
17194          prev=$p
17195          continue
17196        else
17197          prev=
17198        fi
17199
17200        if test "$pre_test_object_deps_done" = no; then
17201          case $p in
17202          -L* | -R*)
17203            # Internal compiler library paths should come after those
17204            # provided the user.  The postdeps already come after the
17205            # user supplied libs so there is no need to process them.
17206            if test -z "$compiler_lib_search_path_CXX"; then
17207              compiler_lib_search_path_CXX="${prev}${p}"
17208            else
17209              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17210            fi
17211            ;;
17212          # The "-l" case would never come before the object being
17213          # linked, so don't bother handling this case.
17214          esac
17215        else
17216          if test -z "$postdeps_CXX"; then
17217            postdeps_CXX="${prev}${p}"
17218          else
17219            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17220          fi
17221        fi
17222        ;;
17223
17224     *.$objext)
17225        # This assumes that the test object file only shows up
17226        # once in the compiler output.
17227        if test "$p" = "conftest.$objext"; then
17228          pre_test_object_deps_done=yes
17229          continue
17230        fi
17231
17232        if test "$pre_test_object_deps_done" = no; then
17233          if test -z "$predep_objects_CXX"; then
17234            predep_objects_CXX="$p"
17235          else
17236            predep_objects_CXX="$predep_objects_CXX $p"
17237          fi
17238        else
17239          if test -z "$postdep_objects_CXX"; then
17240            postdep_objects_CXX="$p"
17241          else
17242            postdep_objects_CXX="$postdep_objects_CXX $p"
17243          fi
17244        fi
17245        ;;
17246
17247     *) ;; # Ignore the rest.
17248
17249     esac
17250   done
17251
17252   # Clean up.
17253   rm -f a.out a.exe
17254 else
17255   echo "libtool.m4: error: problem compiling CXX test program"
17256 fi
17257
17258 $rm -f confest.$objext
17259
17260 case " $postdeps_CXX " in
17261 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17262 esac
17263
17264 lt_prog_compiler_wl_CXX=
17265 lt_prog_compiler_pic_CXX=
17266 lt_prog_compiler_static_CXX=
17267
17268 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17269 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17270
17271   # C++ specific cases for pic, static, wl, etc.
17272   if test "$GXX" = yes; then
17273     lt_prog_compiler_wl_CXX='-Wl,'
17274     lt_prog_compiler_static_CXX='-static'
17275
17276     case $host_os in
17277     aix*)
17278       # All AIX code is PIC.
17279       if test "$host_cpu" = ia64; then
17280         # AIX 5 now supports IA64 processor
17281         lt_prog_compiler_static_CXX='-Bstatic'
17282       fi
17283       ;;
17284     amigaos*)
17285       # FIXME: we need at least 68020 code to build shared libraries, but
17286       # adding the `-m68020' flag to GCC prevents building anything better,
17287       # like `-m68040'.
17288       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17289       ;;
17290     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17291       # PIC is the default for these OSes.
17292       ;;
17293     mingw* | os2* | pw32*)
17294       # This hack is so that the source file can tell whether it is being
17295       # built for inclusion in a dll (and should export symbols for example).
17296       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17297       ;;
17298     darwin* | rhapsody*)
17299       # PIC is the default on this platform
17300       # Common symbols not allowed in MH_DYLIB files
17301       lt_prog_compiler_pic_CXX='-fno-common'
17302       ;;
17303     *djgpp*)
17304       # DJGPP does not support shared libraries at all
17305       lt_prog_compiler_pic_CXX=
17306       ;;
17307     sysv4*MP*)
17308       if test -d /usr/nec; then
17309         lt_prog_compiler_pic_CXX=-Kconform_pic
17310       fi
17311       ;;
17312     hpux*)
17313       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17314       # not for PA HP-UX.
17315       case "$host_cpu" in
17316       hppa*64*|ia64*)
17317         ;;
17318       *)
17319         lt_prog_compiler_pic_CXX='-fPIC'
17320         ;;
17321       esac
17322       ;;
17323     *)
17324       lt_prog_compiler_pic_CXX='-fPIC'
17325       ;;
17326     esac
17327   else
17328     case $host_os in
17329       aix4* | aix5*)
17330         # All AIX code is PIC.
17331         if test "$host_cpu" = ia64; then
17332           # AIX 5 now supports IA64 processor
17333           lt_prog_compiler_static_CXX='-Bstatic'
17334         else
17335           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17336         fi
17337         ;;
17338       chorus*)
17339         case $cc_basename in
17340         cxch68)
17341           # Green Hills C++ Compiler
17342           # _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"
17343           ;;
17344         esac
17345         ;;
17346       dgux*)
17347         case $cc_basename in
17348           ec++)
17349             lt_prog_compiler_pic_CXX='-KPIC'
17350             ;;
17351           ghcx)
17352             # Green Hills C++ Compiler
17353             lt_prog_compiler_pic_CXX='-pic'
17354             ;;
17355           *)
17356             ;;
17357         esac
17358         ;;
17359       freebsd* | kfreebsd*-gnu)
17360         # FreeBSD uses GNU C++
17361         ;;
17362       hpux9* | hpux10* | hpux11*)
17363         case $cc_basename in
17364           CC)
17365             lt_prog_compiler_wl_CXX='-Wl,'
17366             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17367             if test "$host_cpu" != ia64; then
17368               lt_prog_compiler_pic_CXX='+Z'
17369             fi
17370             ;;
17371           aCC)
17372             lt_prog_compiler_wl_CXX='-Wl,'
17373             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17374             case "$host_cpu" in
17375             hppa*64*|ia64*)
17376               # +Z the default
17377               ;;
17378             *)
17379               lt_prog_compiler_pic_CXX='+Z'
17380               ;;
17381             esac
17382             ;;
17383           *)
17384             ;;
17385         esac
17386         ;;
17387       irix5* | irix6* | nonstopux*)
17388         case $cc_basename in
17389           CC)
17390             lt_prog_compiler_wl_CXX='-Wl,'
17391             lt_prog_compiler_static_CXX='-non_shared'
17392             # CC pic flag -KPIC is the default.
17393             ;;
17394           *)
17395             ;;
17396         esac
17397         ;;
17398       linux*)
17399         case $cc_basename in
17400           KCC)
17401             # KAI C++ Compiler
17402             lt_prog_compiler_wl_CXX='--backend -Wl,'
17403             lt_prog_compiler_pic_CXX='-fPIC'
17404             ;;
17405           icpc)
17406             # Intel C++
17407             lt_prog_compiler_wl_CXX='-Wl,'
17408             lt_prog_compiler_pic_CXX='-KPIC'
17409             lt_prog_compiler_static_CXX='-static'
17410             ;;
17411           cxx)
17412             # Compaq C++
17413             # Make sure the PIC flag is empty.  It appears that all Alpha
17414             # Linux and Compaq Tru64 Unix objects are PIC.
17415             lt_prog_compiler_pic_CXX=
17416             lt_prog_compiler_static_CXX='-non_shared'
17417             ;;
17418           *)
17419             ;;
17420         esac
17421         ;;
17422       lynxos*)
17423         ;;
17424       m88k*)
17425         ;;
17426       mvs*)
17427         case $cc_basename in
17428           cxx)
17429             lt_prog_compiler_pic_CXX='-W c,exportall'
17430             ;;
17431           *)
17432             ;;
17433         esac
17434         ;;
17435       netbsd*)
17436         ;;
17437       osf3* | osf4* | osf5*)
17438         case $cc_basename in
17439           KCC)
17440             lt_prog_compiler_wl_CXX='--backend -Wl,'
17441             ;;
17442           RCC)
17443             # Rational C++ 2.4.1
17444             lt_prog_compiler_pic_CXX='-pic'
17445             ;;
17446           cxx)
17447             # Digital/Compaq C++
17448             lt_prog_compiler_wl_CXX='-Wl,'
17449             # Make sure the PIC flag is empty.  It appears that all Alpha
17450             # Linux and Compaq Tru64 Unix objects are PIC.
17451             lt_prog_compiler_pic_CXX=
17452             lt_prog_compiler_static_CXX='-non_shared'
17453             ;;
17454           *)
17455             ;;
17456         esac
17457         ;;
17458       psos*)
17459         ;;
17460       sco*)
17461         case $cc_basename in
17462           CC)
17463             lt_prog_compiler_pic_CXX='-fPIC'
17464             ;;
17465           *)
17466             ;;
17467         esac
17468         ;;
17469       solaris*)
17470         case $cc_basename in
17471           CC)
17472             # Sun C++ 4.2, 5.x and Centerline C++
17473             lt_prog_compiler_pic_CXX='-KPIC'
17474             lt_prog_compiler_static_CXX='-Bstatic'
17475             lt_prog_compiler_wl_CXX='-Qoption ld '
17476             ;;
17477           gcx)
17478             # Green Hills C++ Compiler
17479             lt_prog_compiler_pic_CXX='-PIC'
17480             ;;
17481           *)
17482             ;;
17483         esac
17484         ;;
17485       sunos4*)
17486         case $cc_basename in
17487           CC)
17488             # Sun C++ 4.x
17489             lt_prog_compiler_pic_CXX='-pic'
17490             lt_prog_compiler_static_CXX='-Bstatic'
17491             ;;
17492           lcc)
17493             # Lucid
17494             lt_prog_compiler_pic_CXX='-pic'
17495             ;;
17496           *)
17497             ;;
17498         esac
17499         ;;
17500       tandem*)
17501         case $cc_basename in
17502           NCC)
17503             # NonStop-UX NCC 3.20
17504             lt_prog_compiler_pic_CXX='-KPIC'
17505             ;;
17506           *)
17507             ;;
17508         esac
17509         ;;
17510       unixware*)
17511         ;;
17512       vxworks*)
17513         ;;
17514       *)
17515         lt_prog_compiler_can_build_shared_CXX=no
17516         ;;
17517     esac
17518   fi
17519
17520 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17521 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17522
17523 #
17524 # Check to make sure the PIC flag actually works.
17525 #
17526 if test -n "$lt_prog_compiler_pic_CXX"; then
17527
17528 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17529 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17530 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17531   echo $ECHO_N "(cached) $ECHO_C" >&6
17532 else
17533   lt_prog_compiler_pic_works_CXX=no
17534   ac_outfile=conftest.$ac_objext
17535    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17536    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17537    # Insert the option either (1) after the last *FLAGS variable, or
17538    # (2) before a word containing "conftest.", or (3) at the end.
17539    # Note that $ac_compile itself does not contain backslashes and begins
17540    # with a dollar sign (not a hyphen), so the echo should work correctly.
17541    # The option is referenced via a variable to avoid confusing sed.
17542    lt_compile=`echo "$ac_compile" | $SED \
17543    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17544    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17545    -e 's:$: $lt_compiler_flag:'`
17546    (eval echo "\"\$as_me:17546: $lt_compile\"" >&5)
17547    (eval "$lt_compile" 2>conftest.err)
17548    ac_status=$?
17549    cat conftest.err >&5
17550    echo "$as_me:17550: \$? = $ac_status" >&5
17551    if (exit $ac_status) && test -s "$ac_outfile"; then
17552      # The compiler can only warn and ignore the option if not recognized
17553      # So say no if there are warnings
17554      if test ! -s conftest.err; then
17555        lt_prog_compiler_pic_works_CXX=yes
17556      fi
17557    fi
17558    $rm conftest*
17559
17560 fi
17561 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17562 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17563
17564 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17565     case $lt_prog_compiler_pic_CXX in
17566      "" | " "*) ;;
17567      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17568      esac
17569 else
17570     lt_prog_compiler_pic_CXX=
17571      lt_prog_compiler_can_build_shared_CXX=no
17572 fi
17573
17574 fi
17575 case "$host_os" in
17576   # For platforms which do not support PIC, -DPIC is meaningless:
17577   *djgpp*)
17578     lt_prog_compiler_pic_CXX=
17579     ;;
17580   *)
17581     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17582     ;;
17583 esac
17584
17585 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17586 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17587 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17588   echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590   lt_cv_prog_compiler_c_o_CXX=no
17591    $rm -r conftest 2>/dev/null
17592    mkdir conftest
17593    cd conftest
17594    mkdir out
17595    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17596
17597    lt_compiler_flag="-o out/conftest2.$ac_objext"
17598    # Insert the option either (1) after the last *FLAGS variable, or
17599    # (2) before a word containing "conftest.", or (3) at the end.
17600    # Note that $ac_compile itself does not contain backslashes and begins
17601    # with a dollar sign (not a hyphen), so the echo should work correctly.
17602    lt_compile=`echo "$ac_compile" | $SED \
17603    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17604    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17605    -e 's:$: $lt_compiler_flag:'`
17606    (eval echo "\"\$as_me:17606: $lt_compile\"" >&5)
17607    (eval "$lt_compile" 2>out/conftest.err)
17608    ac_status=$?
17609    cat out/conftest.err >&5
17610    echo "$as_me:17610: \$? = $ac_status" >&5
17611    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17612    then
17613      # The compiler can only warn and ignore the option if not recognized
17614      # So say no if there are warnings
17615      if test ! -s out/conftest.err; then
17616        lt_cv_prog_compiler_c_o_CXX=yes
17617      fi
17618    fi
17619    chmod u+w .
17620    $rm conftest*
17621    # SGI C++ compiler will create directory out/ii_files/ for
17622    # template instantiation
17623    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17624    $rm out/* && rmdir out
17625    cd ..
17626    rmdir conftest
17627    $rm conftest*
17628
17629 fi
17630 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17631 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17632
17633
17634 hard_links="nottested"
17635 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17636   # do not overwrite the value of need_locks provided by the user
17637   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17638 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17639   hard_links=yes
17640   $rm conftest*
17641   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17642   touch conftest.a
17643   ln conftest.a conftest.b 2>&5 || hard_links=no
17644   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17645   echo "$as_me:$LINENO: result: $hard_links" >&5
17646 echo "${ECHO_T}$hard_links" >&6
17647   if test "$hard_links" = no; then
17648     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17649 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17650     need_locks=warn
17651   fi
17652 else
17653   need_locks=no
17654 fi
17655
17656 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17657 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17658
17659   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17660   case $host_os in
17661   aix4* | aix5*)
17662     # If we're using GNU nm, then we don't want the "-C" option.
17663     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17664     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17665       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'
17666     else
17667       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'
17668     fi
17669     ;;
17670   pw32*)
17671     export_symbols_cmds_CXX="$ltdll_cmds"
17672   ;;
17673   cygwin* | mingw*)
17674     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17675   ;;
17676   *)
17677     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17678   ;;
17679   esac
17680
17681 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17682 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17683 test "$ld_shlibs_CXX" = no && can_build_shared=no
17684
17685 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17686 if test "$GCC" = yes; then
17687   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17688 fi
17689
17690 #
17691 # Do we need to explicitly link libc?
17692 #
17693 case "x$archive_cmds_need_lc_CXX" in
17694 x|xyes)
17695   # Assume -lc should be added
17696   archive_cmds_need_lc_CXX=yes
17697
17698   if test "$enable_shared" = yes && test "$GCC" = yes; then
17699     case $archive_cmds_CXX in
17700     *'~'*)
17701       # FIXME: we may have to deal with multi-command sequences.
17702       ;;
17703     '$CC '*)
17704       # Test whether the compiler implicitly links with -lc since on some
17705       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17706       # to ld, don't add -lc before -lgcc.
17707       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17708 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17709       $rm conftest*
17710       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17711
17712       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17713   (eval $ac_compile) 2>&5
17714   ac_status=$?
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); } 2>conftest.err; then
17717         soname=conftest
17718         lib=conftest
17719         libobjs=conftest.$ac_objext
17720         deplibs=
17721         wl=$lt_prog_compiler_wl_CXX
17722         compiler_flags=-v
17723         linker_flags=-v
17724         verstring=
17725         output_objdir=.
17726         libname=conftest
17727         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17728         allow_undefined_flag_CXX=
17729         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17730   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17731   ac_status=$?
17732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733   (exit $ac_status); }
17734         then
17735           archive_cmds_need_lc_CXX=no
17736         else
17737           archive_cmds_need_lc_CXX=yes
17738         fi
17739         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17740       else
17741         cat conftest.err 1>&5
17742       fi
17743       $rm conftest*
17744       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17745 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17746       ;;
17747     esac
17748   fi
17749   ;;
17750 esac
17751
17752 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17753 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17754 library_names_spec=
17755 libname_spec='lib$name'
17756 soname_spec=
17757 shrext_cmds=".so"
17758 postinstall_cmds=
17759 postuninstall_cmds=
17760 finish_cmds=
17761 finish_eval=
17762 shlibpath_var=
17763 shlibpath_overrides_runpath=unknown
17764 version_type=none
17765 dynamic_linker="$host_os ld.so"
17766 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17767 if test "$GCC" = yes; then
17768   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17769   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17770     # if the path contains ";" then we assume it to be the separator
17771     # otherwise default to the standard path separator (i.e. ":") - it is
17772     # assumed that no part of a normal pathname contains ";" but that should
17773     # okay in the real world where ";" in dirpaths is itself problematic.
17774     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17775   else
17776     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17777   fi
17778 else
17779   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17780 fi
17781 need_lib_prefix=unknown
17782 hardcode_into_libs=no
17783
17784 # when you set need_version to no, make sure it does not cause -set_version
17785 # flags to be left without arguments
17786 need_version=unknown
17787
17788 case $host_os in
17789 aix3*)
17790   version_type=linux
17791   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17792   shlibpath_var=LIBPATH
17793
17794   # AIX 3 has no versioning support, so we append a major version to the name.
17795   soname_spec='${libname}${release}${shared_ext}$major'
17796   ;;
17797
17798 aix4* | aix5*)
17799   version_type=linux
17800   need_lib_prefix=no
17801   need_version=no
17802   hardcode_into_libs=yes
17803   if test "$host_cpu" = ia64; then
17804     # AIX 5 supports IA64
17805     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17806     shlibpath_var=LD_LIBRARY_PATH
17807   else
17808     # With GCC up to 2.95.x, collect2 would create an import file
17809     # for dependence libraries.  The import file would start with
17810     # the line `#! .'.  This would cause the generated library to
17811     # depend on `.', always an invalid library.  This was fixed in
17812     # development snapshots of GCC prior to 3.0.
17813     case $host_os in
17814       aix4 | aix4.[01] | aix4.[01].*)
17815       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17816            echo ' yes '
17817            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17818         :
17819       else
17820         can_build_shared=no
17821       fi
17822       ;;
17823     esac
17824     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17825     # soname into executable. Probably we can add versioning support to
17826     # collect2, so additional links can be useful in future.
17827     if test "$aix_use_runtimelinking" = yes; then
17828       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17829       # instead of lib<name>.a to let people know that these are not
17830       # typical AIX shared libraries.
17831       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832     else
17833       # We preserve .a as extension for shared libraries through AIX4.2
17834       # and later when we are not doing run time linking.
17835       library_names_spec='${libname}${release}.a $libname.a'
17836       soname_spec='${libname}${release}${shared_ext}$major'
17837     fi
17838     shlibpath_var=LIBPATH
17839   fi
17840   ;;
17841
17842 amigaos*)
17843   library_names_spec='$libname.ixlibrary $libname.a'
17844   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17845   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'
17846   ;;
17847
17848 beos*)
17849   library_names_spec='${libname}${shared_ext}'
17850   dynamic_linker="$host_os ld.so"
17851   shlibpath_var=LIBRARY_PATH
17852   ;;
17853
17854 bsdi4*)
17855   version_type=linux
17856   need_version=no
17857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17858   soname_spec='${libname}${release}${shared_ext}$major'
17859   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17860   shlibpath_var=LD_LIBRARY_PATH
17861   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17862   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17863   # the default ld.so.conf also contains /usr/contrib/lib and
17864   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17865   # libtool to hard-code these into programs
17866   ;;
17867
17868 cygwin* | mingw* | pw32*)
17869   version_type=windows
17870   shrext_cmds=".dll"
17871   need_version=no
17872   need_lib_prefix=no
17873
17874   case $GCC,$host_os in
17875   yes,cygwin* | yes,mingw* | yes,pw32*)
17876     library_names_spec='$libname.dll.a'
17877     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17878     postinstall_cmds='base_file=`basename \${file}`~
17879       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17880       dldir=$destdir/`dirname \$dlpath`~
17881       test -d \$dldir || mkdir -p \$dldir~
17882       $install_prog $dir/$dlname \$dldir/$dlname'
17883     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17884       dlpath=$dir/\$dldll~
17885        $rm \$dlpath'
17886     shlibpath_overrides_runpath=yes
17887
17888     case $host_os in
17889     cygwin*)
17890       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17891       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17892       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17893       ;;
17894     mingw*)
17895       # MinGW DLLs use traditional 'lib' prefix
17896       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17897       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17898       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17899         # It is most probably a Windows format PATH printed by
17900         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17901         # path with ; separators, and with drive letters. We can handle the
17902         # drive letters (cygwin fileutils understands them), so leave them,
17903         # especially as we might pass files found there to a mingw objdump,
17904         # which wouldn't understand a cygwinified path. Ahh.
17905         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17906       else
17907         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17908       fi
17909       ;;
17910     pw32*)
17911       # pw32 DLLs use 'pw' prefix rather than 'lib'
17912       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17913       ;;
17914     esac
17915     ;;
17916
17917   *)
17918     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17919     ;;
17920   esac
17921   dynamic_linker='Win32 ld.exe'
17922   # FIXME: first we should search . and the directory the executable is in
17923   shlibpath_var=PATH
17924   ;;
17925
17926 darwin* | rhapsody*)
17927   dynamic_linker="$host_os dyld"
17928   version_type=darwin
17929   need_lib_prefix=no
17930   need_version=no
17931   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17932   soname_spec='${libname}${release}${major}$shared_ext'
17933   shlibpath_overrides_runpath=yes
17934   shlibpath_var=DYLD_LIBRARY_PATH
17935   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17936   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17937   if test "$GCC" = yes; then
17938     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"`
17939   else
17940     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17941   fi
17942   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17943   ;;
17944
17945 dgux*)
17946   version_type=linux
17947   need_lib_prefix=no
17948   need_version=no
17949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17950   soname_spec='${libname}${release}${shared_ext}$major'
17951   shlibpath_var=LD_LIBRARY_PATH
17952   ;;
17953
17954 freebsd1*)
17955   dynamic_linker=no
17956   ;;
17957
17958 kfreebsd*-gnu)
17959   version_type=linux
17960   need_lib_prefix=no
17961   need_version=no
17962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17963   soname_spec='${libname}${release}${shared_ext}$major'
17964   shlibpath_var=LD_LIBRARY_PATH
17965   shlibpath_overrides_runpath=no
17966   hardcode_into_libs=yes
17967   dynamic_linker='GNU ld.so'
17968   ;;
17969
17970 freebsd*)
17971   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17972   version_type=freebsd-$objformat
17973   case $version_type in
17974     freebsd-elf*)
17975       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17976       need_version=no
17977       need_lib_prefix=no
17978       ;;
17979     freebsd-*)
17980       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17981       need_version=yes
17982       ;;
17983   esac
17984   shlibpath_var=LD_LIBRARY_PATH
17985   case $host_os in
17986   freebsd2*)
17987     shlibpath_overrides_runpath=yes
17988     ;;
17989   freebsd3.01* | freebsdelf3.01*)
17990     shlibpath_overrides_runpath=yes
17991     hardcode_into_libs=yes
17992     ;;
17993   *) # from 3.2 on
17994     shlibpath_overrides_runpath=no
17995     hardcode_into_libs=yes
17996     ;;
17997   esac
17998   ;;
17999
18000 gnu*)
18001   version_type=linux
18002   need_lib_prefix=no
18003   need_version=no
18004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18005   soname_spec='${libname}${release}${shared_ext}$major'
18006   shlibpath_var=LD_LIBRARY_PATH
18007   hardcode_into_libs=yes
18008   ;;
18009
18010 hpux9* | hpux10* | hpux11*)
18011   # Give a soname corresponding to the major version so that dld.sl refuses to
18012   # link against other versions.
18013   version_type=sunos
18014   need_lib_prefix=no
18015   need_version=no
18016   case "$host_cpu" in
18017   ia64*)
18018     shrext_cmds='.so'
18019     hardcode_into_libs=yes
18020     dynamic_linker="$host_os dld.so"
18021     shlibpath_var=LD_LIBRARY_PATH
18022     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18024     soname_spec='${libname}${release}${shared_ext}$major'
18025     if test "X$HPUX_IA64_MODE" = X32; then
18026       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18027     else
18028       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18029     fi
18030     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18031     ;;
18032    hppa*64*)
18033      shrext_cmds='.sl'
18034      hardcode_into_libs=yes
18035      dynamic_linker="$host_os dld.sl"
18036      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18037      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18038      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18039      soname_spec='${libname}${release}${shared_ext}$major'
18040      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18041      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18042      ;;
18043    *)
18044     shrext_cmds='.sl'
18045     dynamic_linker="$host_os dld.sl"
18046     shlibpath_var=SHLIB_PATH
18047     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18049     soname_spec='${libname}${release}${shared_ext}$major'
18050     ;;
18051   esac
18052   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18053   postinstall_cmds='chmod 555 $lib'
18054   ;;
18055
18056 irix5* | irix6* | nonstopux*)
18057   case $host_os in
18058     nonstopux*) version_type=nonstopux ;;
18059     *)
18060         if test "$lt_cv_prog_gnu_ld" = yes; then
18061                 version_type=linux
18062         else
18063                 version_type=irix
18064         fi ;;
18065   esac
18066   need_lib_prefix=no
18067   need_version=no
18068   soname_spec='${libname}${release}${shared_ext}$major'
18069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18070   case $host_os in
18071   irix5* | nonstopux*)
18072     libsuff= shlibsuff=
18073     ;;
18074   *)
18075     case $LD in # libtool.m4 will add one of these switches to LD
18076     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18077       libsuff= shlibsuff= libmagic=32-bit;;
18078     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18079       libsuff=32 shlibsuff=N32 libmagic=N32;;
18080     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18081       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18082     *) libsuff= shlibsuff= libmagic=never-match;;
18083     esac
18084     ;;
18085   esac
18086   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18087   shlibpath_overrides_runpath=no
18088   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18089   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18090   hardcode_into_libs=yes
18091   ;;
18092
18093 # No shared lib support for Linux oldld, aout, or coff.
18094 linux*oldld* | linux*aout* | linux*coff*)
18095   dynamic_linker=no
18096   ;;
18097
18098 # This must be Linux ELF.
18099 linux*)
18100   version_type=linux
18101   need_lib_prefix=no
18102   need_version=no
18103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18104   soname_spec='${libname}${release}${shared_ext}$major'
18105   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18106   shlibpath_var=LD_LIBRARY_PATH
18107   shlibpath_overrides_runpath=no
18108   # This implies no fast_install, which is unacceptable.
18109   # Some rework will be needed to allow for fast_install
18110   # before this can be enabled.
18111   hardcode_into_libs=yes
18112
18113   # find out which ABI we are using
18114   libsuff=
18115   case "$host_cpu" in
18116   x86_64*|s390x*|powerpc64*)
18117     echo '#line 18117 "configure"' > conftest.$ac_ext
18118     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18119   (eval $ac_compile) 2>&5
18120   ac_status=$?
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); }; then
18123       case `/usr/bin/file conftest.$ac_objext` in
18124       *64-bit*)
18125         libsuff=64
18126         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18127         ;;
18128       esac
18129     fi
18130     rm -rf conftest*
18131     ;;
18132   esac
18133
18134   # Append ld.so.conf contents to the search path
18135   if test -f /etc/ld.so.conf; then
18136     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18137     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18138   fi
18139
18140   # We used to test for /lib/ld.so.1 and disable shared libraries on
18141   # powerpc, because MkLinux only supported shared libraries with the
18142   # GNU dynamic linker.  Since this was broken with cross compilers,
18143   # most powerpc-linux boxes support dynamic linking these days and
18144   # people can always --disable-shared, the test was removed, and we
18145   # assume the GNU/Linux dynamic linker is in use.
18146   dynamic_linker='GNU/Linux ld.so'
18147   ;;
18148
18149 knetbsd*-gnu)
18150   version_type=linux
18151   need_lib_prefix=no
18152   need_version=no
18153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18154   soname_spec='${libname}${release}${shared_ext}$major'
18155   shlibpath_var=LD_LIBRARY_PATH
18156   shlibpath_overrides_runpath=no
18157   hardcode_into_libs=yes
18158   dynamic_linker='GNU ld.so'
18159   ;;
18160
18161 netbsd*)
18162   version_type=sunos
18163   need_lib_prefix=no
18164   need_version=no
18165   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18166     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18167     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18168     dynamic_linker='NetBSD (a.out) ld.so'
18169   else
18170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18171     soname_spec='${libname}${release}${shared_ext}$major'
18172     dynamic_linker='NetBSD ld.elf_so'
18173   fi
18174   shlibpath_var=LD_LIBRARY_PATH
18175   shlibpath_overrides_runpath=yes
18176   hardcode_into_libs=yes
18177   ;;
18178
18179 newsos6)
18180   version_type=linux
18181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182   shlibpath_var=LD_LIBRARY_PATH
18183   shlibpath_overrides_runpath=yes
18184   ;;
18185
18186 nto-qnx*)
18187   version_type=linux
18188   need_lib_prefix=no
18189   need_version=no
18190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18191   soname_spec='${libname}${release}${shared_ext}$major'
18192   shlibpath_var=LD_LIBRARY_PATH
18193   shlibpath_overrides_runpath=yes
18194   ;;
18195
18196 openbsd*)
18197   version_type=sunos
18198   need_lib_prefix=no
18199   need_version=yes
18200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18201   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18202   shlibpath_var=LD_LIBRARY_PATH
18203   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18204     case $host_os in
18205       openbsd2.[89] | openbsd2.[89].*)
18206         shlibpath_overrides_runpath=no
18207         ;;
18208       *)
18209         shlibpath_overrides_runpath=yes
18210         ;;
18211       esac
18212   else
18213     shlibpath_overrides_runpath=yes
18214   fi
18215   ;;
18216
18217 os2*)
18218   libname_spec='$name'
18219   shrext_cmds=".dll"
18220   need_lib_prefix=no
18221   library_names_spec='$libname${shared_ext} $libname.a'
18222   dynamic_linker='OS/2 ld.exe'
18223   shlibpath_var=LIBPATH
18224   ;;
18225
18226 osf3* | osf4* | osf5*)
18227   version_type=osf
18228   need_lib_prefix=no
18229   need_version=no
18230   soname_spec='${libname}${release}${shared_ext}$major'
18231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18232   shlibpath_var=LD_LIBRARY_PATH
18233   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18234   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18235   ;;
18236
18237 sco3.2v5*)
18238   version_type=osf
18239   soname_spec='${libname}${release}${shared_ext}$major'
18240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18241   shlibpath_var=LD_LIBRARY_PATH
18242   ;;
18243
18244 solaris*)
18245   version_type=linux
18246   need_lib_prefix=no
18247   need_version=no
18248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18249   soname_spec='${libname}${release}${shared_ext}$major'
18250   shlibpath_var=LD_LIBRARY_PATH
18251   shlibpath_overrides_runpath=yes
18252   hardcode_into_libs=yes
18253   # ldd complains unless libraries are executable
18254   postinstall_cmds='chmod +x $lib'
18255   ;;
18256
18257 sunos4*)
18258   version_type=sunos
18259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18260   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18261   shlibpath_var=LD_LIBRARY_PATH
18262   shlibpath_overrides_runpath=yes
18263   if test "$with_gnu_ld" = yes; then
18264     need_lib_prefix=no
18265   fi
18266   need_version=yes
18267   ;;
18268
18269 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18270   version_type=linux
18271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272   soname_spec='${libname}${release}${shared_ext}$major'
18273   shlibpath_var=LD_LIBRARY_PATH
18274   case $host_vendor in
18275     sni)
18276       shlibpath_overrides_runpath=no
18277       need_lib_prefix=no
18278       export_dynamic_flag_spec='${wl}-Blargedynsym'
18279       runpath_var=LD_RUN_PATH
18280       ;;
18281     siemens)
18282       need_lib_prefix=no
18283       ;;
18284     motorola)
18285       need_lib_prefix=no
18286       need_version=no
18287       shlibpath_overrides_runpath=no
18288       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18289       ;;
18290   esac
18291   ;;
18292
18293 sysv4*MP*)
18294   if test -d /usr/nec ;then
18295     version_type=linux
18296     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18297     soname_spec='$libname${shared_ext}.$major'
18298     shlibpath_var=LD_LIBRARY_PATH
18299   fi
18300   ;;
18301
18302 uts4*)
18303   version_type=linux
18304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305   soname_spec='${libname}${release}${shared_ext}$major'
18306   shlibpath_var=LD_LIBRARY_PATH
18307   ;;
18308
18309 *)
18310   dynamic_linker=no
18311   ;;
18312 esac
18313 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18314 echo "${ECHO_T}$dynamic_linker" >&6
18315 test "$dynamic_linker" = no && can_build_shared=no
18316
18317 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18318 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18319 hardcode_action_CXX=
18320 if test -n "$hardcode_libdir_flag_spec_CXX" || \
18321    test -n "$runpath_var CXX" || \
18322    test "X$hardcode_automatic_CXX"="Xyes" ; then
18323
18324   # We can hardcode non-existant directories.
18325   if test "$hardcode_direct_CXX" != no &&
18326      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18327      # have to relink, otherwise we might link with an installed library
18328      # when we should be linking with a yet-to-be-installed one
18329      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18330      test "$hardcode_minus_L_CXX" != no; then
18331     # Linking always hardcodes the temporary library directory.
18332     hardcode_action_CXX=relink
18333   else
18334     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18335     hardcode_action_CXX=immediate
18336   fi
18337 else
18338   # We cannot hardcode anything, or else we can only hardcode existing
18339   # directories.
18340   hardcode_action_CXX=unsupported
18341 fi
18342 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18343 echo "${ECHO_T}$hardcode_action_CXX" >&6
18344
18345 if test "$hardcode_action_CXX" = relink; then
18346   # Fast installation is not supported
18347   enable_fast_install=no
18348 elif test "$shlibpath_overrides_runpath" = yes ||
18349      test "$enable_shared" = no; then
18350   # Fast installation is not necessary
18351   enable_fast_install=needless
18352 fi
18353
18354 striplib=
18355 old_striplib=
18356 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18357 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18358 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18359   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18360   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18361   echo "$as_me:$LINENO: result: yes" >&5
18362 echo "${ECHO_T}yes" >&6
18363 else
18364 # FIXME - insert some real tests, host_os isn't really good enough
18365   case $host_os in
18366    darwin*)
18367        if test -n "$STRIP" ; then
18368          striplib="$STRIP -x"
18369          echo "$as_me:$LINENO: result: yes" >&5
18370 echo "${ECHO_T}yes" >&6
18371        else
18372   echo "$as_me:$LINENO: result: no" >&5
18373 echo "${ECHO_T}no" >&6
18374 fi
18375        ;;
18376    *)
18377   echo "$as_me:$LINENO: result: no" >&5
18378 echo "${ECHO_T}no" >&6
18379     ;;
18380   esac
18381 fi
18382
18383 if test "x$enable_dlopen" != xyes; then
18384   enable_dlopen=unknown
18385   enable_dlopen_self=unknown
18386   enable_dlopen_self_static=unknown
18387 else
18388   lt_cv_dlopen=no
18389   lt_cv_dlopen_libs=
18390
18391   case $host_os in
18392   beos*)
18393     lt_cv_dlopen="load_add_on"
18394     lt_cv_dlopen_libs=
18395     lt_cv_dlopen_self=yes
18396     ;;
18397
18398   mingw* | pw32*)
18399     lt_cv_dlopen="LoadLibrary"
18400     lt_cv_dlopen_libs=
18401    ;;
18402
18403   cygwin*)
18404     lt_cv_dlopen="dlopen"
18405     lt_cv_dlopen_libs=
18406    ;;
18407
18408   darwin*)
18409   # if libdl is installed we need to link against it
18410     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18411 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18412 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18413   echo $ECHO_N "(cached) $ECHO_C" >&6
18414 else
18415   ac_check_lib_save_LIBS=$LIBS
18416 LIBS="-ldl  $LIBS"
18417 cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h.  */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h.  */
18423
18424 /* Override any gcc2 internal prototype to avoid an error.  */
18425 #ifdef __cplusplus
18426 extern "C"
18427 #endif
18428 /* We use char because int might match the return type of a gcc2
18429    builtin and then its argument prototype would still apply.  */
18430 char dlopen ();
18431 int
18432 main ()
18433 {
18434 dlopen ();
18435   ;
18436   return 0;
18437 }
18438 _ACEOF
18439 rm -f conftest.$ac_objext conftest$ac_exeext
18440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18441   (eval $ac_link) 2>conftest.er1
18442   ac_status=$?
18443   grep -v '^ *+' conftest.er1 >conftest.err
18444   rm -f conftest.er1
18445   cat conftest.err >&5
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); } &&
18448          { ac_try='test -z "$ac_cxx_werror_flag"
18449                          || test ! -s conftest.err'
18450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451   (eval $ac_try) 2>&5
18452   ac_status=$?
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); }; } &&
18455          { ac_try='test -s conftest$ac_exeext'
18456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457   (eval $ac_try) 2>&5
18458   ac_status=$?
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); }; }; then
18461   ac_cv_lib_dl_dlopen=yes
18462 else
18463   echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18465
18466 ac_cv_lib_dl_dlopen=no
18467 fi
18468 rm -f conftest.err conftest.$ac_objext \
18469       conftest$ac_exeext conftest.$ac_ext
18470 LIBS=$ac_check_lib_save_LIBS
18471 fi
18472 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18473 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18474 if test $ac_cv_lib_dl_dlopen = yes; then
18475   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18476 else
18477
18478     lt_cv_dlopen="dyld"
18479     lt_cv_dlopen_libs=
18480     lt_cv_dlopen_self=yes
18481
18482 fi
18483
18484    ;;
18485
18486   *)
18487     echo "$as_me:$LINENO: checking for shl_load" >&5
18488 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18489 if test "${ac_cv_func_shl_load+set}" = set; then
18490   echo $ECHO_N "(cached) $ECHO_C" >&6
18491 else
18492   cat >conftest.$ac_ext <<_ACEOF
18493 /* confdefs.h.  */
18494 _ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h.  */
18498 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18500 #define shl_load innocuous_shl_load
18501
18502 /* System header to define __stub macros and hopefully few prototypes,
18503     which can conflict with char shl_load (); below.
18504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18505     <limits.h> exists even on freestanding compilers.  */
18506
18507 #ifdef __STDC__
18508 # include <limits.h>
18509 #else
18510 # include <assert.h>
18511 #endif
18512
18513 #undef shl_load
18514
18515 /* Override any gcc2 internal prototype to avoid an error.  */
18516 #ifdef __cplusplus
18517 extern "C"
18518 {
18519 #endif
18520 /* We use char because int might match the return type of a gcc2
18521    builtin and then its argument prototype would still apply.  */
18522 char shl_load ();
18523 /* The GNU C library defines this for functions which it implements
18524     to always fail with ENOSYS.  Some functions are actually named
18525     something starting with __ and the normal name is an alias.  */
18526 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18527 choke me
18528 #else
18529 char (*f) () = shl_load;
18530 #endif
18531 #ifdef __cplusplus
18532 }
18533 #endif
18534
18535 int
18536 main ()
18537 {
18538 return f != shl_load;
18539   ;
18540   return 0;
18541 }
18542 _ACEOF
18543 rm -f conftest.$ac_objext conftest$ac_exeext
18544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18545   (eval $ac_link) 2>conftest.er1
18546   ac_status=$?
18547   grep -v '^ *+' conftest.er1 >conftest.err
18548   rm -f conftest.er1
18549   cat conftest.err >&5
18550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551   (exit $ac_status); } &&
18552          { ac_try='test -z "$ac_cxx_werror_flag"
18553                          || test ! -s conftest.err'
18554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555   (eval $ac_try) 2>&5
18556   ac_status=$?
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); }; } &&
18559          { ac_try='test -s conftest$ac_exeext'
18560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561   (eval $ac_try) 2>&5
18562   ac_status=$?
18563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564   (exit $ac_status); }; }; then
18565   ac_cv_func_shl_load=yes
18566 else
18567   echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18569
18570 ac_cv_func_shl_load=no
18571 fi
18572 rm -f conftest.err conftest.$ac_objext \
18573       conftest$ac_exeext conftest.$ac_ext
18574 fi
18575 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18576 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18577 if test $ac_cv_func_shl_load = yes; then
18578   lt_cv_dlopen="shl_load"
18579 else
18580   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18581 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18582 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18583   echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585   ac_check_lib_save_LIBS=$LIBS
18586 LIBS="-ldld  $LIBS"
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h.  */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h.  */
18593
18594 /* Override any gcc2 internal prototype to avoid an error.  */
18595 #ifdef __cplusplus
18596 extern "C"
18597 #endif
18598 /* We use char because int might match the return type of a gcc2
18599    builtin and then its argument prototype would still apply.  */
18600 char shl_load ();
18601 int
18602 main ()
18603 {
18604 shl_load ();
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18611   (eval $ac_link) 2>conftest.er1
18612   ac_status=$?
18613   grep -v '^ *+' conftest.er1 >conftest.err
18614   rm -f conftest.er1
18615   cat conftest.err >&5
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); } &&
18618          { ac_try='test -z "$ac_cxx_werror_flag"
18619                          || test ! -s conftest.err'
18620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621   (eval $ac_try) 2>&5
18622   ac_status=$?
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); }; } &&
18625          { ac_try='test -s conftest$ac_exeext'
18626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627   (eval $ac_try) 2>&5
18628   ac_status=$?
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); }; }; then
18631   ac_cv_lib_dld_shl_load=yes
18632 else
18633   echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18635
18636 ac_cv_lib_dld_shl_load=no
18637 fi
18638 rm -f conftest.err conftest.$ac_objext \
18639       conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18641 fi
18642 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18643 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18644 if test $ac_cv_lib_dld_shl_load = yes; then
18645   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18646 else
18647   echo "$as_me:$LINENO: checking for dlopen" >&5
18648 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18649 if test "${ac_cv_func_dlopen+set}" = set; then
18650   echo $ECHO_N "(cached) $ECHO_C" >&6
18651 else
18652   cat >conftest.$ac_ext <<_ACEOF
18653 /* confdefs.h.  */
18654 _ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h.  */
18658 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18660 #define dlopen innocuous_dlopen
18661
18662 /* System header to define __stub macros and hopefully few prototypes,
18663     which can conflict with char dlopen (); below.
18664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18665     <limits.h> exists even on freestanding compilers.  */
18666
18667 #ifdef __STDC__
18668 # include <limits.h>
18669 #else
18670 # include <assert.h>
18671 #endif
18672
18673 #undef dlopen
18674
18675 /* Override any gcc2 internal prototype to avoid an error.  */
18676 #ifdef __cplusplus
18677 extern "C"
18678 {
18679 #endif
18680 /* We use char because int might match the return type of a gcc2
18681    builtin and then its argument prototype would still apply.  */
18682 char dlopen ();
18683 /* The GNU C library defines this for functions which it implements
18684     to always fail with ENOSYS.  Some functions are actually named
18685     something starting with __ and the normal name is an alias.  */
18686 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18687 choke me
18688 #else
18689 char (*f) () = dlopen;
18690 #endif
18691 #ifdef __cplusplus
18692 }
18693 #endif
18694
18695 int
18696 main ()
18697 {
18698 return f != dlopen;
18699   ;
18700   return 0;
18701 }
18702 _ACEOF
18703 rm -f conftest.$ac_objext conftest$ac_exeext
18704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18705   (eval $ac_link) 2>conftest.er1
18706   ac_status=$?
18707   grep -v '^ *+' conftest.er1 >conftest.err
18708   rm -f conftest.er1
18709   cat conftest.err >&5
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); } &&
18712          { ac_try='test -z "$ac_cxx_werror_flag"
18713                          || test ! -s conftest.err'
18714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715   (eval $ac_try) 2>&5
18716   ac_status=$?
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); }; } &&
18719          { ac_try='test -s conftest$ac_exeext'
18720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721   (eval $ac_try) 2>&5
18722   ac_status=$?
18723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724   (exit $ac_status); }; }; then
18725   ac_cv_func_dlopen=yes
18726 else
18727   echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18729
18730 ac_cv_func_dlopen=no
18731 fi
18732 rm -f conftest.err conftest.$ac_objext \
18733       conftest$ac_exeext conftest.$ac_ext
18734 fi
18735 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18736 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18737 if test $ac_cv_func_dlopen = yes; then
18738   lt_cv_dlopen="dlopen"
18739 else
18740   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18741 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18742 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18743   echo $ECHO_N "(cached) $ECHO_C" >&6
18744 else
18745   ac_check_lib_save_LIBS=$LIBS
18746 LIBS="-ldl  $LIBS"
18747 cat >conftest.$ac_ext <<_ACEOF
18748 /* confdefs.h.  */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h.  */
18753
18754 /* Override any gcc2 internal prototype to avoid an error.  */
18755 #ifdef __cplusplus
18756 extern "C"
18757 #endif
18758 /* We use char because int might match the return type of a gcc2
18759    builtin and then its argument prototype would still apply.  */
18760 char dlopen ();
18761 int
18762 main ()
18763 {
18764 dlopen ();
18765   ;
18766   return 0;
18767 }
18768 _ACEOF
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18771   (eval $ac_link) 2>conftest.er1
18772   ac_status=$?
18773   grep -v '^ *+' conftest.er1 >conftest.err
18774   rm -f conftest.er1
18775   cat conftest.err >&5
18776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777   (exit $ac_status); } &&
18778          { ac_try='test -z "$ac_cxx_werror_flag"
18779                          || test ! -s conftest.err'
18780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781   (eval $ac_try) 2>&5
18782   ac_status=$?
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); }; } &&
18785          { ac_try='test -s conftest$ac_exeext'
18786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787   (eval $ac_try) 2>&5
18788   ac_status=$?
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); }; }; then
18791   ac_cv_lib_dl_dlopen=yes
18792 else
18793   echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18795
18796 ac_cv_lib_dl_dlopen=no
18797 fi
18798 rm -f conftest.err conftest.$ac_objext \
18799       conftest$ac_exeext conftest.$ac_ext
18800 LIBS=$ac_check_lib_save_LIBS
18801 fi
18802 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18803 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18804 if test $ac_cv_lib_dl_dlopen = yes; then
18805   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18806 else
18807   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18808 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18809 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18810   echo $ECHO_N "(cached) $ECHO_C" >&6
18811 else
18812   ac_check_lib_save_LIBS=$LIBS
18813 LIBS="-lsvld  $LIBS"
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h.  */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h.  */
18820
18821 /* Override any gcc2 internal prototype to avoid an error.  */
18822 #ifdef __cplusplus
18823 extern "C"
18824 #endif
18825 /* We use char because int might match the return type of a gcc2
18826    builtin and then its argument prototype would still apply.  */
18827 char dlopen ();
18828 int
18829 main ()
18830 {
18831 dlopen ();
18832   ;
18833   return 0;
18834 }
18835 _ACEOF
18836 rm -f conftest.$ac_objext conftest$ac_exeext
18837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18838   (eval $ac_link) 2>conftest.er1
18839   ac_status=$?
18840   grep -v '^ *+' conftest.er1 >conftest.err
18841   rm -f conftest.er1
18842   cat conftest.err >&5
18843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844   (exit $ac_status); } &&
18845          { ac_try='test -z "$ac_cxx_werror_flag"
18846                          || test ! -s conftest.err'
18847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848   (eval $ac_try) 2>&5
18849   ac_status=$?
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   (exit $ac_status); }; } &&
18852          { ac_try='test -s conftest$ac_exeext'
18853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854   (eval $ac_try) 2>&5
18855   ac_status=$?
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); }; }; then
18858   ac_cv_lib_svld_dlopen=yes
18859 else
18860   echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 ac_cv_lib_svld_dlopen=no
18864 fi
18865 rm -f conftest.err conftest.$ac_objext \
18866       conftest$ac_exeext conftest.$ac_ext
18867 LIBS=$ac_check_lib_save_LIBS
18868 fi
18869 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18870 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18871 if test $ac_cv_lib_svld_dlopen = yes; then
18872   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18873 else
18874   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18875 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18876 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18877   echo $ECHO_N "(cached) $ECHO_C" >&6
18878 else
18879   ac_check_lib_save_LIBS=$LIBS
18880 LIBS="-ldld  $LIBS"
18881 cat >conftest.$ac_ext <<_ACEOF
18882 /* confdefs.h.  */
18883 _ACEOF
18884 cat confdefs.h >>conftest.$ac_ext
18885 cat >>conftest.$ac_ext <<_ACEOF
18886 /* end confdefs.h.  */
18887
18888 /* Override any gcc2 internal prototype to avoid an error.  */
18889 #ifdef __cplusplus
18890 extern "C"
18891 #endif
18892 /* We use char because int might match the return type of a gcc2
18893    builtin and then its argument prototype would still apply.  */
18894 char dld_link ();
18895 int
18896 main ()
18897 {
18898 dld_link ();
18899   ;
18900   return 0;
18901 }
18902 _ACEOF
18903 rm -f conftest.$ac_objext conftest$ac_exeext
18904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18905   (eval $ac_link) 2>conftest.er1
18906   ac_status=$?
18907   grep -v '^ *+' conftest.er1 >conftest.err
18908   rm -f conftest.er1
18909   cat conftest.err >&5
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); } &&
18912          { ac_try='test -z "$ac_cxx_werror_flag"
18913                          || test ! -s conftest.err'
18914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915   (eval $ac_try) 2>&5
18916   ac_status=$?
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); }; } &&
18919          { ac_try='test -s conftest$ac_exeext'
18920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921   (eval $ac_try) 2>&5
18922   ac_status=$?
18923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924   (exit $ac_status); }; }; then
18925   ac_cv_lib_dld_dld_link=yes
18926 else
18927   echo "$as_me: failed program was:" >&5
18928 sed 's/^/| /' conftest.$ac_ext >&5
18929
18930 ac_cv_lib_dld_dld_link=no
18931 fi
18932 rm -f conftest.err conftest.$ac_objext \
18933       conftest$ac_exeext conftest.$ac_ext
18934 LIBS=$ac_check_lib_save_LIBS
18935 fi
18936 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18937 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18938 if test $ac_cv_lib_dld_dld_link = yes; then
18939   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18940 fi
18941
18942
18943 fi
18944
18945
18946 fi
18947
18948
18949 fi
18950
18951
18952 fi
18953
18954
18955 fi
18956
18957     ;;
18958   esac
18959
18960   if test "x$lt_cv_dlopen" != xno; then
18961     enable_dlopen=yes
18962   else
18963     enable_dlopen=no
18964   fi
18965
18966   case $lt_cv_dlopen in
18967   dlopen)
18968     save_CPPFLAGS="$CPPFLAGS"
18969     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18970
18971     save_LDFLAGS="$LDFLAGS"
18972     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18973
18974     save_LIBS="$LIBS"
18975     LIBS="$lt_cv_dlopen_libs $LIBS"
18976
18977     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18978 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18979 if test "${lt_cv_dlopen_self+set}" = set; then
18980   echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18982           if test "$cross_compiling" = yes; then :
18983   lt_cv_dlopen_self=cross
18984 else
18985   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18986   lt_status=$lt_dlunknown
18987   cat > conftest.$ac_ext <<EOF
18988 #line 18988 "configure"
18989 #include "confdefs.h"
18990
18991 #if HAVE_DLFCN_H
18992 #include <dlfcn.h>
18993 #endif
18994
18995 #include <stdio.h>
18996
18997 #ifdef RTLD_GLOBAL
18998 #  define LT_DLGLOBAL           RTLD_GLOBAL
18999 #else
19000 #  ifdef DL_GLOBAL
19001 #    define LT_DLGLOBAL         DL_GLOBAL
19002 #  else
19003 #    define LT_DLGLOBAL         0
19004 #  endif
19005 #endif
19006
19007 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19008    find out it does not work in some platform. */
19009 #ifndef LT_DLLAZY_OR_NOW
19010 #  ifdef RTLD_LAZY
19011 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19012 #  else
19013 #    ifdef DL_LAZY
19014 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19015 #    else
19016 #      ifdef RTLD_NOW
19017 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19018 #      else
19019 #        ifdef DL_NOW
19020 #          define LT_DLLAZY_OR_NOW      DL_NOW
19021 #        else
19022 #          define LT_DLLAZY_OR_NOW      0
19023 #        endif
19024 #      endif
19025 #    endif
19026 #  endif
19027 #endif
19028
19029 #ifdef __cplusplus
19030 extern "C" void exit (int);
19031 #endif
19032
19033 void fnord() { int i=42;}
19034 int main ()
19035 {
19036   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19037   int status = $lt_dlunknown;
19038
19039   if (self)
19040     {
19041       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19042       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19043       /* dlclose (self); */
19044     }
19045
19046     exit (status);
19047 }
19048 EOF
19049   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19050   (eval $ac_link) 2>&5
19051   ac_status=$?
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19054     (./conftest; exit; ) 2>/dev/null
19055     lt_status=$?
19056     case x$lt_status in
19057       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19058       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19059       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19060     esac
19061   else :
19062     # compilation failed
19063     lt_cv_dlopen_self=no
19064   fi
19065 fi
19066 rm -fr conftest*
19067
19068
19069 fi
19070 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19071 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19072
19073     if test "x$lt_cv_dlopen_self" = xyes; then
19074       LDFLAGS="$LDFLAGS $link_static_flag"
19075       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19076 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19077 if test "${lt_cv_dlopen_self_static+set}" = set; then
19078   echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080           if test "$cross_compiling" = yes; then :
19081   lt_cv_dlopen_self_static=cross
19082 else
19083   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19084   lt_status=$lt_dlunknown
19085   cat > conftest.$ac_ext <<EOF
19086 #line 19086 "configure"
19087 #include "confdefs.h"
19088
19089 #if HAVE_DLFCN_H
19090 #include <dlfcn.h>
19091 #endif
19092
19093 #include <stdio.h>
19094
19095 #ifdef RTLD_GLOBAL
19096 #  define LT_DLGLOBAL           RTLD_GLOBAL
19097 #else
19098 #  ifdef DL_GLOBAL
19099 #    define LT_DLGLOBAL         DL_GLOBAL
19100 #  else
19101 #    define LT_DLGLOBAL         0
19102 #  endif
19103 #endif
19104
19105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19106    find out it does not work in some platform. */
19107 #ifndef LT_DLLAZY_OR_NOW
19108 #  ifdef RTLD_LAZY
19109 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19110 #  else
19111 #    ifdef DL_LAZY
19112 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19113 #    else
19114 #      ifdef RTLD_NOW
19115 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19116 #      else
19117 #        ifdef DL_NOW
19118 #          define LT_DLLAZY_OR_NOW      DL_NOW
19119 #        else
19120 #          define LT_DLLAZY_OR_NOW      0
19121 #        endif
19122 #      endif
19123 #    endif
19124 #  endif
19125 #endif
19126
19127 #ifdef __cplusplus
19128 extern "C" void exit (int);
19129 #endif
19130
19131 void fnord() { int i=42;}
19132 int main ()
19133 {
19134   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19135   int status = $lt_dlunknown;
19136
19137   if (self)
19138     {
19139       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19140       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19141       /* dlclose (self); */
19142     }
19143
19144     exit (status);
19145 }
19146 EOF
19147   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19148   (eval $ac_link) 2>&5
19149   ac_status=$?
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19152     (./conftest; exit; ) 2>/dev/null
19153     lt_status=$?
19154     case x$lt_status in
19155       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19156       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19157       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19158     esac
19159   else :
19160     # compilation failed
19161     lt_cv_dlopen_self_static=no
19162   fi
19163 fi
19164 rm -fr conftest*
19165
19166
19167 fi
19168 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19169 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19170     fi
19171
19172     CPPFLAGS="$save_CPPFLAGS"
19173     LDFLAGS="$save_LDFLAGS"
19174     LIBS="$save_LIBS"
19175     ;;
19176   esac
19177
19178   case $lt_cv_dlopen_self in
19179   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19180   *) enable_dlopen_self=unknown ;;
19181   esac
19182
19183   case $lt_cv_dlopen_self_static in
19184   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19185   *) enable_dlopen_self_static=unknown ;;
19186   esac
19187 fi
19188
19189
19190 # The else clause should only fire when bootstrapping the
19191 # libtool distribution, otherwise you forgot to ship ltmain.sh
19192 # with your package, and you will get complaints that there are
19193 # no rules to generate ltmain.sh.
19194 if test -f "$ltmain"; then
19195   # See if we are running on zsh, and set the options which allow our commands through
19196   # without removal of \ escapes.
19197   if test -n "${ZSH_VERSION+set}" ; then
19198     setopt NO_GLOB_SUBST
19199   fi
19200   # Now quote all the things that may contain metacharacters while being
19201   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19202   # variables and quote the copies for generation of the libtool script.
19203   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19204     SED SHELL STRIP \
19205     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19206     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19207     deplibs_check_method reload_flag reload_cmds need_locks \
19208     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19209     lt_cv_sys_global_symbol_to_c_name_address \
19210     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19211     old_postinstall_cmds old_postuninstall_cmds \
19212     compiler_CXX \
19213     CC_CXX \
19214     LD_CXX \
19215     lt_prog_compiler_wl_CXX \
19216     lt_prog_compiler_pic_CXX \
19217     lt_prog_compiler_static_CXX \
19218     lt_prog_compiler_no_builtin_flag_CXX \
19219     export_dynamic_flag_spec_CXX \
19220     thread_safe_flag_spec_CXX \
19221     whole_archive_flag_spec_CXX \
19222     enable_shared_with_static_runtimes_CXX \
19223     old_archive_cmds_CXX \
19224     old_archive_from_new_cmds_CXX \
19225     predep_objects_CXX \
19226     postdep_objects_CXX \
19227     predeps_CXX \
19228     postdeps_CXX \
19229     compiler_lib_search_path_CXX \
19230     archive_cmds_CXX \
19231     archive_expsym_cmds_CXX \
19232     postinstall_cmds_CXX \
19233     postuninstall_cmds_CXX \
19234     old_archive_from_expsyms_cmds_CXX \
19235     allow_undefined_flag_CXX \
19236     no_undefined_flag_CXX \
19237     export_symbols_cmds_CXX \
19238     hardcode_libdir_flag_spec_CXX \
19239     hardcode_libdir_flag_spec_ld_CXX \
19240     hardcode_libdir_separator_CXX \
19241     hardcode_automatic_CXX \
19242     module_cmds_CXX \
19243     module_expsym_cmds_CXX \
19244     lt_cv_prog_compiler_c_o_CXX \
19245     exclude_expsyms_CXX \
19246     include_expsyms_CXX; do
19247
19248     case $var in
19249     old_archive_cmds_CXX | \
19250     old_archive_from_new_cmds_CXX | \
19251     archive_cmds_CXX | \
19252     archive_expsym_cmds_CXX | \
19253     module_cmds_CXX | \
19254     module_expsym_cmds_CXX | \
19255     old_archive_from_expsyms_cmds_CXX | \
19256     export_symbols_cmds_CXX | \
19257     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19258     postinstall_cmds | postuninstall_cmds | \
19259     old_postinstall_cmds | old_postuninstall_cmds | \
19260     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19261       # Double-quote double-evaled strings.
19262       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19263       ;;
19264     *)
19265       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19266       ;;
19267     esac
19268   done
19269
19270   case $lt_echo in
19271   *'\$0 --fallback-echo"')
19272     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19273     ;;
19274   esac
19275
19276 cfgfile="$ofile"
19277
19278   cat <<__EOF__ >> "$cfgfile"
19279 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19280
19281 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19282
19283 # Shell to use when invoking shell scripts.
19284 SHELL=$lt_SHELL
19285
19286 # Whether or not to build shared libraries.
19287 build_libtool_libs=$enable_shared
19288
19289 # Whether or not to build static libraries.
19290 build_old_libs=$enable_static
19291
19292 # Whether or not to add -lc for building shared libraries.
19293 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19294
19295 # Whether or not to disallow shared libs when runtime libs are static
19296 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19297
19298 # Whether or not to optimize for fast installation.
19299 fast_install=$enable_fast_install
19300
19301 # The host system.
19302 host_alias=$host_alias
19303 host=$host
19304
19305 # An echo program that does not interpret backslashes.
19306 echo=$lt_echo
19307
19308 # The archiver.
19309 AR=$lt_AR
19310 AR_FLAGS=$lt_AR_FLAGS
19311
19312 # A C compiler.
19313 LTCC=$lt_LTCC
19314
19315 # A language-specific compiler.
19316 CC=$lt_compiler_CXX
19317
19318 # Is the compiler the GNU C compiler?
19319 with_gcc=$GCC_CXX
19320
19321 # An ERE matcher.
19322 EGREP=$lt_EGREP
19323
19324 # The linker used to build libraries.
19325 LD=$lt_LD_CXX
19326
19327 # Whether we need hard or soft links.
19328 LN_S=$lt_LN_S
19329
19330 # A BSD-compatible nm program.
19331 NM=$lt_NM
19332
19333 # A symbol stripping program
19334 STRIP=$lt_STRIP
19335
19336 # Used to examine libraries when file_magic_cmd begins "file"
19337 MAGIC_CMD=$MAGIC_CMD
19338
19339 # Used on cygwin: DLL creation program.
19340 DLLTOOL="$DLLTOOL"
19341
19342 # Used on cygwin: object dumper.
19343 OBJDUMP="$OBJDUMP"
19344
19345 # Used on cygwin: assembler.
19346 AS="$AS"
19347
19348 # The name of the directory that contains temporary libtool files.
19349 objdir=$objdir
19350
19351 # How to create reloadable object files.
19352 reload_flag=$lt_reload_flag
19353 reload_cmds=$lt_reload_cmds
19354
19355 # How to pass a linker flag through the compiler.
19356 wl=$lt_lt_prog_compiler_wl_CXX
19357
19358 # Object file suffix (normally "o").
19359 objext="$ac_objext"
19360
19361 # Old archive suffix (normally "a").
19362 libext="$libext"
19363
19364 # Shared library suffix (normally ".so").
19365 shrext_cmds='$shrext_cmds'
19366
19367 # Executable file suffix (normally "").
19368 exeext="$exeext"
19369
19370 # Additional compiler flags for building library objects.
19371 pic_flag=$lt_lt_prog_compiler_pic_CXX
19372 pic_mode=$pic_mode
19373
19374 # What is the maximum length of a command?
19375 max_cmd_len=$lt_cv_sys_max_cmd_len
19376
19377 # Does compiler simultaneously support -c and -o options?
19378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19379
19380 # Must we lock files when doing compilation ?
19381 need_locks=$lt_need_locks
19382
19383 # Do we need the lib prefix for modules?
19384 need_lib_prefix=$need_lib_prefix
19385
19386 # Do we need a version for libraries?
19387 need_version=$need_version
19388
19389 # Whether dlopen is supported.
19390 dlopen_support=$enable_dlopen
19391
19392 # Whether dlopen of programs is supported.
19393 dlopen_self=$enable_dlopen_self
19394
19395 # Whether dlopen of statically linked programs is supported.
19396 dlopen_self_static=$enable_dlopen_self_static
19397
19398 # Compiler flag to prevent dynamic linking.
19399 link_static_flag=$lt_lt_prog_compiler_static_CXX
19400
19401 # Compiler flag to turn off builtin functions.
19402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19403
19404 # Compiler flag to allow reflexive dlopens.
19405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19406
19407 # Compiler flag to generate shared objects directly from archives.
19408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19409
19410 # Compiler flag to generate thread-safe objects.
19411 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19412
19413 # Library versioning type.
19414 version_type=$version_type
19415
19416 # Format of library name prefix.
19417 libname_spec=$lt_libname_spec
19418
19419 # List of archive names.  First name is the real one, the rest are links.
19420 # The last name is the one that the linker finds with -lNAME.
19421 library_names_spec=$lt_library_names_spec
19422
19423 # The coded name of the library, if different from the real name.
19424 soname_spec=$lt_soname_spec
19425
19426 # Commands used to build and install an old-style archive.
19427 RANLIB=$lt_RANLIB
19428 old_archive_cmds=$lt_old_archive_cmds_CXX
19429 old_postinstall_cmds=$lt_old_postinstall_cmds
19430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19431
19432 # Create an old-style archive from a shared archive.
19433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19434
19435 # Create a temporary old-style archive to link instead of a shared archive.
19436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19437
19438 # Commands used to build and install a shared archive.
19439 archive_cmds=$lt_archive_cmds_CXX
19440 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19441 postinstall_cmds=$lt_postinstall_cmds
19442 postuninstall_cmds=$lt_postuninstall_cmds
19443
19444 # Commands used to build a loadable module (assumed same as above if empty)
19445 module_cmds=$lt_module_cmds_CXX
19446 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19447
19448 # Commands to strip libraries.
19449 old_striplib=$lt_old_striplib
19450 striplib=$lt_striplib
19451
19452 # Dependencies to place before the objects being linked to create a
19453 # shared library.
19454 predep_objects=$lt_predep_objects_CXX
19455
19456 # Dependencies to place after the objects being linked to create a
19457 # shared library.
19458 postdep_objects=$lt_postdep_objects_CXX
19459
19460 # Dependencies to place before the objects being linked to create a
19461 # shared library.
19462 predeps=$lt_predeps_CXX
19463
19464 # Dependencies to place after the objects being linked to create a
19465 # shared library.
19466 postdeps=$lt_postdeps_CXX
19467
19468 # The library search path used internally by the compiler when linking
19469 # a shared library.
19470 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19471
19472 # Method to check whether dependent libraries are shared objects.
19473 deplibs_check_method=$lt_deplibs_check_method
19474
19475 # Command to use when deplibs_check_method == file_magic.
19476 file_magic_cmd=$lt_file_magic_cmd
19477
19478 # Flag that allows shared libraries with undefined symbols to be built.
19479 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19480
19481 # Flag that forces no undefined symbols.
19482 no_undefined_flag=$lt_no_undefined_flag_CXX
19483
19484 # Commands used to finish a libtool library installation in a directory.
19485 finish_cmds=$lt_finish_cmds
19486
19487 # Same as above, but a single script fragment to be evaled but not shown.
19488 finish_eval=$lt_finish_eval
19489
19490 # Take the output of nm and produce a listing of raw symbols and C names.
19491 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19492
19493 # Transform the output of nm in a proper C declaration
19494 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19495
19496 # Transform the output of nm in a C name address pair
19497 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19498
19499 # This is the shared library runtime path variable.
19500 runpath_var=$runpath_var
19501
19502 # This is the shared library path variable.
19503 shlibpath_var=$shlibpath_var
19504
19505 # Is shlibpath searched before the hard-coded library search path?
19506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19507
19508 # How to hardcode a shared library path into an executable.
19509 hardcode_action=$hardcode_action_CXX
19510
19511 # Whether we should hardcode library paths into libraries.
19512 hardcode_into_libs=$hardcode_into_libs
19513
19514 # Flag to hardcode \$libdir into a binary during linking.
19515 # This must work even if \$libdir does not exist.
19516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19517
19518 # If ld is used when linking, flag to hardcode \$libdir into
19519 # a binary during linking. This must work even if \$libdir does
19520 # not exist.
19521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19522
19523 # Whether we need a single -rpath flag with a separated argument.
19524 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19525
19526 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19527 # resulting binary.
19528 hardcode_direct=$hardcode_direct_CXX
19529
19530 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19531 # resulting binary.
19532 hardcode_minus_L=$hardcode_minus_L_CXX
19533
19534 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19535 # the resulting binary.
19536 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19537
19538 # Set to yes if building a shared library automatically hardcodes DIR into the library
19539 # and all subsequent libraries and executables linked against it.
19540 hardcode_automatic=$hardcode_automatic_CXX
19541
19542 # Variables whose values should be saved in libtool wrapper scripts and
19543 # restored at relink time.
19544 variables_saved_for_relink="$variables_saved_for_relink"
19545
19546 # Whether libtool must link a program against all its dependency libraries.
19547 link_all_deplibs=$link_all_deplibs_CXX
19548
19549 # Compile-time system search path for libraries
19550 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19551
19552 # Run-time system search path for libraries
19553 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19554
19555 # Fix the shell variable \$srcfile for the compiler.
19556 fix_srcfile_path="$fix_srcfile_path_CXX"
19557
19558 # Set to yes if exported symbols are required.
19559 always_export_symbols=$always_export_symbols_CXX
19560
19561 # The commands to list exported symbols.
19562 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19563
19564 # The commands to extract the exported symbol list from a shared archive.
19565 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19566
19567 # Symbols that should not be listed in the preloaded symbols.
19568 exclude_expsyms=$lt_exclude_expsyms_CXX
19569
19570 # Symbols that must always be exported.
19571 include_expsyms=$lt_include_expsyms_CXX
19572
19573 # ### END LIBTOOL TAG CONFIG: $tagname
19574
19575 __EOF__
19576
19577
19578 else
19579   # If there is no Makefile yet, we rely on a make rule to execute
19580   # `config.status --recheck' to rerun these tests and create the
19581   # libtool script then.
19582   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19583   if test -f "$ltmain_in"; then
19584     test -f Makefile && make "$ltmain"
19585   fi
19586 fi
19587
19588
19589 ac_ext=c
19590 ac_cpp='$CPP $CPPFLAGS'
19591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19594
19595 CC=$lt_save_CC
19596 LDCXX=$LD
19597 LD=$lt_save_LD
19598 GCC=$lt_save_GCC
19599 with_gnu_ldcxx=$with_gnu_ld
19600 with_gnu_ld=$lt_save_with_gnu_ld
19601 lt_cv_path_LDCXX=$lt_cv_path_LD
19602 lt_cv_path_LD=$lt_save_path_LD
19603 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19604 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19605
19606         else
19607           tagname=""
19608         fi
19609         ;;
19610
19611       F77)
19612         if test -n "$F77" && test "X$F77" != "Xno"; then
19613
19614 ac_ext=f
19615 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19616 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19618
19619
19620 archive_cmds_need_lc_F77=no
19621 allow_undefined_flag_F77=
19622 always_export_symbols_F77=no
19623 archive_expsym_cmds_F77=
19624 export_dynamic_flag_spec_F77=
19625 hardcode_direct_F77=no
19626 hardcode_libdir_flag_spec_F77=
19627 hardcode_libdir_flag_spec_ld_F77=
19628 hardcode_libdir_separator_F77=
19629 hardcode_minus_L_F77=no
19630 hardcode_automatic_F77=no
19631 module_cmds_F77=
19632 module_expsym_cmds_F77=
19633 link_all_deplibs_F77=unknown
19634 old_archive_cmds_F77=$old_archive_cmds
19635 no_undefined_flag_F77=
19636 whole_archive_flag_spec_F77=
19637 enable_shared_with_static_runtimes_F77=no
19638
19639 # Source file extension for f77 test sources.
19640 ac_ext=f
19641
19642 # Object file extension for compiled f77 test sources.
19643 objext=o
19644 objext_F77=$objext
19645
19646 # Code to be used in simple compile tests
19647 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19648
19649 # Code to be used in simple link tests
19650 lt_simple_link_test_code="      program t\n      end\n"
19651
19652 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19653
19654 # If no C compiler was specified, use CC.
19655 LTCC=${LTCC-"$CC"}
19656
19657 # Allow CC to be a program name with arguments.
19658 compiler=$CC
19659
19660
19661 # Allow CC to be a program name with arguments.
19662 lt_save_CC="$CC"
19663 CC=${F77-"f77"}
19664 compiler=$CC
19665 compiler_F77=$CC
19666 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19667
19668 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19669 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19670 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19671 echo "${ECHO_T}$can_build_shared" >&6
19672
19673 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19674 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19675 test "$can_build_shared" = "no" && enable_shared=no
19676
19677 # On AIX, shared libraries and static libraries use the same namespace, and
19678 # are all built from PIC.
19679 case "$host_os" in
19680 aix3*)
19681   test "$enable_shared" = yes && enable_static=no
19682   if test -n "$RANLIB"; then
19683     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19684     postinstall_cmds='$RANLIB $lib'
19685   fi
19686   ;;
19687 aix4* | aix5*)
19688   test "$enable_shared" = yes && enable_static=no
19689   ;;
19690 esac
19691 echo "$as_me:$LINENO: result: $enable_shared" >&5
19692 echo "${ECHO_T}$enable_shared" >&6
19693
19694 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19695 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19696 # Make sure either enable_shared or enable_static is yes.
19697 test "$enable_shared" = yes || enable_static=yes
19698 echo "$as_me:$LINENO: result: $enable_static" >&5
19699 echo "${ECHO_T}$enable_static" >&6
19700
19701 test "$ld_shlibs_F77" = no && can_build_shared=no
19702
19703 GCC_F77="$G77"
19704 LD_F77="$LD"
19705
19706 lt_prog_compiler_wl_F77=
19707 lt_prog_compiler_pic_F77=
19708 lt_prog_compiler_static_F77=
19709
19710 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19711 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19712
19713   if test "$GCC" = yes; then
19714     lt_prog_compiler_wl_F77='-Wl,'
19715     lt_prog_compiler_static_F77='-static'
19716
19717     case $host_os in
19718       aix*)
19719       # All AIX code is PIC.
19720       if test "$host_cpu" = ia64; then
19721         # AIX 5 now supports IA64 processor
19722         lt_prog_compiler_static_F77='-Bstatic'
19723       fi
19724       ;;
19725
19726     amigaos*)
19727       # FIXME: we need at least 68020 code to build shared libraries, but
19728       # adding the `-m68020' flag to GCC prevents building anything better,
19729       # like `-m68040'.
19730       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19731       ;;
19732
19733     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19734       # PIC is the default for these OSes.
19735       ;;
19736
19737     mingw* | pw32* | os2*)
19738       # This hack is so that the source file can tell whether it is being
19739       # built for inclusion in a dll (and should export symbols for example).
19740       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19741       ;;
19742
19743     darwin* | rhapsody*)
19744       # PIC is the default on this platform
19745       # Common symbols not allowed in MH_DYLIB files
19746       lt_prog_compiler_pic_F77='-fno-common'
19747       ;;
19748
19749     msdosdjgpp*)
19750       # Just because we use GCC doesn't mean we suddenly get shared libraries
19751       # on systems that don't support them.
19752       lt_prog_compiler_can_build_shared_F77=no
19753       enable_shared=no
19754       ;;
19755
19756     sysv4*MP*)
19757       if test -d /usr/nec; then
19758         lt_prog_compiler_pic_F77=-Kconform_pic
19759       fi
19760       ;;
19761
19762     hpux*)
19763       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19764       # not for PA HP-UX.
19765       case "$host_cpu" in
19766       hppa*64*|ia64*)
19767         # +Z the default
19768         ;;
19769       *)
19770         lt_prog_compiler_pic_F77='-fPIC'
19771         ;;
19772       esac
19773       ;;
19774
19775     *)
19776       lt_prog_compiler_pic_F77='-fPIC'
19777       ;;
19778     esac
19779   else
19780     # PORTME Check for flag to pass linker flags through the system compiler.
19781     case $host_os in
19782     aix*)
19783       lt_prog_compiler_wl_F77='-Wl,'
19784       if test "$host_cpu" = ia64; then
19785         # AIX 5 now supports IA64 processor
19786         lt_prog_compiler_static_F77='-Bstatic'
19787       else
19788         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19789       fi
19790       ;;
19791
19792     mingw* | pw32* | os2*)
19793       # This hack is so that the source file can tell whether it is being
19794       # built for inclusion in a dll (and should export symbols for example).
19795       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19796       ;;
19797
19798     hpux9* | hpux10* | hpux11*)
19799       lt_prog_compiler_wl_F77='-Wl,'
19800       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19801       # not for PA HP-UX.
19802       case "$host_cpu" in
19803       hppa*64*|ia64*)
19804         # +Z the default
19805         ;;
19806       *)
19807         lt_prog_compiler_pic_F77='+Z'
19808         ;;
19809       esac
19810       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19811       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19812       ;;
19813
19814     irix5* | irix6* | nonstopux*)
19815       lt_prog_compiler_wl_F77='-Wl,'
19816       # PIC (with -KPIC) is the default.
19817       lt_prog_compiler_static_F77='-non_shared'
19818       ;;
19819
19820     newsos6)
19821       lt_prog_compiler_pic_F77='-KPIC'
19822       lt_prog_compiler_static_F77='-Bstatic'
19823       ;;
19824
19825     linux*)
19826       case $CC in
19827       icc* | ecc*)
19828         lt_prog_compiler_wl_F77='-Wl,'
19829         lt_prog_compiler_pic_F77='-KPIC'
19830         lt_prog_compiler_static_F77='-static'
19831         ;;
19832       ccc*)
19833         lt_prog_compiler_wl_F77='-Wl,'
19834         # All Alpha code is PIC.
19835         lt_prog_compiler_static_F77='-non_shared'
19836         ;;
19837       esac
19838       ;;
19839
19840     osf3* | osf4* | osf5*)
19841       lt_prog_compiler_wl_F77='-Wl,'
19842       # All OSF/1 code is PIC.
19843       lt_prog_compiler_static_F77='-non_shared'
19844       ;;
19845
19846     sco3.2v5*)
19847       lt_prog_compiler_pic_F77='-Kpic'
19848       lt_prog_compiler_static_F77='-dn'
19849       ;;
19850
19851     solaris*)
19852       lt_prog_compiler_wl_F77='-Wl,'
19853       lt_prog_compiler_pic_F77='-KPIC'
19854       lt_prog_compiler_static_F77='-Bstatic'
19855       ;;
19856
19857     sunos4*)
19858       lt_prog_compiler_wl_F77='-Qoption ld '
19859       lt_prog_compiler_pic_F77='-PIC'
19860       lt_prog_compiler_static_F77='-Bstatic'
19861       ;;
19862
19863     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19864       lt_prog_compiler_wl_F77='-Wl,'
19865       lt_prog_compiler_pic_F77='-KPIC'
19866       lt_prog_compiler_static_F77='-Bstatic'
19867       ;;
19868
19869     sysv4*MP*)
19870       if test -d /usr/nec ;then
19871         lt_prog_compiler_pic_F77='-Kconform_pic'
19872         lt_prog_compiler_static_F77='-Bstatic'
19873       fi
19874       ;;
19875
19876     uts4*)
19877       lt_prog_compiler_pic_F77='-pic'
19878       lt_prog_compiler_static_F77='-Bstatic'
19879       ;;
19880
19881     *)
19882       lt_prog_compiler_can_build_shared_F77=no
19883       ;;
19884     esac
19885   fi
19886
19887 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19888 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19889
19890 #
19891 # Check to make sure the PIC flag actually works.
19892 #
19893 if test -n "$lt_prog_compiler_pic_F77"; then
19894
19895 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19896 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19897 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19898   echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900   lt_prog_compiler_pic_works_F77=no
19901   ac_outfile=conftest.$ac_objext
19902    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19903    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19904    # Insert the option either (1) after the last *FLAGS variable, or
19905    # (2) before a word containing "conftest.", or (3) at the end.
19906    # Note that $ac_compile itself does not contain backslashes and begins
19907    # with a dollar sign (not a hyphen), so the echo should work correctly.
19908    # The option is referenced via a variable to avoid confusing sed.
19909    lt_compile=`echo "$ac_compile" | $SED \
19910    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19911    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19912    -e 's:$: $lt_compiler_flag:'`
19913    (eval echo "\"\$as_me:19913: $lt_compile\"" >&5)
19914    (eval "$lt_compile" 2>conftest.err)
19915    ac_status=$?
19916    cat conftest.err >&5
19917    echo "$as_me:19917: \$? = $ac_status" >&5
19918    if (exit $ac_status) && test -s "$ac_outfile"; then
19919      # The compiler can only warn and ignore the option if not recognized
19920      # So say no if there are warnings
19921      if test ! -s conftest.err; then
19922        lt_prog_compiler_pic_works_F77=yes
19923      fi
19924    fi
19925    $rm conftest*
19926
19927 fi
19928 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19929 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19930
19931 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19932     case $lt_prog_compiler_pic_F77 in
19933      "" | " "*) ;;
19934      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19935      esac
19936 else
19937     lt_prog_compiler_pic_F77=
19938      lt_prog_compiler_can_build_shared_F77=no
19939 fi
19940
19941 fi
19942 case "$host_os" in
19943   # For platforms which do not support PIC, -DPIC is meaningless:
19944   *djgpp*)
19945     lt_prog_compiler_pic_F77=
19946     ;;
19947   *)
19948     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19949     ;;
19950 esac
19951
19952 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19953 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19954 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19955   echo $ECHO_N "(cached) $ECHO_C" >&6
19956 else
19957   lt_cv_prog_compiler_c_o_F77=no
19958    $rm -r conftest 2>/dev/null
19959    mkdir conftest
19960    cd conftest
19961    mkdir out
19962    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19963
19964    lt_compiler_flag="-o out/conftest2.$ac_objext"
19965    # Insert the option either (1) after the last *FLAGS variable, or
19966    # (2) before a word containing "conftest.", or (3) at the end.
19967    # Note that $ac_compile itself does not contain backslashes and begins
19968    # with a dollar sign (not a hyphen), so the echo should work correctly.
19969    lt_compile=`echo "$ac_compile" | $SED \
19970    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19971    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19972    -e 's:$: $lt_compiler_flag:'`
19973    (eval echo "\"\$as_me:19973: $lt_compile\"" >&5)
19974    (eval "$lt_compile" 2>out/conftest.err)
19975    ac_status=$?
19976    cat out/conftest.err >&5
19977    echo "$as_me:19977: \$? = $ac_status" >&5
19978    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19979    then
19980      # The compiler can only warn and ignore the option if not recognized
19981      # So say no if there are warnings
19982      if test ! -s out/conftest.err; then
19983        lt_cv_prog_compiler_c_o_F77=yes
19984      fi
19985    fi
19986    chmod u+w .
19987    $rm conftest*
19988    # SGI C++ compiler will create directory out/ii_files/ for
19989    # template instantiation
19990    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19991    $rm out/* && rmdir out
19992    cd ..
19993    rmdir conftest
19994    $rm conftest*
19995
19996 fi
19997 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19998 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19999
20000
20001 hard_links="nottested"
20002 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20003   # do not overwrite the value of need_locks provided by the user
20004   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20005 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20006   hard_links=yes
20007   $rm conftest*
20008   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20009   touch conftest.a
20010   ln conftest.a conftest.b 2>&5 || hard_links=no
20011   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20012   echo "$as_me:$LINENO: result: $hard_links" >&5
20013 echo "${ECHO_T}$hard_links" >&6
20014   if test "$hard_links" = no; then
20015     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20016 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20017     need_locks=warn
20018   fi
20019 else
20020   need_locks=no
20021 fi
20022
20023 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20024 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20025
20026   runpath_var=
20027   allow_undefined_flag_F77=
20028   enable_shared_with_static_runtimes_F77=no
20029   archive_cmds_F77=
20030   archive_expsym_cmds_F77=
20031   old_archive_From_new_cmds_F77=
20032   old_archive_from_expsyms_cmds_F77=
20033   export_dynamic_flag_spec_F77=
20034   whole_archive_flag_spec_F77=
20035   thread_safe_flag_spec_F77=
20036   hardcode_libdir_flag_spec_F77=
20037   hardcode_libdir_flag_spec_ld_F77=
20038   hardcode_libdir_separator_F77=
20039   hardcode_direct_F77=no
20040   hardcode_minus_L_F77=no
20041   hardcode_shlibpath_var_F77=unsupported
20042   link_all_deplibs_F77=unknown
20043   hardcode_automatic_F77=no
20044   module_cmds_F77=
20045   module_expsym_cmds_F77=
20046   always_export_symbols_F77=no
20047   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20048   # include_expsyms should be a list of space-separated symbols to be *always*
20049   # included in the symbol list
20050   include_expsyms_F77=
20051   # exclude_expsyms can be an extended regexp of symbols to exclude
20052   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20053   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20054   # as well as any symbol that contains `d'.
20055   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20056   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20057   # platforms (ab)use it in PIC code, but their linkers get confused if
20058   # the symbol is explicitly referenced.  Since portable code cannot
20059   # rely on this symbol name, it's probably fine to never include it in
20060   # preloaded symbol tables.
20061   extract_expsyms_cmds=
20062
20063   case $host_os in
20064   cygwin* | mingw* | pw32*)
20065     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20066     # When not using gcc, we currently assume that we are using
20067     # Microsoft Visual C++.
20068     if test "$GCC" != yes; then
20069       with_gnu_ld=no
20070     fi
20071     ;;
20072   openbsd*)
20073     with_gnu_ld=no
20074     ;;
20075   esac
20076
20077   ld_shlibs_F77=yes
20078   if test "$with_gnu_ld" = yes; then
20079     # If archive_cmds runs LD, not CC, wlarc should be empty
20080     wlarc='${wl}'
20081
20082     # See if GNU ld supports shared libraries.
20083     case $host_os in
20084     aix3* | aix4* | aix5*)
20085       # On AIX/PPC, the GNU linker is very broken
20086       if test "$host_cpu" != ia64; then
20087         ld_shlibs_F77=no
20088         cat <<EOF 1>&2
20089
20090 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20091 *** to be unable to reliably create shared libraries on AIX.
20092 *** Therefore, libtool is disabling shared libraries support.  If you
20093 *** really care for shared libraries, you may want to modify your PATH
20094 *** so that a non-GNU linker is found, and then restart.
20095
20096 EOF
20097       fi
20098       ;;
20099
20100     amigaos*)
20101       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)'
20102       hardcode_libdir_flag_spec_F77='-L$libdir'
20103       hardcode_minus_L_F77=yes
20104
20105       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20106       # that the semantics of dynamic libraries on AmigaOS, at least up
20107       # to version 4, is to share data among multiple programs linked
20108       # with the same dynamic library.  Since this doesn't match the
20109       # behavior of shared libraries on other platforms, we can't use
20110       # them.
20111       ld_shlibs_F77=no
20112       ;;
20113
20114     beos*)
20115       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20116         allow_undefined_flag_F77=unsupported
20117         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20118         # support --undefined.  This deserves some investigation.  FIXME
20119         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20120       else
20121         ld_shlibs_F77=no
20122       fi
20123       ;;
20124
20125     cygwin* | mingw* | pw32*)
20126       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20127       # as there is no search path for DLLs.
20128       hardcode_libdir_flag_spec_F77='-L$libdir'
20129       allow_undefined_flag_F77=unsupported
20130       always_export_symbols_F77=no
20131       enable_shared_with_static_runtimes_F77=yes
20132       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20133
20134       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20135         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20136         # If the export-symbols file already is a .def file (1st line
20137         # is EXPORTS), use it as is; otherwise, prepend...
20138         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20139           cp $export_symbols $output_objdir/$soname.def;
20140         else
20141           echo EXPORTS > $output_objdir/$soname.def;
20142           cat $export_symbols >> $output_objdir/$soname.def;
20143         fi~
20144         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
20145       else
20146         ld_shlibs=no
20147       fi
20148       ;;
20149
20150     netbsd*)
20151       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20152         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20153         wlarc=
20154       else
20155         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20156         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20157       fi
20158       ;;
20159
20160     solaris* | sysv5*)
20161       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20162         ld_shlibs_F77=no
20163         cat <<EOF 1>&2
20164
20165 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20166 *** create shared libraries on Solaris systems.  Therefore, libtool
20167 *** is disabling shared libraries support.  We urge you to upgrade GNU
20168 *** binutils to release 2.9.1 or newer.  Another option is to modify
20169 *** your PATH or compiler configuration so that the native linker is
20170 *** used, and then restart.
20171
20172 EOF
20173       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20174         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20175         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20176       else
20177         ld_shlibs_F77=no
20178       fi
20179       ;;
20180
20181     sunos4*)
20182       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20183       wlarc=
20184       hardcode_direct_F77=yes
20185       hardcode_shlibpath_var_F77=no
20186       ;;
20187
20188   linux*)
20189     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20190         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20191         archive_cmds_F77="$tmp_archive_cmds"
20192       supports_anon_versioning=no
20193       case `$LD -v 2>/dev/null` in
20194         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20195         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20196         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20197         *\ 2.11.*) ;; # other 2.11 versions
20198         *) supports_anon_versioning=yes ;;
20199       esac
20200       if test $supports_anon_versioning = yes; then
20201         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20203 $echo "local: *; };" >> $output_objdir/$libname.ver~
20204         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20205       else
20206         archive_expsym_cmds_F77="$tmp_archive_cmds"
20207       fi
20208     else
20209       ld_shlibs_F77=no
20210     fi
20211     ;;
20212
20213     *)
20214       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20215         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20216         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20217       else
20218         ld_shlibs_F77=no
20219       fi
20220       ;;
20221     esac
20222
20223     if test "$ld_shlibs_F77" = yes; then
20224       runpath_var=LD_RUN_PATH
20225       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20226       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20227       # ancient GNU ld didn't support --whole-archive et. al.
20228       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20229         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20230       else
20231         whole_archive_flag_spec_F77=
20232       fi
20233     fi
20234   else
20235     # PORTME fill in a description of your system's linker (not GNU ld)
20236     case $host_os in
20237     aix3*)
20238       allow_undefined_flag_F77=unsupported
20239       always_export_symbols_F77=yes
20240       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'
20241       # Note: this linker hardcodes the directories in LIBPATH if there
20242       # are no directories specified by -L.
20243       hardcode_minus_L_F77=yes
20244       if test "$GCC" = yes && test -z "$link_static_flag"; then
20245         # Neither direct hardcoding nor static linking is supported with a
20246         # broken collect2.
20247         hardcode_direct_F77=unsupported
20248       fi
20249       ;;
20250
20251     aix4* | aix5*)
20252       if test "$host_cpu" = ia64; then
20253         # On IA64, the linker does run time linking by default, so we don't
20254         # have to do anything special.
20255         aix_use_runtimelinking=no
20256         exp_sym_flag='-Bexport'
20257         no_entry_flag=""
20258       else
20259         # If we're using GNU nm, then we don't want the "-C" option.
20260         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20261         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20262           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'
20263         else
20264           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'
20265         fi
20266         aix_use_runtimelinking=no
20267
20268         # Test if we are trying to use run time linking or normal
20269         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20270         # need to do runtime linking.
20271         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20272           for ld_flag in $LDFLAGS; do
20273           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20274             aix_use_runtimelinking=yes
20275             break
20276           fi
20277           done
20278         esac
20279
20280         exp_sym_flag='-bexport'
20281         no_entry_flag='-bnoentry'
20282       fi
20283
20284       # When large executables or shared objects are built, AIX ld can
20285       # have problems creating the table of contents.  If linking a library
20286       # or program results in "error TOC overflow" add -mminimal-toc to
20287       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20288       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20289
20290       archive_cmds_F77=''
20291       hardcode_direct_F77=yes
20292       hardcode_libdir_separator_F77=':'
20293       link_all_deplibs_F77=yes
20294
20295       if test "$GCC" = yes; then
20296         case $host_os in aix4.012|aix4.012.*)
20297         # We only want to do this on AIX 4.2 and lower, the check
20298         # below for broken collect2 doesn't work under 4.3+
20299           collect2name=`${CC} -print-prog-name=collect2`
20300           if test -f "$collect2name" && \
20301            strings "$collect2name" | grep resolve_lib_name >/dev/null
20302           then
20303           # We have reworked collect2
20304           hardcode_direct_F77=yes
20305           else
20306           # We have old collect2
20307           hardcode_direct_F77=unsupported
20308           # It fails to find uninstalled libraries when the uninstalled
20309           # path is not listed in the libpath.  Setting hardcode_minus_L
20310           # to unsupported forces relinking
20311           hardcode_minus_L_F77=yes
20312           hardcode_libdir_flag_spec_F77='-L$libdir'
20313           hardcode_libdir_separator_F77=
20314           fi
20315         esac
20316         shared_flag='-shared'
20317       else
20318         # not using gcc
20319         if test "$host_cpu" = ia64; then
20320         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20321         # chokes on -Wl,-G. The following line is correct:
20322           shared_flag='-G'
20323         else
20324         if test "$aix_use_runtimelinking" = yes; then
20325             shared_flag='${wl}-G'
20326           else
20327             shared_flag='${wl}-bM:SRE'
20328         fi
20329         fi
20330       fi
20331
20332       # It seems that -bexpall does not export symbols beginning with
20333       # underscore (_), so it is better to generate a list of symbols to export.
20334       always_export_symbols_F77=yes
20335       if test "$aix_use_runtimelinking" = yes; then
20336         # Warning - without using the other runtime loading flags (-brtl),
20337         # -berok will link without error, but may produce a broken library.
20338         allow_undefined_flag_F77='-berok'
20339        # Determine the default libpath from the value encoded in an empty executable.
20340        cat >conftest.$ac_ext <<_ACEOF
20341       program main
20342
20343       end
20344 _ACEOF
20345 rm -f conftest.$ac_objext conftest$ac_exeext
20346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20347   (eval $ac_link) 2>conftest.er1
20348   ac_status=$?
20349   grep -v '^ *+' conftest.er1 >conftest.err
20350   rm -f conftest.er1
20351   cat conftest.err >&5
20352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353   (exit $ac_status); } &&
20354          { ac_try='test -z "$ac_f77_werror_flag"
20355                          || test ! -s conftest.err'
20356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357   (eval $ac_try) 2>&5
20358   ac_status=$?
20359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360   (exit $ac_status); }; } &&
20361          { ac_try='test -s conftest$ac_exeext'
20362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363   (eval $ac_try) 2>&5
20364   ac_status=$?
20365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366   (exit $ac_status); }; }; then
20367
20368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20369 }'`
20370 # Check for a 64-bit object if we didn't find anything.
20371 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; }
20372 }'`; fi
20373 else
20374   echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 fi
20378 rm -f conftest.err conftest.$ac_objext \
20379       conftest$ac_exeext conftest.$ac_ext
20380 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20381
20382        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20383         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20384        else
20385         if test "$host_cpu" = ia64; then
20386           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20387           allow_undefined_flag_F77="-z nodefs"
20388           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
20389         else
20390          # Determine the default libpath from the value encoded in an empty executable.
20391          cat >conftest.$ac_ext <<_ACEOF
20392       program main
20393
20394       end
20395 _ACEOF
20396 rm -f conftest.$ac_objext conftest$ac_exeext
20397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20398   (eval $ac_link) 2>conftest.er1
20399   ac_status=$?
20400   grep -v '^ *+' conftest.er1 >conftest.err
20401   rm -f conftest.er1
20402   cat conftest.err >&5
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); } &&
20405          { ac_try='test -z "$ac_f77_werror_flag"
20406                          || test ! -s conftest.err'
20407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408   (eval $ac_try) 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; } &&
20412          { ac_try='test -s conftest$ac_exeext'
20413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414   (eval $ac_try) 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); }; }; then
20418
20419 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20420 }'`
20421 # Check for a 64-bit object if we didn't find anything.
20422 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; }
20423 }'`; fi
20424 else
20425   echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20427
20428 fi
20429 rm -f conftest.err conftest.$ac_objext \
20430       conftest$ac_exeext conftest.$ac_ext
20431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20432
20433          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20434           # Warning - without using the other run time loading flags,
20435           # -berok will link without error, but may produce a broken library.
20436           no_undefined_flag_F77=' ${wl}-bernotok'
20437           allow_undefined_flag_F77=' ${wl}-berok'
20438           # -bexpall does not export symbols beginning with underscore (_)
20439           always_export_symbols_F77=yes
20440           # Exported symbols can be pulled into shared objects from archives
20441           whole_archive_flag_spec_F77=' '
20442           archive_cmds_need_lc_F77=yes
20443           # This is similar to how AIX traditionally builds it's shared libraries.
20444           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20445         fi
20446       fi
20447       ;;
20448
20449     amigaos*)
20450       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)'
20451       hardcode_libdir_flag_spec_F77='-L$libdir'
20452       hardcode_minus_L_F77=yes
20453       # see comment about different semantics on the GNU ld section
20454       ld_shlibs_F77=no
20455       ;;
20456
20457     bsdi4*)
20458       export_dynamic_flag_spec_F77=-rdynamic
20459       ;;
20460
20461     cygwin* | mingw* | pw32*)
20462       # When not using gcc, we currently assume that we are using
20463       # Microsoft Visual C++.
20464       # hardcode_libdir_flag_spec is actually meaningless, as there is
20465       # no search path for DLLs.
20466       hardcode_libdir_flag_spec_F77=' '
20467       allow_undefined_flag_F77=unsupported
20468       # Tell ltmain to make .lib files, not .a files.
20469       libext=lib
20470       # Tell ltmain to make .dll files, not .so files.
20471       shrext_cmds=".dll"
20472       # FIXME: Setting linknames here is a bad hack.
20473       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20474       # The linker will automatically build a .lib file if we build a DLL.
20475       old_archive_From_new_cmds_F77='true'
20476       # FIXME: Should let the user specify the lib program.
20477       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20478       fix_srcfile_path='`cygpath -w "$srcfile"`'
20479       enable_shared_with_static_runtimes_F77=yes
20480       ;;
20481
20482     darwin* | rhapsody*)
20483     if test "$GXX" = yes ; then
20484       archive_cmds_need_lc_F77=no
20485       case "$host_os" in
20486       rhapsody* | darwin1.[012])
20487         allow_undefined_flag_F77='-undefined suppress'
20488         ;;
20489       *) # Darwin 1.3 on
20490       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20491         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20492       else
20493         case ${MACOSX_DEPLOYMENT_TARGET} in
20494           10.[012])
20495             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20496             ;;
20497           10.*)
20498             allow_undefined_flag_F77='-undefined dynamic_lookup'
20499             ;;
20500         esac
20501       fi
20502         ;;
20503       esac
20504         lt_int_apple_cc_single_mod=no
20505         output_verbose_link_cmd='echo'
20506         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20507           lt_int_apple_cc_single_mod=yes
20508         fi
20509         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20510           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20511         else
20512         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
20513       fi
20514       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20515       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20516         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20517           archive_expsym_cmds_F77='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}'
20518         else
20519           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
20520         fi
20521           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}'
20522       hardcode_direct_F77=no
20523       hardcode_automatic_F77=yes
20524       hardcode_shlibpath_var_F77=unsupported
20525       whole_archive_flag_spec_F77='-all_load $convenience'
20526       link_all_deplibs_F77=yes
20527     else
20528       ld_shlibs_F77=no
20529     fi
20530       ;;
20531
20532     dgux*)
20533       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20534       hardcode_libdir_flag_spec_F77='-L$libdir'
20535       hardcode_shlibpath_var_F77=no
20536       ;;
20537
20538     freebsd1*)
20539       ld_shlibs_F77=no
20540       ;;
20541
20542     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20543     # support.  Future versions do this automatically, but an explicit c++rt0.o
20544     # does not break anything, and helps significantly (at the cost of a little
20545     # extra space).
20546     freebsd2.2*)
20547       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20548       hardcode_libdir_flag_spec_F77='-R$libdir'
20549       hardcode_direct_F77=yes
20550       hardcode_shlibpath_var_F77=no
20551       ;;
20552
20553     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20554     freebsd2*)
20555       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20556       hardcode_direct_F77=yes
20557       hardcode_minus_L_F77=yes
20558       hardcode_shlibpath_var_F77=no
20559       ;;
20560
20561     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20562     freebsd* | kfreebsd*-gnu)
20563       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20564       hardcode_libdir_flag_spec_F77='-R$libdir'
20565       hardcode_direct_F77=yes
20566       hardcode_shlibpath_var_F77=no
20567       ;;
20568
20569     hpux9*)
20570       if test "$GCC" = yes; then
20571         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'
20572       else
20573         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'
20574       fi
20575       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20576       hardcode_libdir_separator_F77=:
20577       hardcode_direct_F77=yes
20578
20579       # hardcode_minus_L: Not really in the search PATH,
20580       # but as the default location of the library.
20581       hardcode_minus_L_F77=yes
20582       export_dynamic_flag_spec_F77='${wl}-E'
20583       ;;
20584
20585     hpux10* | hpux11*)
20586       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20587         case "$host_cpu" in
20588         hppa*64*|ia64*)
20589           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20590           ;;
20591         *)
20592           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20593           ;;
20594         esac
20595       else
20596         case "$host_cpu" in
20597         hppa*64*|ia64*)
20598           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20599           ;;
20600         *)
20601           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20602           ;;
20603         esac
20604       fi
20605       if test "$with_gnu_ld" = no; then
20606         case "$host_cpu" in
20607         hppa*64*)
20608           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20609           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20610           hardcode_libdir_separator_F77=:
20611           hardcode_direct_F77=no
20612           hardcode_shlibpath_var_F77=no
20613           ;;
20614         ia64*)
20615           hardcode_libdir_flag_spec_F77='-L$libdir'
20616           hardcode_direct_F77=no
20617           hardcode_shlibpath_var_F77=no
20618
20619           # hardcode_minus_L: Not really in the search PATH,
20620           # but as the default location of the library.
20621           hardcode_minus_L_F77=yes
20622           ;;
20623         *)
20624           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20625           hardcode_libdir_separator_F77=:
20626           hardcode_direct_F77=yes
20627           export_dynamic_flag_spec_F77='${wl}-E'
20628
20629           # hardcode_minus_L: Not really in the search PATH,
20630           # but as the default location of the library.
20631           hardcode_minus_L_F77=yes
20632           ;;
20633         esac
20634       fi
20635       ;;
20636
20637     irix5* | irix6* | nonstopux*)
20638       if test "$GCC" = yes; then
20639         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'
20640       else
20641         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'
20642         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20643       fi
20644       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20645       hardcode_libdir_separator_F77=:
20646       link_all_deplibs_F77=yes
20647       ;;
20648
20649     netbsd*)
20650       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20651         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20652       else
20653         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20654       fi
20655       hardcode_libdir_flag_spec_F77='-R$libdir'
20656       hardcode_direct_F77=yes
20657       hardcode_shlibpath_var_F77=no
20658       ;;
20659
20660     newsos6)
20661       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20662       hardcode_direct_F77=yes
20663       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20664       hardcode_libdir_separator_F77=:
20665       hardcode_shlibpath_var_F77=no
20666       ;;
20667
20668     openbsd*)
20669       hardcode_direct_F77=yes
20670       hardcode_shlibpath_var_F77=no
20671       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20672         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20673         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20674         export_dynamic_flag_spec_F77='${wl}-E'
20675       else
20676        case $host_os in
20677          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20678            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20679            hardcode_libdir_flag_spec_F77='-R$libdir'
20680            ;;
20681          *)
20682            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20683            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20684            ;;
20685        esac
20686       fi
20687       ;;
20688
20689     os2*)
20690       hardcode_libdir_flag_spec_F77='-L$libdir'
20691       hardcode_minus_L_F77=yes
20692       allow_undefined_flag_F77=unsupported
20693       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'
20694       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20695       ;;
20696
20697     osf3*)
20698       if test "$GCC" = yes; then
20699         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20700         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'
20701       else
20702         allow_undefined_flag_F77=' -expect_unresolved \*'
20703         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'
20704       fi
20705       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20706       hardcode_libdir_separator_F77=:
20707       ;;
20708
20709     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20710       if test "$GCC" = yes; then
20711         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20712         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'
20713         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20714       else
20715         allow_undefined_flag_F77=' -expect_unresolved \*'
20716         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'
20717         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~
20718         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
20719
20720         # Both c and cxx compiler support -rpath directly
20721         hardcode_libdir_flag_spec_F77='-rpath $libdir'
20722       fi
20723       hardcode_libdir_separator_F77=:
20724       ;;
20725
20726     sco3.2v5*)
20727       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20728       hardcode_shlibpath_var_F77=no
20729       export_dynamic_flag_spec_F77='${wl}-Bexport'
20730       runpath_var=LD_RUN_PATH
20731       hardcode_runpath_var=yes
20732       ;;
20733
20734     solaris*)
20735       no_undefined_flag_F77=' -z text'
20736       if test "$GCC" = yes; then
20737         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20738         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20739           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20740       else
20741         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20742         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20743         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20744       fi
20745       hardcode_libdir_flag_spec_F77='-R$libdir'
20746       hardcode_shlibpath_var_F77=no
20747       case $host_os in
20748       solaris2.[0-5] | solaris2.[0-5].*) ;;
20749       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20750         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20751       esac
20752       link_all_deplibs_F77=yes
20753       ;;
20754
20755     sunos4*)
20756       if test "x$host_vendor" = xsequent; then
20757         # Use $CC to link under sequent, because it throws in some extra .o
20758         # files that make .init and .fini sections work.
20759         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20760       else
20761         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20762       fi
20763       hardcode_libdir_flag_spec_F77='-L$libdir'
20764       hardcode_direct_F77=yes
20765       hardcode_minus_L_F77=yes
20766       hardcode_shlibpath_var_F77=no
20767       ;;
20768
20769     sysv4)
20770       case $host_vendor in
20771         sni)
20772           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20773           hardcode_direct_F77=yes # is this really true???
20774         ;;
20775         siemens)
20776           ## LD is ld it makes a PLAMLIB
20777           ## CC just makes a GrossModule.
20778           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20779           reload_cmds_F77='$CC -r -o $output$reload_objs'
20780           hardcode_direct_F77=no
20781         ;;
20782         motorola)
20783           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20784           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20785         ;;
20786       esac
20787       runpath_var='LD_RUN_PATH'
20788       hardcode_shlibpath_var_F77=no
20789       ;;
20790
20791     sysv4.3*)
20792       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20793       hardcode_shlibpath_var_F77=no
20794       export_dynamic_flag_spec_F77='-Bexport'
20795       ;;
20796
20797     sysv4*MP*)
20798       if test -d /usr/nec; then
20799         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20800         hardcode_shlibpath_var_F77=no
20801         runpath_var=LD_RUN_PATH
20802         hardcode_runpath_var=yes
20803         ld_shlibs_F77=yes
20804       fi
20805       ;;
20806
20807     sysv4.2uw2*)
20808       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20809       hardcode_direct_F77=yes
20810       hardcode_minus_L_F77=no
20811       hardcode_shlibpath_var_F77=no
20812       hardcode_runpath_var=yes
20813       runpath_var=LD_RUN_PATH
20814       ;;
20815
20816    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20817       no_undefined_flag_F77='${wl}-z ${wl}text'
20818       if test "$GCC" = yes; then
20819         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20820       else
20821         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20822       fi
20823       runpath_var='LD_RUN_PATH'
20824       hardcode_shlibpath_var_F77=no
20825       ;;
20826
20827     sysv5*)
20828       no_undefined_flag_F77=' -z text'
20829       # $CC -shared without GNU ld will not create a library from C++
20830       # object files and a static libstdc++, better avoid it by now
20831       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20832       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20833                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20834       hardcode_libdir_flag_spec_F77=
20835       hardcode_shlibpath_var_F77=no
20836       runpath_var='LD_RUN_PATH'
20837       ;;
20838
20839     uts4*)
20840       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20841       hardcode_libdir_flag_spec_F77='-L$libdir'
20842       hardcode_shlibpath_var_F77=no
20843       ;;
20844
20845     *)
20846       ld_shlibs_F77=no
20847       ;;
20848     esac
20849   fi
20850
20851 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20852 echo "${ECHO_T}$ld_shlibs_F77" >&6
20853 test "$ld_shlibs_F77" = no && can_build_shared=no
20854
20855 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20856 if test "$GCC" = yes; then
20857   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20858 fi
20859
20860 #
20861 # Do we need to explicitly link libc?
20862 #
20863 case "x$archive_cmds_need_lc_F77" in
20864 x|xyes)
20865   # Assume -lc should be added
20866   archive_cmds_need_lc_F77=yes
20867
20868   if test "$enable_shared" = yes && test "$GCC" = yes; then
20869     case $archive_cmds_F77 in
20870     *'~'*)
20871       # FIXME: we may have to deal with multi-command sequences.
20872       ;;
20873     '$CC '*)
20874       # Test whether the compiler implicitly links with -lc since on some
20875       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20876       # to ld, don't add -lc before -lgcc.
20877       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20878 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20879       $rm conftest*
20880       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20881
20882       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20883   (eval $ac_compile) 2>&5
20884   ac_status=$?
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } 2>conftest.err; then
20887         soname=conftest
20888         lib=conftest
20889         libobjs=conftest.$ac_objext
20890         deplibs=
20891         wl=$lt_prog_compiler_wl_F77
20892         compiler_flags=-v
20893         linker_flags=-v
20894         verstring=
20895         output_objdir=.
20896         libname=conftest
20897         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20898         allow_undefined_flag_F77=
20899         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20900   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20901   ac_status=$?
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); }
20904         then
20905           archive_cmds_need_lc_F77=no
20906         else
20907           archive_cmds_need_lc_F77=yes
20908         fi
20909         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20910       else
20911         cat conftest.err 1>&5
20912       fi
20913       $rm conftest*
20914       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20915 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20916       ;;
20917     esac
20918   fi
20919   ;;
20920 esac
20921
20922 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20923 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20924 library_names_spec=
20925 libname_spec='lib$name'
20926 soname_spec=
20927 shrext_cmds=".so"
20928 postinstall_cmds=
20929 postuninstall_cmds=
20930 finish_cmds=
20931 finish_eval=
20932 shlibpath_var=
20933 shlibpath_overrides_runpath=unknown
20934 version_type=none
20935 dynamic_linker="$host_os ld.so"
20936 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20937 if test "$GCC" = yes; then
20938   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20939   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20940     # if the path contains ";" then we assume it to be the separator
20941     # otherwise default to the standard path separator (i.e. ":") - it is
20942     # assumed that no part of a normal pathname contains ";" but that should
20943     # okay in the real world where ";" in dirpaths is itself problematic.
20944     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20945   else
20946     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20947   fi
20948 else
20949   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20950 fi
20951 need_lib_prefix=unknown
20952 hardcode_into_libs=no
20953
20954 # when you set need_version to no, make sure it does not cause -set_version
20955 # flags to be left without arguments
20956 need_version=unknown
20957
20958 case $host_os in
20959 aix3*)
20960   version_type=linux
20961   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20962   shlibpath_var=LIBPATH
20963
20964   # AIX 3 has no versioning support, so we append a major version to the name.
20965   soname_spec='${libname}${release}${shared_ext}$major'
20966   ;;
20967
20968 aix4* | aix5*)
20969   version_type=linux
20970   need_lib_prefix=no
20971   need_version=no
20972   hardcode_into_libs=yes
20973   if test "$host_cpu" = ia64; then
20974     # AIX 5 supports IA64
20975     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20976     shlibpath_var=LD_LIBRARY_PATH
20977   else
20978     # With GCC up to 2.95.x, collect2 would create an import file
20979     # for dependence libraries.  The import file would start with
20980     # the line `#! .'.  This would cause the generated library to
20981     # depend on `.', always an invalid library.  This was fixed in
20982     # development snapshots of GCC prior to 3.0.
20983     case $host_os in
20984       aix4 | aix4.[01] | aix4.[01].*)
20985       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20986            echo ' yes '
20987            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20988         :
20989       else
20990         can_build_shared=no
20991       fi
20992       ;;
20993     esac
20994     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20995     # soname into executable. Probably we can add versioning support to
20996     # collect2, so additional links can be useful in future.
20997     if test "$aix_use_runtimelinking" = yes; then
20998       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20999       # instead of lib<name>.a to let people know that these are not
21000       # typical AIX shared libraries.
21001       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21002     else
21003       # We preserve .a as extension for shared libraries through AIX4.2
21004       # and later when we are not doing run time linking.
21005       library_names_spec='${libname}${release}.a $libname.a'
21006       soname_spec='${libname}${release}${shared_ext}$major'
21007     fi
21008     shlibpath_var=LIBPATH
21009   fi
21010   ;;
21011
21012 amigaos*)
21013   library_names_spec='$libname.ixlibrary $libname.a'
21014   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21015   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'
21016   ;;
21017
21018 beos*)
21019   library_names_spec='${libname}${shared_ext}'
21020   dynamic_linker="$host_os ld.so"
21021   shlibpath_var=LIBRARY_PATH
21022   ;;
21023
21024 bsdi4*)
21025   version_type=linux
21026   need_version=no
21027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21028   soname_spec='${libname}${release}${shared_ext}$major'
21029   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21030   shlibpath_var=LD_LIBRARY_PATH
21031   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21032   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21033   # the default ld.so.conf also contains /usr/contrib/lib and
21034   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21035   # libtool to hard-code these into programs
21036   ;;
21037
21038 cygwin* | mingw* | pw32*)
21039   version_type=windows
21040   shrext_cmds=".dll"
21041   need_version=no
21042   need_lib_prefix=no
21043
21044   case $GCC,$host_os in
21045   yes,cygwin* | yes,mingw* | yes,pw32*)
21046     library_names_spec='$libname.dll.a'
21047     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21048     postinstall_cmds='base_file=`basename \${file}`~
21049       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21050       dldir=$destdir/`dirname \$dlpath`~
21051       test -d \$dldir || mkdir -p \$dldir~
21052       $install_prog $dir/$dlname \$dldir/$dlname'
21053     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21054       dlpath=$dir/\$dldll~
21055        $rm \$dlpath'
21056     shlibpath_overrides_runpath=yes
21057
21058     case $host_os in
21059     cygwin*)
21060       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21061       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21062       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21063       ;;
21064     mingw*)
21065       # MinGW DLLs use traditional 'lib' prefix
21066       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21067       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21068       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21069         # It is most probably a Windows format PATH printed by
21070         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21071         # path with ; separators, and with drive letters. We can handle the
21072         # drive letters (cygwin fileutils understands them), so leave them,
21073         # especially as we might pass files found there to a mingw objdump,
21074         # which wouldn't understand a cygwinified path. Ahh.
21075         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21076       else
21077         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21078       fi
21079       ;;
21080     pw32*)
21081       # pw32 DLLs use 'pw' prefix rather than 'lib'
21082       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
21083       ;;
21084     esac
21085     ;;
21086
21087   *)
21088     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21089     ;;
21090   esac
21091   dynamic_linker='Win32 ld.exe'
21092   # FIXME: first we should search . and the directory the executable is in
21093   shlibpath_var=PATH
21094   ;;
21095
21096 darwin* | rhapsody*)
21097   dynamic_linker="$host_os dyld"
21098   version_type=darwin
21099   need_lib_prefix=no
21100   need_version=no
21101   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21102   soname_spec='${libname}${release}${major}$shared_ext'
21103   shlibpath_overrides_runpath=yes
21104   shlibpath_var=DYLD_LIBRARY_PATH
21105   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
21106   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21107   if test "$GCC" = yes; then
21108     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"`
21109   else
21110     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21111   fi
21112   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21113   ;;
21114
21115 dgux*)
21116   version_type=linux
21117   need_lib_prefix=no
21118   need_version=no
21119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21120   soname_spec='${libname}${release}${shared_ext}$major'
21121   shlibpath_var=LD_LIBRARY_PATH
21122   ;;
21123
21124 freebsd1*)
21125   dynamic_linker=no
21126   ;;
21127
21128 kfreebsd*-gnu)
21129   version_type=linux
21130   need_lib_prefix=no
21131   need_version=no
21132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21133   soname_spec='${libname}${release}${shared_ext}$major'
21134   shlibpath_var=LD_LIBRARY_PATH
21135   shlibpath_overrides_runpath=no
21136   hardcode_into_libs=yes
21137   dynamic_linker='GNU ld.so'
21138   ;;
21139
21140 freebsd*)
21141   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21142   version_type=freebsd-$objformat
21143   case $version_type in
21144     freebsd-elf*)
21145       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21146       need_version=no
21147       need_lib_prefix=no
21148       ;;
21149     freebsd-*)
21150       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21151       need_version=yes
21152       ;;
21153   esac
21154   shlibpath_var=LD_LIBRARY_PATH
21155   case $host_os in
21156   freebsd2*)
21157     shlibpath_overrides_runpath=yes
21158     ;;
21159   freebsd3.01* | freebsdelf3.01*)
21160     shlibpath_overrides_runpath=yes
21161     hardcode_into_libs=yes
21162     ;;
21163   *) # from 3.2 on
21164     shlibpath_overrides_runpath=no
21165     hardcode_into_libs=yes
21166     ;;
21167   esac
21168   ;;
21169
21170 gnu*)
21171   version_type=linux
21172   need_lib_prefix=no
21173   need_version=no
21174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21175   soname_spec='${libname}${release}${shared_ext}$major'
21176   shlibpath_var=LD_LIBRARY_PATH
21177   hardcode_into_libs=yes
21178   ;;
21179
21180 hpux9* | hpux10* | hpux11*)
21181   # Give a soname corresponding to the major version so that dld.sl refuses to
21182   # link against other versions.
21183   version_type=sunos
21184   need_lib_prefix=no
21185   need_version=no
21186   case "$host_cpu" in
21187   ia64*)
21188     shrext_cmds='.so'
21189     hardcode_into_libs=yes
21190     dynamic_linker="$host_os dld.so"
21191     shlibpath_var=LD_LIBRARY_PATH
21192     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21194     soname_spec='${libname}${release}${shared_ext}$major'
21195     if test "X$HPUX_IA64_MODE" = X32; then
21196       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21197     else
21198       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21199     fi
21200     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21201     ;;
21202    hppa*64*)
21203      shrext_cmds='.sl'
21204      hardcode_into_libs=yes
21205      dynamic_linker="$host_os dld.sl"
21206      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21207      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21208      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21209      soname_spec='${libname}${release}${shared_ext}$major'
21210      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21211      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21212      ;;
21213    *)
21214     shrext_cmds='.sl'
21215     dynamic_linker="$host_os dld.sl"
21216     shlibpath_var=SHLIB_PATH
21217     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21219     soname_spec='${libname}${release}${shared_ext}$major'
21220     ;;
21221   esac
21222   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21223   postinstall_cmds='chmod 555 $lib'
21224   ;;
21225
21226 irix5* | irix6* | nonstopux*)
21227   case $host_os in
21228     nonstopux*) version_type=nonstopux ;;
21229     *)
21230         if test "$lt_cv_prog_gnu_ld" = yes; then
21231                 version_type=linux
21232         else
21233                 version_type=irix
21234         fi ;;
21235   esac
21236   need_lib_prefix=no
21237   need_version=no
21238   soname_spec='${libname}${release}${shared_ext}$major'
21239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21240   case $host_os in
21241   irix5* | nonstopux*)
21242     libsuff= shlibsuff=
21243     ;;
21244   *)
21245     case $LD in # libtool.m4 will add one of these switches to LD
21246     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21247       libsuff= shlibsuff= libmagic=32-bit;;
21248     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21249       libsuff=32 shlibsuff=N32 libmagic=N32;;
21250     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21251       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21252     *) libsuff= shlibsuff= libmagic=never-match;;
21253     esac
21254     ;;
21255   esac
21256   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21257   shlibpath_overrides_runpath=no
21258   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21259   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21260   hardcode_into_libs=yes
21261   ;;
21262
21263 # No shared lib support for Linux oldld, aout, or coff.
21264 linux*oldld* | linux*aout* | linux*coff*)
21265   dynamic_linker=no
21266   ;;
21267
21268 # This must be Linux ELF.
21269 linux*)
21270   version_type=linux
21271   need_lib_prefix=no
21272   need_version=no
21273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21274   soname_spec='${libname}${release}${shared_ext}$major'
21275   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21276   shlibpath_var=LD_LIBRARY_PATH
21277   shlibpath_overrides_runpath=no
21278   # This implies no fast_install, which is unacceptable.
21279   # Some rework will be needed to allow for fast_install
21280   # before this can be enabled.
21281   hardcode_into_libs=yes
21282
21283   # find out which ABI we are using
21284   libsuff=
21285   case "$host_cpu" in
21286   x86_64*|s390x*|powerpc64*)
21287     echo '#line 21287 "configure"' > conftest.$ac_ext
21288     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21289   (eval $ac_compile) 2>&5
21290   ac_status=$?
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); }; then
21293       case `/usr/bin/file conftest.$ac_objext` in
21294       *64-bit*)
21295         libsuff=64
21296         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
21297         ;;
21298       esac
21299     fi
21300     rm -rf conftest*
21301     ;;
21302   esac
21303
21304   # Append ld.so.conf contents to the search path
21305   if test -f /etc/ld.so.conf; then
21306     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
21307     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
21308   fi
21309
21310   # We used to test for /lib/ld.so.1 and disable shared libraries on
21311   # powerpc, because MkLinux only supported shared libraries with the
21312   # GNU dynamic linker.  Since this was broken with cross compilers,
21313   # most powerpc-linux boxes support dynamic linking these days and
21314   # people can always --disable-shared, the test was removed, and we
21315   # assume the GNU/Linux dynamic linker is in use.
21316   dynamic_linker='GNU/Linux ld.so'
21317   ;;
21318
21319 knetbsd*-gnu)
21320   version_type=linux
21321   need_lib_prefix=no
21322   need_version=no
21323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21324   soname_spec='${libname}${release}${shared_ext}$major'
21325   shlibpath_var=LD_LIBRARY_PATH
21326   shlibpath_overrides_runpath=no
21327   hardcode_into_libs=yes
21328   dynamic_linker='GNU ld.so'
21329   ;;
21330
21331 netbsd*)
21332   version_type=sunos
21333   need_lib_prefix=no
21334   need_version=no
21335   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21337     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21338     dynamic_linker='NetBSD (a.out) ld.so'
21339   else
21340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21341     soname_spec='${libname}${release}${shared_ext}$major'
21342     dynamic_linker='NetBSD ld.elf_so'
21343   fi
21344   shlibpath_var=LD_LIBRARY_PATH
21345   shlibpath_overrides_runpath=yes
21346   hardcode_into_libs=yes
21347   ;;
21348
21349 newsos6)
21350   version_type=linux
21351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21352   shlibpath_var=LD_LIBRARY_PATH
21353   shlibpath_overrides_runpath=yes
21354   ;;
21355
21356 nto-qnx*)
21357   version_type=linux
21358   need_lib_prefix=no
21359   need_version=no
21360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21361   soname_spec='${libname}${release}${shared_ext}$major'
21362   shlibpath_var=LD_LIBRARY_PATH
21363   shlibpath_overrides_runpath=yes
21364   ;;
21365
21366 openbsd*)
21367   version_type=sunos
21368   need_lib_prefix=no
21369   need_version=yes
21370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21371   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21372   shlibpath_var=LD_LIBRARY_PATH
21373   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21374     case $host_os in
21375       openbsd2.[89] | openbsd2.[89].*)
21376         shlibpath_overrides_runpath=no
21377         ;;
21378       *)
21379         shlibpath_overrides_runpath=yes
21380         ;;
21381       esac
21382   else
21383     shlibpath_overrides_runpath=yes
21384   fi
21385   ;;
21386
21387 os2*)
21388   libname_spec='$name'
21389   shrext_cmds=".dll"
21390   need_lib_prefix=no
21391   library_names_spec='$libname${shared_ext} $libname.a'
21392   dynamic_linker='OS/2 ld.exe'
21393   shlibpath_var=LIBPATH
21394   ;;
21395
21396 osf3* | osf4* | osf5*)
21397   version_type=osf
21398   need_lib_prefix=no
21399   need_version=no
21400   soname_spec='${libname}${release}${shared_ext}$major'
21401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21402   shlibpath_var=LD_LIBRARY_PATH
21403   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21404   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21405   ;;
21406
21407 sco3.2v5*)
21408   version_type=osf
21409   soname_spec='${libname}${release}${shared_ext}$major'
21410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21411   shlibpath_var=LD_LIBRARY_PATH
21412   ;;
21413
21414 solaris*)
21415   version_type=linux
21416   need_lib_prefix=no
21417   need_version=no
21418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21419   soname_spec='${libname}${release}${shared_ext}$major'
21420   shlibpath_var=LD_LIBRARY_PATH
21421   shlibpath_overrides_runpath=yes
21422   hardcode_into_libs=yes
21423   # ldd complains unless libraries are executable
21424   postinstall_cmds='chmod +x $lib'
21425   ;;
21426
21427 sunos4*)
21428   version_type=sunos
21429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21430   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21431   shlibpath_var=LD_LIBRARY_PATH
21432   shlibpath_overrides_runpath=yes
21433   if test "$with_gnu_ld" = yes; then
21434     need_lib_prefix=no
21435   fi
21436   need_version=yes
21437   ;;
21438
21439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21440   version_type=linux
21441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21442   soname_spec='${libname}${release}${shared_ext}$major'
21443   shlibpath_var=LD_LIBRARY_PATH
21444   case $host_vendor in
21445     sni)
21446       shlibpath_overrides_runpath=no
21447       need_lib_prefix=no
21448       export_dynamic_flag_spec='${wl}-Blargedynsym'
21449       runpath_var=LD_RUN_PATH
21450       ;;
21451     siemens)
21452       need_lib_prefix=no
21453       ;;
21454     motorola)
21455       need_lib_prefix=no
21456       need_version=no
21457       shlibpath_overrides_runpath=no
21458       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21459       ;;
21460   esac
21461   ;;
21462
21463 sysv4*MP*)
21464   if test -d /usr/nec ;then
21465     version_type=linux
21466     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21467     soname_spec='$libname${shared_ext}.$major'
21468     shlibpath_var=LD_LIBRARY_PATH
21469   fi
21470   ;;
21471
21472 uts4*)
21473   version_type=linux
21474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21475   soname_spec='${libname}${release}${shared_ext}$major'
21476   shlibpath_var=LD_LIBRARY_PATH
21477   ;;
21478
21479 *)
21480   dynamic_linker=no
21481   ;;
21482 esac
21483 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21484 echo "${ECHO_T}$dynamic_linker" >&6
21485 test "$dynamic_linker" = no && can_build_shared=no
21486
21487 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21489 hardcode_action_F77=
21490 if test -n "$hardcode_libdir_flag_spec_F77" || \
21491    test -n "$runpath_var F77" || \
21492    test "X$hardcode_automatic_F77"="Xyes" ; then
21493
21494   # We can hardcode non-existant directories.
21495   if test "$hardcode_direct_F77" != no &&
21496      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21497      # have to relink, otherwise we might link with an installed library
21498      # when we should be linking with a yet-to-be-installed one
21499      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21500      test "$hardcode_minus_L_F77" != no; then
21501     # Linking always hardcodes the temporary library directory.
21502     hardcode_action_F77=relink
21503   else
21504     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21505     hardcode_action_F77=immediate
21506   fi
21507 else
21508   # We cannot hardcode anything, or else we can only hardcode existing
21509   # directories.
21510   hardcode_action_F77=unsupported
21511 fi
21512 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21513 echo "${ECHO_T}$hardcode_action_F77" >&6
21514
21515 if test "$hardcode_action_F77" = relink; then
21516   # Fast installation is not supported
21517   enable_fast_install=no
21518 elif test "$shlibpath_overrides_runpath" = yes ||
21519      test "$enable_shared" = no; then
21520   # Fast installation is not necessary
21521   enable_fast_install=needless
21522 fi
21523
21524 striplib=
21525 old_striplib=
21526 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21527 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21528 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21529   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21530   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21531   echo "$as_me:$LINENO: result: yes" >&5
21532 echo "${ECHO_T}yes" >&6
21533 else
21534 # FIXME - insert some real tests, host_os isn't really good enough
21535   case $host_os in
21536    darwin*)
21537        if test -n "$STRIP" ; then
21538          striplib="$STRIP -x"
21539          echo "$as_me:$LINENO: result: yes" >&5
21540 echo "${ECHO_T}yes" >&6
21541        else
21542   echo "$as_me:$LINENO: result: no" >&5
21543 echo "${ECHO_T}no" >&6
21544 fi
21545        ;;
21546    *)
21547   echo "$as_me:$LINENO: result: no" >&5
21548 echo "${ECHO_T}no" >&6
21549     ;;
21550   esac
21551 fi
21552
21553
21554
21555 # The else clause should only fire when bootstrapping the
21556 # libtool distribution, otherwise you forgot to ship ltmain.sh
21557 # with your package, and you will get complaints that there are
21558 # no rules to generate ltmain.sh.
21559 if test -f "$ltmain"; then
21560   # See if we are running on zsh, and set the options which allow our commands through
21561   # without removal of \ escapes.
21562   if test -n "${ZSH_VERSION+set}" ; then
21563     setopt NO_GLOB_SUBST
21564   fi
21565   # Now quote all the things that may contain metacharacters while being
21566   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21567   # variables and quote the copies for generation of the libtool script.
21568   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21569     SED SHELL STRIP \
21570     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21571     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21572     deplibs_check_method reload_flag reload_cmds need_locks \
21573     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21574     lt_cv_sys_global_symbol_to_c_name_address \
21575     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21576     old_postinstall_cmds old_postuninstall_cmds \
21577     compiler_F77 \
21578     CC_F77 \
21579     LD_F77 \
21580     lt_prog_compiler_wl_F77 \
21581     lt_prog_compiler_pic_F77 \
21582     lt_prog_compiler_static_F77 \
21583     lt_prog_compiler_no_builtin_flag_F77 \
21584     export_dynamic_flag_spec_F77 \
21585     thread_safe_flag_spec_F77 \
21586     whole_archive_flag_spec_F77 \
21587     enable_shared_with_static_runtimes_F77 \
21588     old_archive_cmds_F77 \
21589     old_archive_from_new_cmds_F77 \
21590     predep_objects_F77 \
21591     postdep_objects_F77 \
21592     predeps_F77 \
21593     postdeps_F77 \
21594     compiler_lib_search_path_F77 \
21595     archive_cmds_F77 \
21596     archive_expsym_cmds_F77 \
21597     postinstall_cmds_F77 \
21598     postuninstall_cmds_F77 \
21599     old_archive_from_expsyms_cmds_F77 \
21600     allow_undefined_flag_F77 \
21601     no_undefined_flag_F77 \
21602     export_symbols_cmds_F77 \
21603     hardcode_libdir_flag_spec_F77 \
21604     hardcode_libdir_flag_spec_ld_F77 \
21605     hardcode_libdir_separator_F77 \
21606     hardcode_automatic_F77 \
21607     module_cmds_F77 \
21608     module_expsym_cmds_F77 \
21609     lt_cv_prog_compiler_c_o_F77 \
21610     exclude_expsyms_F77 \
21611     include_expsyms_F77; do
21612
21613     case $var in
21614     old_archive_cmds_F77 | \
21615     old_archive_from_new_cmds_F77 | \
21616     archive_cmds_F77 | \
21617     archive_expsym_cmds_F77 | \
21618     module_cmds_F77 | \
21619     module_expsym_cmds_F77 | \
21620     old_archive_from_expsyms_cmds_F77 | \
21621     export_symbols_cmds_F77 | \
21622     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21623     postinstall_cmds | postuninstall_cmds | \
21624     old_postinstall_cmds | old_postuninstall_cmds | \
21625     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21626       # Double-quote double-evaled strings.
21627       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21628       ;;
21629     *)
21630       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21631       ;;
21632     esac
21633   done
21634
21635   case $lt_echo in
21636   *'\$0 --fallback-echo"')
21637     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21638     ;;
21639   esac
21640
21641 cfgfile="$ofile"
21642
21643   cat <<__EOF__ >> "$cfgfile"
21644 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21645
21646 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21647
21648 # Shell to use when invoking shell scripts.
21649 SHELL=$lt_SHELL
21650
21651 # Whether or not to build shared libraries.
21652 build_libtool_libs=$enable_shared
21653
21654 # Whether or not to build static libraries.
21655 build_old_libs=$enable_static
21656
21657 # Whether or not to add -lc for building shared libraries.
21658 build_libtool_need_lc=$archive_cmds_need_lc_F77
21659
21660 # Whether or not to disallow shared libs when runtime libs are static
21661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21662
21663 # Whether or not to optimize for fast installation.
21664 fast_install=$enable_fast_install
21665
21666 # The host system.
21667 host_alias=$host_alias
21668 host=$host
21669
21670 # An echo program that does not interpret backslashes.
21671 echo=$lt_echo
21672
21673 # The archiver.
21674 AR=$lt_AR
21675 AR_FLAGS=$lt_AR_FLAGS
21676
21677 # A C compiler.
21678 LTCC=$lt_LTCC
21679
21680 # A language-specific compiler.
21681 CC=$lt_compiler_F77
21682
21683 # Is the compiler the GNU C compiler?
21684 with_gcc=$GCC_F77
21685
21686 # An ERE matcher.
21687 EGREP=$lt_EGREP
21688
21689 # The linker used to build libraries.
21690 LD=$lt_LD_F77
21691
21692 # Whether we need hard or soft links.
21693 LN_S=$lt_LN_S
21694
21695 # A BSD-compatible nm program.
21696 NM=$lt_NM
21697
21698 # A symbol stripping program
21699 STRIP=$lt_STRIP
21700
21701 # Used to examine libraries when file_magic_cmd begins "file"
21702 MAGIC_CMD=$MAGIC_CMD
21703
21704 # Used on cygwin: DLL creation program.
21705 DLLTOOL="$DLLTOOL"
21706
21707 # Used on cygwin: object dumper.
21708 OBJDUMP="$OBJDUMP"
21709
21710 # Used on cygwin: assembler.
21711 AS="$AS"
21712
21713 # The name of the directory that contains temporary libtool files.
21714 objdir=$objdir
21715
21716 # How to create reloadable object files.
21717 reload_flag=$lt_reload_flag
21718 reload_cmds=$lt_reload_cmds
21719
21720 # How to pass a linker flag through the compiler.
21721 wl=$lt_lt_prog_compiler_wl_F77
21722
21723 # Object file suffix (normally "o").
21724 objext="$ac_objext"
21725
21726 # Old archive suffix (normally "a").
21727 libext="$libext"
21728
21729 # Shared library suffix (normally ".so").
21730 shrext_cmds='$shrext_cmds'
21731
21732 # Executable file suffix (normally "").
21733 exeext="$exeext"
21734
21735 # Additional compiler flags for building library objects.
21736 pic_flag=$lt_lt_prog_compiler_pic_F77
21737 pic_mode=$pic_mode
21738
21739 # What is the maximum length of a command?
21740 max_cmd_len=$lt_cv_sys_max_cmd_len
21741
21742 # Does compiler simultaneously support -c and -o options?
21743 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21744
21745 # Must we lock files when doing compilation ?
21746 need_locks=$lt_need_locks
21747
21748 # Do we need the lib prefix for modules?
21749 need_lib_prefix=$need_lib_prefix
21750
21751 # Do we need a version for libraries?
21752 need_version=$need_version
21753
21754 # Whether dlopen is supported.
21755 dlopen_support=$enable_dlopen
21756
21757 # Whether dlopen of programs is supported.
21758 dlopen_self=$enable_dlopen_self
21759
21760 # Whether dlopen of statically linked programs is supported.
21761 dlopen_self_static=$enable_dlopen_self_static
21762
21763 # Compiler flag to prevent dynamic linking.
21764 link_static_flag=$lt_lt_prog_compiler_static_F77
21765
21766 # Compiler flag to turn off builtin functions.
21767 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21768
21769 # Compiler flag to allow reflexive dlopens.
21770 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21771
21772 # Compiler flag to generate shared objects directly from archives.
21773 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21774
21775 # Compiler flag to generate thread-safe objects.
21776 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21777
21778 # Library versioning type.
21779 version_type=$version_type
21780
21781 # Format of library name prefix.
21782 libname_spec=$lt_libname_spec
21783
21784 # List of archive names.  First name is the real one, the rest are links.
21785 # The last name is the one that the linker finds with -lNAME.
21786 library_names_spec=$lt_library_names_spec
21787
21788 # The coded name of the library, if different from the real name.
21789 soname_spec=$lt_soname_spec
21790
21791 # Commands used to build and install an old-style archive.
21792 RANLIB=$lt_RANLIB
21793 old_archive_cmds=$lt_old_archive_cmds_F77
21794 old_postinstall_cmds=$lt_old_postinstall_cmds
21795 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21796
21797 # Create an old-style archive from a shared archive.
21798 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21799
21800 # Create a temporary old-style archive to link instead of a shared archive.
21801 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21802
21803 # Commands used to build and install a shared archive.
21804 archive_cmds=$lt_archive_cmds_F77
21805 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21806 postinstall_cmds=$lt_postinstall_cmds
21807 postuninstall_cmds=$lt_postuninstall_cmds
21808
21809 # Commands used to build a loadable module (assumed same as above if empty)
21810 module_cmds=$lt_module_cmds_F77
21811 module_expsym_cmds=$lt_module_expsym_cmds_F77
21812
21813 # Commands to strip libraries.
21814 old_striplib=$lt_old_striplib
21815 striplib=$lt_striplib
21816
21817 # Dependencies to place before the objects being linked to create a
21818 # shared library.
21819 predep_objects=$lt_predep_objects_F77
21820
21821 # Dependencies to place after the objects being linked to create a
21822 # shared library.
21823 postdep_objects=$lt_postdep_objects_F77
21824
21825 # Dependencies to place before the objects being linked to create a
21826 # shared library.
21827 predeps=$lt_predeps_F77
21828
21829 # Dependencies to place after the objects being linked to create a
21830 # shared library.
21831 postdeps=$lt_postdeps_F77
21832
21833 # The library search path used internally by the compiler when linking
21834 # a shared library.
21835 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21836
21837 # Method to check whether dependent libraries are shared objects.
21838 deplibs_check_method=$lt_deplibs_check_method
21839
21840 # Command to use when deplibs_check_method == file_magic.
21841 file_magic_cmd=$lt_file_magic_cmd
21842
21843 # Flag that allows shared libraries with undefined symbols to be built.
21844 allow_undefined_flag=$lt_allow_undefined_flag_F77
21845
21846 # Flag that forces no undefined symbols.
21847 no_undefined_flag=$lt_no_undefined_flag_F77
21848
21849 # Commands used to finish a libtool library installation in a directory.
21850 finish_cmds=$lt_finish_cmds
21851
21852 # Same as above, but a single script fragment to be evaled but not shown.
21853 finish_eval=$lt_finish_eval
21854
21855 # Take the output of nm and produce a listing of raw symbols and C names.
21856 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21857
21858 # Transform the output of nm in a proper C declaration
21859 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21860
21861 # Transform the output of nm in a C name address pair
21862 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21863
21864 # This is the shared library runtime path variable.
21865 runpath_var=$runpath_var
21866
21867 # This is the shared library path variable.
21868 shlibpath_var=$shlibpath_var
21869
21870 # Is shlibpath searched before the hard-coded library search path?
21871 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21872
21873 # How to hardcode a shared library path into an executable.
21874 hardcode_action=$hardcode_action_F77
21875
21876 # Whether we should hardcode library paths into libraries.
21877 hardcode_into_libs=$hardcode_into_libs
21878
21879 # Flag to hardcode \$libdir into a binary during linking.
21880 # This must work even if \$libdir does not exist.
21881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21882
21883 # If ld is used when linking, flag to hardcode \$libdir into
21884 # a binary during linking. This must work even if \$libdir does
21885 # not exist.
21886 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21887
21888 # Whether we need a single -rpath flag with a separated argument.
21889 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21890
21891 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21892 # resulting binary.
21893 hardcode_direct=$hardcode_direct_F77
21894
21895 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21896 # resulting binary.
21897 hardcode_minus_L=$hardcode_minus_L_F77
21898
21899 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21900 # the resulting binary.
21901 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21902
21903 # Set to yes if building a shared library automatically hardcodes DIR into the library
21904 # and all subsequent libraries and executables linked against it.
21905 hardcode_automatic=$hardcode_automatic_F77
21906
21907 # Variables whose values should be saved in libtool wrapper scripts and
21908 # restored at relink time.
21909 variables_saved_for_relink="$variables_saved_for_relink"
21910
21911 # Whether libtool must link a program against all its dependency libraries.
21912 link_all_deplibs=$link_all_deplibs_F77
21913
21914 # Compile-time system search path for libraries
21915 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21916
21917 # Run-time system search path for libraries
21918 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21919
21920 # Fix the shell variable \$srcfile for the compiler.
21921 fix_srcfile_path="$fix_srcfile_path_F77"
21922
21923 # Set to yes if exported symbols are required.
21924 always_export_symbols=$always_export_symbols_F77
21925
21926 # The commands to list exported symbols.
21927 export_symbols_cmds=$lt_export_symbols_cmds_F77
21928
21929 # The commands to extract the exported symbol list from a shared archive.
21930 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21931
21932 # Symbols that should not be listed in the preloaded symbols.
21933 exclude_expsyms=$lt_exclude_expsyms_F77
21934
21935 # Symbols that must always be exported.
21936 include_expsyms=$lt_include_expsyms_F77
21937
21938 # ### END LIBTOOL TAG CONFIG: $tagname
21939
21940 __EOF__
21941
21942
21943 else
21944   # If there is no Makefile yet, we rely on a make rule to execute
21945   # `config.status --recheck' to rerun these tests and create the
21946   # libtool script then.
21947   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21948   if test -f "$ltmain_in"; then
21949     test -f Makefile && make "$ltmain"
21950   fi
21951 fi
21952
21953
21954 ac_ext=c
21955 ac_cpp='$CPP $CPPFLAGS'
21956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21959
21960 CC="$lt_save_CC"
21961
21962         else
21963           tagname=""
21964         fi
21965         ;;
21966
21967       GCJ)
21968         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21969
21970
21971
21972 # Source file extension for Java test sources.
21973 ac_ext=java
21974
21975 # Object file extension for compiled Java test sources.
21976 objext=o
21977 objext_GCJ=$objext
21978
21979 # Code to be used in simple compile tests
21980 lt_simple_compile_test_code="class foo {}\n"
21981
21982 # Code to be used in simple link tests
21983 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21984
21985 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21986
21987 # If no C compiler was specified, use CC.
21988 LTCC=${LTCC-"$CC"}
21989
21990 # Allow CC to be a program name with arguments.
21991 compiler=$CC
21992
21993
21994 # Allow CC to be a program name with arguments.
21995 lt_save_CC="$CC"
21996 CC=${GCJ-"gcj"}
21997 compiler=$CC
21998 compiler_GCJ=$CC
21999
22000 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22001 archive_cmds_need_lc_GCJ=no
22002
22003
22004 lt_prog_compiler_no_builtin_flag_GCJ=
22005
22006 if test "$GCC" = yes; then
22007   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22008
22009
22010 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22011 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
22012 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22013   echo $ECHO_N "(cached) $ECHO_C" >&6
22014 else
22015   lt_cv_prog_compiler_rtti_exceptions=no
22016   ac_outfile=conftest.$ac_objext
22017    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22018    lt_compiler_flag="-fno-rtti -fno-exceptions"
22019    # Insert the option either (1) after the last *FLAGS variable, or
22020    # (2) before a word containing "conftest.", or (3) at the end.
22021    # Note that $ac_compile itself does not contain backslashes and begins
22022    # with a dollar sign (not a hyphen), so the echo should work correctly.
22023    # The option is referenced via a variable to avoid confusing sed.
22024    lt_compile=`echo "$ac_compile" | $SED \
22025    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22026    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22027    -e 's:$: $lt_compiler_flag:'`
22028    (eval echo "\"\$as_me:22028: $lt_compile\"" >&5)
22029    (eval "$lt_compile" 2>conftest.err)
22030    ac_status=$?
22031    cat conftest.err >&5
22032    echo "$as_me:22032: \$? = $ac_status" >&5
22033    if (exit $ac_status) && test -s "$ac_outfile"; then
22034      # The compiler can only warn and ignore the option if not recognized
22035      # So say no if there are warnings
22036      if test ! -s conftest.err; then
22037        lt_cv_prog_compiler_rtti_exceptions=yes
22038      fi
22039    fi
22040    $rm conftest*
22041
22042 fi
22043 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22044 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
22045
22046 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22047     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22048 else
22049     :
22050 fi
22051
22052 fi
22053
22054 lt_prog_compiler_wl_GCJ=
22055 lt_prog_compiler_pic_GCJ=
22056 lt_prog_compiler_static_GCJ=
22057
22058 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22059 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22060
22061   if test "$GCC" = yes; then
22062     lt_prog_compiler_wl_GCJ='-Wl,'
22063     lt_prog_compiler_static_GCJ='-static'
22064
22065     case $host_os in
22066       aix*)
22067       # All AIX code is PIC.
22068       if test "$host_cpu" = ia64; then
22069         # AIX 5 now supports IA64 processor
22070         lt_prog_compiler_static_GCJ='-Bstatic'
22071       fi
22072       ;;
22073
22074     amigaos*)
22075       # FIXME: we need at least 68020 code to build shared libraries, but
22076       # adding the `-m68020' flag to GCC prevents building anything better,
22077       # like `-m68040'.
22078       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22079       ;;
22080
22081     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22082       # PIC is the default for these OSes.
22083       ;;
22084
22085     mingw* | pw32* | os2*)
22086       # This hack is so that the source file can tell whether it is being
22087       # built for inclusion in a dll (and should export symbols for example).
22088       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22089       ;;
22090
22091     darwin* | rhapsody*)
22092       # PIC is the default on this platform
22093       # Common symbols not allowed in MH_DYLIB files
22094       lt_prog_compiler_pic_GCJ='-fno-common'
22095       ;;
22096
22097     msdosdjgpp*)
22098       # Just because we use GCC doesn't mean we suddenly get shared libraries
22099       # on systems that don't support them.
22100       lt_prog_compiler_can_build_shared_GCJ=no
22101       enable_shared=no
22102       ;;
22103
22104     sysv4*MP*)
22105       if test -d /usr/nec; then
22106         lt_prog_compiler_pic_GCJ=-Kconform_pic
22107       fi
22108       ;;
22109
22110     hpux*)
22111       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22112       # not for PA HP-UX.
22113       case "$host_cpu" in
22114       hppa*64*|ia64*)
22115         # +Z the default
22116         ;;
22117       *)
22118         lt_prog_compiler_pic_GCJ='-fPIC'
22119         ;;
22120       esac
22121       ;;
22122
22123     *)
22124       lt_prog_compiler_pic_GCJ='-fPIC'
22125       ;;
22126     esac
22127   else
22128     # PORTME Check for flag to pass linker flags through the system compiler.
22129     case $host_os in
22130     aix*)
22131       lt_prog_compiler_wl_GCJ='-Wl,'
22132       if test "$host_cpu" = ia64; then
22133         # AIX 5 now supports IA64 processor
22134         lt_prog_compiler_static_GCJ='-Bstatic'
22135       else
22136         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22137       fi
22138       ;;
22139
22140     mingw* | pw32* | os2*)
22141       # This hack is so that the source file can tell whether it is being
22142       # built for inclusion in a dll (and should export symbols for example).
22143       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22144       ;;
22145
22146     hpux9* | hpux10* | hpux11*)
22147       lt_prog_compiler_wl_GCJ='-Wl,'
22148       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22149       # not for PA HP-UX.
22150       case "$host_cpu" in
22151       hppa*64*|ia64*)
22152         # +Z the default
22153         ;;
22154       *)
22155         lt_prog_compiler_pic_GCJ='+Z'
22156         ;;
22157       esac
22158       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22159       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22160       ;;
22161
22162     irix5* | irix6* | nonstopux*)
22163       lt_prog_compiler_wl_GCJ='-Wl,'
22164       # PIC (with -KPIC) is the default.
22165       lt_prog_compiler_static_GCJ='-non_shared'
22166       ;;
22167
22168     newsos6)
22169       lt_prog_compiler_pic_GCJ='-KPIC'
22170       lt_prog_compiler_static_GCJ='-Bstatic'
22171       ;;
22172
22173     linux*)
22174       case $CC in
22175       icc* | ecc*)
22176         lt_prog_compiler_wl_GCJ='-Wl,'
22177         lt_prog_compiler_pic_GCJ='-KPIC'
22178         lt_prog_compiler_static_GCJ='-static'
22179         ;;
22180       ccc*)
22181         lt_prog_compiler_wl_GCJ='-Wl,'
22182         # All Alpha code is PIC.
22183         lt_prog_compiler_static_GCJ='-non_shared'
22184         ;;
22185       esac
22186       ;;
22187
22188     osf3* | osf4* | osf5*)
22189       lt_prog_compiler_wl_GCJ='-Wl,'
22190       # All OSF/1 code is PIC.
22191       lt_prog_compiler_static_GCJ='-non_shared'
22192       ;;
22193
22194     sco3.2v5*)
22195       lt_prog_compiler_pic_GCJ='-Kpic'
22196       lt_prog_compiler_static_GCJ='-dn'
22197       ;;
22198
22199     solaris*)
22200       lt_prog_compiler_wl_GCJ='-Wl,'
22201       lt_prog_compiler_pic_GCJ='-KPIC'
22202       lt_prog_compiler_static_GCJ='-Bstatic'
22203       ;;
22204
22205     sunos4*)
22206       lt_prog_compiler_wl_GCJ='-Qoption ld '
22207       lt_prog_compiler_pic_GCJ='-PIC'
22208       lt_prog_compiler_static_GCJ='-Bstatic'
22209       ;;
22210
22211     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22212       lt_prog_compiler_wl_GCJ='-Wl,'
22213       lt_prog_compiler_pic_GCJ='-KPIC'
22214       lt_prog_compiler_static_GCJ='-Bstatic'
22215       ;;
22216
22217     sysv4*MP*)
22218       if test -d /usr/nec ;then
22219         lt_prog_compiler_pic_GCJ='-Kconform_pic'
22220         lt_prog_compiler_static_GCJ='-Bstatic'
22221       fi
22222       ;;
22223
22224     uts4*)
22225       lt_prog_compiler_pic_GCJ='-pic'
22226       lt_prog_compiler_static_GCJ='-Bstatic'
22227       ;;
22228
22229     *)
22230       lt_prog_compiler_can_build_shared_GCJ=no
22231       ;;
22232     esac
22233   fi
22234
22235 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22236 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22237
22238 #
22239 # Check to make sure the PIC flag actually works.
22240 #
22241 if test -n "$lt_prog_compiler_pic_GCJ"; then
22242
22243 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22244 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22245 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22246   echo $ECHO_N "(cached) $ECHO_C" >&6
22247 else
22248   lt_prog_compiler_pic_works_GCJ=no
22249   ac_outfile=conftest.$ac_objext
22250    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22251    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22252    # Insert the option either (1) after the last *FLAGS variable, or
22253    # (2) before a word containing "conftest.", or (3) at the end.
22254    # Note that $ac_compile itself does not contain backslashes and begins
22255    # with a dollar sign (not a hyphen), so the echo should work correctly.
22256    # The option is referenced via a variable to avoid confusing sed.
22257    lt_compile=`echo "$ac_compile" | $SED \
22258    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22259    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22260    -e 's:$: $lt_compiler_flag:'`
22261    (eval echo "\"\$as_me:22261: $lt_compile\"" >&5)
22262    (eval "$lt_compile" 2>conftest.err)
22263    ac_status=$?
22264    cat conftest.err >&5
22265    echo "$as_me:22265: \$? = $ac_status" >&5
22266    if (exit $ac_status) && test -s "$ac_outfile"; then
22267      # The compiler can only warn and ignore the option if not recognized
22268      # So say no if there are warnings
22269      if test ! -s conftest.err; then
22270        lt_prog_compiler_pic_works_GCJ=yes
22271      fi
22272    fi
22273    $rm conftest*
22274
22275 fi
22276 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22277 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22278
22279 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22280     case $lt_prog_compiler_pic_GCJ in
22281      "" | " "*) ;;
22282      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22283      esac
22284 else
22285     lt_prog_compiler_pic_GCJ=
22286      lt_prog_compiler_can_build_shared_GCJ=no
22287 fi
22288
22289 fi
22290 case "$host_os" in
22291   # For platforms which do not support PIC, -DPIC is meaningless:
22292   *djgpp*)
22293     lt_prog_compiler_pic_GCJ=
22294     ;;
22295   *)
22296     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22297     ;;
22298 esac
22299
22300 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22301 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22302 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22303   echo $ECHO_N "(cached) $ECHO_C" >&6
22304 else
22305   lt_cv_prog_compiler_c_o_GCJ=no
22306    $rm -r conftest 2>/dev/null
22307    mkdir conftest
22308    cd conftest
22309    mkdir out
22310    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22311
22312    lt_compiler_flag="-o out/conftest2.$ac_objext"
22313    # Insert the option either (1) after the last *FLAGS variable, or
22314    # (2) before a word containing "conftest.", or (3) at the end.
22315    # Note that $ac_compile itself does not contain backslashes and begins
22316    # with a dollar sign (not a hyphen), so the echo should work correctly.
22317    lt_compile=`echo "$ac_compile" | $SED \
22318    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22319    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22320    -e 's:$: $lt_compiler_flag:'`
22321    (eval echo "\"\$as_me:22321: $lt_compile\"" >&5)
22322    (eval "$lt_compile" 2>out/conftest.err)
22323    ac_status=$?
22324    cat out/conftest.err >&5
22325    echo "$as_me:22325: \$? = $ac_status" >&5
22326    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22327    then
22328      # The compiler can only warn and ignore the option if not recognized
22329      # So say no if there are warnings
22330      if test ! -s out/conftest.err; then
22331        lt_cv_prog_compiler_c_o_GCJ=yes
22332      fi
22333    fi
22334    chmod u+w .
22335    $rm conftest*
22336    # SGI C++ compiler will create directory out/ii_files/ for
22337    # template instantiation
22338    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22339    $rm out/* && rmdir out
22340    cd ..
22341    rmdir conftest
22342    $rm conftest*
22343
22344 fi
22345 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22346 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22347
22348
22349 hard_links="nottested"
22350 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22351   # do not overwrite the value of need_locks provided by the user
22352   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22353 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22354   hard_links=yes
22355   $rm conftest*
22356   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22357   touch conftest.a
22358   ln conftest.a conftest.b 2>&5 || hard_links=no
22359   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22360   echo "$as_me:$LINENO: result: $hard_links" >&5
22361 echo "${ECHO_T}$hard_links" >&6
22362   if test "$hard_links" = no; then
22363     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22364 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22365     need_locks=warn
22366   fi
22367 else
22368   need_locks=no
22369 fi
22370
22371 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22372 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22373
22374   runpath_var=
22375   allow_undefined_flag_GCJ=
22376   enable_shared_with_static_runtimes_GCJ=no
22377   archive_cmds_GCJ=
22378   archive_expsym_cmds_GCJ=
22379   old_archive_From_new_cmds_GCJ=
22380   old_archive_from_expsyms_cmds_GCJ=
22381   export_dynamic_flag_spec_GCJ=
22382   whole_archive_flag_spec_GCJ=
22383   thread_safe_flag_spec_GCJ=
22384   hardcode_libdir_flag_spec_GCJ=
22385   hardcode_libdir_flag_spec_ld_GCJ=
22386   hardcode_libdir_separator_GCJ=
22387   hardcode_direct_GCJ=no
22388   hardcode_minus_L_GCJ=no
22389   hardcode_shlibpath_var_GCJ=unsupported
22390   link_all_deplibs_GCJ=unknown
22391   hardcode_automatic_GCJ=no
22392   module_cmds_GCJ=
22393   module_expsym_cmds_GCJ=
22394   always_export_symbols_GCJ=no
22395   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22396   # include_expsyms should be a list of space-separated symbols to be *always*
22397   # included in the symbol list
22398   include_expsyms_GCJ=
22399   # exclude_expsyms can be an extended regexp of symbols to exclude
22400   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22401   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22402   # as well as any symbol that contains `d'.
22403   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22404   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22405   # platforms (ab)use it in PIC code, but their linkers get confused if
22406   # the symbol is explicitly referenced.  Since portable code cannot
22407   # rely on this symbol name, it's probably fine to never include it in
22408   # preloaded symbol tables.
22409   extract_expsyms_cmds=
22410
22411   case $host_os in
22412   cygwin* | mingw* | pw32*)
22413     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22414     # When not using gcc, we currently assume that we are using
22415     # Microsoft Visual C++.
22416     if test "$GCC" != yes; then
22417       with_gnu_ld=no
22418     fi
22419     ;;
22420   openbsd*)
22421     with_gnu_ld=no
22422     ;;
22423   esac
22424
22425   ld_shlibs_GCJ=yes
22426   if test "$with_gnu_ld" = yes; then
22427     # If archive_cmds runs LD, not CC, wlarc should be empty
22428     wlarc='${wl}'
22429
22430     # See if GNU ld supports shared libraries.
22431     case $host_os in
22432     aix3* | aix4* | aix5*)
22433       # On AIX/PPC, the GNU linker is very broken
22434       if test "$host_cpu" != ia64; then
22435         ld_shlibs_GCJ=no
22436         cat <<EOF 1>&2
22437
22438 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22439 *** to be unable to reliably create shared libraries on AIX.
22440 *** Therefore, libtool is disabling shared libraries support.  If you
22441 *** really care for shared libraries, you may want to modify your PATH
22442 *** so that a non-GNU linker is found, and then restart.
22443
22444 EOF
22445       fi
22446       ;;
22447
22448     amigaos*)
22449       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)'
22450       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22451       hardcode_minus_L_GCJ=yes
22452
22453       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22454       # that the semantics of dynamic libraries on AmigaOS, at least up
22455       # to version 4, is to share data among multiple programs linked
22456       # with the same dynamic library.  Since this doesn't match the
22457       # behavior of shared libraries on other platforms, we can't use
22458       # them.
22459       ld_shlibs_GCJ=no
22460       ;;
22461
22462     beos*)
22463       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22464         allow_undefined_flag_GCJ=unsupported
22465         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22466         # support --undefined.  This deserves some investigation.  FIXME
22467         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22468       else
22469         ld_shlibs_GCJ=no
22470       fi
22471       ;;
22472
22473     cygwin* | mingw* | pw32*)
22474       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22475       # as there is no search path for DLLs.
22476       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22477       allow_undefined_flag_GCJ=unsupported
22478       always_export_symbols_GCJ=no
22479       enable_shared_with_static_runtimes_GCJ=yes
22480       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22481
22482       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22483         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22484         # If the export-symbols file already is a .def file (1st line
22485         # is EXPORTS), use it as is; otherwise, prepend...
22486         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22487           cp $export_symbols $output_objdir/$soname.def;
22488         else
22489           echo EXPORTS > $output_objdir/$soname.def;
22490           cat $export_symbols >> $output_objdir/$soname.def;
22491         fi~
22492         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
22493       else
22494         ld_shlibs=no
22495       fi
22496       ;;
22497
22498     netbsd*)
22499       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22500         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22501         wlarc=
22502       else
22503         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22504         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22505       fi
22506       ;;
22507
22508     solaris* | sysv5*)
22509       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22510         ld_shlibs_GCJ=no
22511         cat <<EOF 1>&2
22512
22513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22514 *** create shared libraries on Solaris systems.  Therefore, libtool
22515 *** is disabling shared libraries support.  We urge you to upgrade GNU
22516 *** binutils to release 2.9.1 or newer.  Another option is to modify
22517 *** your PATH or compiler configuration so that the native linker is
22518 *** used, and then restart.
22519
22520 EOF
22521       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22522         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22523         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22524       else
22525         ld_shlibs_GCJ=no
22526       fi
22527       ;;
22528
22529     sunos4*)
22530       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22531       wlarc=
22532       hardcode_direct_GCJ=yes
22533       hardcode_shlibpath_var_GCJ=no
22534       ;;
22535
22536   linux*)
22537     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22538         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22539         archive_cmds_GCJ="$tmp_archive_cmds"
22540       supports_anon_versioning=no
22541       case `$LD -v 2>/dev/null` in
22542         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22543         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22544         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22545         *\ 2.11.*) ;; # other 2.11 versions
22546         *) supports_anon_versioning=yes ;;
22547       esac
22548       if test $supports_anon_versioning = yes; then
22549         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22550 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22551 $echo "local: *; };" >> $output_objdir/$libname.ver~
22552         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22553       else
22554         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22555       fi
22556     else
22557       ld_shlibs_GCJ=no
22558     fi
22559     ;;
22560
22561     *)
22562       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22563         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22564         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22565       else
22566         ld_shlibs_GCJ=no
22567       fi
22568       ;;
22569     esac
22570
22571     if test "$ld_shlibs_GCJ" = yes; then
22572       runpath_var=LD_RUN_PATH
22573       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22574       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22575       # ancient GNU ld didn't support --whole-archive et. al.
22576       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22577         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22578       else
22579         whole_archive_flag_spec_GCJ=
22580       fi
22581     fi
22582   else
22583     # PORTME fill in a description of your system's linker (not GNU ld)
22584     case $host_os in
22585     aix3*)
22586       allow_undefined_flag_GCJ=unsupported
22587       always_export_symbols_GCJ=yes
22588       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'
22589       # Note: this linker hardcodes the directories in LIBPATH if there
22590       # are no directories specified by -L.
22591       hardcode_minus_L_GCJ=yes
22592       if test "$GCC" = yes && test -z "$link_static_flag"; then
22593         # Neither direct hardcoding nor static linking is supported with a
22594         # broken collect2.
22595         hardcode_direct_GCJ=unsupported
22596       fi
22597       ;;
22598
22599     aix4* | aix5*)
22600       if test "$host_cpu" = ia64; then
22601         # On IA64, the linker does run time linking by default, so we don't
22602         # have to do anything special.
22603         aix_use_runtimelinking=no
22604         exp_sym_flag='-Bexport'
22605         no_entry_flag=""
22606       else
22607         # If we're using GNU nm, then we don't want the "-C" option.
22608         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22609         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22610           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'
22611         else
22612           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'
22613         fi
22614         aix_use_runtimelinking=no
22615
22616         # Test if we are trying to use run time linking or normal
22617         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22618         # need to do runtime linking.
22619         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22620           for ld_flag in $LDFLAGS; do
22621           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22622             aix_use_runtimelinking=yes
22623             break
22624           fi
22625           done
22626         esac
22627
22628         exp_sym_flag='-bexport'
22629         no_entry_flag='-bnoentry'
22630       fi
22631
22632       # When large executables or shared objects are built, AIX ld can
22633       # have problems creating the table of contents.  If linking a library
22634       # or program results in "error TOC overflow" add -mminimal-toc to
22635       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22636       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22637
22638       archive_cmds_GCJ=''
22639       hardcode_direct_GCJ=yes
22640       hardcode_libdir_separator_GCJ=':'
22641       link_all_deplibs_GCJ=yes
22642
22643       if test "$GCC" = yes; then
22644         case $host_os in aix4.012|aix4.012.*)
22645         # We only want to do this on AIX 4.2 and lower, the check
22646         # below for broken collect2 doesn't work under 4.3+
22647           collect2name=`${CC} -print-prog-name=collect2`
22648           if test -f "$collect2name" && \
22649            strings "$collect2name" | grep resolve_lib_name >/dev/null
22650           then
22651           # We have reworked collect2
22652           hardcode_direct_GCJ=yes
22653           else
22654           # We have old collect2
22655           hardcode_direct_GCJ=unsupported
22656           # It fails to find uninstalled libraries when the uninstalled
22657           # path is not listed in the libpath.  Setting hardcode_minus_L
22658           # to unsupported forces relinking
22659           hardcode_minus_L_GCJ=yes
22660           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22661           hardcode_libdir_separator_GCJ=
22662           fi
22663         esac
22664         shared_flag='-shared'
22665       else
22666         # not using gcc
22667         if test "$host_cpu" = ia64; then
22668         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22669         # chokes on -Wl,-G. The following line is correct:
22670           shared_flag='-G'
22671         else
22672         if test "$aix_use_runtimelinking" = yes; then
22673             shared_flag='${wl}-G'
22674           else
22675             shared_flag='${wl}-bM:SRE'
22676         fi
22677         fi
22678       fi
22679
22680       # It seems that -bexpall does not export symbols beginning with
22681       # underscore (_), so it is better to generate a list of symbols to export.
22682       always_export_symbols_GCJ=yes
22683       if test "$aix_use_runtimelinking" = yes; then
22684         # Warning - without using the other runtime loading flags (-brtl),
22685         # -berok will link without error, but may produce a broken library.
22686         allow_undefined_flag_GCJ='-berok'
22687        # Determine the default libpath from the value encoded in an empty executable.
22688        cat >conftest.$ac_ext <<_ACEOF
22689 /* confdefs.h.  */
22690 _ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h.  */
22694
22695 int
22696 main ()
22697 {
22698
22699   ;
22700   return 0;
22701 }
22702 _ACEOF
22703 rm -f conftest.$ac_objext conftest$ac_exeext
22704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22705   (eval $ac_link) 2>conftest.er1
22706   ac_status=$?
22707   grep -v '^ *+' conftest.er1 >conftest.err
22708   rm -f conftest.er1
22709   cat conftest.err >&5
22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711   (exit $ac_status); } &&
22712          { ac_try='test -z "$ac_c_werror_flag"
22713                          || test ! -s conftest.err'
22714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22715   (eval $ac_try) 2>&5
22716   ac_status=$?
22717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718   (exit $ac_status); }; } &&
22719          { ac_try='test -s conftest$ac_exeext'
22720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22721   (eval $ac_try) 2>&5
22722   ac_status=$?
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); }; }; then
22725
22726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22727 }'`
22728 # Check for a 64-bit object if we didn't find anything.
22729 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; }
22730 }'`; fi
22731 else
22732   echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22734
22735 fi
22736 rm -f conftest.err conftest.$ac_objext \
22737       conftest$ac_exeext conftest.$ac_ext
22738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22739
22740        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22741         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22742        else
22743         if test "$host_cpu" = ia64; then
22744           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22745           allow_undefined_flag_GCJ="-z nodefs"
22746           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
22747         else
22748          # Determine the default libpath from the value encoded in an empty executable.
22749          cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h.  */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h.  */
22755
22756 int
22757 main ()
22758 {
22759
22760   ;
22761   return 0;
22762 }
22763 _ACEOF
22764 rm -f conftest.$ac_objext conftest$ac_exeext
22765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22766   (eval $ac_link) 2>conftest.er1
22767   ac_status=$?
22768   grep -v '^ *+' conftest.er1 >conftest.err
22769   rm -f conftest.er1
22770   cat conftest.err >&5
22771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772   (exit $ac_status); } &&
22773          { ac_try='test -z "$ac_c_werror_flag"
22774                          || test ! -s conftest.err'
22775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776   (eval $ac_try) 2>&5
22777   ac_status=$?
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); }; } &&
22780          { ac_try='test -s conftest$ac_exeext'
22781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782   (eval $ac_try) 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); }; }; then
22786
22787 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22788 }'`
22789 # Check for a 64-bit object if we didn't find anything.
22790 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; }
22791 }'`; fi
22792 else
22793   echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22795
22796 fi
22797 rm -f conftest.err conftest.$ac_objext \
22798       conftest$ac_exeext conftest.$ac_ext
22799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22800
22801          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22802           # Warning - without using the other run time loading flags,
22803           # -berok will link without error, but may produce a broken library.
22804           no_undefined_flag_GCJ=' ${wl}-bernotok'
22805           allow_undefined_flag_GCJ=' ${wl}-berok'
22806           # -bexpall does not export symbols beginning with underscore (_)
22807           always_export_symbols_GCJ=yes
22808           # Exported symbols can be pulled into shared objects from archives
22809           whole_archive_flag_spec_GCJ=' '
22810           archive_cmds_need_lc_GCJ=yes
22811           # This is similar to how AIX traditionally builds it's shared libraries.
22812           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22813         fi
22814       fi
22815       ;;
22816
22817     amigaos*)
22818       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)'
22819       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22820       hardcode_minus_L_GCJ=yes
22821       # see comment about different semantics on the GNU ld section
22822       ld_shlibs_GCJ=no
22823       ;;
22824
22825     bsdi4*)
22826       export_dynamic_flag_spec_GCJ=-rdynamic
22827       ;;
22828
22829     cygwin* | mingw* | pw32*)
22830       # When not using gcc, we currently assume that we are using
22831       # Microsoft Visual C++.
22832       # hardcode_libdir_flag_spec is actually meaningless, as there is
22833       # no search path for DLLs.
22834       hardcode_libdir_flag_spec_GCJ=' '
22835       allow_undefined_flag_GCJ=unsupported
22836       # Tell ltmain to make .lib files, not .a files.
22837       libext=lib
22838       # Tell ltmain to make .dll files, not .so files.
22839       shrext_cmds=".dll"
22840       # FIXME: Setting linknames here is a bad hack.
22841       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22842       # The linker will automatically build a .lib file if we build a DLL.
22843       old_archive_From_new_cmds_GCJ='true'
22844       # FIXME: Should let the user specify the lib program.
22845       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22846       fix_srcfile_path='`cygpath -w "$srcfile"`'
22847       enable_shared_with_static_runtimes_GCJ=yes
22848       ;;
22849
22850     darwin* | rhapsody*)
22851     if test "$GXX" = yes ; then
22852       archive_cmds_need_lc_GCJ=no
22853       case "$host_os" in
22854       rhapsody* | darwin1.[012])
22855         allow_undefined_flag_GCJ='-undefined suppress'
22856         ;;
22857       *) # Darwin 1.3 on
22858       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22859         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22860       else
22861         case ${MACOSX_DEPLOYMENT_TARGET} in
22862           10.[012])
22863             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22864             ;;
22865           10.*)
22866             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
22867             ;;
22868         esac
22869       fi
22870         ;;
22871       esac
22872         lt_int_apple_cc_single_mod=no
22873         output_verbose_link_cmd='echo'
22874         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
22875           lt_int_apple_cc_single_mod=yes
22876         fi
22877         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22878           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22879         else
22880         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
22881       fi
22882       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22883       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22884         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22885           archive_expsym_cmds_GCJ='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}'
22886         else
22887           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
22888         fi
22889           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}'
22890       hardcode_direct_GCJ=no
22891       hardcode_automatic_GCJ=yes
22892       hardcode_shlibpath_var_GCJ=unsupported
22893       whole_archive_flag_spec_GCJ='-all_load $convenience'
22894       link_all_deplibs_GCJ=yes
22895     else
22896       ld_shlibs_GCJ=no
22897     fi
22898       ;;
22899
22900     dgux*)
22901       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22902       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22903       hardcode_shlibpath_var_GCJ=no
22904       ;;
22905
22906     freebsd1*)
22907       ld_shlibs_GCJ=no
22908       ;;
22909
22910     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22911     # support.  Future versions do this automatically, but an explicit c++rt0.o
22912     # does not break anything, and helps significantly (at the cost of a little
22913     # extra space).
22914     freebsd2.2*)
22915       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22916       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22917       hardcode_direct_GCJ=yes
22918       hardcode_shlibpath_var_GCJ=no
22919       ;;
22920
22921     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22922     freebsd2*)
22923       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22924       hardcode_direct_GCJ=yes
22925       hardcode_minus_L_GCJ=yes
22926       hardcode_shlibpath_var_GCJ=no
22927       ;;
22928
22929     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22930     freebsd* | kfreebsd*-gnu)
22931       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22932       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22933       hardcode_direct_GCJ=yes
22934       hardcode_shlibpath_var_GCJ=no
22935       ;;
22936
22937     hpux9*)
22938       if test "$GCC" = yes; then
22939         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'
22940       else
22941         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'
22942       fi
22943       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22944       hardcode_libdir_separator_GCJ=:
22945       hardcode_direct_GCJ=yes
22946
22947       # hardcode_minus_L: Not really in the search PATH,
22948       # but as the default location of the library.
22949       hardcode_minus_L_GCJ=yes
22950       export_dynamic_flag_spec_GCJ='${wl}-E'
22951       ;;
22952
22953     hpux10* | hpux11*)
22954       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22955         case "$host_cpu" in
22956         hppa*64*|ia64*)
22957           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22958           ;;
22959         *)
22960           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22961           ;;
22962         esac
22963       else
22964         case "$host_cpu" in
22965         hppa*64*|ia64*)
22966           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22967           ;;
22968         *)
22969           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22970           ;;
22971         esac
22972       fi
22973       if test "$with_gnu_ld" = no; then
22974         case "$host_cpu" in
22975         hppa*64*)
22976           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22977           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22978           hardcode_libdir_separator_GCJ=:
22979           hardcode_direct_GCJ=no
22980           hardcode_shlibpath_var_GCJ=no
22981           ;;
22982         ia64*)
22983           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22984           hardcode_direct_GCJ=no
22985           hardcode_shlibpath_var_GCJ=no
22986
22987           # hardcode_minus_L: Not really in the search PATH,
22988           # but as the default location of the library.
22989           hardcode_minus_L_GCJ=yes
22990           ;;
22991         *)
22992           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22993           hardcode_libdir_separator_GCJ=:
22994           hardcode_direct_GCJ=yes
22995           export_dynamic_flag_spec_GCJ='${wl}-E'
22996
22997           # hardcode_minus_L: Not really in the search PATH,
22998           # but as the default location of the library.
22999           hardcode_minus_L_GCJ=yes
23000           ;;
23001         esac
23002       fi
23003       ;;
23004
23005     irix5* | irix6* | nonstopux*)
23006       if test "$GCC" = yes; then
23007         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'
23008       else
23009         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'
23010         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23011       fi
23012       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23013       hardcode_libdir_separator_GCJ=:
23014       link_all_deplibs_GCJ=yes
23015       ;;
23016
23017     netbsd*)
23018       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23019         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23020       else
23021         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23022       fi
23023       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23024       hardcode_direct_GCJ=yes
23025       hardcode_shlibpath_var_GCJ=no
23026       ;;
23027
23028     newsos6)
23029       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23030       hardcode_direct_GCJ=yes
23031       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23032       hardcode_libdir_separator_GCJ=:
23033       hardcode_shlibpath_var_GCJ=no
23034       ;;
23035
23036     openbsd*)
23037       hardcode_direct_GCJ=yes
23038       hardcode_shlibpath_var_GCJ=no
23039       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23040         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23041         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23042         export_dynamic_flag_spec_GCJ='${wl}-E'
23043       else
23044        case $host_os in
23045          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23046            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23047            hardcode_libdir_flag_spec_GCJ='-R$libdir'
23048            ;;
23049          *)
23050            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23051            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23052            ;;
23053        esac
23054       fi
23055       ;;
23056
23057     os2*)
23058       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23059       hardcode_minus_L_GCJ=yes
23060       allow_undefined_flag_GCJ=unsupported
23061       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'
23062       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23063       ;;
23064
23065     osf3*)
23066       if test "$GCC" = yes; then
23067         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23068         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'
23069       else
23070         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23071         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'
23072       fi
23073       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23074       hardcode_libdir_separator_GCJ=:
23075       ;;
23076
23077     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23078       if test "$GCC" = yes; then
23079         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23080         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'
23081         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23082       else
23083         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23084         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'
23085         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~
23086         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
23087
23088         # Both c and cxx compiler support -rpath directly
23089         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23090       fi
23091       hardcode_libdir_separator_GCJ=:
23092       ;;
23093
23094     sco3.2v5*)
23095       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23096       hardcode_shlibpath_var_GCJ=no
23097       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23098       runpath_var=LD_RUN_PATH
23099       hardcode_runpath_var=yes
23100       ;;
23101
23102     solaris*)
23103       no_undefined_flag_GCJ=' -z text'
23104       if test "$GCC" = yes; then
23105         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23106         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23107           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23108       else
23109         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23110         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23111         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23112       fi
23113       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23114       hardcode_shlibpath_var_GCJ=no
23115       case $host_os in
23116       solaris2.[0-5] | solaris2.[0-5].*) ;;
23117       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
23118         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23119       esac
23120       link_all_deplibs_GCJ=yes
23121       ;;
23122
23123     sunos4*)
23124       if test "x$host_vendor" = xsequent; then
23125         # Use $CC to link under sequent, because it throws in some extra .o
23126         # files that make .init and .fini sections work.
23127         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23128       else
23129         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23130       fi
23131       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23132       hardcode_direct_GCJ=yes
23133       hardcode_minus_L_GCJ=yes
23134       hardcode_shlibpath_var_GCJ=no
23135       ;;
23136
23137     sysv4)
23138       case $host_vendor in
23139         sni)
23140           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23141           hardcode_direct_GCJ=yes # is this really true???
23142         ;;
23143         siemens)
23144           ## LD is ld it makes a PLAMLIB
23145           ## CC just makes a GrossModule.
23146           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23147           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23148           hardcode_direct_GCJ=no
23149         ;;
23150         motorola)
23151           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23152           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23153         ;;
23154       esac
23155       runpath_var='LD_RUN_PATH'
23156       hardcode_shlibpath_var_GCJ=no
23157       ;;
23158
23159     sysv4.3*)
23160       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23161       hardcode_shlibpath_var_GCJ=no
23162       export_dynamic_flag_spec_GCJ='-Bexport'
23163       ;;
23164
23165     sysv4*MP*)
23166       if test -d /usr/nec; then
23167         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23168         hardcode_shlibpath_var_GCJ=no
23169         runpath_var=LD_RUN_PATH
23170         hardcode_runpath_var=yes
23171         ld_shlibs_GCJ=yes
23172       fi
23173       ;;
23174
23175     sysv4.2uw2*)
23176       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23177       hardcode_direct_GCJ=yes
23178       hardcode_minus_L_GCJ=no
23179       hardcode_shlibpath_var_GCJ=no
23180       hardcode_runpath_var=yes
23181       runpath_var=LD_RUN_PATH
23182       ;;
23183
23184    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
23185       no_undefined_flag_GCJ='${wl}-z ${wl}text'
23186       if test "$GCC" = yes; then
23187         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23188       else
23189         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23190       fi
23191       runpath_var='LD_RUN_PATH'
23192       hardcode_shlibpath_var_GCJ=no
23193       ;;
23194
23195     sysv5*)
23196       no_undefined_flag_GCJ=' -z text'
23197       # $CC -shared without GNU ld will not create a library from C++
23198       # object files and a static libstdc++, better avoid it by now
23199       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23200       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23201                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23202       hardcode_libdir_flag_spec_GCJ=
23203       hardcode_shlibpath_var_GCJ=no
23204       runpath_var='LD_RUN_PATH'
23205       ;;
23206
23207     uts4*)
23208       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23209       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23210       hardcode_shlibpath_var_GCJ=no
23211       ;;
23212
23213     *)
23214       ld_shlibs_GCJ=no
23215       ;;
23216     esac
23217   fi
23218
23219 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23220 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23221 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23222
23223 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23224 if test "$GCC" = yes; then
23225   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23226 fi
23227
23228 #
23229 # Do we need to explicitly link libc?
23230 #
23231 case "x$archive_cmds_need_lc_GCJ" in
23232 x|xyes)
23233   # Assume -lc should be added
23234   archive_cmds_need_lc_GCJ=yes
23235
23236   if test "$enable_shared" = yes && test "$GCC" = yes; then
23237     case $archive_cmds_GCJ in
23238     *'~'*)
23239       # FIXME: we may have to deal with multi-command sequences.
23240       ;;
23241     '$CC '*)
23242       # Test whether the compiler implicitly links with -lc since on some
23243       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23244       # to ld, don't add -lc before -lgcc.
23245       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23246 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23247       $rm conftest*
23248       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23249
23250       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23251   (eval $ac_compile) 2>&5
23252   ac_status=$?
23253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254   (exit $ac_status); } 2>conftest.err; then
23255         soname=conftest
23256         lib=conftest
23257         libobjs=conftest.$ac_objext
23258         deplibs=
23259         wl=$lt_prog_compiler_wl_GCJ
23260         compiler_flags=-v
23261         linker_flags=-v
23262         verstring=
23263         output_objdir=.
23264         libname=conftest
23265         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23266         allow_undefined_flag_GCJ=
23267         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23268   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23269   ac_status=$?
23270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); }
23272         then
23273           archive_cmds_need_lc_GCJ=no
23274         else
23275           archive_cmds_need_lc_GCJ=yes
23276         fi
23277         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23278       else
23279         cat conftest.err 1>&5
23280       fi
23281       $rm conftest*
23282       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23283 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23284       ;;
23285     esac
23286   fi
23287   ;;
23288 esac
23289
23290 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23291 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23292 library_names_spec=
23293 libname_spec='lib$name'
23294 soname_spec=
23295 shrext_cmds=".so"
23296 postinstall_cmds=
23297 postuninstall_cmds=
23298 finish_cmds=
23299 finish_eval=
23300 shlibpath_var=
23301 shlibpath_overrides_runpath=unknown
23302 version_type=none
23303 dynamic_linker="$host_os ld.so"
23304 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23305 if test "$GCC" = yes; then
23306   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23307   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23308     # if the path contains ";" then we assume it to be the separator
23309     # otherwise default to the standard path separator (i.e. ":") - it is
23310     # assumed that no part of a normal pathname contains ";" but that should
23311     # okay in the real world where ";" in dirpaths is itself problematic.
23312     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23313   else
23314     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23315   fi
23316 else
23317   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23318 fi
23319 need_lib_prefix=unknown
23320 hardcode_into_libs=no
23321
23322 # when you set need_version to no, make sure it does not cause -set_version
23323 # flags to be left without arguments
23324 need_version=unknown
23325
23326 case $host_os in
23327 aix3*)
23328   version_type=linux
23329   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23330   shlibpath_var=LIBPATH
23331
23332   # AIX 3 has no versioning support, so we append a major version to the name.
23333   soname_spec='${libname}${release}${shared_ext}$major'
23334   ;;
23335
23336 aix4* | aix5*)
23337   version_type=linux
23338   need_lib_prefix=no
23339   need_version=no
23340   hardcode_into_libs=yes
23341   if test "$host_cpu" = ia64; then
23342     # AIX 5 supports IA64
23343     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23344     shlibpath_var=LD_LIBRARY_PATH
23345   else
23346     # With GCC up to 2.95.x, collect2 would create an import file
23347     # for dependence libraries.  The import file would start with
23348     # the line `#! .'.  This would cause the generated library to
23349     # depend on `.', always an invalid library.  This was fixed in
23350     # development snapshots of GCC prior to 3.0.
23351     case $host_os in
23352       aix4 | aix4.[01] | aix4.[01].*)
23353       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23354            echo ' yes '
23355            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23356         :
23357       else
23358         can_build_shared=no
23359       fi
23360       ;;
23361     esac
23362     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23363     # soname into executable. Probably we can add versioning support to
23364     # collect2, so additional links can be useful in future.
23365     if test "$aix_use_runtimelinking" = yes; then
23366       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23367       # instead of lib<name>.a to let people know that these are not
23368       # typical AIX shared libraries.
23369       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23370     else
23371       # We preserve .a as extension for shared libraries through AIX4.2
23372       # and later when we are not doing run time linking.
23373       library_names_spec='${libname}${release}.a $libname.a'
23374       soname_spec='${libname}${release}${shared_ext}$major'
23375     fi
23376     shlibpath_var=LIBPATH
23377   fi
23378   ;;
23379
23380 amigaos*)
23381   library_names_spec='$libname.ixlibrary $libname.a'
23382   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23383   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'
23384   ;;
23385
23386 beos*)
23387   library_names_spec='${libname}${shared_ext}'
23388   dynamic_linker="$host_os ld.so"
23389   shlibpath_var=LIBRARY_PATH
23390   ;;
23391
23392 bsdi4*)
23393   version_type=linux
23394   need_version=no
23395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23396   soname_spec='${libname}${release}${shared_ext}$major'
23397   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23398   shlibpath_var=LD_LIBRARY_PATH
23399   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23400   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23401   # the default ld.so.conf also contains /usr/contrib/lib and
23402   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23403   # libtool to hard-code these into programs
23404   ;;
23405
23406 cygwin* | mingw* | pw32*)
23407   version_type=windows
23408   shrext_cmds=".dll"
23409   need_version=no
23410   need_lib_prefix=no
23411
23412   case $GCC,$host_os in
23413   yes,cygwin* | yes,mingw* | yes,pw32*)
23414     library_names_spec='$libname.dll.a'
23415     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23416     postinstall_cmds='base_file=`basename \${file}`~
23417       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23418       dldir=$destdir/`dirname \$dlpath`~
23419       test -d \$dldir || mkdir -p \$dldir~
23420       $install_prog $dir/$dlname \$dldir/$dlname'
23421     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23422       dlpath=$dir/\$dldll~
23423        $rm \$dlpath'
23424     shlibpath_overrides_runpath=yes
23425
23426     case $host_os in
23427     cygwin*)
23428       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23429       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23430       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23431       ;;
23432     mingw*)
23433       # MinGW DLLs use traditional 'lib' prefix
23434       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23435       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23436       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23437         # It is most probably a Windows format PATH printed by
23438         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23439         # path with ; separators, and with drive letters. We can handle the
23440         # drive letters (cygwin fileutils understands them), so leave them,
23441         # especially as we might pass files found there to a mingw objdump,
23442         # which wouldn't understand a cygwinified path. Ahh.
23443         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23444       else
23445         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23446       fi
23447       ;;
23448     pw32*)
23449       # pw32 DLLs use 'pw' prefix rather than 'lib'
23450       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
23451       ;;
23452     esac
23453     ;;
23454
23455   *)
23456     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23457     ;;
23458   esac
23459   dynamic_linker='Win32 ld.exe'
23460   # FIXME: first we should search . and the directory the executable is in
23461   shlibpath_var=PATH
23462   ;;
23463
23464 darwin* | rhapsody*)
23465   dynamic_linker="$host_os dyld"
23466   version_type=darwin
23467   need_lib_prefix=no
23468   need_version=no
23469   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23470   soname_spec='${libname}${release}${major}$shared_ext'
23471   shlibpath_overrides_runpath=yes
23472   shlibpath_var=DYLD_LIBRARY_PATH
23473   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
23474   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23475   if test "$GCC" = yes; then
23476     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"`
23477   else
23478     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23479   fi
23480   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23481   ;;
23482
23483 dgux*)
23484   version_type=linux
23485   need_lib_prefix=no
23486   need_version=no
23487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23488   soname_spec='${libname}${release}${shared_ext}$major'
23489   shlibpath_var=LD_LIBRARY_PATH
23490   ;;
23491
23492 freebsd1*)
23493   dynamic_linker=no
23494   ;;
23495
23496 kfreebsd*-gnu)
23497   version_type=linux
23498   need_lib_prefix=no
23499   need_version=no
23500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23501   soname_spec='${libname}${release}${shared_ext}$major'
23502   shlibpath_var=LD_LIBRARY_PATH
23503   shlibpath_overrides_runpath=no
23504   hardcode_into_libs=yes
23505   dynamic_linker='GNU ld.so'
23506   ;;
23507
23508 freebsd*)
23509   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23510   version_type=freebsd-$objformat
23511   case $version_type in
23512     freebsd-elf*)
23513       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23514       need_version=no
23515       need_lib_prefix=no
23516       ;;
23517     freebsd-*)
23518       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23519       need_version=yes
23520       ;;
23521   esac
23522   shlibpath_var=LD_LIBRARY_PATH
23523   case $host_os in
23524   freebsd2*)
23525     shlibpath_overrides_runpath=yes
23526     ;;
23527   freebsd3.01* | freebsdelf3.01*)
23528     shlibpath_overrides_runpath=yes
23529     hardcode_into_libs=yes
23530     ;;
23531   *) # from 3.2 on
23532     shlibpath_overrides_runpath=no
23533     hardcode_into_libs=yes
23534     ;;
23535   esac
23536   ;;
23537
23538 gnu*)
23539   version_type=linux
23540   need_lib_prefix=no
23541   need_version=no
23542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23543   soname_spec='${libname}${release}${shared_ext}$major'
23544   shlibpath_var=LD_LIBRARY_PATH
23545   hardcode_into_libs=yes
23546   ;;
23547
23548 hpux9* | hpux10* | hpux11*)
23549   # Give a soname corresponding to the major version so that dld.sl refuses to
23550   # link against other versions.
23551   version_type=sunos
23552   need_lib_prefix=no
23553   need_version=no
23554   case "$host_cpu" in
23555   ia64*)
23556     shrext_cmds='.so'
23557     hardcode_into_libs=yes
23558     dynamic_linker="$host_os dld.so"
23559     shlibpath_var=LD_LIBRARY_PATH
23560     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23562     soname_spec='${libname}${release}${shared_ext}$major'
23563     if test "X$HPUX_IA64_MODE" = X32; then
23564       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23565     else
23566       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23567     fi
23568     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23569     ;;
23570    hppa*64*)
23571      shrext_cmds='.sl'
23572      hardcode_into_libs=yes
23573      dynamic_linker="$host_os dld.sl"
23574      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23575      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23576      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23577      soname_spec='${libname}${release}${shared_ext}$major'
23578      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23579      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23580      ;;
23581    *)
23582     shrext_cmds='.sl'
23583     dynamic_linker="$host_os dld.sl"
23584     shlibpath_var=SHLIB_PATH
23585     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23587     soname_spec='${libname}${release}${shared_ext}$major'
23588     ;;
23589   esac
23590   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23591   postinstall_cmds='chmod 555 $lib'
23592   ;;
23593
23594 irix5* | irix6* | nonstopux*)
23595   case $host_os in
23596     nonstopux*) version_type=nonstopux ;;
23597     *)
23598         if test "$lt_cv_prog_gnu_ld" = yes; then
23599                 version_type=linux
23600         else
23601                 version_type=irix
23602         fi ;;
23603   esac
23604   need_lib_prefix=no
23605   need_version=no
23606   soname_spec='${libname}${release}${shared_ext}$major'
23607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23608   case $host_os in
23609   irix5* | nonstopux*)
23610     libsuff= shlibsuff=
23611     ;;
23612   *)
23613     case $LD in # libtool.m4 will add one of these switches to LD
23614     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23615       libsuff= shlibsuff= libmagic=32-bit;;
23616     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23617       libsuff=32 shlibsuff=N32 libmagic=N32;;
23618     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23619       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23620     *) libsuff= shlibsuff= libmagic=never-match;;
23621     esac
23622     ;;
23623   esac
23624   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23625   shlibpath_overrides_runpath=no
23626   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23627   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23628   hardcode_into_libs=yes
23629   ;;
23630
23631 # No shared lib support for Linux oldld, aout, or coff.
23632 linux*oldld* | linux*aout* | linux*coff*)
23633   dynamic_linker=no
23634   ;;
23635
23636 # This must be Linux ELF.
23637 linux*)
23638   version_type=linux
23639   need_lib_prefix=no
23640   need_version=no
23641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23642   soname_spec='${libname}${release}${shared_ext}$major'
23643   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23644   shlibpath_var=LD_LIBRARY_PATH
23645   shlibpath_overrides_runpath=no
23646   # This implies no fast_install, which is unacceptable.
23647   # Some rework will be needed to allow for fast_install
23648   # before this can be enabled.
23649   hardcode_into_libs=yes
23650
23651   # find out which ABI we are using
23652   libsuff=
23653   case "$host_cpu" in
23654   x86_64*|s390x*|powerpc64*)
23655     echo '#line 23655 "configure"' > conftest.$ac_ext
23656     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23657   (eval $ac_compile) 2>&5
23658   ac_status=$?
23659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); }; then
23661       case `/usr/bin/file conftest.$ac_objext` in
23662       *64-bit*)
23663         libsuff=64
23664         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
23665         ;;
23666       esac
23667     fi
23668     rm -rf conftest*
23669     ;;
23670   esac
23671
23672   # Append ld.so.conf contents to the search path
23673   if test -f /etc/ld.so.conf; then
23674     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23675     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
23676   fi
23677
23678   # We used to test for /lib/ld.so.1 and disable shared libraries on
23679   # powerpc, because MkLinux only supported shared libraries with the
23680   # GNU dynamic linker.  Since this was broken with cross compilers,
23681   # most powerpc-linux boxes support dynamic linking these days and
23682   # people can always --disable-shared, the test was removed, and we
23683   # assume the GNU/Linux dynamic linker is in use.
23684   dynamic_linker='GNU/Linux ld.so'
23685   ;;
23686
23687 knetbsd*-gnu)
23688   version_type=linux
23689   need_lib_prefix=no
23690   need_version=no
23691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23692   soname_spec='${libname}${release}${shared_ext}$major'
23693   shlibpath_var=LD_LIBRARY_PATH
23694   shlibpath_overrides_runpath=no
23695   hardcode_into_libs=yes
23696   dynamic_linker='GNU ld.so'
23697   ;;
23698
23699 netbsd*)
23700   version_type=sunos
23701   need_lib_prefix=no
23702   need_version=no
23703   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23704     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23705     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23706     dynamic_linker='NetBSD (a.out) ld.so'
23707   else
23708     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23709     soname_spec='${libname}${release}${shared_ext}$major'
23710     dynamic_linker='NetBSD ld.elf_so'
23711   fi
23712   shlibpath_var=LD_LIBRARY_PATH
23713   shlibpath_overrides_runpath=yes
23714   hardcode_into_libs=yes
23715   ;;
23716
23717 newsos6)
23718   version_type=linux
23719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23720   shlibpath_var=LD_LIBRARY_PATH
23721   shlibpath_overrides_runpath=yes
23722   ;;
23723
23724 nto-qnx*)
23725   version_type=linux
23726   need_lib_prefix=no
23727   need_version=no
23728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23729   soname_spec='${libname}${release}${shared_ext}$major'
23730   shlibpath_var=LD_LIBRARY_PATH
23731   shlibpath_overrides_runpath=yes
23732   ;;
23733
23734 openbsd*)
23735   version_type=sunos
23736   need_lib_prefix=no
23737   need_version=yes
23738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23739   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23740   shlibpath_var=LD_LIBRARY_PATH
23741   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23742     case $host_os in
23743       openbsd2.[89] | openbsd2.[89].*)
23744         shlibpath_overrides_runpath=no
23745         ;;
23746       *)
23747         shlibpath_overrides_runpath=yes
23748         ;;
23749       esac
23750   else
23751     shlibpath_overrides_runpath=yes
23752   fi
23753   ;;
23754
23755 os2*)
23756   libname_spec='$name'
23757   shrext_cmds=".dll"
23758   need_lib_prefix=no
23759   library_names_spec='$libname${shared_ext} $libname.a'
23760   dynamic_linker='OS/2 ld.exe'
23761   shlibpath_var=LIBPATH
23762   ;;
23763
23764 osf3* | osf4* | osf5*)
23765   version_type=osf
23766   need_lib_prefix=no
23767   need_version=no
23768   soname_spec='${libname}${release}${shared_ext}$major'
23769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23770   shlibpath_var=LD_LIBRARY_PATH
23771   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23772   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23773   ;;
23774
23775 sco3.2v5*)
23776   version_type=osf
23777   soname_spec='${libname}${release}${shared_ext}$major'
23778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23779   shlibpath_var=LD_LIBRARY_PATH
23780   ;;
23781
23782 solaris*)
23783   version_type=linux
23784   need_lib_prefix=no
23785   need_version=no
23786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23787   soname_spec='${libname}${release}${shared_ext}$major'
23788   shlibpath_var=LD_LIBRARY_PATH
23789   shlibpath_overrides_runpath=yes
23790   hardcode_into_libs=yes
23791   # ldd complains unless libraries are executable
23792   postinstall_cmds='chmod +x $lib'
23793   ;;
23794
23795 sunos4*)
23796   version_type=sunos
23797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23798   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23799   shlibpath_var=LD_LIBRARY_PATH
23800   shlibpath_overrides_runpath=yes
23801   if test "$with_gnu_ld" = yes; then
23802     need_lib_prefix=no
23803   fi
23804   need_version=yes
23805   ;;
23806
23807 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23808   version_type=linux
23809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23810   soname_spec='${libname}${release}${shared_ext}$major'
23811   shlibpath_var=LD_LIBRARY_PATH
23812   case $host_vendor in
23813     sni)
23814       shlibpath_overrides_runpath=no
23815       need_lib_prefix=no
23816       export_dynamic_flag_spec='${wl}-Blargedynsym'
23817       runpath_var=LD_RUN_PATH
23818       ;;
23819     siemens)
23820       need_lib_prefix=no
23821       ;;
23822     motorola)
23823       need_lib_prefix=no
23824       need_version=no
23825       shlibpath_overrides_runpath=no
23826       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23827       ;;
23828   esac
23829   ;;
23830
23831 sysv4*MP*)
23832   if test -d /usr/nec ;then
23833     version_type=linux
23834     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23835     soname_spec='$libname${shared_ext}.$major'
23836     shlibpath_var=LD_LIBRARY_PATH
23837   fi
23838   ;;
23839
23840 uts4*)
23841   version_type=linux
23842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23843   soname_spec='${libname}${release}${shared_ext}$major'
23844   shlibpath_var=LD_LIBRARY_PATH
23845   ;;
23846
23847 *)
23848   dynamic_linker=no
23849   ;;
23850 esac
23851 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23852 echo "${ECHO_T}$dynamic_linker" >&6
23853 test "$dynamic_linker" = no && can_build_shared=no
23854
23855 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23856 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23857 hardcode_action_GCJ=
23858 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23859    test -n "$runpath_var GCJ" || \
23860    test "X$hardcode_automatic_GCJ"="Xyes" ; then
23861
23862   # We can hardcode non-existant directories.
23863   if test "$hardcode_direct_GCJ" != no &&
23864      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23865      # have to relink, otherwise we might link with an installed library
23866      # when we should be linking with a yet-to-be-installed one
23867      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23868      test "$hardcode_minus_L_GCJ" != no; then
23869     # Linking always hardcodes the temporary library directory.
23870     hardcode_action_GCJ=relink
23871   else
23872     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23873     hardcode_action_GCJ=immediate
23874   fi
23875 else
23876   # We cannot hardcode anything, or else we can only hardcode existing
23877   # directories.
23878   hardcode_action_GCJ=unsupported
23879 fi
23880 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23881 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23882
23883 if test "$hardcode_action_GCJ" = relink; then
23884   # Fast installation is not supported
23885   enable_fast_install=no
23886 elif test "$shlibpath_overrides_runpath" = yes ||
23887      test "$enable_shared" = no; then
23888   # Fast installation is not necessary
23889   enable_fast_install=needless
23890 fi
23891
23892 striplib=
23893 old_striplib=
23894 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23895 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23896 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23897   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23898   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23899   echo "$as_me:$LINENO: result: yes" >&5
23900 echo "${ECHO_T}yes" >&6
23901 else
23902 # FIXME - insert some real tests, host_os isn't really good enough
23903   case $host_os in
23904    darwin*)
23905        if test -n "$STRIP" ; then
23906          striplib="$STRIP -x"
23907          echo "$as_me:$LINENO: result: yes" >&5
23908 echo "${ECHO_T}yes" >&6
23909        else
23910   echo "$as_me:$LINENO: result: no" >&5
23911 echo "${ECHO_T}no" >&6
23912 fi
23913        ;;
23914    *)
23915   echo "$as_me:$LINENO: result: no" >&5
23916 echo "${ECHO_T}no" >&6
23917     ;;
23918   esac
23919 fi
23920
23921 if test "x$enable_dlopen" != xyes; then
23922   enable_dlopen=unknown
23923   enable_dlopen_self=unknown
23924   enable_dlopen_self_static=unknown
23925 else
23926   lt_cv_dlopen=no
23927   lt_cv_dlopen_libs=
23928
23929   case $host_os in
23930   beos*)
23931     lt_cv_dlopen="load_add_on"
23932     lt_cv_dlopen_libs=
23933     lt_cv_dlopen_self=yes
23934     ;;
23935
23936   mingw* | pw32*)
23937     lt_cv_dlopen="LoadLibrary"
23938     lt_cv_dlopen_libs=
23939    ;;
23940
23941   cygwin*)
23942     lt_cv_dlopen="dlopen"
23943     lt_cv_dlopen_libs=
23944    ;;
23945
23946   darwin*)
23947   # if libdl is installed we need to link against it
23948     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23949 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23951   echo $ECHO_N "(cached) $ECHO_C" >&6
23952 else
23953   ac_check_lib_save_LIBS=$LIBS
23954 LIBS="-ldl  $LIBS"
23955 cat >conftest.$ac_ext <<_ACEOF
23956 /* confdefs.h.  */
23957 _ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h.  */
23961
23962 /* Override any gcc2 internal prototype to avoid an error.  */
23963 #ifdef __cplusplus
23964 extern "C"
23965 #endif
23966 /* We use char because int might match the return type of a gcc2
23967    builtin and then its argument prototype would still apply.  */
23968 char dlopen ();
23969 int
23970 main ()
23971 {
23972 dlopen ();
23973   ;
23974   return 0;
23975 }
23976 _ACEOF
23977 rm -f conftest.$ac_objext conftest$ac_exeext
23978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23979   (eval $ac_link) 2>conftest.er1
23980   ac_status=$?
23981   grep -v '^ *+' conftest.er1 >conftest.err
23982   rm -f conftest.er1
23983   cat conftest.err >&5
23984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985   (exit $ac_status); } &&
23986          { ac_try='test -z "$ac_c_werror_flag"
23987                          || test ! -s conftest.err'
23988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23989   (eval $ac_try) 2>&5
23990   ac_status=$?
23991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992   (exit $ac_status); }; } &&
23993          { ac_try='test -s conftest$ac_exeext'
23994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23995   (eval $ac_try) 2>&5
23996   ac_status=$?
23997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998   (exit $ac_status); }; }; then
23999   ac_cv_lib_dl_dlopen=yes
24000 else
24001   echo "$as_me: failed program was:" >&5
24002 sed 's/^/| /' conftest.$ac_ext >&5
24003
24004 ac_cv_lib_dl_dlopen=no
24005 fi
24006 rm -f conftest.err conftest.$ac_objext \
24007       conftest$ac_exeext conftest.$ac_ext
24008 LIBS=$ac_check_lib_save_LIBS
24009 fi
24010 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24012 if test $ac_cv_lib_dl_dlopen = yes; then
24013   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24014 else
24015
24016     lt_cv_dlopen="dyld"
24017     lt_cv_dlopen_libs=
24018     lt_cv_dlopen_self=yes
24019
24020 fi
24021
24022    ;;
24023
24024   *)
24025     echo "$as_me:$LINENO: checking for shl_load" >&5
24026 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
24027 if test "${ac_cv_func_shl_load+set}" = set; then
24028   echo $ECHO_N "(cached) $ECHO_C" >&6
24029 else
24030   cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h.  */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h.  */
24036 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
24037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24038 #define shl_load innocuous_shl_load
24039
24040 /* System header to define __stub macros and hopefully few prototypes,
24041     which can conflict with char shl_load (); below.
24042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24043     <limits.h> exists even on freestanding compilers.  */
24044
24045 #ifdef __STDC__
24046 # include <limits.h>
24047 #else
24048 # include <assert.h>
24049 #endif
24050
24051 #undef shl_load
24052
24053 /* Override any gcc2 internal prototype to avoid an error.  */
24054 #ifdef __cplusplus
24055 extern "C"
24056 {
24057 #endif
24058 /* We use char because int might match the return type of a gcc2
24059    builtin and then its argument prototype would still apply.  */
24060 char shl_load ();
24061 /* The GNU C library defines this for functions which it implements
24062     to always fail with ENOSYS.  Some functions are actually named
24063     something starting with __ and the normal name is an alias.  */
24064 #if defined (__stub_shl_load) || defined (__stub___shl_load)
24065 choke me
24066 #else
24067 char (*f) () = shl_load;
24068 #endif
24069 #ifdef __cplusplus
24070 }
24071 #endif
24072
24073 int
24074 main ()
24075 {
24076 return f != shl_load;
24077   ;
24078   return 0;
24079 }
24080 _ACEOF
24081 rm -f conftest.$ac_objext conftest$ac_exeext
24082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24083   (eval $ac_link) 2>conftest.er1
24084   ac_status=$?
24085   grep -v '^ *+' conftest.er1 >conftest.err
24086   rm -f conftest.er1
24087   cat conftest.err >&5
24088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089   (exit $ac_status); } &&
24090          { ac_try='test -z "$ac_c_werror_flag"
24091                          || test ! -s conftest.err'
24092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093   (eval $ac_try) 2>&5
24094   ac_status=$?
24095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096   (exit $ac_status); }; } &&
24097          { ac_try='test -s conftest$ac_exeext'
24098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24099   (eval $ac_try) 2>&5
24100   ac_status=$?
24101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102   (exit $ac_status); }; }; then
24103   ac_cv_func_shl_load=yes
24104 else
24105   echo "$as_me: failed program was:" >&5
24106 sed 's/^/| /' conftest.$ac_ext >&5
24107
24108 ac_cv_func_shl_load=no
24109 fi
24110 rm -f conftest.err conftest.$ac_objext \
24111       conftest$ac_exeext conftest.$ac_ext
24112 fi
24113 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
24114 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
24115 if test $ac_cv_func_shl_load = yes; then
24116   lt_cv_dlopen="shl_load"
24117 else
24118   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
24119 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
24120 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
24121   echo $ECHO_N "(cached) $ECHO_C" >&6
24122 else
24123   ac_check_lib_save_LIBS=$LIBS
24124 LIBS="-ldld  $LIBS"
24125 cat >conftest.$ac_ext <<_ACEOF
24126 /* confdefs.h.  */
24127 _ACEOF
24128 cat confdefs.h >>conftest.$ac_ext
24129 cat >>conftest.$ac_ext <<_ACEOF
24130 /* end confdefs.h.  */
24131
24132 /* Override any gcc2 internal prototype to avoid an error.  */
24133 #ifdef __cplusplus
24134 extern "C"
24135 #endif
24136 /* We use char because int might match the return type of a gcc2
24137    builtin and then its argument prototype would still apply.  */
24138 char shl_load ();
24139 int
24140 main ()
24141 {
24142 shl_load ();
24143   ;
24144   return 0;
24145 }
24146 _ACEOF
24147 rm -f conftest.$ac_objext conftest$ac_exeext
24148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24149   (eval $ac_link) 2>conftest.er1
24150   ac_status=$?
24151   grep -v '^ *+' conftest.er1 >conftest.err
24152   rm -f conftest.er1
24153   cat conftest.err >&5
24154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155   (exit $ac_status); } &&
24156          { ac_try='test -z "$ac_c_werror_flag"
24157                          || test ! -s conftest.err'
24158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24159   (eval $ac_try) 2>&5
24160   ac_status=$?
24161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); }; } &&
24163          { ac_try='test -s conftest$ac_exeext'
24164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24165   (eval $ac_try) 2>&5
24166   ac_status=$?
24167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168   (exit $ac_status); }; }; then
24169   ac_cv_lib_dld_shl_load=yes
24170 else
24171   echo "$as_me: failed program was:" >&5
24172 sed 's/^/| /' conftest.$ac_ext >&5
24173
24174 ac_cv_lib_dld_shl_load=no
24175 fi
24176 rm -f conftest.err conftest.$ac_objext \
24177       conftest$ac_exeext conftest.$ac_ext
24178 LIBS=$ac_check_lib_save_LIBS
24179 fi
24180 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24181 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24182 if test $ac_cv_lib_dld_shl_load = yes; then
24183   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24184 else
24185   echo "$as_me:$LINENO: checking for dlopen" >&5
24186 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24187 if test "${ac_cv_func_dlopen+set}" = set; then
24188   echo $ECHO_N "(cached) $ECHO_C" >&6
24189 else
24190   cat >conftest.$ac_ext <<_ACEOF
24191 /* confdefs.h.  */
24192 _ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h.  */
24196 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24198 #define dlopen innocuous_dlopen
24199
24200 /* System header to define __stub macros and hopefully few prototypes,
24201     which can conflict with char dlopen (); below.
24202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24203     <limits.h> exists even on freestanding compilers.  */
24204
24205 #ifdef __STDC__
24206 # include <limits.h>
24207 #else
24208 # include <assert.h>
24209 #endif
24210
24211 #undef dlopen
24212
24213 /* Override any gcc2 internal prototype to avoid an error.  */
24214 #ifdef __cplusplus
24215 extern "C"
24216 {
24217 #endif
24218 /* We use char because int might match the return type of a gcc2
24219    builtin and then its argument prototype would still apply.  */
24220 char dlopen ();
24221 /* The GNU C library defines this for functions which it implements
24222     to always fail with ENOSYS.  Some functions are actually named
24223     something starting with __ and the normal name is an alias.  */
24224 #if defined (__stub_dlopen) || defined (__stub___dlopen)
24225 choke me
24226 #else
24227 char (*f) () = dlopen;
24228 #endif
24229 #ifdef __cplusplus
24230 }
24231 #endif
24232
24233 int
24234 main ()
24235 {
24236 return f != dlopen;
24237   ;
24238   return 0;
24239 }
24240 _ACEOF
24241 rm -f conftest.$ac_objext conftest$ac_exeext
24242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24243   (eval $ac_link) 2>conftest.er1
24244   ac_status=$?
24245   grep -v '^ *+' conftest.er1 >conftest.err
24246   rm -f conftest.er1
24247   cat conftest.err >&5
24248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249   (exit $ac_status); } &&
24250          { ac_try='test -z "$ac_c_werror_flag"
24251                          || test ! -s conftest.err'
24252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24253   (eval $ac_try) 2>&5
24254   ac_status=$?
24255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256   (exit $ac_status); }; } &&
24257          { ac_try='test -s conftest$ac_exeext'
24258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259   (eval $ac_try) 2>&5
24260   ac_status=$?
24261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); }; }; then
24263   ac_cv_func_dlopen=yes
24264 else
24265   echo "$as_me: failed program was:" >&5
24266 sed 's/^/| /' conftest.$ac_ext >&5
24267
24268 ac_cv_func_dlopen=no
24269 fi
24270 rm -f conftest.err conftest.$ac_objext \
24271       conftest$ac_exeext conftest.$ac_ext
24272 fi
24273 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24274 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24275 if test $ac_cv_func_dlopen = yes; then
24276   lt_cv_dlopen="dlopen"
24277 else
24278   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24279 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24280 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24281   echo $ECHO_N "(cached) $ECHO_C" >&6
24282 else
24283   ac_check_lib_save_LIBS=$LIBS
24284 LIBS="-ldl  $LIBS"
24285 cat >conftest.$ac_ext <<_ACEOF
24286 /* confdefs.h.  */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h.  */
24291
24292 /* Override any gcc2 internal prototype to avoid an error.  */
24293 #ifdef __cplusplus
24294 extern "C"
24295 #endif
24296 /* We use char because int might match the return type of a gcc2
24297    builtin and then its argument prototype would still apply.  */
24298 char dlopen ();
24299 int
24300 main ()
24301 {
24302 dlopen ();
24303   ;
24304   return 0;
24305 }
24306 _ACEOF
24307 rm -f conftest.$ac_objext conftest$ac_exeext
24308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24309   (eval $ac_link) 2>conftest.er1
24310   ac_status=$?
24311   grep -v '^ *+' conftest.er1 >conftest.err
24312   rm -f conftest.er1
24313   cat conftest.err >&5
24314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315   (exit $ac_status); } &&
24316          { ac_try='test -z "$ac_c_werror_flag"
24317                          || test ! -s conftest.err'
24318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24319   (eval $ac_try) 2>&5
24320   ac_status=$?
24321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322   (exit $ac_status); }; } &&
24323          { ac_try='test -s conftest$ac_exeext'
24324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325   (eval $ac_try) 2>&5
24326   ac_status=$?
24327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328   (exit $ac_status); }; }; then
24329   ac_cv_lib_dl_dlopen=yes
24330 else
24331   echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24333
24334 ac_cv_lib_dl_dlopen=no
24335 fi
24336 rm -f conftest.err conftest.$ac_objext \
24337       conftest$ac_exeext conftest.$ac_ext
24338 LIBS=$ac_check_lib_save_LIBS
24339 fi
24340 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24341 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24342 if test $ac_cv_lib_dl_dlopen = yes; then
24343   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24344 else
24345   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24346 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24347 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24348   echo $ECHO_N "(cached) $ECHO_C" >&6
24349 else
24350   ac_check_lib_save_LIBS=$LIBS
24351 LIBS="-lsvld  $LIBS"
24352 cat >conftest.$ac_ext <<_ACEOF
24353 /* confdefs.h.  */
24354 _ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h.  */
24358
24359 /* Override any gcc2 internal prototype to avoid an error.  */
24360 #ifdef __cplusplus
24361 extern "C"
24362 #endif
24363 /* We use char because int might match the return type of a gcc2
24364    builtin and then its argument prototype would still apply.  */
24365 char dlopen ();
24366 int
24367 main ()
24368 {
24369 dlopen ();
24370   ;
24371   return 0;
24372 }
24373 _ACEOF
24374 rm -f conftest.$ac_objext conftest$ac_exeext
24375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24376   (eval $ac_link) 2>conftest.er1
24377   ac_status=$?
24378   grep -v '^ *+' conftest.er1 >conftest.err
24379   rm -f conftest.er1
24380   cat conftest.err >&5
24381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382   (exit $ac_status); } &&
24383          { ac_try='test -z "$ac_c_werror_flag"
24384                          || test ! -s conftest.err'
24385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24386   (eval $ac_try) 2>&5
24387   ac_status=$?
24388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389   (exit $ac_status); }; } &&
24390          { ac_try='test -s conftest$ac_exeext'
24391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24392   (eval $ac_try) 2>&5
24393   ac_status=$?
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); }; }; then
24396   ac_cv_lib_svld_dlopen=yes
24397 else
24398   echo "$as_me: failed program was:" >&5
24399 sed 's/^/| /' conftest.$ac_ext >&5
24400
24401 ac_cv_lib_svld_dlopen=no
24402 fi
24403 rm -f conftest.err conftest.$ac_objext \
24404       conftest$ac_exeext conftest.$ac_ext
24405 LIBS=$ac_check_lib_save_LIBS
24406 fi
24407 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24408 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24409 if test $ac_cv_lib_svld_dlopen = yes; then
24410   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24411 else
24412   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24413 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24414 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24415   echo $ECHO_N "(cached) $ECHO_C" >&6
24416 else
24417   ac_check_lib_save_LIBS=$LIBS
24418 LIBS="-ldld  $LIBS"
24419 cat >conftest.$ac_ext <<_ACEOF
24420 /* confdefs.h.  */
24421 _ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h.  */
24425
24426 /* Override any gcc2 internal prototype to avoid an error.  */
24427 #ifdef __cplusplus
24428 extern "C"
24429 #endif
24430 /* We use char because int might match the return type of a gcc2
24431    builtin and then its argument prototype would still apply.  */
24432 char dld_link ();
24433 int
24434 main ()
24435 {
24436 dld_link ();
24437   ;
24438   return 0;
24439 }
24440 _ACEOF
24441 rm -f conftest.$ac_objext conftest$ac_exeext
24442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24443   (eval $ac_link) 2>conftest.er1
24444   ac_status=$?
24445   grep -v '^ *+' conftest.er1 >conftest.err
24446   rm -f conftest.er1
24447   cat conftest.err >&5
24448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449   (exit $ac_status); } &&
24450          { ac_try='test -z "$ac_c_werror_flag"
24451                          || test ! -s conftest.err'
24452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453   (eval $ac_try) 2>&5
24454   ac_status=$?
24455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456   (exit $ac_status); }; } &&
24457          { ac_try='test -s conftest$ac_exeext'
24458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24459   (eval $ac_try) 2>&5
24460   ac_status=$?
24461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462   (exit $ac_status); }; }; then
24463   ac_cv_lib_dld_dld_link=yes
24464 else
24465   echo "$as_me: failed program was:" >&5
24466 sed 's/^/| /' conftest.$ac_ext >&5
24467
24468 ac_cv_lib_dld_dld_link=no
24469 fi
24470 rm -f conftest.err conftest.$ac_objext \
24471       conftest$ac_exeext conftest.$ac_ext
24472 LIBS=$ac_check_lib_save_LIBS
24473 fi
24474 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24475 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24476 if test $ac_cv_lib_dld_dld_link = yes; then
24477   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24478 fi
24479
24480
24481 fi
24482
24483
24484 fi
24485
24486
24487 fi
24488
24489
24490 fi
24491
24492
24493 fi
24494
24495     ;;
24496   esac
24497
24498   if test "x$lt_cv_dlopen" != xno; then
24499     enable_dlopen=yes
24500   else
24501     enable_dlopen=no
24502   fi
24503
24504   case $lt_cv_dlopen in
24505   dlopen)
24506     save_CPPFLAGS="$CPPFLAGS"
24507     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
24508
24509     save_LDFLAGS="$LDFLAGS"
24510     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
24511
24512     save_LIBS="$LIBS"
24513     LIBS="$lt_cv_dlopen_libs $LIBS"
24514
24515     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
24516 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24517 if test "${lt_cv_dlopen_self+set}" = set; then
24518   echo $ECHO_N "(cached) $ECHO_C" >&6
24519 else
24520           if test "$cross_compiling" = yes; then :
24521   lt_cv_dlopen_self=cross
24522 else
24523   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24524   lt_status=$lt_dlunknown
24525   cat > conftest.$ac_ext <<EOF
24526 #line 24526 "configure"
24527 #include "confdefs.h"
24528
24529 #if HAVE_DLFCN_H
24530 #include <dlfcn.h>
24531 #endif
24532
24533 #include <stdio.h>
24534
24535 #ifdef RTLD_GLOBAL
24536 #  define LT_DLGLOBAL           RTLD_GLOBAL
24537 #else
24538 #  ifdef DL_GLOBAL
24539 #    define LT_DLGLOBAL         DL_GLOBAL
24540 #  else
24541 #    define LT_DLGLOBAL         0
24542 #  endif
24543 #endif
24544
24545 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24546    find out it does not work in some platform. */
24547 #ifndef LT_DLLAZY_OR_NOW
24548 #  ifdef RTLD_LAZY
24549 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
24550 #  else
24551 #    ifdef DL_LAZY
24552 #      define LT_DLLAZY_OR_NOW          DL_LAZY
24553 #    else
24554 #      ifdef RTLD_NOW
24555 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
24556 #      else
24557 #        ifdef DL_NOW
24558 #          define LT_DLLAZY_OR_NOW      DL_NOW
24559 #        else
24560 #          define LT_DLLAZY_OR_NOW      0
24561 #        endif
24562 #      endif
24563 #    endif
24564 #  endif
24565 #endif
24566
24567 #ifdef __cplusplus
24568 extern "C" void exit (int);
24569 #endif
24570
24571 void fnord() { int i=42;}
24572 int main ()
24573 {
24574   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24575   int status = $lt_dlunknown;
24576
24577   if (self)
24578     {
24579       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24580       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24581       /* dlclose (self); */
24582     }
24583
24584     exit (status);
24585 }
24586 EOF
24587   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24588   (eval $ac_link) 2>&5
24589   ac_status=$?
24590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24592     (./conftest; exit; ) 2>/dev/null
24593     lt_status=$?
24594     case x$lt_status in
24595       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24596       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24597       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24598     esac
24599   else :
24600     # compilation failed
24601     lt_cv_dlopen_self=no
24602   fi
24603 fi
24604 rm -fr conftest*
24605
24606
24607 fi
24608 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24609 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24610
24611     if test "x$lt_cv_dlopen_self" = xyes; then
24612       LDFLAGS="$LDFLAGS $link_static_flag"
24613       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24614 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24615 if test "${lt_cv_dlopen_self_static+set}" = set; then
24616   echo $ECHO_N "(cached) $ECHO_C" >&6
24617 else
24618           if test "$cross_compiling" = yes; then :
24619   lt_cv_dlopen_self_static=cross
24620 else
24621   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24622   lt_status=$lt_dlunknown
24623   cat > conftest.$ac_ext <<EOF
24624 #line 24624 "configure"
24625 #include "confdefs.h"
24626
24627 #if HAVE_DLFCN_H
24628 #include <dlfcn.h>
24629 #endif
24630
24631 #include <stdio.h>
24632
24633 #ifdef RTLD_GLOBAL
24634 #  define LT_DLGLOBAL           RTLD_GLOBAL
24635 #else
24636 #  ifdef DL_GLOBAL
24637 #    define LT_DLGLOBAL         DL_GLOBAL
24638 #  else
24639 #    define LT_DLGLOBAL         0
24640 #  endif
24641 #endif
24642
24643 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24644    find out it does not work in some platform. */
24645 #ifndef LT_DLLAZY_OR_NOW
24646 #  ifdef RTLD_LAZY
24647 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
24648 #  else
24649 #    ifdef DL_LAZY
24650 #      define LT_DLLAZY_OR_NOW          DL_LAZY
24651 #    else
24652 #      ifdef RTLD_NOW
24653 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
24654 #      else
24655 #        ifdef DL_NOW
24656 #          define LT_DLLAZY_OR_NOW      DL_NOW
24657 #        else
24658 #          define LT_DLLAZY_OR_NOW      0
24659 #        endif
24660 #      endif
24661 #    endif
24662 #  endif
24663 #endif
24664
24665 #ifdef __cplusplus
24666 extern "C" void exit (int);
24667 #endif
24668
24669 void fnord() { int i=42;}
24670 int main ()
24671 {
24672   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24673   int status = $lt_dlunknown;
24674
24675   if (self)
24676     {
24677       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24678       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24679       /* dlclose (self); */
24680     }
24681
24682     exit (status);
24683 }
24684 EOF
24685   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24686   (eval $ac_link) 2>&5
24687   ac_status=$?
24688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24690     (./conftest; exit; ) 2>/dev/null
24691     lt_status=$?
24692     case x$lt_status in
24693       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24694       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24695       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24696     esac
24697   else :
24698     # compilation failed
24699     lt_cv_dlopen_self_static=no
24700   fi
24701 fi
24702 rm -fr conftest*
24703
24704
24705 fi
24706 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24707 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24708     fi
24709
24710     CPPFLAGS="$save_CPPFLAGS"
24711     LDFLAGS="$save_LDFLAGS"
24712     LIBS="$save_LIBS"
24713     ;;
24714   esac
24715
24716   case $lt_cv_dlopen_self in
24717   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24718   *) enable_dlopen_self=unknown ;;
24719   esac
24720
24721   case $lt_cv_dlopen_self_static in
24722   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24723   *) enable_dlopen_self_static=unknown ;;
24724   esac
24725 fi
24726
24727
24728 # The else clause should only fire when bootstrapping the
24729 # libtool distribution, otherwise you forgot to ship ltmain.sh
24730 # with your package, and you will get complaints that there are
24731 # no rules to generate ltmain.sh.
24732 if test -f "$ltmain"; then
24733   # See if we are running on zsh, and set the options which allow our commands through
24734   # without removal of \ escapes.
24735   if test -n "${ZSH_VERSION+set}" ; then
24736     setopt NO_GLOB_SUBST
24737   fi
24738   # Now quote all the things that may contain metacharacters while being
24739   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24740   # variables and quote the copies for generation of the libtool script.
24741   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24742     SED SHELL STRIP \
24743     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24744     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24745     deplibs_check_method reload_flag reload_cmds need_locks \
24746     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24747     lt_cv_sys_global_symbol_to_c_name_address \
24748     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24749     old_postinstall_cmds old_postuninstall_cmds \
24750     compiler_GCJ \
24751     CC_GCJ \
24752     LD_GCJ \
24753     lt_prog_compiler_wl_GCJ \
24754     lt_prog_compiler_pic_GCJ \
24755     lt_prog_compiler_static_GCJ \
24756     lt_prog_compiler_no_builtin_flag_GCJ \
24757     export_dynamic_flag_spec_GCJ \
24758     thread_safe_flag_spec_GCJ \
24759     whole_archive_flag_spec_GCJ \
24760     enable_shared_with_static_runtimes_GCJ \
24761     old_archive_cmds_GCJ \
24762     old_archive_from_new_cmds_GCJ \
24763     predep_objects_GCJ \
24764     postdep_objects_GCJ \
24765     predeps_GCJ \
24766     postdeps_GCJ \
24767     compiler_lib_search_path_GCJ \
24768     archive_cmds_GCJ \
24769     archive_expsym_cmds_GCJ \
24770     postinstall_cmds_GCJ \
24771     postuninstall_cmds_GCJ \
24772     old_archive_from_expsyms_cmds_GCJ \
24773     allow_undefined_flag_GCJ \
24774     no_undefined_flag_GCJ \
24775     export_symbols_cmds_GCJ \
24776     hardcode_libdir_flag_spec_GCJ \
24777     hardcode_libdir_flag_spec_ld_GCJ \
24778     hardcode_libdir_separator_GCJ \
24779     hardcode_automatic_GCJ \
24780     module_cmds_GCJ \
24781     module_expsym_cmds_GCJ \
24782     lt_cv_prog_compiler_c_o_GCJ \
24783     exclude_expsyms_GCJ \
24784     include_expsyms_GCJ; do
24785
24786     case $var in
24787     old_archive_cmds_GCJ | \
24788     old_archive_from_new_cmds_GCJ | \
24789     archive_cmds_GCJ | \
24790     archive_expsym_cmds_GCJ | \
24791     module_cmds_GCJ | \
24792     module_expsym_cmds_GCJ | \
24793     old_archive_from_expsyms_cmds_GCJ | \
24794     export_symbols_cmds_GCJ | \
24795     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24796     postinstall_cmds | postuninstall_cmds | \
24797     old_postinstall_cmds | old_postuninstall_cmds | \
24798     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24799       # Double-quote double-evaled strings.
24800       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24801       ;;
24802     *)
24803       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24804       ;;
24805     esac
24806   done
24807
24808   case $lt_echo in
24809   *'\$0 --fallback-echo"')
24810     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24811     ;;
24812   esac
24813
24814 cfgfile="$ofile"
24815
24816   cat <<__EOF__ >> "$cfgfile"
24817 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24818
24819 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24820
24821 # Shell to use when invoking shell scripts.
24822 SHELL=$lt_SHELL
24823
24824 # Whether or not to build shared libraries.
24825 build_libtool_libs=$enable_shared
24826
24827 # Whether or not to build static libraries.
24828 build_old_libs=$enable_static
24829
24830 # Whether or not to add -lc for building shared libraries.
24831 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24832
24833 # Whether or not to disallow shared libs when runtime libs are static
24834 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24835
24836 # Whether or not to optimize for fast installation.
24837 fast_install=$enable_fast_install
24838
24839 # The host system.
24840 host_alias=$host_alias
24841 host=$host
24842
24843 # An echo program that does not interpret backslashes.
24844 echo=$lt_echo
24845
24846 # The archiver.
24847 AR=$lt_AR
24848 AR_FLAGS=$lt_AR_FLAGS
24849
24850 # A C compiler.
24851 LTCC=$lt_LTCC
24852
24853 # A language-specific compiler.
24854 CC=$lt_compiler_GCJ
24855
24856 # Is the compiler the GNU C compiler?
24857 with_gcc=$GCC_GCJ
24858
24859 # An ERE matcher.
24860 EGREP=$lt_EGREP
24861
24862 # The linker used to build libraries.
24863 LD=$lt_LD_GCJ
24864
24865 # Whether we need hard or soft links.
24866 LN_S=$lt_LN_S
24867
24868 # A BSD-compatible nm program.
24869 NM=$lt_NM
24870
24871 # A symbol stripping program
24872 STRIP=$lt_STRIP
24873
24874 # Used to examine libraries when file_magic_cmd begins "file"
24875 MAGIC_CMD=$MAGIC_CMD
24876
24877 # Used on cygwin: DLL creation program.
24878 DLLTOOL="$DLLTOOL"
24879
24880 # Used on cygwin: object dumper.
24881 OBJDUMP="$OBJDUMP"
24882
24883 # Used on cygwin: assembler.
24884 AS="$AS"
24885
24886 # The name of the directory that contains temporary libtool files.
24887 objdir=$objdir
24888
24889 # How to create reloadable object files.
24890 reload_flag=$lt_reload_flag
24891 reload_cmds=$lt_reload_cmds
24892
24893 # How to pass a linker flag through the compiler.
24894 wl=$lt_lt_prog_compiler_wl_GCJ
24895
24896 # Object file suffix (normally "o").
24897 objext="$ac_objext"
24898
24899 # Old archive suffix (normally "a").
24900 libext="$libext"
24901
24902 # Shared library suffix (normally ".so").
24903 shrext_cmds='$shrext_cmds'
24904
24905 # Executable file suffix (normally "").
24906 exeext="$exeext"
24907
24908 # Additional compiler flags for building library objects.
24909 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24910 pic_mode=$pic_mode
24911
24912 # What is the maximum length of a command?
24913 max_cmd_len=$lt_cv_sys_max_cmd_len
24914
24915 # Does compiler simultaneously support -c and -o options?
24916 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24917
24918 # Must we lock files when doing compilation ?
24919 need_locks=$lt_need_locks
24920
24921 # Do we need the lib prefix for modules?
24922 need_lib_prefix=$need_lib_prefix
24923
24924 # Do we need a version for libraries?
24925 need_version=$need_version
24926
24927 # Whether dlopen is supported.
24928 dlopen_support=$enable_dlopen
24929
24930 # Whether dlopen of programs is supported.
24931 dlopen_self=$enable_dlopen_self
24932
24933 # Whether dlopen of statically linked programs is supported.
24934 dlopen_self_static=$enable_dlopen_self_static
24935
24936 # Compiler flag to prevent dynamic linking.
24937 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24938
24939 # Compiler flag to turn off builtin functions.
24940 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24941
24942 # Compiler flag to allow reflexive dlopens.
24943 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24944
24945 # Compiler flag to generate shared objects directly from archives.
24946 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24947
24948 # Compiler flag to generate thread-safe objects.
24949 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24950
24951 # Library versioning type.
24952 version_type=$version_type
24953
24954 # Format of library name prefix.
24955 libname_spec=$lt_libname_spec
24956
24957 # List of archive names.  First name is the real one, the rest are links.
24958 # The last name is the one that the linker finds with -lNAME.
24959 library_names_spec=$lt_library_names_spec
24960
24961 # The coded name of the library, if different from the real name.
24962 soname_spec=$lt_soname_spec
24963
24964 # Commands used to build and install an old-style archive.
24965 RANLIB=$lt_RANLIB
24966 old_archive_cmds=$lt_old_archive_cmds_GCJ
24967 old_postinstall_cmds=$lt_old_postinstall_cmds
24968 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24969
24970 # Create an old-style archive from a shared archive.
24971 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24972
24973 # Create a temporary old-style archive to link instead of a shared archive.
24974 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24975
24976 # Commands used to build and install a shared archive.
24977 archive_cmds=$lt_archive_cmds_GCJ
24978 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24979 postinstall_cmds=$lt_postinstall_cmds
24980 postuninstall_cmds=$lt_postuninstall_cmds
24981
24982 # Commands used to build a loadable module (assumed same as above if empty)
24983 module_cmds=$lt_module_cmds_GCJ
24984 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24985
24986 # Commands to strip libraries.
24987 old_striplib=$lt_old_striplib
24988 striplib=$lt_striplib
24989
24990 # Dependencies to place before the objects being linked to create a
24991 # shared library.
24992 predep_objects=$lt_predep_objects_GCJ
24993
24994 # Dependencies to place after the objects being linked to create a
24995 # shared library.
24996 postdep_objects=$lt_postdep_objects_GCJ
24997
24998 # Dependencies to place before the objects being linked to create a
24999 # shared library.
25000 predeps=$lt_predeps_GCJ
25001
25002 # Dependencies to place after the objects being linked to create a
25003 # shared library.
25004 postdeps=$lt_postdeps_GCJ
25005
25006 # The library search path used internally by the compiler when linking
25007 # a shared library.
25008 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25009
25010 # Method to check whether dependent libraries are shared objects.
25011 deplibs_check_method=$lt_deplibs_check_method
25012
25013 # Command to use when deplibs_check_method == file_magic.
25014 file_magic_cmd=$lt_file_magic_cmd
25015
25016 # Flag that allows shared libraries with undefined symbols to be built.
25017 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25018
25019 # Flag that forces no undefined symbols.
25020 no_undefined_flag=$lt_no_undefined_flag_GCJ
25021
25022 # Commands used to finish a libtool library installation in a directory.
25023 finish_cmds=$lt_finish_cmds
25024
25025 # Same as above, but a single script fragment to be evaled but not shown.
25026 finish_eval=$lt_finish_eval
25027
25028 # Take the output of nm and produce a listing of raw symbols and C names.
25029 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25030
25031 # Transform the output of nm in a proper C declaration
25032 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25033
25034 # Transform the output of nm in a C name address pair
25035 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25036
25037 # This is the shared library runtime path variable.
25038 runpath_var=$runpath_var
25039
25040 # This is the shared library path variable.
25041 shlibpath_var=$shlibpath_var
25042
25043 # Is shlibpath searched before the hard-coded library search path?
25044 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25045
25046 # How to hardcode a shared library path into an executable.
25047 hardcode_action=$hardcode_action_GCJ
25048
25049 # Whether we should hardcode library paths into libraries.
25050 hardcode_into_libs=$hardcode_into_libs
25051
25052 # Flag to hardcode \$libdir into a binary during linking.
25053 # This must work even if \$libdir does not exist.
25054 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25055
25056 # If ld is used when linking, flag to hardcode \$libdir into
25057 # a binary during linking. This must work even if \$libdir does
25058 # not exist.
25059 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25060
25061 # Whether we need a single -rpath flag with a separated argument.
25062 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25063
25064 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25065 # resulting binary.
25066 hardcode_direct=$hardcode_direct_GCJ
25067
25068 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25069 # resulting binary.
25070 hardcode_minus_L=$hardcode_minus_L_GCJ
25071
25072 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25073 # the resulting binary.
25074 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25075
25076 # Set to yes if building a shared library automatically hardcodes DIR into the library
25077 # and all subsequent libraries and executables linked against it.
25078 hardcode_automatic=$hardcode_automatic_GCJ
25079
25080 # Variables whose values should be saved in libtool wrapper scripts and
25081 # restored at relink time.
25082 variables_saved_for_relink="$variables_saved_for_relink"
25083
25084 # Whether libtool must link a program against all its dependency libraries.
25085 link_all_deplibs=$link_all_deplibs_GCJ
25086
25087 # Compile-time system search path for libraries
25088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25089
25090 # Run-time system search path for libraries
25091 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25092
25093 # Fix the shell variable \$srcfile for the compiler.
25094 fix_srcfile_path="$fix_srcfile_path_GCJ"
25095
25096 # Set to yes if exported symbols are required.
25097 always_export_symbols=$always_export_symbols_GCJ
25098
25099 # The commands to list exported symbols.
25100 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25101
25102 # The commands to extract the exported symbol list from a shared archive.
25103 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25104
25105 # Symbols that should not be listed in the preloaded symbols.
25106 exclude_expsyms=$lt_exclude_expsyms_GCJ
25107
25108 # Symbols that must always be exported.
25109 include_expsyms=$lt_include_expsyms_GCJ
25110
25111 # ### END LIBTOOL TAG CONFIG: $tagname
25112
25113 __EOF__
25114
25115
25116 else
25117   # If there is no Makefile yet, we rely on a make rule to execute
25118   # `config.status --recheck' to rerun these tests and create the
25119   # libtool script then.
25120   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25121   if test -f "$ltmain_in"; then
25122     test -f Makefile && make "$ltmain"
25123   fi
25124 fi
25125
25126
25127 ac_ext=c
25128 ac_cpp='$CPP $CPPFLAGS'
25129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25132
25133 CC="$lt_save_CC"
25134
25135         else
25136           tagname=""
25137         fi
25138         ;;
25139
25140       RC)
25141
25142
25143
25144 # Source file extension for RC test sources.
25145 ac_ext=rc
25146
25147 # Object file extension for compiled RC test sources.
25148 objext=o
25149 objext_RC=$objext
25150
25151 # Code to be used in simple compile tests
25152 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25153
25154 # Code to be used in simple link tests
25155 lt_simple_link_test_code="$lt_simple_compile_test_code"
25156
25157 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25158
25159 # If no C compiler was specified, use CC.
25160 LTCC=${LTCC-"$CC"}
25161
25162 # Allow CC to be a program name with arguments.
25163 compiler=$CC
25164
25165
25166 # Allow CC to be a program name with arguments.
25167 lt_save_CC="$CC"
25168 CC=${RC-"windres"}
25169 compiler=$CC
25170 compiler_RC=$CC
25171 lt_cv_prog_compiler_c_o_RC=yes
25172
25173 # The else clause should only fire when bootstrapping the
25174 # libtool distribution, otherwise you forgot to ship ltmain.sh
25175 # with your package, and you will get complaints that there are
25176 # no rules to generate ltmain.sh.
25177 if test -f "$ltmain"; then
25178   # See if we are running on zsh, and set the options which allow our commands through
25179   # without removal of \ escapes.
25180   if test -n "${ZSH_VERSION+set}" ; then
25181     setopt NO_GLOB_SUBST
25182   fi
25183   # Now quote all the things that may contain metacharacters while being
25184   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25185   # variables and quote the copies for generation of the libtool script.
25186   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25187     SED SHELL STRIP \
25188     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25189     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25190     deplibs_check_method reload_flag reload_cmds need_locks \
25191     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25192     lt_cv_sys_global_symbol_to_c_name_address \
25193     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25194     old_postinstall_cmds old_postuninstall_cmds \
25195     compiler_RC \
25196     CC_RC \
25197     LD_RC \
25198     lt_prog_compiler_wl_RC \
25199     lt_prog_compiler_pic_RC \
25200     lt_prog_compiler_static_RC \
25201     lt_prog_compiler_no_builtin_flag_RC \
25202     export_dynamic_flag_spec_RC \
25203     thread_safe_flag_spec_RC \
25204     whole_archive_flag_spec_RC \
25205     enable_shared_with_static_runtimes_RC \
25206     old_archive_cmds_RC \
25207     old_archive_from_new_cmds_RC \
25208     predep_objects_RC \
25209     postdep_objects_RC \
25210     predeps_RC \
25211     postdeps_RC \
25212     compiler_lib_search_path_RC \
25213     archive_cmds_RC \
25214     archive_expsym_cmds_RC \
25215     postinstall_cmds_RC \
25216     postuninstall_cmds_RC \
25217     old_archive_from_expsyms_cmds_RC \
25218     allow_undefined_flag_RC \
25219     no_undefined_flag_RC \
25220     export_symbols_cmds_RC \
25221     hardcode_libdir_flag_spec_RC \
25222     hardcode_libdir_flag_spec_ld_RC \
25223     hardcode_libdir_separator_RC \
25224     hardcode_automatic_RC \
25225     module_cmds_RC \
25226     module_expsym_cmds_RC \
25227     lt_cv_prog_compiler_c_o_RC \
25228     exclude_expsyms_RC \
25229     include_expsyms_RC; do
25230
25231     case $var in
25232     old_archive_cmds_RC | \
25233     old_archive_from_new_cmds_RC | \
25234     archive_cmds_RC | \
25235     archive_expsym_cmds_RC | \
25236     module_cmds_RC | \
25237     module_expsym_cmds_RC | \
25238     old_archive_from_expsyms_cmds_RC | \
25239     export_symbols_cmds_RC | \
25240     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25241     postinstall_cmds | postuninstall_cmds | \
25242     old_postinstall_cmds | old_postuninstall_cmds | \
25243     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25244       # Double-quote double-evaled strings.
25245       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25246       ;;
25247     *)
25248       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25249       ;;
25250     esac
25251   done
25252
25253   case $lt_echo in
25254   *'\$0 --fallback-echo"')
25255     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25256     ;;
25257   esac
25258
25259 cfgfile="$ofile"
25260
25261   cat <<__EOF__ >> "$cfgfile"
25262 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25263
25264 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25265
25266 # Shell to use when invoking shell scripts.
25267 SHELL=$lt_SHELL
25268
25269 # Whether or not to build shared libraries.
25270 build_libtool_libs=$enable_shared
25271
25272 # Whether or not to build static libraries.
25273 build_old_libs=$enable_static
25274
25275 # Whether or not to add -lc for building shared libraries.
25276 build_libtool_need_lc=$archive_cmds_need_lc_RC
25277
25278 # Whether or not to disallow shared libs when runtime libs are static
25279 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25280
25281 # Whether or not to optimize for fast installation.
25282 fast_install=$enable_fast_install
25283
25284 # The host system.
25285 host_alias=$host_alias
25286 host=$host
25287
25288 # An echo program that does not interpret backslashes.
25289 echo=$lt_echo
25290
25291 # The archiver.
25292 AR=$lt_AR
25293 AR_FLAGS=$lt_AR_FLAGS
25294
25295 # A C compiler.
25296 LTCC=$lt_LTCC
25297
25298 # A language-specific compiler.
25299 CC=$lt_compiler_RC
25300
25301 # Is the compiler the GNU C compiler?
25302 with_gcc=$GCC_RC
25303
25304 # An ERE matcher.
25305 EGREP=$lt_EGREP
25306
25307 # The linker used to build libraries.
25308 LD=$lt_LD_RC
25309
25310 # Whether we need hard or soft links.
25311 LN_S=$lt_LN_S
25312
25313 # A BSD-compatible nm program.
25314 NM=$lt_NM
25315
25316 # A symbol stripping program
25317 STRIP=$lt_STRIP
25318
25319 # Used to examine libraries when file_magic_cmd begins "file"
25320 MAGIC_CMD=$MAGIC_CMD
25321
25322 # Used on cygwin: DLL creation program.
25323 DLLTOOL="$DLLTOOL"
25324
25325 # Used on cygwin: object dumper.
25326 OBJDUMP="$OBJDUMP"
25327
25328 # Used on cygwin: assembler.
25329 AS="$AS"
25330
25331 # The name of the directory that contains temporary libtool files.
25332 objdir=$objdir
25333
25334 # How to create reloadable object files.
25335 reload_flag=$lt_reload_flag
25336 reload_cmds=$lt_reload_cmds
25337
25338 # How to pass a linker flag through the compiler.
25339 wl=$lt_lt_prog_compiler_wl_RC
25340
25341 # Object file suffix (normally "o").
25342 objext="$ac_objext"
25343
25344 # Old archive suffix (normally "a").
25345 libext="$libext"
25346
25347 # Shared library suffix (normally ".so").
25348 shrext_cmds='$shrext_cmds'
25349
25350 # Executable file suffix (normally "").
25351 exeext="$exeext"
25352
25353 # Additional compiler flags for building library objects.
25354 pic_flag=$lt_lt_prog_compiler_pic_RC
25355 pic_mode=$pic_mode
25356
25357 # What is the maximum length of a command?
25358 max_cmd_len=$lt_cv_sys_max_cmd_len
25359
25360 # Does compiler simultaneously support -c and -o options?
25361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25362
25363 # Must we lock files when doing compilation ?
25364 need_locks=$lt_need_locks
25365
25366 # Do we need the lib prefix for modules?
25367 need_lib_prefix=$need_lib_prefix
25368
25369 # Do we need a version for libraries?
25370 need_version=$need_version
25371
25372 # Whether dlopen is supported.
25373 dlopen_support=$enable_dlopen
25374
25375 # Whether dlopen of programs is supported.
25376 dlopen_self=$enable_dlopen_self
25377
25378 # Whether dlopen of statically linked programs is supported.
25379 dlopen_self_static=$enable_dlopen_self_static
25380
25381 # Compiler flag to prevent dynamic linking.
25382 link_static_flag=$lt_lt_prog_compiler_static_RC
25383
25384 # Compiler flag to turn off builtin functions.
25385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25386
25387 # Compiler flag to allow reflexive dlopens.
25388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25389
25390 # Compiler flag to generate shared objects directly from archives.
25391 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25392
25393 # Compiler flag to generate thread-safe objects.
25394 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25395
25396 # Library versioning type.
25397 version_type=$version_type
25398
25399 # Format of library name prefix.
25400 libname_spec=$lt_libname_spec
25401
25402 # List of archive names.  First name is the real one, the rest are links.
25403 # The last name is the one that the linker finds with -lNAME.
25404 library_names_spec=$lt_library_names_spec
25405
25406 # The coded name of the library, if different from the real name.
25407 soname_spec=$lt_soname_spec
25408
25409 # Commands used to build and install an old-style archive.
25410 RANLIB=$lt_RANLIB
25411 old_archive_cmds=$lt_old_archive_cmds_RC
25412 old_postinstall_cmds=$lt_old_postinstall_cmds
25413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25414
25415 # Create an old-style archive from a shared archive.
25416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25417
25418 # Create a temporary old-style archive to link instead of a shared archive.
25419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25420
25421 # Commands used to build and install a shared archive.
25422 archive_cmds=$lt_archive_cmds_RC
25423 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25424 postinstall_cmds=$lt_postinstall_cmds
25425 postuninstall_cmds=$lt_postuninstall_cmds
25426
25427 # Commands used to build a loadable module (assumed same as above if empty)
25428 module_cmds=$lt_module_cmds_RC
25429 module_expsym_cmds=$lt_module_expsym_cmds_RC
25430
25431 # Commands to strip libraries.
25432 old_striplib=$lt_old_striplib
25433 striplib=$lt_striplib
25434
25435 # Dependencies to place before the objects being linked to create a
25436 # shared library.
25437 predep_objects=$lt_predep_objects_RC
25438
25439 # Dependencies to place after the objects being linked to create a
25440 # shared library.
25441 postdep_objects=$lt_postdep_objects_RC
25442
25443 # Dependencies to place before the objects being linked to create a
25444 # shared library.
25445 predeps=$lt_predeps_RC
25446
25447 # Dependencies to place after the objects being linked to create a
25448 # shared library.
25449 postdeps=$lt_postdeps_RC
25450
25451 # The library search path used internally by the compiler when linking
25452 # a shared library.
25453 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25454
25455 # Method to check whether dependent libraries are shared objects.
25456 deplibs_check_method=$lt_deplibs_check_method
25457
25458 # Command to use when deplibs_check_method == file_magic.
25459 file_magic_cmd=$lt_file_magic_cmd
25460
25461 # Flag that allows shared libraries with undefined symbols to be built.
25462 allow_undefined_flag=$lt_allow_undefined_flag_RC
25463
25464 # Flag that forces no undefined symbols.
25465 no_undefined_flag=$lt_no_undefined_flag_RC
25466
25467 # Commands used to finish a libtool library installation in a directory.
25468 finish_cmds=$lt_finish_cmds
25469
25470 # Same as above, but a single script fragment to be evaled but not shown.
25471 finish_eval=$lt_finish_eval
25472
25473 # Take the output of nm and produce a listing of raw symbols and C names.
25474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25475
25476 # Transform the output of nm in a proper C declaration
25477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25478
25479 # Transform the output of nm in a C name address pair
25480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25481
25482 # This is the shared library runtime path variable.
25483 runpath_var=$runpath_var
25484
25485 # This is the shared library path variable.
25486 shlibpath_var=$shlibpath_var
25487
25488 # Is shlibpath searched before the hard-coded library search path?
25489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25490
25491 # How to hardcode a shared library path into an executable.
25492 hardcode_action=$hardcode_action_RC
25493
25494 # Whether we should hardcode library paths into libraries.
25495 hardcode_into_libs=$hardcode_into_libs
25496
25497 # Flag to hardcode \$libdir into a binary during linking.
25498 # This must work even if \$libdir does not exist.
25499 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25500
25501 # If ld is used when linking, flag to hardcode \$libdir into
25502 # a binary during linking. This must work even if \$libdir does
25503 # not exist.
25504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25505
25506 # Whether we need a single -rpath flag with a separated argument.
25507 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25508
25509 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25510 # resulting binary.
25511 hardcode_direct=$hardcode_direct_RC
25512
25513 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25514 # resulting binary.
25515 hardcode_minus_L=$hardcode_minus_L_RC
25516
25517 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25518 # the resulting binary.
25519 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25520
25521 # Set to yes if building a shared library automatically hardcodes DIR into the library
25522 # and all subsequent libraries and executables linked against it.
25523 hardcode_automatic=$hardcode_automatic_RC
25524
25525 # Variables whose values should be saved in libtool wrapper scripts and
25526 # restored at relink time.
25527 variables_saved_for_relink="$variables_saved_for_relink"
25528
25529 # Whether libtool must link a program against all its dependency libraries.
25530 link_all_deplibs=$link_all_deplibs_RC
25531
25532 # Compile-time system search path for libraries
25533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25534
25535 # Run-time system search path for libraries
25536 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25537
25538 # Fix the shell variable \$srcfile for the compiler.
25539 fix_srcfile_path="$fix_srcfile_path_RC"
25540
25541 # Set to yes if exported symbols are required.
25542 always_export_symbols=$always_export_symbols_RC
25543
25544 # The commands to list exported symbols.
25545 export_symbols_cmds=$lt_export_symbols_cmds_RC
25546
25547 # The commands to extract the exported symbol list from a shared archive.
25548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25549
25550 # Symbols that should not be listed in the preloaded symbols.
25551 exclude_expsyms=$lt_exclude_expsyms_RC
25552
25553 # Symbols that must always be exported.
25554 include_expsyms=$lt_include_expsyms_RC
25555
25556 # ### END LIBTOOL TAG CONFIG: $tagname
25557
25558 __EOF__
25559
25560
25561 else
25562   # If there is no Makefile yet, we rely on a make rule to execute
25563   # `config.status --recheck' to rerun these tests and create the
25564   # libtool script then.
25565   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25566   if test -f "$ltmain_in"; then
25567     test -f Makefile && make "$ltmain"
25568   fi
25569 fi
25570
25571
25572 ac_ext=c
25573 ac_cpp='$CPP $CPPFLAGS'
25574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25577
25578 CC="$lt_save_CC"
25579
25580         ;;
25581
25582       *)
25583         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25584 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25585    { (exit 1); exit 1; }; }
25586         ;;
25587       esac
25588
25589       # Append the new tag name to the list of available tags.
25590       if test -n "$tagname" ; then
25591       available_tags="$available_tags $tagname"
25592     fi
25593     fi
25594   done
25595   IFS="$lt_save_ifs"
25596
25597   # Now substitute the updated list of available tags.
25598   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25599     mv "${ofile}T" "$ofile"
25600     chmod +x "$ofile"
25601   else
25602     rm -f "${ofile}T"
25603     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25604 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25605    { (exit 1); exit 1; }; }
25606   fi
25607 fi
25608
25609
25610
25611 # This can be used to rebuild libtool when needed
25612 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25613
25614 # Always use our own libtool.
25615 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
25616
25617 # Prevent multiple expansion
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641         echo "$as_me:$LINENO: checking for linux kernel dir" >&5
25642 echo $ECHO_N "checking for linux kernel dir... $ECHO_C" >&6
25643 if test "${ensc_cv_path_kerneldir+set}" = set; then
25644   echo $ECHO_N "(cached) $ECHO_C" >&6
25645 else
25646
25647
25648 # Check whether --with-kerneldir or --without-kerneldir was given.
25649 if test "${with_kerneldir+set}" = set; then
25650   withval="$with_kerneldir"
25651   case "$withval" in
25652                 yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for kerneldir" >&5
25653 echo "$as_me: error: '$withval' is not a valid value for kerneldir" >&2;}
25654    { (exit 1); exit 1; }; };;
25655                 *)      ensc_cv_path_kerneldir=$withval;;
25656              esac
25657 else
25658   ensc_cv_path_kerneldir=
25659              for i in /lib/modules/$(uname -r)/build /usr/src/linux /usr; do
25660                 test -e $i/include/linux/version.h && { ensc_cv_path_kerneldir=$i; break; }
25661              done
25662 fi;
25663
25664 fi
25665 echo "$as_me:$LINENO: result: $ensc_cv_path_kerneldir" >&5
25666 echo "${ECHO_T}$ensc_cv_path_kerneldir" >&6
25667
25668         test "$ensc_cv_path_kerneldir" -a -e "$ensc_cv_path_kerneldir"/include/linux/version.h || {
25669                 { { echo "$as_me:$LINENO: error: Can not find kernelsources" >&5
25670 echo "$as_me: error: Can not find kernelsources" >&2;}
25671    { (exit 1); exit 1; }; }
25672         }
25673
25674
25675
25676
25677         echo "$as_me:$LINENO: checking for linux kernel headers" >&5
25678 echo $ECHO_N "checking for linux kernel headers... $ECHO_C" >&6
25679 if test "${ensc_cv_path_kernelheaders+set}" = set; then
25680   echo $ECHO_N "(cached) $ECHO_C" >&6
25681 else
25682
25683                 ensc_cv_path_kernelheaders=$ensc_cv_path_kerneldir/include
25684
25685 fi
25686 echo "$as_me:$LINENO: result: $ensc_cv_path_kernelheaders" >&5
25687 echo "${ECHO_T}$ensc_cv_path_kernelheaders" >&6
25688
25689         if test x"kernelincludedir" != x; then
25690                 kernelincludedir=$ensc_cv_path_kernelheaders
25691
25692         fi
25693
25694
25695         echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
25696 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6
25697
25698 # Check whether --with-vrootdir or --without-vrootdir was given.
25699 if test "${with_vrootdir+set}" = set; then
25700   withval="$with_vrootdir"
25701   case "$withval" in
25702                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
25703 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
25704    { (exit 1); exit 1; }; };;
25705                         *)      ensc_uv_path_vrootdir=$withval;;
25706                      esac
25707 else
25708   ensc_uv_path_vrootdir=/vservers
25709 fi;
25710         echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
25711 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6
25712
25713         if test x"vserverdir" != x; then
25714                 vserverdir=$ensc_uv_path_vrootdir
25715
25716         fi
25717
25718
25719         if test x"trunk" != x; then
25720                 CVS2CL_TAG='-F trunk'
25721
25722         fi
25723
25724         for ac_prog in cvs2cl
25725 do
25726   # Extract the first word of "$ac_prog", so it can be a program name with args.
25727 set dummy $ac_prog; ac_word=$2
25728 echo "$as_me:$LINENO: checking for $ac_word" >&5
25729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25730 if test "${ac_cv_prog_CVS2CL+set}" = set; then
25731   echo $ECHO_N "(cached) $ECHO_C" >&6
25732 else
25733   if test -n "$CVS2CL"; then
25734   ac_cv_prog_CVS2CL="$CVS2CL" # Let the user override the test.
25735 else
25736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25737 for as_dir in $PATH
25738 do
25739   IFS=$as_save_IFS
25740   test -z "$as_dir" && as_dir=.
25741   for ac_exec_ext in '' $ac_executable_extensions; do
25742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25743     ac_cv_prog_CVS2CL="$ac_prog"
25744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25745     break 2
25746   fi
25747 done
25748 done
25749
25750 fi
25751 fi
25752 CVS2CL=$ac_cv_prog_CVS2CL
25753 if test -n "$CVS2CL"; then
25754   echo "$as_me:$LINENO: result: $CVS2CL" >&5
25755 echo "${ECHO_T}$CVS2CL" >&6
25756 else
25757   echo "$as_me:$LINENO: result: no" >&5
25758 echo "${ECHO_T}no" >&6
25759 fi
25760
25761   test -n "$CVS2CL" && break
25762 done
25763
25764
25765
25766 if test x"$CVS2CL" != x; then
25767   HAVE_CVS2CL_TRUE=
25768   HAVE_CVS2CL_FALSE='#'
25769 else
25770   HAVE_CVS2CL_TRUE='#'
25771   HAVE_CVS2CL_FALSE=
25772 fi
25773
25774
25775         for ac_prog in rcs2log
25776 do
25777   # Extract the first word of "$ac_prog", so it can be a program name with args.
25778 set dummy $ac_prog; ac_word=$2
25779 echo "$as_me:$LINENO: checking for $ac_word" >&5
25780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25781 if test "${ac_cv_prog_RCS2LOG+set}" = set; then
25782   echo $ECHO_N "(cached) $ECHO_C" >&6
25783 else
25784   if test -n "$RCS2LOG"; then
25785   ac_cv_prog_RCS2LOG="$RCS2LOG" # Let the user override the test.
25786 else
25787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25788 for as_dir in $PATH
25789 do
25790   IFS=$as_save_IFS
25791   test -z "$as_dir" && as_dir=.
25792   for ac_exec_ext in '' $ac_executable_extensions; do
25793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25794     ac_cv_prog_RCS2LOG="$ac_prog"
25795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25796     break 2
25797   fi
25798 done
25799 done
25800
25801 fi
25802 fi
25803 RCS2LOG=$ac_cv_prog_RCS2LOG
25804 if test -n "$RCS2LOG"; then
25805   echo "$as_me:$LINENO: result: $RCS2LOG" >&5
25806 echo "${ECHO_T}$RCS2LOG" >&6
25807 else
25808   echo "$as_me:$LINENO: result: no" >&5
25809 echo "${ECHO_T}no" >&6
25810 fi
25811
25812   test -n "$RCS2LOG" && break
25813 done
25814
25815
25816
25817 if test x"$RCS2LOG" != x; then
25818   HAVE_RCS2LOG_TRUE=
25819   HAVE_RCS2LOG_FALSE='#'
25820 else
25821   HAVE_RCS2LOG_TRUE='#'
25822   HAVE_RCS2LOG_FALSE=
25823 fi
25824
25825
25826
25827
25828 echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
25829 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6
25830 # Check whether --enable-internal-headers or --disable-internal-headers was given.
25831 if test "${enable_internal_headers+set}" = set; then
25832   enableval="$enable_internal_headers"
25833   case "$enableval" in
25834                   (yes|no) ;;
25835                   (*)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
25836 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
25837    { (exit 1); exit 1; }; };;
25838                esac
25839 else
25840   enable_internal_headers=yes
25841 fi;
25842
25843
25844
25845 if test x"$enable_internal_headers" = xyes; then
25846   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
25847   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
25848 else
25849   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
25850   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
25851 fi
25852
25853 echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
25854 echo "${ECHO_T}$enable_internal_headers" >&6
25855
25856 echo "$as_me:$LINENO: checking for supported APIs" >&5
25857 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6
25858 # Check whether --enable-apis or --disable-apis was given.
25859 if test "${enable_apis+set}" = set; then
25860   enableval="$enable_apis"
25861
25862 else
25863   enable_apis=compat,v11,v13,fscompat,net
25864 fi;
25865
25866 test x"$enable_apis" != xALL || enable_apis='legacy,compat,v11,v13,fscompat,net'
25867 enable_api_oldproc=
25868 enable_api_olduts=
25869 old_IFS=$IFS
25870 IFS=,;
25871 for i in $enable_apis; do
25872         case "$i" in
25873                 (compat)
25874 cat >>confdefs.h <<\_ACEOF
25875 #define VC_ENABLE_API_COMPAT 1
25876 _ACEOF
25877
25878                                 enable_api_oldproc=1
25879                                 enable_api_olduts=1
25880                                 ;;
25881                 (legacy)
25882 cat >>confdefs.h <<\_ACEOF
25883 #define VC_ENABLE_API_LEGACY 1
25884 _ACEOF
25885
25886                                 enable_api_old_proc=1
25887                                 enable_api_olduts=1
25888                                 ;;
25889                 (v11)
25890 cat >>confdefs.h <<\_ACEOF
25891 #define VC_ENABLE_API_V11 1
25892 _ACEOF
25893
25894                                 enable_api_oldproc=1
25895                                 enable_api_olduts=1
25896                                 ;;
25897                 (v13)
25898 cat >>confdefs.h <<\_ACEOF
25899 #define VC_ENABLE_API_V13 1
25900 _ACEOF
25901 ;;
25902                 (net)
25903 cat >>confdefs.h <<\_ACEOF
25904 #define VC_ENABLE_API_NET 1
25905 _ACEOF
25906 ;;
25907                 (fscompat)
25908 cat >>confdefs.h <<\_ACEOF
25909 #define VC_ENABLE_API_FSCOMPAT 1
25910 _ACEOF
25911 ;;
25912                 (*)             { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
25913 echo "$as_me: error: '$i' is not a supported API" >&2;}
25914    { (exit 1); exit 1; }; };;
25915         esac
25916 done
25917 IFS=$old_IFS
25918 if test x"$enable_api_oldproc" != x; then
25919
25920 cat >>confdefs.h <<\_ACEOF
25921 #define VC_ENABLE_API_OLDPROC 1
25922 _ACEOF
25923
25924         enable_apis="$enable_apis,oldproc"
25925 fi
25926 if test x"$enable_api_olduts" != x; then
25927
25928 cat >>confdefs.h <<\_ACEOF
25929 #define VC_ENABLE_API_OLDUTS 1
25930 _ACEOF
25931
25932         enable_apis="$enable_apis,olduts"
25933 fi
25934 echo "$as_me:$LINENO: result: $enable_apis" >&5
25935 echo "${ECHO_T}$enable_apis" >&6
25936
25937
25938
25939
25940
25941
25942
25943         echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
25944 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6
25945 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
25946   echo $ECHO_N "(cached) $ECHO_C" >&6
25947 else
25948
25949                 ac_ext=c
25950 ac_cpp='$CPP $CPPFLAGS'
25951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25954
25955                 cat >conftest.$ac_ext <<_ACEOF
25956
25957 #include <asm/unistd.h>
25958 #ifdef __NR_vserver
25959 ensc_syscall_tmp_nr=__NR_vserver;
25960 ensc_syscall_tmp_src=ENSC_MARK
25961 #endif
25962
25963 _ACEOF
25964                 ensc_syscall_tmp_nr=
25965                 ensc_syscall_tmp_src=
25966                 test "$ensc_syscall_tmp_nr" || \
25967                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                 conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
25968                 test "$ensc_syscall_tmp_nr" || \
25969                         eval $($CPP $CPPFLAGS -D ENSC_MARK='kernel' -I $ensc_cv_path_kernelheaders conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
25970                 test "$ensc_syscall_tmp_nr" || {
25971                         ensc_syscall_tmp_nr=273
25972                         ensc_syscall_tmp_src=default
25973                 }
25974
25975                 if test x"$ensc_syscall_tmp_nr" = x; then
25976                         { { 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
25977 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;}
25978    { (exit 1); exit 1; }; }
25979                 fi
25980                 ac_ext=c
25981 ac_cpp='$CPP $CPPFLAGS'
25982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25985
25986
25987                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
25988
25989 fi
25990 echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
25991 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6
25992
25993         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
25994         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
25995
25996         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
25997
25998 cat >>confdefs.h <<_ACEOF
25999 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
26000 _ACEOF
26001
26002         fi
26003
26004
26005
26006
26007
26008         echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
26009 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6
26010
26011 # Check whether --with-syscall or --without-syscall was given.
26012 if test "${with_syscall+set}" = set; then
26013   withval="$with_syscall"
26014
26015 else
26016   with_syscall=auto
26017 fi;
26018         echo "$as_me:$LINENO: result: $with_syscall" >&5
26019 echo "${ECHO_T}$with_syscall" >&6
26020
26021         case x"$with_syscall" in
26022             (xauto)
26023                 echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
26024 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6
26025 if test "${ensc_cv_test_syscall+set}" = set; then
26026   echo $ECHO_N "(cached) $ECHO_C" >&6
26027 else
26028
26029                                 ac_ext=c
26030 ac_cpp='$CPP $CPPFLAGS'
26031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26034
26035                                 cat >conftest.$ac_ext <<_ACEOF
26036 /* confdefs.h.  */
26037 _ACEOF
26038 cat confdefs.h >>conftest.$ac_ext
26039 cat >>conftest.$ac_ext <<_ACEOF
26040 /* end confdefs.h.  */
26041
26042 #include "$srcdir/lib/syscall-wrap.h"
26043 #include <errno.h>
26044
26045 #define __NR_foo0       300
26046 #define __NR_foo1       301
26047 #define __NR_foo2       302
26048 #define __NR_foo3       303
26049 #define __NR_foo4       304
26050 #define __NR_foo5       305
26051 inline static _syscall0(int, foo0)
26052 inline static _syscall1(int, foo1, int, a)
26053 inline static _syscall2(int, foo2, int, a, int, b)
26054 inline static _syscall3(int, foo3, int, a, int, b, int, c)
26055 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
26056 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
26057
26058 int main() {
26059   return foo0() || \
26060          foo1(1) || \
26061          foo2(1,2) || \
26062          foo3(1,2,3) || \
26063          foo4(1,2,3,4) || \
26064          foo5(1,2,3,4,5);
26065 }
26066
26067 _ACEOF
26068 rm -f conftest.$ac_objext
26069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26070   (eval $ac_compile) 2>conftest.er1
26071   ac_status=$?
26072   grep -v '^ *+' conftest.er1 >conftest.err
26073   rm -f conftest.er1
26074   cat conftest.err >&5
26075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076   (exit $ac_status); } &&
26077          { ac_try='test -z "$ac_c_werror_flag"
26078                          || test ! -s conftest.err'
26079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26080   (eval $ac_try) 2>&5
26081   ac_status=$?
26082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083   (exit $ac_status); }; } &&
26084          { ac_try='test -s conftest.$ac_objext'
26085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26086   (eval $ac_try) 2>&5
26087   ac_status=$?
26088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089   (exit $ac_status); }; }; then
26090   ensc_cv_test_syscall=fast
26091 else
26092   echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26094
26095 ensc_cv_test_syscall=traditional
26096 fi
26097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26098
26099                                 ac_ext=c
26100 ac_cpp='$CPP $CPPFLAGS'
26101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26104
26105
26106 fi
26107 echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
26108 echo "${ECHO_T}$ensc_cv_test_syscall" >&6
26109                 with_syscall=$ensc_cv_test_syscall
26110                 ;;
26111             (xfast|xtraditional)
26112                 ;;
26113             *)
26114                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
26115 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
26116    { (exit 1); exit 1; }; }
26117                 ;;
26118         esac
26119
26120         if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
26121             with_syscall='alternative'
26122         fi
26123
26124         if test x"$with_syscall" = xtraditional; then
26125
26126 cat >>confdefs.h <<\_ACEOF
26127 #define ENSC_SYSCALL_TRADITIONAL 1
26128 _ACEOF
26129
26130         fi
26131
26132
26133
26134
26135
26136
26137     ac_ext=cc
26138 ac_cpp='$CXXCPP $CPPFLAGS'
26139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26142
26143     echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
26144 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6
26145 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
26146   echo $ECHO_N "(cached) $ECHO_C" >&6
26147 else
26148
26149         cat >conftest.$ac_ext <<_ACEOF
26150 /* confdefs.h.  */
26151 _ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h.  */
26155 #include <ext2fs/ext2_fs.h>
26156                                           int main() { return 0; }
26157 _ACEOF
26158 rm -f conftest.$ac_objext
26159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26160   (eval $ac_compile) 2>conftest.er1
26161   ac_status=$?
26162   grep -v '^ *+' conftest.er1 >conftest.err
26163   rm -f conftest.er1
26164   cat conftest.err >&5
26165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166   (exit $ac_status); } &&
26167          { ac_try='test -z "$ac_cxx_werror_flag"
26168                          || test ! -s conftest.err'
26169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170   (eval $ac_try) 2>&5
26171   ac_status=$?
26172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173   (exit $ac_status); }; } &&
26174          { ac_try='test -s conftest.$ac_objext'
26175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176   (eval $ac_try) 2>&5
26177   ac_status=$?
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); }; }; then
26180   ensc_cv_test_ext2fs_header=e2fsprogs
26181 else
26182   echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26184
26185
26186         cat >conftest.$ac_ext <<_ACEOF
26187 /* confdefs.h.  */
26188 _ACEOF
26189 cat confdefs.h >>conftest.$ac_ext
26190 cat >>conftest.$ac_ext <<_ACEOF
26191 /* end confdefs.h.  */
26192 #include <linux/ext2_fs.h>
26193                                           int main() { return 0; }
26194 _ACEOF
26195 rm -f conftest.$ac_objext
26196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26197   (eval $ac_compile) 2>conftest.er1
26198   ac_status=$?
26199   grep -v '^ *+' conftest.er1 >conftest.err
26200   rm -f conftest.er1
26201   cat conftest.err >&5
26202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); } &&
26204          { ac_try='test -z "$ac_cxx_werror_flag"
26205                          || test ! -s conftest.err'
26206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26207   (eval $ac_try) 2>&5
26208   ac_status=$?
26209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210   (exit $ac_status); }; } &&
26211          { ac_try='test -s conftest.$ac_objext'
26212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26213   (eval $ac_try) 2>&5
26214   ac_status=$?
26215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216   (exit $ac_status); }; }; then
26217   ensc_cv_test_ext2fs_header=kernel
26218 else
26219   echo "$as_me: failed program was:" >&5
26220 sed 's/^/| /' conftest.$ac_ext >&5
26221
26222
26223         ensc_cv_test_ext2fs_header=none
26224 fi
26225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26226 fi
26227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26228 fi
26229 echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
26230 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6
26231
26232     case x"$ensc_cv_test_ext2fs_header" in
26233         (xe2fsprogs)
26234                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26235   echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26236 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26237 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26238   echo $ECHO_N "(cached) $ECHO_C" >&6
26239 fi
26240 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26241 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26242 else
26243   # Is the header compilable?
26244 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
26245 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6
26246 cat >conftest.$ac_ext <<_ACEOF
26247 /* confdefs.h.  */
26248 _ACEOF
26249 cat confdefs.h >>conftest.$ac_ext
26250 cat >>conftest.$ac_ext <<_ACEOF
26251 /* end confdefs.h.  */
26252 $ac_includes_default
26253 #include <ext2fs/ext2_fs.h>
26254 _ACEOF
26255 rm -f conftest.$ac_objext
26256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26257   (eval $ac_compile) 2>conftest.er1
26258   ac_status=$?
26259   grep -v '^ *+' conftest.er1 >conftest.err
26260   rm -f conftest.er1
26261   cat conftest.err >&5
26262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263   (exit $ac_status); } &&
26264          { ac_try='test -z "$ac_cxx_werror_flag"
26265                          || test ! -s conftest.err'
26266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26267   (eval $ac_try) 2>&5
26268   ac_status=$?
26269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270   (exit $ac_status); }; } &&
26271          { ac_try='test -s conftest.$ac_objext'
26272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26273   (eval $ac_try) 2>&5
26274   ac_status=$?
26275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276   (exit $ac_status); }; }; then
26277   ac_header_compiler=yes
26278 else
26279   echo "$as_me: failed program was:" >&5
26280 sed 's/^/| /' conftest.$ac_ext >&5
26281
26282 ac_header_compiler=no
26283 fi
26284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26286 echo "${ECHO_T}$ac_header_compiler" >&6
26287
26288 # Is the header present?
26289 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
26290 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6
26291 cat >conftest.$ac_ext <<_ACEOF
26292 /* confdefs.h.  */
26293 _ACEOF
26294 cat confdefs.h >>conftest.$ac_ext
26295 cat >>conftest.$ac_ext <<_ACEOF
26296 /* end confdefs.h.  */
26297 #include <ext2fs/ext2_fs.h>
26298 _ACEOF
26299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26301   ac_status=$?
26302   grep -v '^ *+' conftest.er1 >conftest.err
26303   rm -f conftest.er1
26304   cat conftest.err >&5
26305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306   (exit $ac_status); } >/dev/null; then
26307   if test -s conftest.err; then
26308     ac_cpp_err=$ac_cxx_preproc_warn_flag
26309     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26310   else
26311     ac_cpp_err=
26312   fi
26313 else
26314   ac_cpp_err=yes
26315 fi
26316 if test -z "$ac_cpp_err"; then
26317   ac_header_preproc=yes
26318 else
26319   echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26321
26322   ac_header_preproc=no
26323 fi
26324 rm -f conftest.err conftest.$ac_ext
26325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26326 echo "${ECHO_T}$ac_header_preproc" >&6
26327
26328 # So?  What about this header?
26329 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26330   yes:no: )
26331     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26332 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26333     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
26334 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
26335     ac_header_preproc=yes
26336     ;;
26337   no:yes:* )
26338     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
26339 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
26340     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
26341 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26342     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
26343 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
26344     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26345 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26346     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
26347 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26348     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
26349 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26350     (
26351       cat <<\_ASBOX
26352 ## ------------------------------------------------------ ##
26353 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
26354 ## ------------------------------------------------------ ##
26355 _ASBOX
26356     ) |
26357       sed "s/^/$as_me: WARNING:     /" >&2
26358     ;;
26359 esac
26360 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26361 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26362 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26363   echo $ECHO_N "(cached) $ECHO_C" >&6
26364 else
26365   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
26366 fi
26367 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26368 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26369
26370 fi
26371 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
26372
26373 cat >>confdefs.h <<\_ACEOF
26374 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
26375 _ACEOF
26376
26377 else
26378   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26379 See \`config.log' for more details." >&5
26380 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26381 See \`config.log' for more details." >&2;}
26382    { (exit 1); exit 1; }; }
26383 fi
26384
26385
26386                 ;;
26387         (xkernel)
26388                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26389   echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26390 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26391 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26392   echo $ECHO_N "(cached) $ECHO_C" >&6
26393 fi
26394 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26395 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26396 else
26397   # Is the header compilable?
26398 echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
26399 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6
26400 cat >conftest.$ac_ext <<_ACEOF
26401 /* confdefs.h.  */
26402 _ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h.  */
26406 $ac_includes_default
26407 #include <linux/ext2_fs.h>
26408 _ACEOF
26409 rm -f conftest.$ac_objext
26410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26411   (eval $ac_compile) 2>conftest.er1
26412   ac_status=$?
26413   grep -v '^ *+' conftest.er1 >conftest.err
26414   rm -f conftest.er1
26415   cat conftest.err >&5
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); } &&
26418          { ac_try='test -z "$ac_cxx_werror_flag"
26419                          || test ! -s conftest.err'
26420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421   (eval $ac_try) 2>&5
26422   ac_status=$?
26423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424   (exit $ac_status); }; } &&
26425          { ac_try='test -s conftest.$ac_objext'
26426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427   (eval $ac_try) 2>&5
26428   ac_status=$?
26429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430   (exit $ac_status); }; }; then
26431   ac_header_compiler=yes
26432 else
26433   echo "$as_me: failed program was:" >&5
26434 sed 's/^/| /' conftest.$ac_ext >&5
26435
26436 ac_header_compiler=no
26437 fi
26438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26440 echo "${ECHO_T}$ac_header_compiler" >&6
26441
26442 # Is the header present?
26443 echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
26444 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6
26445 cat >conftest.$ac_ext <<_ACEOF
26446 /* confdefs.h.  */
26447 _ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h.  */
26451 #include <linux/ext2_fs.h>
26452 _ACEOF
26453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26454   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26455   ac_status=$?
26456   grep -v '^ *+' conftest.er1 >conftest.err
26457   rm -f conftest.er1
26458   cat conftest.err >&5
26459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460   (exit $ac_status); } >/dev/null; then
26461   if test -s conftest.err; then
26462     ac_cpp_err=$ac_cxx_preproc_warn_flag
26463     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26464   else
26465     ac_cpp_err=
26466   fi
26467 else
26468   ac_cpp_err=yes
26469 fi
26470 if test -z "$ac_cpp_err"; then
26471   ac_header_preproc=yes
26472 else
26473   echo "$as_me: failed program was:" >&5
26474 sed 's/^/| /' conftest.$ac_ext >&5
26475
26476   ac_header_preproc=no
26477 fi
26478 rm -f conftest.err conftest.$ac_ext
26479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26480 echo "${ECHO_T}$ac_header_preproc" >&6
26481
26482 # So?  What about this header?
26483 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26484   yes:no: )
26485     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26486 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26487     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
26488 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
26489     ac_header_preproc=yes
26490     ;;
26491   no:yes:* )
26492     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
26493 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
26494     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
26495 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26496     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
26497 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
26498     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26499 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26500     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
26501 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26502     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
26503 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26504     (
26505       cat <<\_ASBOX
26506 ## ------------------------------------------------------ ##
26507 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
26508 ## ------------------------------------------------------ ##
26509 _ASBOX
26510     ) |
26511       sed "s/^/$as_me: WARNING:     /" >&2
26512     ;;
26513 esac
26514 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26515 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26516 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26517   echo $ECHO_N "(cached) $ECHO_C" >&6
26518 else
26519   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
26520 fi
26521 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26522 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26523
26524 fi
26525 if test $ac_cv_header_linux_ext2_fs_h = yes; then
26526
26527 cat >>confdefs.h <<\_ACEOF
26528 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
26529 _ACEOF
26530
26531 else
26532   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
26533 See \`config.log' for more details." >&5
26534 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
26535 See \`config.log' for more details." >&2;}
26536    { (exit 1); exit 1; }; }
26537 fi
26538
26539
26540                 ;;
26541         (*)
26542                 { { echo "$as_me:$LINENO: error:
26543 ext2fs headers were not found, or they are not usable. This can have
26544 the following reasons:
26545
26546 * you have neither the e2fsprogs nor the kernel headers installed
26547
26548 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26549   and you do not have e2fsprogs headers installed; please try to install
26550   - e2fsprogs-devel (for Red Hat), or
26551   - libext2fs2-devel (for Mandrake), or
26552   - e2fslibs-dev (for Debian)
26553   in this case.
26554
26555 * kernel headers are broken and your e2fsprogs headers are too old;
26556   until version 1.27 (inclusive), they are using reserved C++ keywords
26557
26558 * kernel headers are broken and your e2fsprogs headers are too new;
26559   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26560   C++, for details and a solution see
26561   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26562
26563
26564 In the latter two cases you have the following options:
26565 * fix the headers manually, or
26566 * install a stable version of e2fsprogs (e.g. 1.34), or
26567 * use good kernel headers (from linux 2.4.x)
26568
26569 See \`config.log' for more details." >&5
26570 echo "$as_me: error:
26571 ext2fs headers were not found, or they are not usable. This can have
26572 the following reasons:
26573
26574 * you have neither the e2fsprogs nor the kernel headers installed
26575
26576 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26577   and you do not have e2fsprogs headers installed; please try to install
26578   - e2fsprogs-devel (for Red Hat), or
26579   - libext2fs2-devel (for Mandrake), or
26580   - e2fslibs-dev (for Debian)
26581   in this case.
26582
26583 * kernel headers are broken and your e2fsprogs headers are too old;
26584   until version 1.27 (inclusive), they are using reserved C++ keywords
26585
26586 * kernel headers are broken and your e2fsprogs headers are too new;
26587   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26588   C++, for details and a solution see
26589   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26590
26591
26592 In the latter two cases you have the following options:
26593 * fix the headers manually, or
26594 * install a stable version of e2fsprogs (e.g. 1.34), or
26595 * use good kernel headers (from linux 2.4.x)
26596
26597 See \`config.log' for more details." >&2;}
26598    { (exit 1); exit 1; }; }
26599                 ;;
26600     esac
26601     ac_ext=c
26602 ac_cpp='$CPP $CPPFLAGS'
26603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26606
26607
26608
26609 for ac_func in vserver
26610 do
26611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26612 echo "$as_me:$LINENO: checking for $ac_func" >&5
26613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26614 if eval "test \"\${$as_ac_var+set}\" = set"; then
26615   echo $ECHO_N "(cached) $ECHO_C" >&6
26616 else
26617   cat >conftest.$ac_ext <<_ACEOF
26618 /* confdefs.h.  */
26619 _ACEOF
26620 cat confdefs.h >>conftest.$ac_ext
26621 cat >>conftest.$ac_ext <<_ACEOF
26622 /* end confdefs.h.  */
26623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26625 #define $ac_func innocuous_$ac_func
26626
26627 /* System header to define __stub macros and hopefully few prototypes,
26628     which can conflict with char $ac_func (); below.
26629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26630     <limits.h> exists even on freestanding compilers.  */
26631
26632 #ifdef __STDC__
26633 # include <limits.h>
26634 #else
26635 # include <assert.h>
26636 #endif
26637
26638 #undef $ac_func
26639
26640 /* Override any gcc2 internal prototype to avoid an error.  */
26641 #ifdef __cplusplus
26642 extern "C"
26643 {
26644 #endif
26645 /* We use char because int might match the return type of a gcc2
26646    builtin and then its argument prototype would still apply.  */
26647 char $ac_func ();
26648 /* The GNU C library defines this for functions which it implements
26649     to always fail with ENOSYS.  Some functions are actually named
26650     something starting with __ and the normal name is an alias.  */
26651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26652 choke me
26653 #else
26654 char (*f) () = $ac_func;
26655 #endif
26656 #ifdef __cplusplus
26657 }
26658 #endif
26659
26660 int
26661 main ()
26662 {
26663 return f != $ac_func;
26664   ;
26665   return 0;
26666 }
26667 _ACEOF
26668 rm -f conftest.$ac_objext conftest$ac_exeext
26669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26670   (eval $ac_link) 2>conftest.er1
26671   ac_status=$?
26672   grep -v '^ *+' conftest.er1 >conftest.err
26673   rm -f conftest.er1
26674   cat conftest.err >&5
26675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676   (exit $ac_status); } &&
26677          { ac_try='test -z "$ac_c_werror_flag"
26678                          || test ! -s conftest.err'
26679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680   (eval $ac_try) 2>&5
26681   ac_status=$?
26682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683   (exit $ac_status); }; } &&
26684          { ac_try='test -s conftest$ac_exeext'
26685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686   (eval $ac_try) 2>&5
26687   ac_status=$?
26688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689   (exit $ac_status); }; }; then
26690   eval "$as_ac_var=yes"
26691 else
26692   echo "$as_me: failed program was:" >&5
26693 sed 's/^/| /' conftest.$ac_ext >&5
26694
26695 eval "$as_ac_var=no"
26696 fi
26697 rm -f conftest.err conftest.$ac_objext \
26698       conftest$ac_exeext conftest.$ac_ext
26699 fi
26700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26702 if test `eval echo '${'$as_ac_var'}'` = yes; then
26703   cat >>confdefs.h <<_ACEOF
26704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26705 _ACEOF
26706
26707 fi
26708 done
26709
26710 echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
26711 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6
26712 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
26713   echo $ECHO_N "(cached) $ECHO_C" >&6
26714 else
26715   cat >conftest.$ac_ext <<_ACEOF
26716 /* confdefs.h.  */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h.  */
26721 #include <linux/fs.h>
26722
26723 int
26724 main ()
26725 {
26726 #ifndef MS_MOVE
26727   char *p = (char *) MS_MOVE;
26728 #endif
26729
26730   ;
26731   return 0;
26732 }
26733 _ACEOF
26734 rm -f conftest.$ac_objext
26735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26736   (eval $ac_compile) 2>conftest.er1
26737   ac_status=$?
26738   grep -v '^ *+' conftest.er1 >conftest.err
26739   rm -f conftest.er1
26740   cat conftest.err >&5
26741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742   (exit $ac_status); } &&
26743          { ac_try='test -z "$ac_c_werror_flag"
26744                          || test ! -s conftest.err'
26745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26746   (eval $ac_try) 2>&5
26747   ac_status=$?
26748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749   (exit $ac_status); }; } &&
26750          { ac_try='test -s conftest.$ac_objext'
26751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26752   (eval $ac_try) 2>&5
26753   ac_status=$?
26754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755   (exit $ac_status); }; }; then
26756   ac_cv_have_decl_MS_MOVE=yes
26757 else
26758   echo "$as_me: failed program was:" >&5
26759 sed 's/^/| /' conftest.$ac_ext >&5
26760
26761 ac_cv_have_decl_MS_MOVE=no
26762 fi
26763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26764 fi
26765 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
26766 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6
26767 if test $ac_cv_have_decl_MS_MOVE = yes; then
26768
26769 cat >>confdefs.h <<_ACEOF
26770 #define HAVE_DECL_MS_MOVE 1
26771 _ACEOF
26772
26773
26774 else
26775   cat >>confdefs.h <<_ACEOF
26776 #define HAVE_DECL_MS_MOVE 0
26777 _ACEOF
26778
26779
26780 fi
26781
26782
26783 echo "$as_me:$LINENO: checking for xid_t" >&5
26784 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6
26785 if test "${ac_cv_type_xid_t+set}" = set; then
26786   echo $ECHO_N "(cached) $ECHO_C" >&6
26787 else
26788   cat >conftest.$ac_ext <<_ACEOF
26789 /* confdefs.h.  */
26790 _ACEOF
26791 cat confdefs.h >>conftest.$ac_ext
26792 cat >>conftest.$ac_ext <<_ACEOF
26793 /* end confdefs.h.  */
26794 #include <sys/types.h>
26795
26796 int
26797 main ()
26798 {
26799 if ((xid_t *) 0)
26800   return 0;
26801 if (sizeof (xid_t))
26802   return 0;
26803   ;
26804   return 0;
26805 }
26806 _ACEOF
26807 rm -f conftest.$ac_objext
26808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26809   (eval $ac_compile) 2>conftest.er1
26810   ac_status=$?
26811   grep -v '^ *+' conftest.er1 >conftest.err
26812   rm -f conftest.er1
26813   cat conftest.err >&5
26814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815   (exit $ac_status); } &&
26816          { ac_try='test -z "$ac_c_werror_flag"
26817                          || test ! -s conftest.err'
26818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26819   (eval $ac_try) 2>&5
26820   ac_status=$?
26821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822   (exit $ac_status); }; } &&
26823          { ac_try='test -s conftest.$ac_objext'
26824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26825   (eval $ac_try) 2>&5
26826   ac_status=$?
26827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828   (exit $ac_status); }; }; then
26829   ac_cv_type_xid_t=yes
26830 else
26831   echo "$as_me: failed program was:" >&5
26832 sed 's/^/| /' conftest.$ac_ext >&5
26833
26834 ac_cv_type_xid_t=no
26835 fi
26836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26837 fi
26838 echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
26839 echo "${ECHO_T}$ac_cv_type_xid_t" >&6
26840 if test $ac_cv_type_xid_t = yes; then
26841
26842 cat >>confdefs.h <<_ACEOF
26843 #define HAVE_XID_T 1
26844 _ACEOF
26845
26846
26847 fi
26848
26849 echo "$as_me:$LINENO: checking for nid_t" >&5
26850 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6
26851 if test "${ac_cv_type_nid_t+set}" = set; then
26852   echo $ECHO_N "(cached) $ECHO_C" >&6
26853 else
26854   cat >conftest.$ac_ext <<_ACEOF
26855 /* confdefs.h.  */
26856 _ACEOF
26857 cat confdefs.h >>conftest.$ac_ext
26858 cat >>conftest.$ac_ext <<_ACEOF
26859 /* end confdefs.h.  */
26860 #include <sys/types.h>
26861
26862 int
26863 main ()
26864 {
26865 if ((nid_t *) 0)
26866   return 0;
26867 if (sizeof (nid_t))
26868   return 0;
26869   ;
26870   return 0;
26871 }
26872 _ACEOF
26873 rm -f conftest.$ac_objext
26874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26875   (eval $ac_compile) 2>conftest.er1
26876   ac_status=$?
26877   grep -v '^ *+' conftest.er1 >conftest.err
26878   rm -f conftest.er1
26879   cat conftest.err >&5
26880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881   (exit $ac_status); } &&
26882          { ac_try='test -z "$ac_c_werror_flag"
26883                          || test ! -s conftest.err'
26884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885   (eval $ac_try) 2>&5
26886   ac_status=$?
26887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888   (exit $ac_status); }; } &&
26889          { ac_try='test -s conftest.$ac_objext'
26890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891   (eval $ac_try) 2>&5
26892   ac_status=$?
26893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894   (exit $ac_status); }; }; then
26895   ac_cv_type_nid_t=yes
26896 else
26897   echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26899
26900 ac_cv_type_nid_t=no
26901 fi
26902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26903 fi
26904 echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
26905 echo "${ECHO_T}$ac_cv_type_nid_t" >&6
26906 if test $ac_cv_type_nid_t = yes; then
26907
26908 cat >>confdefs.h <<_ACEOF
26909 #define HAVE_NID_T 1
26910 _ACEOF
26911
26912
26913 fi
26914
26915
26916
26917 for ac_header in sys/capability.h
26918 do
26919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26921   echo "$as_me:$LINENO: checking for $ac_header" >&5
26922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26924   echo $ECHO_N "(cached) $ECHO_C" >&6
26925 fi
26926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26928 else
26929   # Is the header compilable?
26930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26932 cat >conftest.$ac_ext <<_ACEOF
26933 /* confdefs.h.  */
26934 _ACEOF
26935 cat confdefs.h >>conftest.$ac_ext
26936 cat >>conftest.$ac_ext <<_ACEOF
26937 /* end confdefs.h.  */
26938 $ac_includes_default
26939 #include <$ac_header>
26940 _ACEOF
26941 rm -f conftest.$ac_objext
26942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26943   (eval $ac_compile) 2>conftest.er1
26944   ac_status=$?
26945   grep -v '^ *+' conftest.er1 >conftest.err
26946   rm -f conftest.er1
26947   cat conftest.err >&5
26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949   (exit $ac_status); } &&
26950          { ac_try='test -z "$ac_c_werror_flag"
26951                          || test ! -s conftest.err'
26952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953   (eval $ac_try) 2>&5
26954   ac_status=$?
26955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956   (exit $ac_status); }; } &&
26957          { ac_try='test -s conftest.$ac_objext'
26958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26959   (eval $ac_try) 2>&5
26960   ac_status=$?
26961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962   (exit $ac_status); }; }; then
26963   ac_header_compiler=yes
26964 else
26965   echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26967
26968 ac_header_compiler=no
26969 fi
26970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26972 echo "${ECHO_T}$ac_header_compiler" >&6
26973
26974 # Is the header present?
26975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26977 cat >conftest.$ac_ext <<_ACEOF
26978 /* confdefs.h.  */
26979 _ACEOF
26980 cat confdefs.h >>conftest.$ac_ext
26981 cat >>conftest.$ac_ext <<_ACEOF
26982 /* end confdefs.h.  */
26983 #include <$ac_header>
26984 _ACEOF
26985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26987   ac_status=$?
26988   grep -v '^ *+' conftest.er1 >conftest.err
26989   rm -f conftest.er1
26990   cat conftest.err >&5
26991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992   (exit $ac_status); } >/dev/null; then
26993   if test -s conftest.err; then
26994     ac_cpp_err=$ac_c_preproc_warn_flag
26995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26996   else
26997     ac_cpp_err=
26998   fi
26999 else
27000   ac_cpp_err=yes
27001 fi
27002 if test -z "$ac_cpp_err"; then
27003   ac_header_preproc=yes
27004 else
27005   echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27007
27008   ac_header_preproc=no
27009 fi
27010 rm -f conftest.err conftest.$ac_ext
27011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27012 echo "${ECHO_T}$ac_header_preproc" >&6
27013
27014 # So?  What about this header?
27015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27016   yes:no: )
27017     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27021     ac_header_preproc=yes
27022     ;;
27023   no:yes:* )
27024     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27026     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27027 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27028     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27030     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27031 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27034     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27036     (
27037       cat <<\_ASBOX
27038 ## ------------------------------------------------------ ##
27039 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
27040 ## ------------------------------------------------------ ##
27041 _ASBOX
27042     ) |
27043       sed "s/^/$as_me: WARNING:     /" >&2
27044     ;;
27045 esac
27046 echo "$as_me:$LINENO: checking for $ac_header" >&5
27047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27049   echo $ECHO_N "(cached) $ECHO_C" >&6
27050 else
27051   eval "$as_ac_Header=\$ac_header_preproc"
27052 fi
27053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27055
27056 fi
27057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27058   cat >>confdefs.h <<_ACEOF
27059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27060 _ACEOF
27061
27062 fi
27063
27064 done
27065
27066
27067
27068 if test x"$ensc_cv_c99_c99compiler" = xyes; then
27069         ensc_have_beecrypt=yes
27070
27071         if test x"$ensc_have_beecrypt" = xyes; then
27072                 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27073   echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27074 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27075 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27076   echo $ECHO_N "(cached) $ECHO_C" >&6
27077 fi
27078 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27079 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27080 else
27081   # Is the header compilable?
27082 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
27083 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6
27084 cat >conftest.$ac_ext <<_ACEOF
27085 /* confdefs.h.  */
27086 _ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h.  */
27090 $ac_includes_default
27091 #include <beecrypt/beecrypt.h>
27092 _ACEOF
27093 rm -f conftest.$ac_objext
27094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27095   (eval $ac_compile) 2>conftest.er1
27096   ac_status=$?
27097   grep -v '^ *+' conftest.er1 >conftest.err
27098   rm -f conftest.er1
27099   cat conftest.err >&5
27100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101   (exit $ac_status); } &&
27102          { ac_try='test -z "$ac_c_werror_flag"
27103                          || test ! -s conftest.err'
27104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27105   (eval $ac_try) 2>&5
27106   ac_status=$?
27107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108   (exit $ac_status); }; } &&
27109          { ac_try='test -s conftest.$ac_objext'
27110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27111   (eval $ac_try) 2>&5
27112   ac_status=$?
27113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114   (exit $ac_status); }; }; then
27115   ac_header_compiler=yes
27116 else
27117   echo "$as_me: failed program was:" >&5
27118 sed 's/^/| /' conftest.$ac_ext >&5
27119
27120 ac_header_compiler=no
27121 fi
27122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27124 echo "${ECHO_T}$ac_header_compiler" >&6
27125
27126 # Is the header present?
27127 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
27128 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6
27129 cat >conftest.$ac_ext <<_ACEOF
27130 /* confdefs.h.  */
27131 _ACEOF
27132 cat confdefs.h >>conftest.$ac_ext
27133 cat >>conftest.$ac_ext <<_ACEOF
27134 /* end confdefs.h.  */
27135 #include <beecrypt/beecrypt.h>
27136 _ACEOF
27137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27139   ac_status=$?
27140   grep -v '^ *+' conftest.er1 >conftest.err
27141   rm -f conftest.er1
27142   cat conftest.err >&5
27143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144   (exit $ac_status); } >/dev/null; then
27145   if test -s conftest.err; then
27146     ac_cpp_err=$ac_c_preproc_warn_flag
27147     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27148   else
27149     ac_cpp_err=
27150   fi
27151 else
27152   ac_cpp_err=yes
27153 fi
27154 if test -z "$ac_cpp_err"; then
27155   ac_header_preproc=yes
27156 else
27157   echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27159
27160   ac_header_preproc=no
27161 fi
27162 rm -f conftest.err conftest.$ac_ext
27163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27164 echo "${ECHO_T}$ac_header_preproc" >&6
27165
27166 # So?  What about this header?
27167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27168   yes:no: )
27169     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27170 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27171     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
27172 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
27173     ac_header_preproc=yes
27174     ;;
27175   no:yes:* )
27176     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
27177 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
27178     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&5
27179 echo "$as_me: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&2;}
27180     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
27181 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
27182     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
27183 echo "$as_me: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27184     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
27185 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
27186     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
27187 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
27188     (
27189       cat <<\_ASBOX
27190 ## ------------------------------------------------------ ##
27191 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
27192 ## ------------------------------------------------------ ##
27193 _ASBOX
27194     ) |
27195       sed "s/^/$as_me: WARNING:     /" >&2
27196     ;;
27197 esac
27198 echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27199 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27200 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27201   echo $ECHO_N "(cached) $ECHO_C" >&6
27202 else
27203   ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
27204 fi
27205 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27206 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27207
27208 fi
27209 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
27210    :
27211 else
27212    ensc_have_beecrypt=no
27213 fi
27214
27215
27216         fi
27217
27218         if test x"$ensc_have_beecrypt" = xyes; then
27219                 echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
27220 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6
27221 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
27222   echo $ECHO_N "(cached) $ECHO_C" >&6
27223 else
27224   ac_check_lib_save_LIBS=$LIBS
27225 LIBS="-lbeecrypt  $LIBS"
27226 cat >conftest.$ac_ext <<_ACEOF
27227 /* confdefs.h.  */
27228 _ACEOF
27229 cat confdefs.h >>conftest.$ac_ext
27230 cat >>conftest.$ac_ext <<_ACEOF
27231 /* end confdefs.h.  */
27232
27233 /* Override any gcc2 internal prototype to avoid an error.  */
27234 #ifdef __cplusplus
27235 extern "C"
27236 #endif
27237 /* We use char because int might match the return type of a gcc2
27238    builtin and then its argument prototype would still apply.  */
27239 char hashFunctionContextInit ();
27240 int
27241 main ()
27242 {
27243 hashFunctionContextInit ();
27244   ;
27245   return 0;
27246 }
27247 _ACEOF
27248 rm -f conftest.$ac_objext conftest$ac_exeext
27249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27250   (eval $ac_link) 2>conftest.er1
27251   ac_status=$?
27252   grep -v '^ *+' conftest.er1 >conftest.err
27253   rm -f conftest.er1
27254   cat conftest.err >&5
27255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256   (exit $ac_status); } &&
27257          { ac_try='test -z "$ac_c_werror_flag"
27258                          || test ! -s conftest.err'
27259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260   (eval $ac_try) 2>&5
27261   ac_status=$?
27262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263   (exit $ac_status); }; } &&
27264          { ac_try='test -s conftest$ac_exeext'
27265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266   (eval $ac_try) 2>&5
27267   ac_status=$?
27268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269   (exit $ac_status); }; }; then
27270   ac_cv_lib_beecrypt_hashFunctionContextInit=yes
27271 else
27272   echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27274
27275 ac_cv_lib_beecrypt_hashFunctionContextInit=no
27276 fi
27277 rm -f conftest.err conftest.$ac_objext \
27278       conftest$ac_exeext conftest.$ac_ext
27279 LIBS=$ac_check_lib_save_LIBS
27280 fi
27281 echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
27282 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6
27283 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
27284    :
27285 else
27286    ensc_have_beecrypt=no
27287 fi
27288
27289         fi
27290
27291         if test x"$ensc_have_beecrypt" != xyes; then
27292                 { echo "$as_me:$LINENO: WARNING:
27293 ****
27294 **** 'beecrypt' could not be found;
27295 **** this will disable the build of 'vhashify'
27296 ****" >&5
27297 echo "$as_me: WARNING:
27298 ****
27299 **** 'beecrypt' could not be found;
27300 **** this will disable the build of 'vhashify'
27301 ****" >&2;}
27302         fi
27303 else
27304         ensc_have_beecrypt=no
27305 fi
27306
27307
27308
27309 if test x"$ensc_have_beecrypt" = xyes; then
27310   ENSC_HAVE_BEECRYPT_TRUE=
27311   ENSC_HAVE_BEECRYPT_FALSE='#'
27312 else
27313   ENSC_HAVE_BEECRYPT_TRUE='#'
27314   ENSC_HAVE_BEECRYPT_FALSE=
27315 fi
27316
27317
27318
27319 if false; then
27320   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
27321   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
27322 else
27323   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
27324   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
27325 fi
27326
27327
27328
27329
27330 cat >>confdefs.h <<\_ACEOF
27331 #define UTMP_GID 22
27332 _ACEOF
27333
27334
27335 if false; then
27336
27337 cat >>confdefs.h <<\_ACEOF
27338 #define HAVE_GROWING_STACK 1
27339 _ACEOF
27340
27341 fi
27342
27343
27344 cat >>confdefs.h <<\_ACEOF
27345 #define _FILE_OFFSET_BITS 64
27346 _ACEOF
27347
27348
27349 ensc_cxx_affected=" (affected: vbuild, vcheck)"
27350 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
27351 ensc_diet_msg=" (you have been warned)"
27352 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
27353 ensc_diet_compat_msg=" (using -lcompat)"
27354 test x"$ensc_cv_cxx_cxxcompiler"    = xno || ensc_cxx_affected=
27355 test x"$ensc_cv_c99_c99compiler"    = xno || ensc_c99_affected=
27356 test x"$ensc_have_dietlibc"         = xno || ensc_diet_msg=
27357 test x"$ensc_version_dietlibc"     != x   || ensc_diet_version_msg=
27358 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
27359
27360
27361
27362
27363
27364                                         ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile"
27365
27366 cat >confcache <<\_ACEOF
27367 # This file is a shell script that caches the results of configure
27368 # tests run on this system so they can be shared between configure
27369 # scripts and configure runs, see configure's option --config-cache.
27370 # It is not useful on other systems.  If it contains results you don't
27371 # want to keep, you may remove or edit it.
27372 #
27373 # config.status only pays attention to the cache file if you give it
27374 # the --recheck option to rerun configure.
27375 #
27376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27378 # following values.
27379
27380 _ACEOF
27381
27382 # The following way of writing the cache mishandles newlines in values,
27383 # but we know of no workaround that is simple, portable, and efficient.
27384 # So, don't put newlines in cache variables' values.
27385 # Ultrix sh set writes to stderr and can't be redirected directly,
27386 # and sets the high bit in the cache file unless we assign to the vars.
27387 {
27388   (set) 2>&1 |
27389     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27390     *ac_space=\ *)
27391       # `set' does not quote correctly, so add quotes (double-quote
27392       # substitution turns \\\\ into \\, and sed turns \\ into \).
27393       sed -n \
27394         "s/'/'\\\\''/g;
27395           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27396       ;;
27397     *)
27398       # `set' quotes correctly as required by POSIX, so do not add quotes.
27399       sed -n \
27400         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27401       ;;
27402     esac;
27403 } |
27404   sed '
27405      t clear
27406      : clear
27407      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27408      t end
27409      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27410      : end' >>confcache
27411 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27412   if test -w $cache_file; then
27413     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27414     cat confcache >$cache_file
27415   else
27416     echo "not updating unwritable cache $cache_file"
27417   fi
27418 fi
27419 rm -f confcache
27420
27421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27422 # Let make expand exec_prefix.
27423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27424
27425 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27426 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27427 # trailing colons and then remove the whole line if VPATH becomes empty
27428 # (actually we leave an empty line to preserve line numbers).
27429 if test "x$srcdir" = x.; then
27430   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27431 s/:*\$(srcdir):*/:/;
27432 s/:*\${srcdir}:*/:/;
27433 s/:*@srcdir@:*/:/;
27434 s/^\([^=]*=[     ]*\):*/\1/;
27435 s/:*$//;
27436 s/^[^=]*=[       ]*$//;
27437 }'
27438 fi
27439
27440 DEFS=-DHAVE_CONFIG_H
27441
27442 ac_libobjs=
27443 ac_ltlibobjs=
27444 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27445   # 1. Remove the extension, and $U if already installed.
27446   ac_i=`echo "$ac_i" |
27447          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27448   # 2. Add them.
27449   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27450   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27451 done
27452 LIBOBJS=$ac_libobjs
27453
27454 LTLIBOBJS=$ac_ltlibobjs
27455
27456
27457 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27458   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27459 Usually this means the macro was only invoked conditionally." >&5
27460 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27461 Usually this means the macro was only invoked conditionally." >&2;}
27462    { (exit 1); exit 1; }; }
27463 fi
27464 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27465   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27466 Usually this means the macro was only invoked conditionally." >&5
27467 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27468 Usually this means the macro was only invoked conditionally." >&2;}
27469    { (exit 1); exit 1; }; }
27470 fi
27471 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27472   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27473 Usually this means the macro was only invoked conditionally." >&5
27474 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27475 Usually this means the macro was only invoked conditionally." >&2;}
27476    { (exit 1); exit 1; }; }
27477 fi
27478 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27479   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27480 Usually this means the macro was only invoked conditionally." >&5
27481 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27482 Usually this means the macro was only invoked conditionally." >&2;}
27483    { (exit 1); exit 1; }; }
27484 fi
27485 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
27486   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27487 Usually this means the macro was only invoked conditionally." >&5
27488 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27489 Usually this means the macro was only invoked conditionally." >&2;}
27490    { (exit 1); exit 1; }; }
27491 fi
27492 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
27493   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27494 Usually this means the macro was only invoked conditionally." >&5
27495 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27496 Usually this means the macro was only invoked conditionally." >&2;}
27497    { (exit 1); exit 1; }; }
27498 fi
27499 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
27500   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
27501 Usually this means the macro was only invoked conditionally." >&5
27502 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
27503 Usually this means the macro was only invoked conditionally." >&2;}
27504    { (exit 1); exit 1; }; }
27505 fi
27506 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
27507   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
27508 Usually this means the macro was only invoked conditionally." >&5
27509 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
27510 Usually this means the macro was only invoked conditionally." >&2;}
27511    { (exit 1); exit 1; }; }
27512 fi
27513 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27514   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27515 Usually this means the macro was only invoked conditionally." >&5
27516 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27517 Usually this means the macro was only invoked conditionally." >&2;}
27518    { (exit 1); exit 1; }; }
27519 fi
27520 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27521   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27522 Usually this means the macro was only invoked conditionally." >&5
27523 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27524 Usually this means the macro was only invoked conditionally." >&2;}
27525    { (exit 1); exit 1; }; }
27526 fi
27527 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27528   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27529 Usually this means the macro was only invoked conditionally." >&5
27530 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27531 Usually this means the macro was only invoked conditionally." >&2;}
27532    { (exit 1); exit 1; }; }
27533 fi
27534 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27535   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27536 Usually this means the macro was only invoked conditionally." >&5
27537 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27538 Usually this means the macro was only invoked conditionally." >&2;}
27539    { (exit 1); exit 1; }; }
27540 fi
27541 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27542   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27543 Usually this means the macro was only invoked conditionally." >&5
27544 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27545 Usually this means the macro was only invoked conditionally." >&2;}
27546    { (exit 1); exit 1; }; }
27547 fi
27548 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27549   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27550 Usually this means the macro was only invoked conditionally." >&5
27551 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27552 Usually this means the macro was only invoked conditionally." >&2;}
27553    { (exit 1); exit 1; }; }
27554 fi
27555 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27556   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27557 Usually this means the macro was only invoked conditionally." >&5
27558 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27559 Usually this means the macro was only invoked conditionally." >&2;}
27560    { (exit 1); exit 1; }; }
27561 fi
27562 if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
27563   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27564 Usually this means the macro was only invoked conditionally." >&5
27565 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27566 Usually this means the macro was only invoked conditionally." >&2;}
27567    { (exit 1); exit 1; }; }
27568 fi
27569 if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
27570   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27571 Usually this means the macro was only invoked conditionally." >&5
27572 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27573 Usually this means the macro was only invoked conditionally." >&2;}
27574    { (exit 1); exit 1; }; }
27575 fi
27576 if test -z "${HAVE_CVS2CL_TRUE}" && test -z "${HAVE_CVS2CL_FALSE}"; then
27577   { { echo "$as_me:$LINENO: error: conditional \"HAVE_CVS2CL\" was never defined.
27578 Usually this means the macro was only invoked conditionally." >&5
27579 echo "$as_me: error: conditional \"HAVE_CVS2CL\" was never defined.
27580 Usually this means the macro was only invoked conditionally." >&2;}
27581    { (exit 1); exit 1; }; }
27582 fi
27583 if test -z "${HAVE_RCS2LOG_TRUE}" && test -z "${HAVE_RCS2LOG_FALSE}"; then
27584   { { echo "$as_me:$LINENO: error: conditional \"HAVE_RCS2LOG\" was never defined.
27585 Usually this means the macro was only invoked conditionally." >&5
27586 echo "$as_me: error: conditional \"HAVE_RCS2LOG\" was never defined.
27587 Usually this means the macro was only invoked conditionally." >&2;}
27588    { (exit 1); exit 1; }; }
27589 fi
27590 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
27591   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27592 Usually this means the macro was only invoked conditionally." >&5
27593 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27594 Usually this means the macro was only invoked conditionally." >&2;}
27595    { (exit 1); exit 1; }; }
27596 fi
27597 if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
27598   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27599 Usually this means the macro was only invoked conditionally." >&5
27600 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27601 Usually this means the macro was only invoked conditionally." >&2;}
27602    { (exit 1); exit 1; }; }
27603 fi
27604 if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
27605   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27606 Usually this means the macro was only invoked conditionally." >&5
27607 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27608 Usually this means the macro was only invoked conditionally." >&2;}
27609    { (exit 1); exit 1; }; }
27610 fi
27611
27612                         FEATURES_TXT="\
27613 Features:
27614                        CC: $CC, $($CC   --version | sed -e '1p;d')
27615                       CXX: $CXX, $($CXX --version | sed -e '1p;d')
27616                  CPPFLAGS: '$CPPFLAGS'
27617                    CFLAGS: '$CFLAGS'
27618                  CXXFLAGS: '$CXXFLAGS'
27619                build/host: $build/$host
27620              Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
27621        Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
27622        Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
27623            Available APIs: $enable_apis
27624             ext2fs Source: $ensc_cv_test_ext2fs_header
27625     syscall(2) invocation: $with_syscall
27626       vserver(2) syscall#: $ensc_cv_value_syscall_vserver
27627
27628 Paths:
27629                    prefix: $prefix
27630         sysconf-Directory: $sysconfdir
27631             cfg-Directory: $sysconfdir/vservers
27632          initrd-Directory: $initrddir
27633        pkgstate-Directory: $localstatedir/run/vservers
27634             Kernelheaders: $kernelincludedir
27635           vserver-Rootdir: $vserverdir
27636 "
27637                         echo "$FEATURES_TXT" >FEATURES.txt
27638
27639
27640 : ${CONFIG_STATUS=./config.status}
27641 ac_clean_files_save=$ac_clean_files
27642 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27643 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27644 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27645 cat >$CONFIG_STATUS <<_ACEOF
27646 #! $SHELL
27647 # Generated by $as_me.
27648 # Run this file to recreate the current configuration.
27649 # Compiler output produced by configure, useful for debugging
27650 # configure, is in config.log if it exists.
27651
27652 debug=false
27653 ac_cs_recheck=false
27654 ac_cs_silent=false
27655 SHELL=\${CONFIG_SHELL-$SHELL}
27656 _ACEOF
27657
27658 cat >>$CONFIG_STATUS <<\_ACEOF
27659 ## --------------------- ##
27660 ## M4sh Initialization.  ##
27661 ## --------------------- ##
27662
27663 # Be Bourne compatible
27664 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27665   emulate sh
27666   NULLCMD=:
27667   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27668   # is contrary to our usage.  Disable this feature.
27669   alias -g '${1+"$@"}'='"$@"'
27670 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27671   set -o posix
27672 fi
27673 DUALCASE=1; export DUALCASE # for MKS sh
27674
27675 # Support unset when possible.
27676 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27677   as_unset=unset
27678 else
27679   as_unset=false
27680 fi
27681
27682
27683 # Work around bugs in pre-3.0 UWIN ksh.
27684 $as_unset ENV MAIL MAILPATH
27685 PS1='$ '
27686 PS2='> '
27687 PS4='+ '
27688
27689 # NLS nuisances.
27690 for as_var in \
27691   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27692   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27693   LC_TELEPHONE LC_TIME
27694 do
27695   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27696     eval $as_var=C; export $as_var
27697   else
27698     $as_unset $as_var
27699   fi
27700 done
27701
27702 # Required to use basename.
27703 if expr a : '\(a\)' >/dev/null 2>&1; then
27704   as_expr=expr
27705 else
27706   as_expr=false
27707 fi
27708
27709 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27710   as_basename=basename
27711 else
27712   as_basename=false
27713 fi
27714
27715
27716 # Name of the executable.
27717 as_me=`$as_basename "$0" ||
27718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27719          X"$0" : 'X\(//\)$' \| \
27720          X"$0" : 'X\(/\)$' \| \
27721          .     : '\(.\)' 2>/dev/null ||
27722 echo X/"$0" |
27723     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27724           /^X\/\(\/\/\)$/{ s//\1/; q; }
27725           /^X\/\(\/\).*/{ s//\1/; q; }
27726           s/.*/./; q'`
27727
27728
27729 # PATH needs CR, and LINENO needs CR and PATH.
27730 # Avoid depending upon Character Ranges.
27731 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27732 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27733 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27734 as_cr_digits='0123456789'
27735 as_cr_alnum=$as_cr_Letters$as_cr_digits
27736
27737 # The user is always right.
27738 if test "${PATH_SEPARATOR+set}" != set; then
27739   echo "#! /bin/sh" >conf$$.sh
27740   echo  "exit 0"   >>conf$$.sh
27741   chmod +x conf$$.sh
27742   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27743     PATH_SEPARATOR=';'
27744   else
27745     PATH_SEPARATOR=:
27746   fi
27747   rm -f conf$$.sh
27748 fi
27749
27750
27751   as_lineno_1=$LINENO
27752   as_lineno_2=$LINENO
27753   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27754   test "x$as_lineno_1" != "x$as_lineno_2" &&
27755   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
27756   # Find who we are.  Look in the path if we contain no path at all
27757   # relative or not.
27758   case $0 in
27759     *[\\/]* ) as_myself=$0 ;;
27760     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27761 for as_dir in $PATH
27762 do
27763   IFS=$as_save_IFS
27764   test -z "$as_dir" && as_dir=.
27765   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27766 done
27767
27768        ;;
27769   esac
27770   # We did not find ourselves, most probably we were run as `sh COMMAND'
27771   # in which case we are not to be found in the path.
27772   if test "x$as_myself" = x; then
27773     as_myself=$0
27774   fi
27775   if test ! -f "$as_myself"; then
27776     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27777 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27778    { (exit 1); exit 1; }; }
27779   fi
27780   case $CONFIG_SHELL in
27781   '')
27782     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27783 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27784 do
27785   IFS=$as_save_IFS
27786   test -z "$as_dir" && as_dir=.
27787   for as_base in sh bash ksh sh5; do
27788          case $as_dir in
27789          /*)
27790            if ("$as_dir/$as_base" -c '
27791   as_lineno_1=$LINENO
27792   as_lineno_2=$LINENO
27793   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27794   test "x$as_lineno_1" != "x$as_lineno_2" &&
27795   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
27796              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27797              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27798              CONFIG_SHELL=$as_dir/$as_base
27799              export CONFIG_SHELL
27800              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27801            fi;;
27802          esac
27803        done
27804 done
27805 ;;
27806   esac
27807
27808   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27809   # uniformly replaced by the line number.  The first 'sed' inserts a
27810   # line-number line before each line; the second 'sed' does the real
27811   # work.  The second script uses 'N' to pair each line-number line
27812   # with the numbered line, and appends trailing '-' during
27813   # substitution so that $LINENO is not a special case at line end.
27814   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27815   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
27816   sed '=' <$as_myself |
27817     sed '
27818       N
27819       s,$,-,
27820       : loop
27821       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27822       t loop
27823       s,-$,,
27824       s,^['$as_cr_digits']*\n,,
27825     ' >$as_me.lineno &&
27826   chmod +x $as_me.lineno ||
27827     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27828 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27829    { (exit 1); exit 1; }; }
27830
27831   # Don't try to exec as it changes $[0], causing all sort of problems
27832   # (the dirname of $[0] is not the place where we might find the
27833   # original and so on.  Autoconf is especially sensible to this).
27834   . ./$as_me.lineno
27835   # Exit status is that of the last command.
27836   exit
27837 }
27838
27839
27840 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27841   *c*,-n*) ECHO_N= ECHO_C='
27842 ' ECHO_T='      ' ;;
27843   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27844   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
27845 esac
27846
27847 if expr a : '\(a\)' >/dev/null 2>&1; then
27848   as_expr=expr
27849 else
27850   as_expr=false
27851 fi
27852
27853 rm -f conf$$ conf$$.exe conf$$.file
27854 echo >conf$$.file
27855 if ln -s conf$$.file conf$$ 2>/dev/null; then
27856   # We could just check for DJGPP; but this test a) works b) is more generic
27857   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27858   if test -f conf$$.exe; then
27859     # Don't use ln at all; we don't have any links
27860     as_ln_s='cp -p'
27861   else
27862     as_ln_s='ln -s'
27863   fi
27864 elif ln conf$$.file conf$$ 2>/dev/null; then
27865   as_ln_s=ln
27866 else
27867   as_ln_s='cp -p'
27868 fi
27869 rm -f conf$$ conf$$.exe conf$$.file
27870
27871 if mkdir -p . 2>/dev/null; then
27872   as_mkdir_p=:
27873 else
27874   test -d ./-p && rmdir ./-p
27875   as_mkdir_p=false
27876 fi
27877
27878 as_executable_p="test -f"
27879
27880 # Sed expression to map a string onto a valid CPP name.
27881 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27882
27883 # Sed expression to map a string onto a valid variable name.
27884 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27885
27886
27887 # IFS
27888 # We need space, tab and new line, in precisely that order.
27889 as_nl='
27890 '
27891 IFS="   $as_nl"
27892
27893 # CDPATH.
27894 $as_unset CDPATH
27895
27896 exec 6>&1
27897
27898 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27899 # report actual input values of CONFIG_FILES etc. instead of their
27900 # values after options handling.  Logging --version etc. is OK.
27901 exec 5>>config.log
27902 {
27903   echo
27904   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27905 ## Running $as_me. ##
27906 _ASBOX
27907 } >&5
27908 cat >&5 <<_CSEOF
27909
27910 This file was extended by util-vserver $as_me 0.30.208, which was
27911 generated by GNU Autoconf 2.59.  Invocation command line was
27912
27913   CONFIG_FILES    = $CONFIG_FILES
27914   CONFIG_HEADERS  = $CONFIG_HEADERS
27915   CONFIG_LINKS    = $CONFIG_LINKS
27916   CONFIG_COMMANDS = $CONFIG_COMMANDS
27917   $ $0 $@
27918
27919 _CSEOF
27920 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27921 echo >&5
27922 _ACEOF
27923
27924 # Files that config.status was made for.
27925 if test -n "$ac_config_files"; then
27926   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27927 fi
27928
27929 if test -n "$ac_config_headers"; then
27930   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27931 fi
27932
27933 if test -n "$ac_config_links"; then
27934   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27935 fi
27936
27937 if test -n "$ac_config_commands"; then
27938   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27939 fi
27940
27941 cat >>$CONFIG_STATUS <<\_ACEOF
27942
27943 ac_cs_usage="\
27944 \`$as_me' instantiates files from templates according to the
27945 current configuration.
27946
27947 Usage: $0 [OPTIONS] [FILE]...
27948
27949   -h, --help       print this help, then exit
27950   -V, --version    print version number, then exit
27951   -q, --quiet      do not print progress messages
27952   -d, --debug      don't remove temporary files
27953       --recheck    update $as_me by reconfiguring in the same conditions
27954   --file=FILE[:TEMPLATE]
27955                    instantiate the configuration file FILE
27956   --header=FILE[:TEMPLATE]
27957                    instantiate the configuration header FILE
27958
27959 Configuration files:
27960 $config_files
27961
27962 Configuration headers:
27963 $config_headers
27964
27965 Configuration commands:
27966 $config_commands
27967
27968 Report bugs to <bug-autoconf@gnu.org>."
27969 _ACEOF
27970
27971 cat >>$CONFIG_STATUS <<_ACEOF
27972 ac_cs_version="\\
27973 util-vserver config.status 0.30.208
27974 configured by $0, generated by GNU Autoconf 2.59,
27975   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27976
27977 Copyright (C) 2003 Free Software Foundation, Inc.
27978 This config.status script is free software; the Free Software Foundation
27979 gives unlimited permission to copy, distribute and modify it."
27980 srcdir=$srcdir
27981 INSTALL="$INSTALL"
27982 _ACEOF
27983
27984 cat >>$CONFIG_STATUS <<\_ACEOF
27985 # If no file are specified by the user, then we need to provide default
27986 # value.  By we need to know if files were specified by the user.
27987 ac_need_defaults=:
27988 while test $# != 0
27989 do
27990   case $1 in
27991   --*=*)
27992     ac_option=`expr "x$1" : 'x\([^=]*\)='`
27993     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27994     ac_shift=:
27995     ;;
27996   -*)
27997     ac_option=$1
27998     ac_optarg=$2
27999     ac_shift=shift
28000     ;;
28001   *) # This is not an option, so the user has probably given explicit
28002      # arguments.
28003      ac_option=$1
28004      ac_need_defaults=false;;
28005   esac
28006
28007   case $ac_option in
28008   # Handling of the options.
28009 _ACEOF
28010 cat >>$CONFIG_STATUS <<\_ACEOF
28011   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28012     ac_cs_recheck=: ;;
28013   --version | --vers* | -V )
28014     echo "$ac_cs_version"; exit 0 ;;
28015   --he | --h)
28016     # Conflict between --help and --header
28017     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28018 Try \`$0 --help' for more information." >&5
28019 echo "$as_me: error: ambiguous option: $1
28020 Try \`$0 --help' for more information." >&2;}
28021    { (exit 1); exit 1; }; };;
28022   --help | --hel | -h )
28023     echo "$ac_cs_usage"; exit 0 ;;
28024   --debug | --d* | -d )
28025     debug=: ;;
28026   --file | --fil | --fi | --f )
28027     $ac_shift
28028     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28029     ac_need_defaults=false;;
28030   --header | --heade | --head | --hea )
28031     $ac_shift
28032     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28033     ac_need_defaults=false;;
28034   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28035   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28036     ac_cs_silent=: ;;
28037
28038   # This is an error.
28039   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28040 Try \`$0 --help' for more information." >&5
28041 echo "$as_me: error: unrecognized option: $1
28042 Try \`$0 --help' for more information." >&2;}
28043    { (exit 1); exit 1; }; } ;;
28044
28045   *) ac_config_targets="$ac_config_targets $1" ;;
28046
28047   esac
28048   shift
28049 done
28050
28051 ac_configure_extra_args=
28052
28053 if $ac_cs_silent; then
28054   exec 6>/dev/null
28055   ac_configure_extra_args="$ac_configure_extra_args --silent"
28056 fi
28057
28058 _ACEOF
28059 cat >>$CONFIG_STATUS <<_ACEOF
28060 if \$ac_cs_recheck; then
28061   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28062   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28063 fi
28064
28065 _ACEOF
28066
28067 cat >>$CONFIG_STATUS <<_ACEOF
28068 #
28069 # INIT-COMMANDS section.
28070 #
28071
28072 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28073
28074 _ACEOF
28075
28076
28077
28078 cat >>$CONFIG_STATUS <<\_ACEOF
28079 for ac_config_target in $ac_config_targets
28080 do
28081   case "$ac_config_target" in
28082   # Handling of arguments.
28083   "util-vserver.spec" ) CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
28084   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28085   "distrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
28086   "lib/apidoc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
28087   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28088   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28089   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28090 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28091    { (exit 1); exit 1; }; };;
28092   esac
28093 done
28094
28095 # If the user did not use the arguments to specify the items to instantiate,
28096 # then the envvar interface is used.  Set only those that are not.
28097 # We use the long form for the default assignment because of an extremely
28098 # bizarre bug on SunOS 4.1.3.
28099 if $ac_need_defaults; then
28100   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28101   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28102   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28103 fi
28104
28105 # Have a temporary directory for convenience.  Make it in the build tree
28106 # simply because there is no reason to put it here, and in addition,
28107 # creating and moving files from /tmp can sometimes cause problems.
28108 # Create a temporary directory, and hook for its removal unless debugging.
28109 $debug ||
28110 {
28111   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28112   trap '{ (exit 1); exit 1; }' 1 2 13 15
28113 }
28114
28115 # Create a (secure) tmp directory for tmp files.
28116
28117 {
28118   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28119   test -n "$tmp" && test -d "$tmp"
28120 }  ||
28121 {
28122   tmp=./confstat$$-$RANDOM
28123   (umask 077 && mkdir $tmp)
28124 } ||
28125 {
28126    echo "$me: cannot create a temporary directory in ." >&2
28127    { (exit 1); exit 1; }
28128 }
28129
28130 _ACEOF
28131
28132 cat >>$CONFIG_STATUS <<_ACEOF
28133
28134 #
28135 # CONFIG_FILES section.
28136 #
28137
28138 # No need to generate the scripts if there are no CONFIG_FILES.
28139 # This happens for instance when ./config.status config.h
28140 if test -n "\$CONFIG_FILES"; then
28141   # Protect against being on the right side of a sed subst in config.status.
28142   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28143    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28144 s,@SHELL@,$SHELL,;t t
28145 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28146 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28147 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28148 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28149 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28150 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28151 s,@exec_prefix@,$exec_prefix,;t t
28152 s,@prefix@,$prefix,;t t
28153 s,@program_transform_name@,$program_transform_name,;t t
28154 s,@bindir@,$bindir,;t t
28155 s,@sbindir@,$sbindir,;t t
28156 s,@libexecdir@,$libexecdir,;t t
28157 s,@datadir@,$datadir,;t t
28158 s,@sysconfdir@,$sysconfdir,;t t
28159 s,@sharedstatedir@,$sharedstatedir,;t t
28160 s,@localstatedir@,$localstatedir,;t t
28161 s,@libdir@,$libdir,;t t
28162 s,@includedir@,$includedir,;t t
28163 s,@oldincludedir@,$oldincludedir,;t t
28164 s,@infodir@,$infodir,;t t
28165 s,@mandir@,$mandir,;t t
28166 s,@build_alias@,$build_alias,;t t
28167 s,@host_alias@,$host_alias,;t t
28168 s,@target_alias@,$target_alias,;t t
28169 s,@DEFS@,$DEFS,;t t
28170 s,@ECHO_C@,$ECHO_C,;t t
28171 s,@ECHO_N@,$ECHO_N,;t t
28172 s,@ECHO_T@,$ECHO_T,;t t
28173 s,@LIBS@,$LIBS,;t t
28174 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28175 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28176 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28177 s,@CYGPATH_W@,$CYGPATH_W,;t t
28178 s,@PACKAGE@,$PACKAGE,;t t
28179 s,@VERSION@,$VERSION,;t t
28180 s,@ACLOCAL@,$ACLOCAL,;t t
28181 s,@AUTOCONF@,$AUTOCONF,;t t
28182 s,@AUTOMAKE@,$AUTOMAKE,;t t
28183 s,@AUTOHEADER@,$AUTOHEADER,;t t
28184 s,@MAKEINFO@,$MAKEINFO,;t t
28185 s,@AMTAR@,$AMTAR,;t t
28186 s,@install_sh@,$install_sh,;t t
28187 s,@STRIP@,$STRIP,;t t
28188 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28189 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28190 s,@mkdir_p@,$mkdir_p,;t t
28191 s,@AWK@,$AWK,;t t
28192 s,@SET_MAKE@,$SET_MAKE,;t t
28193 s,@am__leading_dot@,$am__leading_dot,;t t
28194 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28195 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28196 s,@MAINT@,$MAINT,;t t
28197 s,@build@,$build,;t t
28198 s,@build_cpu@,$build_cpu,;t t
28199 s,@build_vendor@,$build_vendor,;t t
28200 s,@build_os@,$build_os,;t t
28201 s,@host@,$host,;t t
28202 s,@host_cpu@,$host_cpu,;t t
28203 s,@host_vendor@,$host_vendor,;t t
28204 s,@host_os@,$host_os,;t t
28205 s,@GPG_KEY@,$GPG_KEY,;t t
28206 s,@CXX@,$CXX,;t t
28207 s,@CXXFLAGS@,$CXXFLAGS,;t t
28208 s,@LDFLAGS@,$LDFLAGS,;t t
28209 s,@CPPFLAGS@,$CPPFLAGS,;t t
28210 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28211 s,@EXEEXT@,$EXEEXT,;t t
28212 s,@OBJEXT@,$OBJEXT,;t t
28213 s,@DEPDIR@,$DEPDIR,;t t
28214 s,@am__include@,$am__include,;t t
28215 s,@am__quote@,$am__quote,;t t
28216 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28217 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28218 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28219 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28220 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28221 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28222 s,@CC@,$CC,;t t
28223 s,@CFLAGS@,$CFLAGS,;t t
28224 s,@ac_ct_CC@,$ac_ct_CC,;t t
28225 s,@CCDEPMODE@,$CCDEPMODE,;t t
28226 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28227 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28228 s,@LN_S@,$LN_S,;t t
28229 s,@PYTHON@,$PYTHON,;t t
28230 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
28231 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
28232 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
28233 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
28234 s,@pythondir@,$pythondir,;t t
28235 s,@pkgpythondir@,$pkgpythondir,;t t
28236 s,@pyexecdir@,$pyexecdir,;t t
28237 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
28238 s,@ENSC_HAVE_CXX_COMPILER_TRUE@,$ENSC_HAVE_CXX_COMPILER_TRUE,;t t
28239 s,@ENSC_HAVE_CXX_COMPILER_FALSE@,$ENSC_HAVE_CXX_COMPILER_FALSE,;t t
28240 s,@ENSC_HAVE_C99_COMPILER_TRUE@,$ENSC_HAVE_C99_COMPILER_TRUE,;t t
28241 s,@ENSC_HAVE_C99_COMPILER_FALSE@,$ENSC_HAVE_C99_COMPILER_FALSE,;t t
28242 s,@ENSC_PATHPROG_SED@,$ENSC_PATHPROG_SED,;t t
28243 s,@CAT@,$CAT,;t t
28244 s,@CHOWN@,$CHOWN,;t t
28245 s,@CMP@,$CMP,;t t
28246 s,@CP@,$CP,;t t
28247 s,@DIRNAME@,$DIRNAME,;t t
28248 s,@EGREP@,$EGREP,;t t
28249 s,@ENV@,$ENV,;t t
28250 s,@GREP@,$GREP,;t t
28251 s,@LN@,$LN,;t t
28252 s,@MKDIR@,$MKDIR,;t t
28253 s,@MKFIFO@,$MKFIFO,;t t
28254 s,@MKTEMP@,$MKTEMP,;t t
28255 s,@MOUNT@,$MOUNT,;t t
28256 s,@MV@,$MV,;t t
28257 s,@NICE@,$NICE,;t t
28258 s,@PS@,$PS,;t t
28259 s,@RM@,$RM,;t t
28260 s,@RMDIR@,$RMDIR,;t t
28261 s,@SED@,$SED,;t t
28262 s,@SH@,$SH,;t t
28263 s,@TAC@,$TAC,;t t
28264 s,@TAR@,$TAR,;t t
28265 s,@TOUCH@,$TOUCH,;t t
28266 s,@TTY@,$TTY,;t t
28267 s,@UMOUNT@,$UMOUNT,;t t
28268 s,@WC@,$WC,;t t
28269 s,@IP@,$IP,;t t
28270 s,@IPTABLES@,$IPTABLES,;t t
28271 s,@MODPROBE@,$MODPROBE,;t t
28272 s,@NAMEIF@,$NAMEIF,;t t
28273 s,@NOHUP@,$NOHUP,;t t
28274 s,@RMMOD@,$RMMOD,;t t
28275 s,@VCONFIG@,$VCONFIG,;t t
28276 s,@WGET@,$WGET,;t t
28277 s,@DOXYGEN@,$DOXYGEN,;t t
28278 s,@XSLTP@,$XSLTP,;t t
28279 s,@XSLTPROC@,$XSLTPROC,;t t
28280 s,@HAVE_XSLTP_TRUE@,$HAVE_XSLTP_TRUE,;t t
28281 s,@HAVE_XSLTP_FALSE@,$HAVE_XSLTP_FALSE,;t t
28282 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
28283 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
28284 s,@LIB_DEBUG_CPPFLAGS@,$LIB_DEBUG_CPPFLAGS,;t t
28285 s,@ENSC_USE_EXPENSIVE_TESTS@,$ENSC_USE_EXPENSIVE_TESTS,;t t
28286 s,@initrddir@,$initrddir,;t t
28287 s,@RELEASE_CPPFLAGS@,$RELEASE_CPPFLAGS,;t t
28288 s,@DIET@,$DIET,;t t
28289 s,@DIETFLAGS@,$DIETFLAGS,;t t
28290 s,@USE_DIETLIBC_TRUE@,$USE_DIETLIBC_TRUE,;t t
28291 s,@USE_DIETLIBC_FALSE@,$USE_DIETLIBC_FALSE,;t t
28292 s,@USE_DIETLIBC_COMPAT_TRUE@,$USE_DIETLIBC_COMPAT_TRUE,;t t
28293 s,@USE_DIETLIBC_COMPAT_FALSE@,$USE_DIETLIBC_COMPAT_FALSE,;t t
28294 s,@ENSC_USE_DIETLIBC_TRUE@,$ENSC_USE_DIETLIBC_TRUE,;t t
28295 s,@ENSC_USE_DIETLIBC_FALSE@,$ENSC_USE_DIETLIBC_FALSE,;t t
28296 s,@ENSC_USE_GLIBC_TRUE@,$ENSC_USE_GLIBC_TRUE,;t t
28297 s,@ENSC_USE_GLIBC_FALSE@,$ENSC_USE_GLIBC_FALSE,;t t
28298 s,@ECHO@,$ECHO,;t t
28299 s,@AR@,$AR,;t t
28300 s,@ac_ct_AR@,$ac_ct_AR,;t t
28301 s,@RANLIB@,$RANLIB,;t t
28302 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28303 s,@CPP@,$CPP,;t t
28304 s,@CXXCPP@,$CXXCPP,;t t
28305 s,@F77@,$F77,;t t
28306 s,@FFLAGS@,$FFLAGS,;t t
28307 s,@ac_ct_F77@,$ac_ct_F77,;t t
28308 s,@LIBTOOL@,$LIBTOOL,;t t
28309 s,@kernelincludedir@,$kernelincludedir,;t t
28310 s,@vserverdir@,$vserverdir,;t t
28311 s,@CVS2CL_TAG@,$CVS2CL_TAG,;t t
28312 s,@CVS2CL@,$CVS2CL,;t t
28313 s,@HAVE_CVS2CL_TRUE@,$HAVE_CVS2CL_TRUE,;t t
28314 s,@HAVE_CVS2CL_FALSE@,$HAVE_CVS2CL_FALSE,;t t
28315 s,@RCS2LOG@,$RCS2LOG,;t t
28316 s,@HAVE_RCS2LOG_TRUE@,$HAVE_RCS2LOG_TRUE,;t t
28317 s,@HAVE_RCS2LOG_FALSE@,$HAVE_RCS2LOG_FALSE,;t t
28318 s,@ENSC_ENABLE_INTERNAL_HEADERS_TRUE@,$ENSC_ENABLE_INTERNAL_HEADERS_TRUE,;t t
28319 s,@ENSC_ENABLE_INTERNAL_HEADERS_FALSE@,$ENSC_ENABLE_INTERNAL_HEADERS_FALSE,;t t
28320 s,@ENSC_HAVE_BEECRYPT_TRUE@,$ENSC_HAVE_BEECRYPT_TRUE,;t t
28321 s,@ENSC_HAVE_BEECRYPT_FALSE@,$ENSC_HAVE_BEECRYPT_FALSE,;t t
28322 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE,;t t
28323 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE,;t t
28324 s,@LIBOBJS@,$LIBOBJS,;t t
28325 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28326 CEOF
28327
28328 _ACEOF
28329
28330   cat >>$CONFIG_STATUS <<\_ACEOF
28331   # Split the substitutions into bite-sized pieces for seds with
28332   # small command number limits, like on Digital OSF/1 and HP-UX.
28333   ac_max_sed_lines=48
28334   ac_sed_frag=1 # Number of current file.
28335   ac_beg=1 # First line for current file.
28336   ac_end=$ac_max_sed_lines # Line after last line for current file.
28337   ac_more_lines=:
28338   ac_sed_cmds=
28339   while $ac_more_lines; do
28340     if test $ac_beg -gt 1; then
28341       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28342     else
28343       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28344     fi
28345     if test ! -s $tmp/subs.frag; then
28346       ac_more_lines=false
28347     else
28348       # The purpose of the label and of the branching condition is to
28349       # speed up the sed processing (if there are no `@' at all, there
28350       # is no need to browse any of the substitutions).
28351       # These are the two extra sed commands mentioned above.
28352       (echo ':t
28353   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28354       if test -z "$ac_sed_cmds"; then
28355         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28356       else
28357         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28358       fi
28359       ac_sed_frag=`expr $ac_sed_frag + 1`
28360       ac_beg=$ac_end
28361       ac_end=`expr $ac_end + $ac_max_sed_lines`
28362     fi
28363   done
28364   if test -z "$ac_sed_cmds"; then
28365     ac_sed_cmds=cat
28366   fi
28367 fi # test -n "$CONFIG_FILES"
28368
28369 _ACEOF
28370 cat >>$CONFIG_STATUS <<\_ACEOF
28371 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28372   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28373   case $ac_file in
28374   - | *:- | *:-:* ) # input from stdin
28375         cat >$tmp/stdin
28376         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28377         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28378   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28379         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28380   * )   ac_file_in=$ac_file.in ;;
28381   esac
28382
28383   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28384   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28385 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28386          X"$ac_file" : 'X\(//\)[^/]' \| \
28387          X"$ac_file" : 'X\(//\)$' \| \
28388          X"$ac_file" : 'X\(/\)' \| \
28389          .     : '\(.\)' 2>/dev/null ||
28390 echo X"$ac_file" |
28391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28392           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28393           /^X\(\/\/\)$/{ s//\1/; q; }
28394           /^X\(\/\).*/{ s//\1/; q; }
28395           s/.*/./; q'`
28396   { if $as_mkdir_p; then
28397     mkdir -p "$ac_dir"
28398   else
28399     as_dir="$ac_dir"
28400     as_dirs=
28401     while test ! -d "$as_dir"; do
28402       as_dirs="$as_dir $as_dirs"
28403       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28404 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28405          X"$as_dir" : 'X\(//\)[^/]' \| \
28406          X"$as_dir" : 'X\(//\)$' \| \
28407          X"$as_dir" : 'X\(/\)' \| \
28408          .     : '\(.\)' 2>/dev/null ||
28409 echo X"$as_dir" |
28410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28411           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28412           /^X\(\/\/\)$/{ s//\1/; q; }
28413           /^X\(\/\).*/{ s//\1/; q; }
28414           s/.*/./; q'`
28415     done
28416     test ! -n "$as_dirs" || mkdir $as_dirs
28417   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28418 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28419    { (exit 1); exit 1; }; }; }
28420
28421   ac_builddir=.
28422
28423 if test "$ac_dir" != .; then
28424   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28425   # A "../" for each directory in $ac_dir_suffix.
28426   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28427 else
28428   ac_dir_suffix= ac_top_builddir=
28429 fi
28430
28431 case $srcdir in
28432   .)  # No --srcdir option.  We are building in place.
28433     ac_srcdir=.
28434     if test -z "$ac_top_builddir"; then
28435        ac_top_srcdir=.
28436     else
28437        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28438     fi ;;
28439   [\\/]* | ?:[\\/]* )  # Absolute path.
28440     ac_srcdir=$srcdir$ac_dir_suffix;
28441     ac_top_srcdir=$srcdir ;;
28442   *) # Relative path.
28443     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28444     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28445 esac
28446
28447 # Do not use `cd foo && pwd` to compute absolute paths, because
28448 # the directories may not exist.
28449 case `pwd` in
28450 .) ac_abs_builddir="$ac_dir";;
28451 *)
28452   case "$ac_dir" in
28453   .) ac_abs_builddir=`pwd`;;
28454   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28455   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28456   esac;;
28457 esac
28458 case $ac_abs_builddir in
28459 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28460 *)
28461   case ${ac_top_builddir}. in
28462   .) ac_abs_top_builddir=$ac_abs_builddir;;
28463   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28464   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28465   esac;;
28466 esac
28467 case $ac_abs_builddir in
28468 .) ac_abs_srcdir=$ac_srcdir;;
28469 *)
28470   case $ac_srcdir in
28471   .) ac_abs_srcdir=$ac_abs_builddir;;
28472   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28473   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28474   esac;;
28475 esac
28476 case $ac_abs_builddir in
28477 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28478 *)
28479   case $ac_top_srcdir in
28480   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28481   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28482   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28483   esac;;
28484 esac
28485
28486
28487   case $INSTALL in
28488   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28489   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28490   esac
28491
28492   if test x"$ac_file" != x-; then
28493     { echo "$as_me:$LINENO: creating $ac_file" >&5
28494 echo "$as_me: creating $ac_file" >&6;}
28495     rm -f "$ac_file"
28496   fi
28497   # Let's still pretend it is `configure' which instantiates (i.e., don't
28498   # use $as_me), people would be surprised to read:
28499   #    /* config.h.  Generated by config.status.  */
28500   if test x"$ac_file" = x-; then
28501     configure_input=
28502   else
28503     configure_input="$ac_file.  "
28504   fi
28505   configure_input=$configure_input"Generated from `echo $ac_file_in |
28506                                      sed 's,.*/,,'` by configure."
28507
28508   # First look for the input files in the build tree, otherwise in the
28509   # src tree.
28510   ac_file_inputs=`IFS=:
28511     for f in $ac_file_in; do
28512       case $f in
28513       -) echo $tmp/stdin ;;
28514       [\\/$]*)
28515          # Absolute (can't be DOS-style, as IFS=:)
28516          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28517 echo "$as_me: error: cannot find input file: $f" >&2;}
28518    { (exit 1); exit 1; }; }
28519          echo "$f";;
28520       *) # Relative
28521          if test -f "$f"; then
28522            # Build tree
28523            echo "$f"
28524          elif test -f "$srcdir/$f"; then
28525            # Source tree
28526            echo "$srcdir/$f"
28527          else
28528            # /dev/null tree
28529            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28530 echo "$as_me: error: cannot find input file: $f" >&2;}
28531    { (exit 1); exit 1; }; }
28532          fi;;
28533       esac
28534     done` || { (exit 1); exit 1; }
28535 _ACEOF
28536 cat >>$CONFIG_STATUS <<_ACEOF
28537   sed "$ac_vpsub
28538 $extrasub
28539 _ACEOF
28540 cat >>$CONFIG_STATUS <<\_ACEOF
28541 :t
28542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28543 s,@configure_input@,$configure_input,;t t
28544 s,@srcdir@,$ac_srcdir,;t t
28545 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28546 s,@top_srcdir@,$ac_top_srcdir,;t t
28547 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28548 s,@builddir@,$ac_builddir,;t t
28549 s,@abs_builddir@,$ac_abs_builddir,;t t
28550 s,@top_builddir@,$ac_top_builddir,;t t
28551 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28552 s,@INSTALL@,$ac_INSTALL,;t t
28553 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28554   rm -f $tmp/stdin
28555   if test x"$ac_file" != x-; then
28556     mv $tmp/out $ac_file
28557   else
28558     cat $tmp/out
28559     rm -f $tmp/out
28560   fi
28561
28562 done
28563 _ACEOF
28564 cat >>$CONFIG_STATUS <<\_ACEOF
28565
28566 #
28567 # CONFIG_HEADER section.
28568 #
28569
28570 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28571 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28572 #
28573 # ac_d sets the value in "#define NAME VALUE" lines.
28574 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
28575 ac_dB='[         ].*$,\1#\2'
28576 ac_dC=' '
28577 ac_dD=',;t'
28578 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28579 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
28580 ac_uB='$,\1#\2define\3'
28581 ac_uC=' '
28582 ac_uD=',;t'
28583
28584 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28585   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28586   case $ac_file in
28587   - | *:- | *:-:* ) # input from stdin
28588         cat >$tmp/stdin
28589         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28590         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28591   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28592         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28593   * )   ac_file_in=$ac_file.in ;;
28594   esac
28595
28596   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28597 echo "$as_me: creating $ac_file" >&6;}
28598
28599   # First look for the input files in the build tree, otherwise in the
28600   # src tree.
28601   ac_file_inputs=`IFS=:
28602     for f in $ac_file_in; do
28603       case $f in
28604       -) echo $tmp/stdin ;;
28605       [\\/$]*)
28606          # Absolute (can't be DOS-style, as IFS=:)
28607          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28608 echo "$as_me: error: cannot find input file: $f" >&2;}
28609    { (exit 1); exit 1; }; }
28610          # Do quote $f, to prevent DOS paths from being IFS'd.
28611          echo "$f";;
28612       *) # Relative
28613          if test -f "$f"; then
28614            # Build tree
28615            echo "$f"
28616          elif test -f "$srcdir/$f"; then
28617            # Source tree
28618            echo "$srcdir/$f"
28619          else
28620            # /dev/null tree
28621            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28622 echo "$as_me: error: cannot find input file: $f" >&2;}
28623    { (exit 1); exit 1; }; }
28624          fi;;
28625       esac
28626     done` || { (exit 1); exit 1; }
28627   # Remove the trailing spaces.
28628   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
28629
28630 _ACEOF
28631
28632 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28633 # `conftest.undefs', that substitutes the proper values into
28634 # config.h.in to produce config.h.  The first handles `#define'
28635 # templates, and the second `#undef' templates.
28636 # And first: Protect against being on the right side of a sed subst in
28637 # config.status.  Protect against being in an unquoted here document
28638 # in config.status.
28639 rm -f conftest.defines conftest.undefs
28640 # Using a here document instead of a string reduces the quoting nightmare.
28641 # Putting comments in sed scripts is not portable.
28642 #
28643 # `end' is used to avoid that the second main sed command (meant for
28644 # 0-ary CPP macros) applies to n-ary macro definitions.
28645 # See the Autoconf documentation for `clear'.
28646 cat >confdef2sed.sed <<\_ACEOF
28647 s/[\\&,]/\\&/g
28648 s,[\\$`],\\&,g
28649 t clear
28650 : clear
28651 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28652 t end
28653 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28654 : end
28655 _ACEOF
28656 # If some macros were called several times there might be several times
28657 # the same #defines, which is useless.  Nevertheless, we may not want to
28658 # sort them, since we want the *last* AC-DEFINE to be honored.
28659 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28660 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28661 rm -f confdef2sed.sed
28662
28663 # This sed command replaces #undef with comments.  This is necessary, for
28664 # example, in the case of _POSIX_SOURCE, which is predefined and required
28665 # on some systems where configure will not decide to define it.
28666 cat >>conftest.undefs <<\_ACEOF
28667 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28668 _ACEOF
28669
28670 # Break up conftest.defines because some shells have a limit on the size
28671 # of here documents, and old seds have small limits too (100 cmds).
28672 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28673 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28674 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28675 echo '  :' >>$CONFIG_STATUS
28676 rm -f conftest.tail
28677 while grep . conftest.defines >/dev/null
28678 do
28679   # Write a limited-size here document to $tmp/defines.sed.
28680   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28681   # Speed up: don't consider the non `#define' lines.
28682   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
28683   # Work around the forget-to-reset-the-flag bug.
28684   echo 't clr' >>$CONFIG_STATUS
28685   echo ': clr' >>$CONFIG_STATUS
28686   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28687   echo 'CEOF
28688   sed -f $tmp/defines.sed $tmp/in >$tmp/out
28689   rm -f $tmp/in
28690   mv $tmp/out $tmp/in
28691 ' >>$CONFIG_STATUS
28692   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28693   rm -f conftest.defines
28694   mv conftest.tail conftest.defines
28695 done
28696 rm -f conftest.defines
28697 echo '  fi # grep' >>$CONFIG_STATUS
28698 echo >>$CONFIG_STATUS
28699
28700 # Break up conftest.undefs because some shells have a limit on the size
28701 # of here documents, and old seds have small limits too (100 cmds).
28702 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
28703 rm -f conftest.tail
28704 while grep . conftest.undefs >/dev/null
28705 do
28706   # Write a limited-size here document to $tmp/undefs.sed.
28707   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28708   # Speed up: don't consider the non `#undef'
28709   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
28710   # Work around the forget-to-reset-the-flag bug.
28711   echo 't clr' >>$CONFIG_STATUS
28712   echo ': clr' >>$CONFIG_STATUS
28713   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28714   echo 'CEOF
28715   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28716   rm -f $tmp/in
28717   mv $tmp/out $tmp/in
28718 ' >>$CONFIG_STATUS
28719   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28720   rm -f conftest.undefs
28721   mv conftest.tail conftest.undefs
28722 done
28723 rm -f conftest.undefs
28724
28725 cat >>$CONFIG_STATUS <<\_ACEOF
28726   # Let's still pretend it is `configure' which instantiates (i.e., don't
28727   # use $as_me), people would be surprised to read:
28728   #    /* config.h.  Generated by config.status.  */
28729   if test x"$ac_file" = x-; then
28730     echo "/* Generated by configure.  */" >$tmp/config.h
28731   else
28732     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28733   fi
28734   cat $tmp/in >>$tmp/config.h
28735   rm -f $tmp/in
28736   if test x"$ac_file" != x-; then
28737     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28738       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28739 echo "$as_me: $ac_file is unchanged" >&6;}
28740     else
28741       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28743          X"$ac_file" : 'X\(//\)[^/]' \| \
28744          X"$ac_file" : 'X\(//\)$' \| \
28745          X"$ac_file" : 'X\(/\)' \| \
28746          .     : '\(.\)' 2>/dev/null ||
28747 echo X"$ac_file" |
28748     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28749           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28750           /^X\(\/\/\)$/{ s//\1/; q; }
28751           /^X\(\/\).*/{ s//\1/; q; }
28752           s/.*/./; q'`
28753       { if $as_mkdir_p; then
28754     mkdir -p "$ac_dir"
28755   else
28756     as_dir="$ac_dir"
28757     as_dirs=
28758     while test ! -d "$as_dir"; do
28759       as_dirs="$as_dir $as_dirs"
28760       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28762          X"$as_dir" : 'X\(//\)[^/]' \| \
28763          X"$as_dir" : 'X\(//\)$' \| \
28764          X"$as_dir" : 'X\(/\)' \| \
28765          .     : '\(.\)' 2>/dev/null ||
28766 echo X"$as_dir" |
28767     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28768           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28769           /^X\(\/\/\)$/{ s//\1/; q; }
28770           /^X\(\/\).*/{ s//\1/; q; }
28771           s/.*/./; q'`
28772     done
28773     test ! -n "$as_dirs" || mkdir $as_dirs
28774   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28775 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28776    { (exit 1); exit 1; }; }; }
28777
28778       rm -f $ac_file
28779       mv $tmp/config.h $ac_file
28780     fi
28781   else
28782     cat $tmp/config.h
28783     rm -f $tmp/config.h
28784   fi
28785 # Compute $ac_file's index in $config_headers.
28786 _am_stamp_count=1
28787 for _am_header in $config_headers :; do
28788   case $_am_header in
28789     $ac_file | $ac_file:* )
28790       break ;;
28791     * )
28792       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28793   esac
28794 done
28795 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28796 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28797          X$ac_file : 'X\(//\)[^/]' \| \
28798          X$ac_file : 'X\(//\)$' \| \
28799          X$ac_file : 'X\(/\)' \| \
28800          .     : '\(.\)' 2>/dev/null ||
28801 echo X$ac_file |
28802     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28803           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28804           /^X\(\/\/\)$/{ s//\1/; q; }
28805           /^X\(\/\).*/{ s//\1/; q; }
28806           s/.*/./; q'`/stamp-h$_am_stamp_count
28807 done
28808 _ACEOF
28809 cat >>$CONFIG_STATUS <<\_ACEOF
28810
28811 #
28812 # CONFIG_COMMANDS section.
28813 #
28814 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28815   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28816   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28817   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28818 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28819          X"$ac_dest" : 'X\(//\)[^/]' \| \
28820          X"$ac_dest" : 'X\(//\)$' \| \
28821          X"$ac_dest" : 'X\(/\)' \| \
28822          .     : '\(.\)' 2>/dev/null ||
28823 echo X"$ac_dest" |
28824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28825           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28826           /^X\(\/\/\)$/{ s//\1/; q; }
28827           /^X\(\/\).*/{ s//\1/; q; }
28828           s/.*/./; q'`
28829   { if $as_mkdir_p; then
28830     mkdir -p "$ac_dir"
28831   else
28832     as_dir="$ac_dir"
28833     as_dirs=
28834     while test ! -d "$as_dir"; do
28835       as_dirs="$as_dir $as_dirs"
28836       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28838          X"$as_dir" : 'X\(//\)[^/]' \| \
28839          X"$as_dir" : 'X\(//\)$' \| \
28840          X"$as_dir" : 'X\(/\)' \| \
28841          .     : '\(.\)' 2>/dev/null ||
28842 echo X"$as_dir" |
28843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28844           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28845           /^X\(\/\/\)$/{ s//\1/; q; }
28846           /^X\(\/\).*/{ s//\1/; q; }
28847           s/.*/./; q'`
28848     done
28849     test ! -n "$as_dirs" || mkdir $as_dirs
28850   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28851 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28852    { (exit 1); exit 1; }; }; }
28853
28854   ac_builddir=.
28855
28856 if test "$ac_dir" != .; then
28857   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28858   # A "../" for each directory in $ac_dir_suffix.
28859   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28860 else
28861   ac_dir_suffix= ac_top_builddir=
28862 fi
28863
28864 case $srcdir in
28865   .)  # No --srcdir option.  We are building in place.
28866     ac_srcdir=.
28867     if test -z "$ac_top_builddir"; then
28868        ac_top_srcdir=.
28869     else
28870        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28871     fi ;;
28872   [\\/]* | ?:[\\/]* )  # Absolute path.
28873     ac_srcdir=$srcdir$ac_dir_suffix;
28874     ac_top_srcdir=$srcdir ;;
28875   *) # Relative path.
28876     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28877     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28878 esac
28879
28880 # Do not use `cd foo && pwd` to compute absolute paths, because
28881 # the directories may not exist.
28882 case `pwd` in
28883 .) ac_abs_builddir="$ac_dir";;
28884 *)
28885   case "$ac_dir" in
28886   .) ac_abs_builddir=`pwd`;;
28887   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28888   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28889   esac;;
28890 esac
28891 case $ac_abs_builddir in
28892 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28893 *)
28894   case ${ac_top_builddir}. in
28895   .) ac_abs_top_builddir=$ac_abs_builddir;;
28896   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28897   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28898   esac;;
28899 esac
28900 case $ac_abs_builddir in
28901 .) ac_abs_srcdir=$ac_srcdir;;
28902 *)
28903   case $ac_srcdir in
28904   .) ac_abs_srcdir=$ac_abs_builddir;;
28905   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28906   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28907   esac;;
28908 esac
28909 case $ac_abs_builddir in
28910 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28911 *)
28912   case $ac_top_srcdir in
28913   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28914   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28915   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28916   esac;;
28917 esac
28918
28919
28920   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28921 echo "$as_me: executing $ac_dest commands" >&6;}
28922   case $ac_dest in
28923     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28924   # Strip MF so we end up with the name of the file.
28925   mf=`echo "$mf" | sed -e 's/:.*$//'`
28926   # Check whether this is an Automake generated Makefile or not.
28927   # We used to match only the files named `Makefile.in', but
28928   # some people rename them; so instead we look at the file content.
28929   # Grep'ing the first line is not enough: some people post-process
28930   # each Makefile.in and add a new line on top of each file to say so.
28931   # So let's grep whole file.
28932   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28933     dirpart=`(dirname "$mf") 2>/dev/null ||
28934 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28935          X"$mf" : 'X\(//\)[^/]' \| \
28936          X"$mf" : 'X\(//\)$' \| \
28937          X"$mf" : 'X\(/\)' \| \
28938          .     : '\(.\)' 2>/dev/null ||
28939 echo X"$mf" |
28940     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28941           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28942           /^X\(\/\/\)$/{ s//\1/; q; }
28943           /^X\(\/\).*/{ s//\1/; q; }
28944           s/.*/./; q'`
28945   else
28946     continue
28947   fi
28948   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
28949   # Extract the definition of DEP_FILES from the Makefile without
28950   # running `make'.
28951   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28952   test -z "$DEPDIR" && continue
28953   # When using ansi2knr, U may be empty or an underscore; expand it
28954   U=`sed -n 's/^U = //p' < "$mf"`
28955   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
28956   # We invoke sed twice because it is the simplest approach to
28957   # changing $(DEPDIR) to its actual value in the expansion.
28958   for file in `sed -n '
28959     /^DEP_FILES = .*\\\\$/ {
28960       s/^DEP_FILES = //
28961       :loop
28962         s/\\\\$//
28963         p
28964         n
28965         /\\\\$/ b loop
28966       p
28967     }
28968     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
28969        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28970     # Make sure the directory exists.
28971     test -f "$dirpart/$file" && continue
28972     fdir=`(dirname "$file") 2>/dev/null ||
28973 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28974          X"$file" : 'X\(//\)[^/]' \| \
28975          X"$file" : 'X\(//\)$' \| \
28976          X"$file" : 'X\(/\)' \| \
28977          .     : '\(.\)' 2>/dev/null ||
28978 echo X"$file" |
28979     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28980           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28981           /^X\(\/\/\)$/{ s//\1/; q; }
28982           /^X\(\/\).*/{ s//\1/; q; }
28983           s/.*/./; q'`
28984     { if $as_mkdir_p; then
28985     mkdir -p $dirpart/$fdir
28986   else
28987     as_dir=$dirpart/$fdir
28988     as_dirs=
28989     while test ! -d "$as_dir"; do
28990       as_dirs="$as_dir $as_dirs"
28991       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28993          X"$as_dir" : 'X\(//\)[^/]' \| \
28994          X"$as_dir" : 'X\(//\)$' \| \
28995          X"$as_dir" : 'X\(/\)' \| \
28996          .     : '\(.\)' 2>/dev/null ||
28997 echo X"$as_dir" |
28998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28999           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29000           /^X\(\/\/\)$/{ s//\1/; q; }
29001           /^X\(\/\).*/{ s//\1/; q; }
29002           s/.*/./; q'`
29003     done
29004     test ! -n "$as_dirs" || mkdir $as_dirs
29005   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29006 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29007    { (exit 1); exit 1; }; }; }
29008
29009     # echo "creating $dirpart/$file"
29010     echo '# dummy' > "$dirpart/$file"
29011   done
29012 done
29013  ;;
29014   esac
29015 done
29016 _ACEOF
29017
29018 cat >>$CONFIG_STATUS <<\_ACEOF
29019
29020 { (exit 0); exit 0; }
29021 _ACEOF
29022 chmod +x $CONFIG_STATUS
29023 ac_clean_files=$ac_clean_files_save
29024
29025
29026 # configure is writing to config.log, and then calls config.status.
29027 # config.status does its own redirection, appending to config.log.
29028 # Unfortunately, on DOS this fails, as config.log is still kept open
29029 # by configure, so config.status won't be able to write to it; its
29030 # output is simply discarded.  So we exec the FD to /dev/null,
29031 # effectively closing config.log, so it can be properly (re)opened and
29032 # appended to by config.status.  When coming back to configure, we
29033 # need to make the FD available again.
29034 if test "$no_create" != yes; then
29035   ac_cs_success=:
29036   ac_config_status_args=
29037   test "$silent" = yes &&
29038     ac_config_status_args="$ac_config_status_args --quiet"
29039   exec 5>/dev/null
29040   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29041   exec 5>>config.log
29042   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29043   # would make configure fail if this is the last instruction.
29044   $ac_cs_success || { (exit 1); exit 1; }
29045 fi
29046
29047
29048 { echo "$as_me:$LINENO:
29049
29050 $PACKAGE_STRING
29051
29052 $FEATURES_TXT" >&5
29053 echo "$as_me:
29054
29055 $PACKAGE_STRING
29056
29057 $FEATURES_TXT" >&6;}