util-vserver-0.30.208
[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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='util-vserver'
425 PACKAGE_TARNAME='util-vserver'
426 PACKAGE_VERSION='0.30.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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os GPG_KEY CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ENSC_HAVE_CXX_COMPILER_TRUE ENSC_HAVE_CXX_COMPILER_FALSE ENSC_HAVE_C99_COMPILER_TRUE ENSC_HAVE_C99_COMPILER_FALSE ENSC_PATHPROG_SED CAT CHOWN CMP CP DIRNAME EGREP ENV GREP LN MKDIR MKFIFO MKTEMP MOUNT MV NICE PS RM RMDIR SED SH TAC TAR TOUCH TTY UMOUNT WC IP IPTABLES MODPROBE NAMEIF NOHUP RMMOD VCONFIG WGET 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.9"
1556 ac_aux_dir=
1557 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1558   if test -f $ac_dir/install-sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install-sh -c"
1561     break
1562   elif test -f $ac_dir/install.sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install.sh -c"
1565     break
1566   elif test -f $ac_dir/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 # Find a good install program.  We prefer a C program (faster),
1582 # so one script is as good as another.  But avoid the broken or
1583 # incompatible versions:
1584 # SysV /etc/install, /usr/sbin/install
1585 # SunOS /usr/etc/install
1586 # IRIX /sbin/install
1587 # AIX /bin/install
1588 # AmigaOS /C/install, which installs bootblocks on floppy discs
1589 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1590 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1591 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1592 # OS/2's system install, which has a completely different semantic
1593 # ./install, which can be erroneously created by make from ./install.sh.
1594 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1595 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1596 if test -z "$INSTALL"; then
1597 if test "${ac_cv_path_install+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1602 do
1603   IFS=$as_save_IFS
1604   test -z "$as_dir" && as_dir=.
1605   # Account for people who put trailing slashes in PATH elements.
1606 case $as_dir/ in
1607   ./ | .// | /cC/* | \
1608   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1609   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1610   /usr/ucb/* ) ;;
1611   *)
1612     # OSF1 and SCO ODT 3.0 have their own names for install.
1613     # Don't use installbsd from OSF since it installs stuff as root
1614     # by default.
1615     for ac_prog in ginstall scoinst install; do
1616       for ac_exec_ext in '' $ac_executable_extensions; do
1617         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1618           if test $ac_prog = install &&
1619             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1620             # AIX install.  It has an incompatible calling convention.
1621             :
1622           elif test $ac_prog = install &&
1623             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1624             # program-specific install script used by HP pwplus--don't use.
1625             :
1626           else
1627             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1628             break 3
1629           fi
1630         fi
1631       done
1632     done
1633     ;;
1634 esac
1635 done
1636
1637
1638 fi
1639   if test "${ac_cv_path_install+set}" = set; then
1640     INSTALL=$ac_cv_path_install
1641   else
1642     # As a last resort, use the slow shell script.  We don't cache a
1643     # path for INSTALL within a source directory, because that will
1644     # break other packages using the cache if that directory is
1645     # removed, or if the path is relative.
1646     INSTALL=$ac_install_sh
1647   fi
1648 fi
1649 echo "$as_me:$LINENO: result: $INSTALL" >&5
1650 echo "${ECHO_T}$INSTALL" >&6
1651
1652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1653 # It thinks the first close brace ends the variable substitution.
1654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1655
1656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1657
1658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1659
1660 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1661 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1662 # Just in case
1663 sleep 1
1664 echo timestamp > conftest.file
1665 # Do `set' in a subshell so we don't clobber the current shell's
1666 # arguments.  Must try -L first in case configure is actually a
1667 # symlink; some systems play weird games with the mod time of symlinks
1668 # (eg FreeBSD returns the mod time of the symlink's containing
1669 # directory).
1670 if (
1671    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1672    if test "$*" = "X"; then
1673       # -L didn't work.
1674       set X `ls -t $srcdir/configure conftest.file`
1675    fi
1676    rm -f conftest.file
1677    if test "$*" != "X $srcdir/configure conftest.file" \
1678       && test "$*" != "X conftest.file $srcdir/configure"; then
1679
1680       # If neither matched, then we have a broken ls.  This can happen
1681       # if, for instance, CONFIG_SHELL is bash and it inherits a
1682       # broken ls alias from the environment.  This has actually
1683       # happened.  Such a system could not be considered "sane".
1684       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1685 alias in your environment" >&5
1686 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1687 alias in your environment" >&2;}
1688    { (exit 1); exit 1; }; }
1689    fi
1690
1691    test "$2" = conftest.file
1692    )
1693 then
1694    # Ok.
1695    :
1696 else
1697    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1698 Check your system clock" >&5
1699 echo "$as_me: error: newly created file is older than distributed files!
1700 Check your system clock" >&2;}
1701    { (exit 1); exit 1; }; }
1702 fi
1703 echo "$as_me:$LINENO: result: yes" >&5
1704 echo "${ECHO_T}yes" >&6
1705 test "$program_prefix" != NONE &&
1706   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1707 # Use a double $ so make ignores it.
1708 test "$program_suffix" != NONE &&
1709   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1710 # Double any \ or $.  echo might interpret backslashes.
1711 # By default was `s,x,x', remove it if useless.
1712 cat <<\_ACEOF >conftest.sed
1713 s/[\\$]/&&/g;s/;s,x,x,$//
1714 _ACEOF
1715 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1716 rm conftest.sed
1717
1718 # expand $ac_aux_dir to an absolute path
1719 am_aux_dir=`cd $ac_aux_dir && pwd`
1720
1721 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1722 # Use eval to expand $SHELL
1723 if eval "$MISSING --run true"; then
1724   am_missing_run="$MISSING --run "
1725 else
1726   am_missing_run=
1727   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1728 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1729 fi
1730
1731 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1732   # We used to keeping the `.' as first argument, in order to
1733   # allow $(mkdir_p) to be used without argument.  As in
1734   #   $(mkdir_p) $(somedir)
1735   # where $(somedir) is conditionally defined.  However this is wrong
1736   # for two reasons:
1737   #  1. if the package is installed by a user who cannot write `.'
1738   #     make install will fail,
1739   #  2. the above comment should most certainly read
1740   #     $(mkdir_p) $(DESTDIR)$(somedir)
1741   #     so it does not work when $(somedir) is undefined and
1742   #     $(DESTDIR) is not.
1743   #  To support the latter case, we have to write
1744   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1745   #  so the `.' trick is pointless.
1746   mkdir_p='mkdir -p --'
1747 else
1748   # On NextStep and OpenStep, the `mkdir' command does not
1749   # recognize any option.  It will interpret all options as
1750   # directories to create, and then abort because `.' already
1751   # exists.
1752   for d in ./-p ./--version;
1753   do
1754     test -d $d && rmdir $d
1755   done
1756   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1757   if test -f "$ac_aux_dir/mkinstalldirs"; then
1758     mkdir_p='$(mkinstalldirs)'
1759   else
1760     mkdir_p='$(install_sh) -d'
1761   fi
1762 fi
1763
1764 for ac_prog in gawk mawk nawk awk
1765 do
1766   # Extract the first word of "$ac_prog", so it can be a program name with args.
1767 set dummy $ac_prog; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_AWK+set}" = set; then
1771   echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773   if test -n "$AWK"; then
1774   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1775 else
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1778 do
1779   IFS=$as_save_IFS
1780   test -z "$as_dir" && as_dir=.
1781   for ac_exec_ext in '' $ac_executable_extensions; do
1782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783     ac_cv_prog_AWK="$ac_prog"
1784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785     break 2
1786   fi
1787 done
1788 done
1789
1790 fi
1791 fi
1792 AWK=$ac_cv_prog_AWK
1793 if test -n "$AWK"; then
1794   echo "$as_me:$LINENO: result: $AWK" >&5
1795 echo "${ECHO_T}$AWK" >&6
1796 else
1797   echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1799 fi
1800
1801   test -n "$AWK" && break
1802 done
1803
1804 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1806 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1807 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1808   echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810   cat >conftest.make <<\_ACEOF
1811 all:
1812         @echo 'ac_maketemp="$(MAKE)"'
1813 _ACEOF
1814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1815 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1816 if test -n "$ac_maketemp"; then
1817   eval ac_cv_prog_make_${ac_make}_set=yes
1818 else
1819   eval ac_cv_prog_make_${ac_make}_set=no
1820 fi
1821 rm -f conftest.make
1822 fi
1823 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1824   echo "$as_me:$LINENO: result: yes" >&5
1825 echo "${ECHO_T}yes" >&6
1826   SET_MAKE=
1827 else
1828   echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1830   SET_MAKE="MAKE=${MAKE-make}"
1831 fi
1832
1833 rm -rf .tst 2>/dev/null
1834 mkdir .tst 2>/dev/null
1835 if test -d .tst; then
1836   am__leading_dot=.
1837 else
1838   am__leading_dot=_
1839 fi
1840 rmdir .tst 2>/dev/null
1841
1842 # test to see if srcdir already configured
1843 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1844    test -f $srcdir/config.status; then
1845   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1846 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1847    { (exit 1); exit 1; }; }
1848 fi
1849
1850 # test whether we have cygpath
1851 if test -z "$CYGPATH_W"; then
1852   if (cygpath --version) >/dev/null 2>/dev/null; then
1853     CYGPATH_W='cygpath -w'
1854   else
1855     CYGPATH_W=echo
1856   fi
1857 fi
1858
1859
1860 # Define the identity of the package.
1861  PACKAGE='util-vserver'
1862  VERSION='0.30.208'
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE "$PACKAGE"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define VERSION "$VERSION"
1872 _ACEOF
1873
1874 # Some tools Automake needs.
1875
1876 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1877
1878
1879 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1880
1881
1882 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1883
1884
1885 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1886
1887
1888 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1889
1890 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1891
1892 # Installed binaries are usually stripped using `strip' when the user
1893 # run `make install-strip'.  However `strip' might not be the right
1894 # tool to use in cross-compilation environments, therefore Automake
1895 # will honor the `STRIP' environment variable to overrule this program.
1896 if test "$cross_compiling" != no; then
1897   if test -n "$ac_tool_prefix"; then
1898   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1899 set dummy ${ac_tool_prefix}strip; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_STRIP+set}" = set; then
1903   echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905   if test -n "$STRIP"; then
1906   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911   IFS=$as_save_IFS
1912   test -z "$as_dir" && as_dir=.
1913   for ac_exec_ext in '' $ac_executable_extensions; do
1914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917     break 2
1918   fi
1919 done
1920 done
1921
1922 fi
1923 fi
1924 STRIP=$ac_cv_prog_STRIP
1925 if test -n "$STRIP"; then
1926   echo "$as_me:$LINENO: result: $STRIP" >&5
1927 echo "${ECHO_T}$STRIP" >&6
1928 else
1929   echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1931 fi
1932
1933 fi
1934 if test -z "$ac_cv_prog_STRIP"; then
1935   ac_ct_STRIP=$STRIP
1936   # Extract the first word of "strip", so it can be a program name with args.
1937 set dummy strip; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$ac_ct_STRIP"; then
1944   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_ac_ct_STRIP="strip"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1961 fi
1962 fi
1963 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1964 if test -n "$ac_ct_STRIP"; then
1965   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1966 echo "${ECHO_T}$ac_ct_STRIP" >&6
1967 else
1968   echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1970 fi
1971
1972   STRIP=$ac_ct_STRIP
1973 else
1974   STRIP="$ac_cv_prog_STRIP"
1975 fi
1976
1977 fi
1978 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1979
1980 # We need awk for the "check" target.  The system "awk" is bad on
1981 # some platforms.
1982 # Always define AMTAR for backward compatibility.
1983
1984 AMTAR=${AMTAR-"${am_missing_run}tar"}
1985
1986 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1987
1988
1989
1990
1991
1992 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1993 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1994     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1995 if test "${enable_maintainer_mode+set}" = set; then
1996   enableval="$enable_maintainer_mode"
1997   USE_MAINTAINER_MODE=$enableval
1998 else
1999   USE_MAINTAINER_MODE=no
2000 fi;
2001   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2002 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2003
2004
2005 if test $USE_MAINTAINER_MODE = yes; then
2006   MAINTAINER_MODE_TRUE=
2007   MAINTAINER_MODE_FALSE='#'
2008 else
2009   MAINTAINER_MODE_TRUE='#'
2010   MAINTAINER_MODE_FALSE=
2011 fi
2012
2013   MAINT=$MAINTAINER_MODE_TRUE
2014
2015
2016
2017 # Make sure we can run config.sub.
2018 $ac_config_sub sun4 >/dev/null 2>&1 ||
2019   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2020 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2021    { (exit 1); exit 1; }; }
2022
2023 echo "$as_me:$LINENO: checking build system type" >&5
2024 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2025 if test "${ac_cv_build+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   ac_cv_build_alias=$build_alias
2029 test -z "$ac_cv_build_alias" &&
2030   ac_cv_build_alias=`$ac_config_guess`
2031 test -z "$ac_cv_build_alias" &&
2032   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034    { (exit 1); exit 1; }; }
2035 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2036   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2037 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2038    { (exit 1); exit 1; }; }
2039
2040 fi
2041 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042 echo "${ECHO_T}$ac_cv_build" >&6
2043 build=$ac_cv_build
2044 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2045 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2046 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2047
2048
2049 echo "$as_me:$LINENO: checking host system type" >&5
2050 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2051 if test "${ac_cv_host+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   ac_cv_host_alias=$host_alias
2055 test -z "$ac_cv_host_alias" &&
2056   ac_cv_host_alias=$ac_cv_build_alias
2057 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2058   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2059 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2060    { (exit 1); exit 1; }; }
2061
2062 fi
2063 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2064 echo "${ECHO_T}$ac_cv_host" >&6
2065 host=$ac_cv_host
2066 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2067 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2068 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2069
2070
2071
2072 GPG_KEY="0xFFD316AC53ACA43A!"
2073
2074
2075 # Checks for programs.
2076 ac_ext=cc
2077 ac_cpp='$CXXCPP $CPPFLAGS'
2078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2081 if test -n "$ac_tool_prefix"; then
2082   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2083   do
2084     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_CXX+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   if test -n "$CXX"; then
2092   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099   for ac_exec_ext in '' $ac_executable_extensions; do
2100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103     break 2
2104   fi
2105 done
2106 done
2107
2108 fi
2109 fi
2110 CXX=$ac_cv_prog_CXX
2111 if test -n "$CXX"; then
2112   echo "$as_me:$LINENO: result: $CXX" >&5
2113 echo "${ECHO_T}$CXX" >&6
2114 else
2115   echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2117 fi
2118
2119     test -n "$CXX" && break
2120   done
2121 fi
2122 if test -z "$CXX"; then
2123   ac_ct_CXX=$CXX
2124   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2125 do
2126   # Extract the first word of "$ac_prog", so it can be a program name with args.
2127 set dummy $ac_prog; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test -n "$ac_ct_CXX"; then
2134   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143     ac_cv_prog_ac_ct_CXX="$ac_prog"
2144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145     break 2
2146   fi
2147 done
2148 done
2149
2150 fi
2151 fi
2152 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2153 if test -n "$ac_ct_CXX"; then
2154   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2155 echo "${ECHO_T}$ac_ct_CXX" >&6
2156 else
2157   echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2159 fi
2160
2161   test -n "$ac_ct_CXX" && break
2162 done
2163 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2164
2165   CXX=$ac_ct_CXX
2166 fi
2167
2168
2169 # Provide some information about the compiler.
2170 echo "$as_me:$LINENO:" \
2171      "checking for C++ compiler version" >&5
2172 ac_compiler=`set X $ac_compile; echo $2`
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2174   (eval $ac_compiler --version </dev/null >&5) 2>&5
2175   ac_status=$?
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }
2178 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2179   (eval $ac_compiler -v </dev/null >&5) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }
2183 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2184   (eval $ac_compiler -V </dev/null >&5) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }
2188
2189 cat >conftest.$ac_ext <<_ACEOF
2190 /* confdefs.h.  */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h.  */
2195
2196 int
2197 main ()
2198 {
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 ac_clean_files_save=$ac_clean_files
2205 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2206 # Try to create an executable without -o first, disregard a.out.
2207 # It will help us diagnose broken compilers, and finding out an intuition
2208 # of exeext.
2209 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2210 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2211 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2212 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2213   (eval $ac_link_default) 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; then
2217   # Find the output, starting from the most likely.  This scheme is
2218 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2219 # resort.
2220
2221 # Be careful to initialize this variable, since it used to be cached.
2222 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2223 ac_cv_exeext=
2224 # b.out is created by i960 compilers.
2225 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2226 do
2227   test -f "$ac_file" || continue
2228   case $ac_file in
2229     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2230         ;;
2231     conftest.$ac_ext )
2232         # This is the source file.
2233         ;;
2234     [ab].out )
2235         # We found the default executable, but exeext='' is most
2236         # certainly right.
2237         break;;
2238     *.* )
2239         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2240         # FIXME: I believe we export ac_cv_exeext for Libtool,
2241         # but it would be cool to find out if it's true.  Does anybody
2242         # maintain Libtool? --akim.
2243         export ac_cv_exeext
2244         break;;
2245     * )
2246         break;;
2247   esac
2248 done
2249 else
2250   echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C++ compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257    { (exit 77); exit 77; }; }
2258 fi
2259
2260 ac_exeext=$ac_cv_exeext
2261 echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6
2263
2264 # Check the compiler produces executables we can run.  If not, either
2265 # the compiler is broken, or we cross compile.
2266 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2267 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269 # If not cross compiling, check that we can run a simple program.
2270 if test "$cross_compiling" != yes; then
2271   if { ac_try='./$ac_file'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277     cross_compiling=no
2278   else
2279     if test "$cross_compiling" = maybe; then
2280         cross_compiling=yes
2281     else
2282         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2283 If you meant to cross compile, use \`--host'.
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot run C++ compiled programs.
2286 If you meant to cross compile, use \`--host'.
2287 See \`config.log' for more details." >&2;}
2288    { (exit 1); exit 1; }; }
2289     fi
2290   fi
2291 fi
2292 echo "$as_me:$LINENO: result: yes" >&5
2293 echo "${ECHO_T}yes" >&6
2294
2295 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2296 ac_clean_files=$ac_clean_files_save
2297 # Check the compiler produces executables we can run.  If not, either
2298 # the compiler is broken, or we cross compile.
2299 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2300 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2301 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2302 echo "${ECHO_T}$cross_compiling" >&6
2303
2304 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2305 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2307   (eval $ac_link) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; then
2311   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2312 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2313 # work properly (i.e., refer to `conftest.exe'), while it won't with
2314 # `rm'.
2315 for ac_file in conftest.exe conftest conftest.*; do
2316   test -f "$ac_file" || continue
2317   case $ac_file in
2318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2319     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2320           export ac_cv_exeext
2321           break;;
2322     * ) break;;
2323   esac
2324 done
2325 else
2326   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&2;}
2330    { (exit 1); exit 1; }; }
2331 fi
2332
2333 rm -f conftest$ac_cv_exeext
2334 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2335 echo "${ECHO_T}$ac_cv_exeext" >&6
2336
2337 rm -f conftest.$ac_ext
2338 EXEEXT=$ac_cv_exeext
2339 ac_exeext=$EXEEXT
2340 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2341 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2342 if test "${ac_cv_objext+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h.  */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h.  */
2351
2352 int
2353 main ()
2354 {
2355
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 rm -f conftest.o conftest.obj
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362   (eval $ac_compile) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; then
2366   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2367   case $ac_file in
2368     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2369     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2370        break;;
2371   esac
2372 done
2373 else
2374   echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2378 See \`config.log' for more details." >&5
2379 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&2;}
2381    { (exit 1); exit 1; }; }
2382 fi
2383
2384 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2385 fi
2386 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2387 echo "${ECHO_T}$ac_cv_objext" >&6
2388 OBJEXT=$ac_cv_objext
2389 ac_objext=$OBJEXT
2390 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2391 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2392 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h.  */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h.  */
2401
2402 int
2403 main ()
2404 {
2405 #ifndef __GNUC__
2406        choke me
2407 #endif
2408
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415   (eval $ac_compile) 2>conftest.er1
2416   ac_status=$?
2417   grep -v '^ *+' conftest.er1 >conftest.err
2418   rm -f conftest.er1
2419   cat conftest.err >&5
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); } &&
2422          { ac_try='test -z "$ac_cxx_werror_flag"
2423                          || test ! -s conftest.err'
2424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425   (eval $ac_try) 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; }; then
2435   ac_compiler_gnu=yes
2436 else
2437   echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440 ac_compiler_gnu=no
2441 fi
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2444
2445 fi
2446 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2447 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2448 GXX=`test $ac_compiler_gnu = yes && echo yes`
2449 ac_test_CXXFLAGS=${CXXFLAGS+set}
2450 ac_save_CXXFLAGS=$CXXFLAGS
2451 CXXFLAGS="-g"
2452 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2453 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2454 if test "${ac_cv_prog_cxx_g+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463
2464 int
2465 main ()
2466 {
2467
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474   (eval $ac_compile) 2>conftest.er1
2475   ac_status=$?
2476   grep -v '^ *+' conftest.er1 >conftest.err
2477   rm -f conftest.er1
2478   cat conftest.err >&5
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); } &&
2481          { ac_try='test -z "$ac_cxx_werror_flag"
2482                          || test ! -s conftest.err'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; } &&
2488          { ac_try='test -s conftest.$ac_objext'
2489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490   (eval $ac_try) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; }; then
2494   ac_cv_prog_cxx_g=yes
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 ac_cv_prog_cxx_g=no
2500 fi
2501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502 fi
2503 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2504 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2505 if test "$ac_test_CXXFLAGS" = set; then
2506   CXXFLAGS=$ac_save_CXXFLAGS
2507 elif test $ac_cv_prog_cxx_g = yes; then
2508   if test "$GXX" = yes; then
2509     CXXFLAGS="-g -O2"
2510   else
2511     CXXFLAGS="-g"
2512   fi
2513 else
2514   if test "$GXX" = yes; then
2515     CXXFLAGS="-O2"
2516   else
2517     CXXFLAGS=
2518   fi
2519 fi
2520 for ac_declaration in \
2521    '' \
2522    'extern "C" void std::exit (int) throw (); using std::exit;' \
2523    'extern "C" void std::exit (int); using std::exit;' \
2524    'extern "C" void exit (int) throw ();' \
2525    'extern "C" void exit (int);' \
2526    'void exit (int);'
2527 do
2528   cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534 $ac_declaration
2535 #include <stdlib.h>
2536 int
2537 main ()
2538 {
2539 exit (42);
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546   (eval $ac_compile) 2>conftest.er1
2547   ac_status=$?
2548   grep -v '^ *+' conftest.er1 >conftest.err
2549   rm -f conftest.er1
2550   cat conftest.err >&5
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -z "$ac_cxx_werror_flag"
2554                          || test ! -s conftest.err'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   :
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 continue
2572 fi
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574   cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580 $ac_declaration
2581 int
2582 main ()
2583 {
2584 exit (42);
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591   (eval $ac_compile) 2>conftest.er1
2592   ac_status=$?
2593   grep -v '^ *+' conftest.er1 >conftest.err
2594   rm -f conftest.er1
2595   cat conftest.err >&5
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } &&
2598          { ac_try='test -z "$ac_cxx_werror_flag"
2599                          || test ! -s conftest.err'
2600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601   (eval $ac_try) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; } &&
2605          { ac_try='test -s conftest.$ac_objext'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; }; then
2611   break
2612 else
2613   echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 fi
2617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2618 done
2619 rm -f conftest*
2620 if test -n "$ac_declaration"; then
2621   echo '#ifdef __cplusplus' >>confdefs.h
2622   echo $ac_declaration      >>confdefs.h
2623   echo '#endif'             >>confdefs.h
2624 fi
2625
2626 ac_ext=c
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 DEPDIR="${am__leading_dot}deps"
2632
2633           ac_config_commands="$ac_config_commands depfiles"
2634
2635
2636 am_make=${MAKE-make}
2637 cat > confinc << 'END'
2638 am__doit:
2639         @echo done
2640 .PHONY: am__doit
2641 END
2642 # If we don't find an include directive, just comment out the code.
2643 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2644 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2645 am__include="#"
2646 am__quote=
2647 _am_result=none
2648 # First try GNU make style include.
2649 echo "include confinc" > confmf
2650 # We grep out `Entering directory' and `Leaving directory'
2651 # messages which can occur if `w' ends up in MAKEFLAGS.
2652 # In particular we don't look at `^make:' because GNU make might
2653 # be invoked under some other name (usually "gmake"), in which
2654 # case it prints its new name instead of `make'.
2655 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2656    am__include=include
2657    am__quote=
2658    _am_result=GNU
2659 fi
2660 # Now try BSD make style include.
2661 if test "$am__include" = "#"; then
2662    echo '.include "confinc"' > confmf
2663    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2664       am__include=.include
2665       am__quote="\""
2666       _am_result=BSD
2667    fi
2668 fi
2669
2670
2671 echo "$as_me:$LINENO: result: $_am_result" >&5
2672 echo "${ECHO_T}$_am_result" >&6
2673 rm -f confinc confmf
2674
2675 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2676 if test "${enable_dependency_tracking+set}" = set; then
2677   enableval="$enable_dependency_tracking"
2678
2679 fi;
2680 if test "x$enable_dependency_tracking" != xno; then
2681   am_depcomp="$ac_aux_dir/depcomp"
2682   AMDEPBACKSLASH='\'
2683 fi
2684
2685
2686 if test "x$enable_dependency_tracking" != xno; then
2687   AMDEP_TRUE=
2688   AMDEP_FALSE='#'
2689 else
2690   AMDEP_TRUE='#'
2691   AMDEP_FALSE=
2692 fi
2693
2694
2695
2696
2697 depcc="$CXX"  am_compiler_list=
2698
2699 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2700 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2701 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2702   echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2705   # We make a subdir and do the tests there.  Otherwise we can end up
2706   # making bogus files that we don't know about and never remove.  For
2707   # instance it was reported that on HP-UX the gcc test will end up
2708   # making a dummy file named `D' -- because `-MD' means `put the output
2709   # in D'.
2710   mkdir conftest.dir
2711   # Copy depcomp to subdir because otherwise we won't find it if we're
2712   # using a relative directory.
2713   cp "$am_depcomp" conftest.dir
2714   cd conftest.dir
2715   # We will build objects and dependencies in a subdirectory because
2716   # it helps to detect inapplicable dependency modes.  For instance
2717   # both Tru64's cc and ICC support -MD to output dependencies as a
2718   # side effect of compilation, but ICC will put the dependencies in
2719   # the current directory while Tru64 will put them in the object
2720   # directory.
2721   mkdir sub
2722
2723   am_cv_CXX_dependencies_compiler_type=none
2724   if test "$am_compiler_list" = ""; then
2725      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2726   fi
2727   for depmode in $am_compiler_list; do
2728     # Setup a source with many dependencies, because some compilers
2729     # like to wrap large dependency lists on column 80 (with \), and
2730     # we should not choose a depcomp mode which is confused by this.
2731     #
2732     # We need to recreate these files for each test, as the compiler may
2733     # overwrite some of them when testing with obscure command lines.
2734     # This happens at least with the AIX C compiler.
2735     : > sub/conftest.c
2736     for i in 1 2 3 4 5 6; do
2737       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2738       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2739       # Solaris 8's {/usr,}/bin/sh.
2740       touch sub/conftst$i.h
2741     done
2742     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2743
2744     case $depmode in
2745     nosideeffect)
2746       # after this tag, mechanisms are not by side-effect, so they'll
2747       # only be used when explicitly requested
2748       if test "x$enable_dependency_tracking" = xyes; then
2749         continue
2750       else
2751         break
2752       fi
2753       ;;
2754     none) break ;;
2755     esac
2756     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2757     # mode.  It turns out that the SunPro C++ compiler does not properly
2758     # handle `-M -o', and we need to detect this.
2759     if depmode=$depmode \
2760        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2761        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2762        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2763          >/dev/null 2>conftest.err &&
2764        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2765        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2766        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2767       # icc doesn't choke on unknown options, it will just issue warnings
2768       # or remarks (even with -Werror).  So we grep stderr for any message
2769       # that says an option was ignored or not supported.
2770       # When given -MP, icc 7.0 and 7.1 complain thusly:
2771       #   icc: Command line warning: ignoring option '-M'; no argument required
2772       # The diagnosis changed in icc 8.0:
2773       #   icc: Command line remark: option '-MP' not supported
2774       if (grep 'ignoring option' conftest.err ||
2775           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2776         am_cv_CXX_dependencies_compiler_type=$depmode
2777         break
2778       fi
2779     fi
2780   done
2781
2782   cd ..
2783   rm -rf conftest.dir
2784 else
2785   am_cv_CXX_dependencies_compiler_type=none
2786 fi
2787
2788 fi
2789 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2790 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2791 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2792
2793
2794
2795 if
2796   test "x$enable_dependency_tracking" != xno \
2797   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2798   am__fastdepCXX_TRUE=
2799   am__fastdepCXX_FALSE='#'
2800 else
2801   am__fastdepCXX_TRUE='#'
2802   am__fastdepCXX_FALSE=
2803 fi
2804
2805
2806 ac_ext=c
2807 ac_cpp='$CPP $CPPFLAGS'
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811 if test -n "$ac_tool_prefix"; then
2812   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_CC+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819   if test -n "$CC"; then
2820   ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827   for ac_exec_ext in '' $ac_executable_extensions; do
2828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831     break 2
2832   fi
2833 done
2834 done
2835
2836 fi
2837 fi
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840   echo "$as_me:$LINENO: result: $CC" >&5
2841 echo "${ECHO_T}$CC" >&6
2842 else
2843   echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2845 fi
2846
2847 fi
2848 if test -z "$ac_cv_prog_CC"; then
2849   ac_ct_CC=$CC
2850   # Extract the first word of "gcc", so it can be a program name with args.
2851 set dummy gcc; ac_word=$2
2852 echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   if test -n "$ac_ct_CC"; then
2858   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865   for ac_exec_ext in '' $ac_executable_extensions; do
2866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867     ac_cv_prog_ac_ct_CC="gcc"
2868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872 done
2873
2874 fi
2875 fi
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6
2880 else
2881   echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2883 fi
2884
2885   CC=$ac_ct_CC
2886 else
2887   CC="$ac_cv_prog_CC"
2888 fi
2889
2890 if test -z "$CC"; then
2891   if test -n "$ac_tool_prefix"; then
2892   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}cc; ac_word=$2
2894 echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899   if test -n "$CC"; then
2900   ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907   for ac_exec_ext in '' $ac_executable_extensions; do
2908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909     ac_cv_prog_CC="${ac_tool_prefix}cc"
2910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914 done
2915
2916 fi
2917 fi
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920   echo "$as_me:$LINENO: result: $CC" >&5
2921 echo "${ECHO_T}$CC" >&6
2922 else
2923   echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2925 fi
2926
2927 fi
2928 if test -z "$ac_cv_prog_CC"; then
2929   ac_ct_CC=$CC
2930   # Extract the first word of "cc", so it can be a program name with args.
2931 set dummy cc; ac_word=$2
2932 echo "$as_me:$LINENO: checking for $ac_word" >&5
2933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2935   echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937   if test -n "$ac_ct_CC"; then
2938   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943   IFS=$as_save_IFS
2944   test -z "$as_dir" && as_dir=.
2945   for ac_exec_ext in '' $ac_executable_extensions; do
2946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947     ac_cv_prog_ac_ct_CC="cc"
2948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949     break 2
2950   fi
2951 done
2952 done
2953
2954 fi
2955 fi
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2959 echo "${ECHO_T}$ac_ct_CC" >&6
2960 else
2961   echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2963 fi
2964
2965   CC=$ac_ct_CC
2966 else
2967   CC="$ac_cv_prog_CC"
2968 fi
2969
2970 fi
2971 if test -z "$CC"; then
2972   # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_CC+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   if test -n "$CC"; then
2980   ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982   ac_prog_rejected=no
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988   for ac_exec_ext in '' $ac_executable_extensions; do
2989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991        ac_prog_rejected=yes
2992        continue
2993      fi
2994     ac_cv_prog_CC="cc"
2995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999 done
3000
3001 if test $ac_prog_rejected = yes; then
3002   # We found a bogon in the path, so make sure we never use it.
3003   set dummy $ac_cv_prog_CC
3004   shift
3005   if test $# != 0; then
3006     # We chose a different compiler from the bogus one.
3007     # However, it has the same basename, so the bogon will be chosen
3008     # first if we set CC to just the basename; use the full file name.
3009     shift
3010     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3011   fi
3012 fi
3013 fi
3014 fi
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017   echo "$as_me:$LINENO: result: $CC" >&5
3018 echo "${ECHO_T}$CC" >&6
3019 else
3020   echo "$as_me:$LINENO: result: no" >&5
3021 echo "${ECHO_T}no" >&6
3022 fi
3023
3024 fi
3025 if test -z "$CC"; then
3026   if test -n "$ac_tool_prefix"; then
3027   for ac_prog in cl
3028   do
3029     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3033 if test "${ac_cv_prog_CC+set}" = set; then
3034   echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036   if test -n "$CC"; then
3037   ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042   IFS=$as_save_IFS
3043   test -z "$as_dir" && as_dir=.
3044   for ac_exec_ext in '' $ac_executable_extensions; do
3045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048     break 2
3049   fi
3050 done
3051 done
3052
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057   echo "$as_me:$LINENO: result: $CC" >&5
3058 echo "${ECHO_T}$CC" >&6
3059 else
3060   echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6
3062 fi
3063
3064     test -n "$CC" && break
3065   done
3066 fi
3067 if test -z "$CC"; then
3068   ac_ct_CC=$CC
3069   for ac_prog in cl
3070 do
3071   # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3076   echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078   if test -n "$ac_ct_CC"; then
3079   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086   for ac_exec_ext in '' $ac_executable_extensions; do
3087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088     ac_cv_prog_ac_ct_CC="$ac_prog"
3089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093 done
3094
3095 fi
3096 fi
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100 echo "${ECHO_T}$ac_ct_CC" >&6
3101 else
3102   echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3104 fi
3105
3106   test -n "$ac_ct_CC" && break
3107 done
3108
3109   CC=$ac_ct_CC
3110 fi
3111
3112 fi
3113
3114
3115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3116 See \`config.log' for more details." >&5
3117 echo "$as_me: error: no acceptable C compiler found in \$PATH
3118 See \`config.log' for more details." >&2;}
3119    { (exit 1); exit 1; }; }
3120
3121 # Provide some information about the compiler.
3122 echo "$as_me:$LINENO:" \
3123      "checking for C compiler version" >&5
3124 ac_compiler=`set X $ac_compile; echo $2`
3125 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3126   (eval $ac_compiler --version </dev/null >&5) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }
3130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3131   (eval $ac_compiler -v </dev/null >&5) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }
3135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3136   (eval $ac_compiler -V </dev/null >&5) 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }
3140
3141 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156 #ifndef __GNUC__
3157        choke me
3158 #endif
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166   (eval $ac_compile) 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } &&
3173          { ac_try='test -z "$ac_c_werror_flag"
3174                          || test ! -s conftest.err'
3175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176   (eval $ac_try) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; } &&
3180          { ac_try='test -s conftest.$ac_objext'
3181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182   (eval $ac_try) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; }; then
3186   ac_compiler_gnu=yes
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 ac_compiler_gnu=no
3192 fi
3193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3195
3196 fi
3197 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3198 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3199 GCC=`test $ac_compiler_gnu = yes && echo yes`
3200 ac_test_CFLAGS=${CFLAGS+set}
3201 ac_save_CFLAGS=$CFLAGS
3202 CFLAGS="-g"
3203 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3204 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3205 if test "${ac_cv_prog_cc_g+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225   (eval $ac_compile) 2>conftest.er1
3226   ac_status=$?
3227   grep -v '^ *+' conftest.er1 >conftest.err
3228   rm -f conftest.er1
3229   cat conftest.err >&5
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } &&
3232          { ac_try='test -z "$ac_c_werror_flag"
3233                          || test ! -s conftest.err'
3234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235   (eval $ac_try) 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; } &&
3239          { ac_try='test -s conftest.$ac_objext'
3240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241   (eval $ac_try) 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; }; then
3245   ac_cv_prog_cc_g=yes
3246 else
3247   echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250 ac_cv_prog_cc_g=no
3251 fi
3252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3253 fi
3254 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3255 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3256 if test "$ac_test_CFLAGS" = set; then
3257   CFLAGS=$ac_save_CFLAGS
3258 elif test $ac_cv_prog_cc_g = yes; then
3259   if test "$GCC" = yes; then
3260     CFLAGS="-g -O2"
3261   else
3262     CFLAGS="-g"
3263   fi
3264 else
3265   if test "$GCC" = yes; then
3266     CFLAGS="-O2"
3267   else
3268     CFLAGS=
3269   fi
3270 fi
3271 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3272 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3273 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   ac_cv_prog_cc_stdc=no
3277 ac_save_CC=$CC
3278 cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #include <stdarg.h>
3285 #include <stdio.h>
3286 #include <sys/types.h>
3287 #include <sys/stat.h>
3288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3289 struct buf { int x; };
3290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3291 static char *e (p, i)
3292      char **p;
3293      int i;
3294 {
3295   return p[i];
3296 }
3297 static char *f (char * (*g) (char **, int), char **p, ...)
3298 {
3299   char *s;
3300   va_list v;
3301   va_start (v,p);
3302   s = g (p, va_arg (v,int));
3303   va_end (v);
3304   return s;
3305 }
3306
3307 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3308    function prototypes and stuff, but not '\xHH' hex character constants.
3309    These don't provoke an error unfortunately, instead are silently treated
3310    as 'x'.  The following induces an error, until -std1 is added to get
3311    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3312    array size at least.  It's necessary to write '\x00'==0 to get something
3313    that's true only with -std1.  */
3314 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3315
3316 int test (int i, double x);
3317 struct s1 {int (*f) (int a);};
3318 struct s2 {int (*f) (double a);};
3319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3320 int argc;
3321 char **argv;
3322 int
3323 main ()
3324 {
3325 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 # Don't try gcc -ansi; that turns off useful extensions and
3331 # breaks some systems' header files.
3332 # AIX                   -qlanglvl=ansi
3333 # Ultrix and OSF/1      -std1
3334 # HP-UX 10.20 and later -Ae
3335 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3336 # SVR4                  -Xc -D__EXTENSIONS__
3337 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3338 do
3339   CC="$ac_save_CC $ac_arg"
3340   rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342   (eval $ac_compile) 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } &&
3349          { ac_try='test -z "$ac_c_werror_flag"
3350                          || test ! -s conftest.err'
3351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352   (eval $ac_try) 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); }; } &&
3356          { ac_try='test -s conftest.$ac_objext'
3357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358   (eval $ac_try) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; }; then
3362   ac_cv_prog_cc_stdc=$ac_arg
3363 break
3364 else
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 fi
3369 rm -f conftest.err conftest.$ac_objext
3370 done
3371 rm -f conftest.$ac_ext conftest.$ac_objext
3372 CC=$ac_save_CC
3373
3374 fi
3375
3376 case "x$ac_cv_prog_cc_stdc" in
3377   x|xno)
3378     echo "$as_me:$LINENO: result: none needed" >&5
3379 echo "${ECHO_T}none needed" >&6 ;;
3380   *)
3381     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3383     CC="$CC $ac_cv_prog_cc_stdc" ;;
3384 esac
3385
3386 # Some people use a C++ compiler to compile C.  Since we use `exit',
3387 # in C++ we need to declare it.  In case someone uses the same compiler
3388 # for both compiling C and C++ we need to have the C++ compiler decide
3389 # the declaration of exit, since it's the most demanding environment.
3390 cat >conftest.$ac_ext <<_ACEOF
3391 #ifndef __cplusplus
3392   choke me
3393 #endif
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397   (eval $ac_compile) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } &&
3404          { ac_try='test -z "$ac_c_werror_flag"
3405                          || test ! -s conftest.err'
3406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407   (eval $ac_try) 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }; } &&
3411          { ac_try='test -s conftest.$ac_objext'
3412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413   (eval $ac_try) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }; }; then
3417   for ac_declaration in \
3418    '' \
3419    'extern "C" void std::exit (int) throw (); using std::exit;' \
3420    'extern "C" void std::exit (int); using std::exit;' \
3421    'extern "C" void exit (int) throw ();' \
3422    'extern "C" void exit (int);' \
3423    'void exit (int);'
3424 do
3425   cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h.  */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h.  */
3431 $ac_declaration
3432 #include <stdlib.h>
3433 int
3434 main ()
3435 {
3436 exit (42);
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443   (eval $ac_compile) 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } &&
3450          { ac_try='test -z "$ac_c_werror_flag"
3451                          || test ! -s conftest.err'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; } &&
3457          { ac_try='test -s conftest.$ac_objext'
3458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459   (eval $ac_try) 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }; }; then
3463   :
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 continue
3469 fi
3470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471   cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477 $ac_declaration
3478 int
3479 main ()
3480 {
3481 exit (42);
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 rm -f conftest.$ac_objext
3487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488   (eval $ac_compile) 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } &&
3495          { ac_try='test -z "$ac_c_werror_flag"
3496                          || test ! -s conftest.err'
3497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498   (eval $ac_try) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }; } &&
3502          { ac_try='test -s conftest.$ac_objext'
3503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504   (eval $ac_try) 2>&5
3505   ac_status=$?
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); }; }; then
3508   break
3509 else
3510   echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 fi
3514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3515 done
3516 rm -f conftest*
3517 if test -n "$ac_declaration"; then
3518   echo '#ifdef __cplusplus' >>confdefs.h
3519   echo $ac_declaration      >>confdefs.h
3520   echo '#endif'             >>confdefs.h
3521 fi
3522
3523 else
3524   echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 fi
3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534
3535 depcc="$CC"   am_compiler_list=
3536
3537 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3538 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3539 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3543   # We make a subdir and do the tests there.  Otherwise we can end up
3544   # making bogus files that we don't know about and never remove.  For
3545   # instance it was reported that on HP-UX the gcc test will end up
3546   # making a dummy file named `D' -- because `-MD' means `put the output
3547   # in D'.
3548   mkdir conftest.dir
3549   # Copy depcomp to subdir because otherwise we won't find it if we're
3550   # using a relative directory.
3551   cp "$am_depcomp" conftest.dir
3552   cd conftest.dir
3553   # We will build objects and dependencies in a subdirectory because
3554   # it helps to detect inapplicable dependency modes.  For instance
3555   # both Tru64's cc and ICC support -MD to output dependencies as a
3556   # side effect of compilation, but ICC will put the dependencies in
3557   # the current directory while Tru64 will put them in the object
3558   # directory.
3559   mkdir sub
3560
3561   am_cv_CC_dependencies_compiler_type=none
3562   if test "$am_compiler_list" = ""; then
3563      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3564   fi
3565   for depmode in $am_compiler_list; do
3566     # Setup a source with many dependencies, because some compilers
3567     # like to wrap large dependency lists on column 80 (with \), and
3568     # we should not choose a depcomp mode which is confused by this.
3569     #
3570     # We need to recreate these files for each test, as the compiler may
3571     # overwrite some of them when testing with obscure command lines.
3572     # This happens at least with the AIX C compiler.
3573     : > sub/conftest.c
3574     for i in 1 2 3 4 5 6; do
3575       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3576       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3577       # Solaris 8's {/usr,}/bin/sh.
3578       touch sub/conftst$i.h
3579     done
3580     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3581
3582     case $depmode in
3583     nosideeffect)
3584       # after this tag, mechanisms are not by side-effect, so they'll
3585       # only be used when explicitly requested
3586       if test "x$enable_dependency_tracking" = xyes; then
3587         continue
3588       else
3589         break
3590       fi
3591       ;;
3592     none) break ;;
3593     esac
3594     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3595     # mode.  It turns out that the SunPro C++ compiler does not properly
3596     # handle `-M -o', and we need to detect this.
3597     if depmode=$depmode \
3598        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3599        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3600        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3601          >/dev/null 2>conftest.err &&
3602        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3603        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3604        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3605       # icc doesn't choke on unknown options, it will just issue warnings
3606       # or remarks (even with -Werror).  So we grep stderr for any message
3607       # that says an option was ignored or not supported.
3608       # When given -MP, icc 7.0 and 7.1 complain thusly:
3609       #   icc: Command line warning: ignoring option '-M'; no argument required
3610       # The diagnosis changed in icc 8.0:
3611       #   icc: Command line remark: option '-MP' not supported
3612       if (grep 'ignoring option' conftest.err ||
3613           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3614         am_cv_CC_dependencies_compiler_type=$depmode
3615         break
3616       fi
3617     fi
3618   done
3619
3620   cd ..
3621   rm -rf conftest.dir
3622 else
3623   am_cv_CC_dependencies_compiler_type=none
3624 fi
3625
3626 fi
3627 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3628 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3629 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3630
3631
3632
3633 if
3634   test "x$enable_dependency_tracking" != xno \
3635   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3636   am__fastdepCC_TRUE=
3637   am__fastdepCC_FALSE='#'
3638 else
3639   am__fastdepCC_TRUE='#'
3640   am__fastdepCC_FALSE=
3641 fi
3642
3643
3644 # Find a good install program.  We prefer a C program (faster),
3645 # so one script is as good as another.  But avoid the broken or
3646 # incompatible versions:
3647 # SysV /etc/install, /usr/sbin/install
3648 # SunOS /usr/etc/install
3649 # IRIX /sbin/install
3650 # AIX /bin/install
3651 # AmigaOS /C/install, which installs bootblocks on floppy discs
3652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3655 # OS/2's system install, which has a completely different semantic
3656 # ./install, which can be erroneously created by make from ./install.sh.
3657 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3658 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3659 if test -z "$INSTALL"; then
3660 if test "${ac_cv_path_install+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668   # Account for people who put trailing slashes in PATH elements.
3669 case $as_dir/ in
3670   ./ | .// | /cC/* | \
3671   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3672   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3673   /usr/ucb/* ) ;;
3674   *)
3675     # OSF1 and SCO ODT 3.0 have their own names for install.
3676     # Don't use installbsd from OSF since it installs stuff as root
3677     # by default.
3678     for ac_prog in ginstall scoinst install; do
3679       for ac_exec_ext in '' $ac_executable_extensions; do
3680         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3681           if test $ac_prog = install &&
3682             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683             # AIX install.  It has an incompatible calling convention.
3684             :
3685           elif test $ac_prog = install &&
3686             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3687             # program-specific install script used by HP pwplus--don't use.
3688             :
3689           else
3690             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3691             break 3
3692           fi
3693         fi
3694       done
3695     done
3696     ;;
3697 esac
3698 done
3699
3700
3701 fi
3702   if test "${ac_cv_path_install+set}" = set; then
3703     INSTALL=$ac_cv_path_install
3704   else
3705     # As a last resort, use the slow shell script.  We don't cache a
3706     # path for INSTALL within a source directory, because that will
3707     # break other packages using the cache if that directory is
3708     # removed, or if the path is relative.
3709     INSTALL=$ac_install_sh
3710   fi
3711 fi
3712 echo "$as_me:$LINENO: result: $INSTALL" >&5
3713 echo "${ECHO_T}$INSTALL" >&6
3714
3715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3716 # It thinks the first close brace ends the variable substitution.
3717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3718
3719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3720
3721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3722
3723 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3724 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3725 LN_S=$as_ln_s
3726 if test "$LN_S" = "ln -s"; then
3727   echo "$as_me:$LINENO: result: yes" >&5
3728 echo "${ECHO_T}yes" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3731 echo "${ECHO_T}no, using $LN_S" >&6
3732 fi
3733
3734 if test "x$CC" != xcc; then
3735   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3736 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3737 else
3738   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3739 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3740 fi
3741 set dummy $CC; ac_cc=`echo $2 |
3742                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3743 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h.  */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h.  */
3752
3753 int
3754 main ()
3755 {
3756
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 # Make sure it works both with $CC and with simple cc.
3762 # We do the test twice because some compilers refuse to overwrite an
3763 # existing .o file with -o, though they will create one.
3764 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3765 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766   (eval $ac_try) 2>&5
3767   ac_status=$?
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } &&
3770    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); };
3775 then
3776   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3777   if test "x$CC" != xcc; then
3778     # Test first that cc exists at all.
3779     if { ac_try='cc -c conftest.$ac_ext >&5'
3780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781   (eval $ac_try) 2>&5
3782   ac_status=$?
3783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784   (exit $ac_status); }; }; then
3785       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3786       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787   (eval $ac_try) 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } &&
3791          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792   (eval $ac_try) 2>&5
3793   ac_status=$?
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); };
3796       then
3797         # cc works too.
3798         :
3799       else
3800         # cc exists but doesn't like -o.
3801         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3802       fi
3803     fi
3804   fi
3805 else
3806   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3807 fi
3808 rm -f conftest*
3809
3810 fi
3811 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3812   echo "$as_me:$LINENO: result: yes" >&5
3813 echo "${ECHO_T}yes" >&6
3814 else
3815   echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817
3818 cat >>confdefs.h <<\_ACEOF
3819 #define NO_MINUS_C_MINUS_O 1
3820 _ACEOF
3821
3822 fi
3823
3824 # FIXME: we rely on the cache variable name because
3825 # there is no other way.
3826 set dummy $CC
3827 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3829    # Losing compiler, so override with the script.
3830    # FIXME: It is wrong to rewrite CC.
3831    # But if we don't then we get into trouble of one sort or another.
3832    # A longer-term fix would be to have automake use am__CC in this case,
3833    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3834    CC="$am_aux_dir/compile $CC"
3835 fi
3836
3837
3838
3839
3840
3841         echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
3842 echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6
3843 if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846
3847                 ac_ext=cc
3848 ac_cpp='$CXXCPP $CPPFLAGS'
3849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3852
3853                 cat >conftest.$ac_ext <<_ACEOF
3854
3855                     #include <ostream>
3856
3857 _ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860   (eval $ac_compile) 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } &&
3867          { ac_try='test -z "$ac_cxx_werror_flag"
3868                          || test ! -s conftest.err'
3869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870   (eval $ac_try) 2>&5
3871   ac_status=$?
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); }; } &&
3874          { ac_try='test -s conftest.$ac_objext'
3875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876   (eval $ac_try) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; }; then
3880   ensc_cv_cxx_cxxcompiler=yes
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 ensc_cv_cxx_cxxcompiler=no
3886 fi
3887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3888                 ac_ext=c
3889 ac_cpp='$CPP $CPPFLAGS'
3890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893
3894
3895 fi
3896 echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
3897 echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6
3898
3899
3900
3901 if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
3902   ENSC_HAVE_CXX_COMPILER_TRUE=
3903   ENSC_HAVE_CXX_COMPILER_FALSE='#'
3904 else
3905   ENSC_HAVE_CXX_COMPILER_TRUE='#'
3906   ENSC_HAVE_CXX_COMPILER_FALSE=
3907 fi
3908
3909
3910         if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
3911                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
3912 echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
3913         fi
3914
3915
3916
3917
3918
3919         echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
3920 echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6
3921 if test "${ensc_cv_c99_c99compiler+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924
3925                 ac_ext=c
3926 ac_cpp='$CPP $CPPFLAGS'
3927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930
3931                 cat >conftest.$ac_ext <<_ACEOF
3932
3933 int main(int argc, char *argv) {
3934   struct { int x; }   a = { .x = argc };
3935   if (0) return 0;
3936   int b;
3937 }
3938
3939 _ACEOF
3940 rm -f conftest.$ac_objext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3942   (eval $ac_compile) 2>conftest.er1
3943   ac_status=$?
3944   grep -v '^ *+' conftest.er1 >conftest.err
3945   rm -f conftest.er1
3946   cat conftest.err >&5
3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); } &&
3949          { ac_try='test -z "$ac_c_werror_flag"
3950                          || test ! -s conftest.err'
3951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952   (eval $ac_try) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); }; } &&
3956          { ac_try='test -s conftest.$ac_objext'
3957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958   (eval $ac_try) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); }; }; then
3962   ensc_cv_c99_c99compiler=yes
3963 else
3964   echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3966
3967 ensc_cv_c99_c99compiler=no
3968 fi
3969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3970                 ac_ext=c
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975
3976
3977 fi
3978 echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
3979 echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6
3980
3981
3982
3983 if test x"$ensc_cv_c99_c99compiler" = xyes; then
3984   ENSC_HAVE_C99_COMPILER_TRUE=
3985   ENSC_HAVE_C99_COMPILER_FALSE='#'
3986 else
3987   ENSC_HAVE_C99_COMPILER_TRUE='#'
3988   ENSC_HAVE_C99_COMPILER_FALSE=
3989 fi
3990
3991
3992         if test x"$ensc_cv_c99_c99compiler" = xno; then
3993                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
3994 echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
3995         fi
3996
3997
3998
3999         ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
4000
4001
4002         ENSC_PATHPROG_SED=
4003
4004
4005
4006
4007
4008
4009
4010         if test -z ""; then
4011                 rq=true
4012         else
4013                 rq=false
4014         fi
4015
4016         if $rq; then
4017                 ensc_dflt=
4018         else
4019                 ensc_dflt=""
4020         fi
4021
4022         for ac_prog in awk
4023 do
4024   # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy $ac_prog; ac_word=$2
4026 echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_path_AWK+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   case $AWK in
4032   [\\/]* | ?:[\\/]*)
4033   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4034   ;;
4035   *)
4036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $ensc_searchpath
4038 do
4039   IFS=$as_save_IFS
4040   test -z "$as_dir" && as_dir=.
4041   for ac_exec_ext in '' $ac_executable_extensions; do
4042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4045     break 2
4046   fi
4047 done
4048 done
4049
4050   ;;
4051 esac
4052 fi
4053 AWK=$ac_cv_path_AWK
4054
4055 if test -n "$AWK"; then
4056   echo "$as_me:$LINENO: result: $AWK" >&5
4057 echo "${ECHO_T}$AWK" >&6
4058 else
4059   echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4061 fi
4062
4063   test -n "$AWK" && break
4064 done
4065 test -n "$AWK" || AWK="$ensc_dflt"
4066
4067
4068         if test -z "${AWK}" && $rq; then
4069                 if test -z ""; then
4070                         { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
4071 echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4072    { (exit 1); exit 1; }; }
4073                 else
4074                         { { echo "$as_me:$LINENO: error:
4075 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4076 " >&5
4077 echo "$as_me: error:
4078 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4079 " >&2;}
4080    { (exit 1); exit 1; }; }
4081                 fi
4082         fi
4083
4084         test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
4085
4086         test "${AWK}"
4087
4088
4089
4090
4091         if test -z ""; then
4092                 rq=true
4093         else
4094                 rq=false
4095         fi
4096
4097         if $rq; then
4098                 ensc_dflt=
4099         else
4100                 ensc_dflt=""
4101         fi
4102
4103         for ac_prog in cat
4104 do
4105   # Extract the first word of "$ac_prog", so it can be a program name with args.
4106 set dummy $ac_prog; ac_word=$2
4107 echo "$as_me:$LINENO: checking for $ac_word" >&5
4108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4109 if test "${ac_cv_path_CAT+set}" = set; then
4110   echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112   case $CAT in
4113   [\\/]* | ?:[\\/]*)
4114   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4115   ;;
4116   *)
4117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $ensc_searchpath
4119 do
4120   IFS=$as_save_IFS
4121   test -z "$as_dir" && as_dir=.
4122   for ac_exec_ext in '' $ac_executable_extensions; do
4123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126     break 2
4127   fi
4128 done
4129 done
4130
4131   ;;
4132 esac
4133 fi
4134 CAT=$ac_cv_path_CAT
4135
4136 if test -n "$CAT"; then
4137   echo "$as_me:$LINENO: result: $CAT" >&5
4138 echo "${ECHO_T}$CAT" >&6
4139 else
4140   echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4142 fi
4143
4144   test -n "$CAT" && break
4145 done
4146 test -n "$CAT" || CAT="$ensc_dflt"
4147
4148
4149         if test -z "${CAT}" && $rq; then
4150                 if test -z ""; then
4151                         { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
4152 echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4153    { (exit 1); exit 1; }; }
4154                 else
4155                         { { echo "$as_me:$LINENO: error:
4156 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4157 " >&5
4158 echo "$as_me: error:
4159 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4160 " >&2;}
4161    { (exit 1); exit 1; }; }
4162                 fi
4163         fi
4164
4165         test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
4166
4167         test "${CAT}"
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 chown
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_CHOWN+set}" = set; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193   case $CHOWN in
4194   [\\/]* | ?:[\\/]*)
4195   ac_cv_path_CHOWN="$CHOWN" # 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_CHOWN="$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 CHOWN=$ac_cv_path_CHOWN
4216
4217 if test -n "$CHOWN"; then
4218   echo "$as_me:$LINENO: result: $CHOWN" >&5
4219 echo "${ECHO_T}$CHOWN" >&6
4220 else
4221   echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4223 fi
4224
4225   test -n "$CHOWN" && break
4226 done
4227 test -n "$CHOWN" || CHOWN="$ensc_dflt"
4228
4229
4230         if test -z "${CHOWN}" && $rq; then
4231                 if test -z ""; then
4232                         { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
4233 echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4234    { (exit 1); exit 1; }; }
4235                 else
4236                         { { echo "$as_me:$LINENO: error:
4237 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4238 " >&5
4239 echo "$as_me: error:
4240 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4241 " >&2;}
4242    { (exit 1); exit 1; }; }
4243                 fi
4244         fi
4245
4246         test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
4247
4248         test "${CHOWN}"
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 cmp
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_CMP+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   case $CMP in
4275   [\\/]* | ?:[\\/]*)
4276   ac_cv_path_CMP="$CMP" # 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_CMP="$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 CMP=$ac_cv_path_CMP
4297
4298 if test -n "$CMP"; then
4299   echo "$as_me:$LINENO: result: $CMP" >&5
4300 echo "${ECHO_T}$CMP" >&6
4301 else
4302   echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304 fi
4305
4306   test -n "$CMP" && break
4307 done
4308 test -n "$CMP" || CMP="$ensc_dflt"
4309
4310
4311         if test -z "${CMP}" && $rq; then
4312                 if test -z ""; then
4313                         { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
4314 echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4315    { (exit 1); exit 1; }; }
4316                 else
4317                         { { echo "$as_me:$LINENO: error:
4318 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4319 " >&5
4320 echo "$as_me: error:
4321 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4322 " >&2;}
4323    { (exit 1); exit 1; }; }
4324                 fi
4325         fi
4326
4327         test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
4328
4329         test "${CMP}"
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 cp
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_CP+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   case $CP in
4356   [\\/]* | ?:[\\/]*)
4357   ac_cv_path_CP="$CP" # 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_CP="$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 CP=$ac_cv_path_CP
4378
4379 if test -n "$CP"; then
4380   echo "$as_me:$LINENO: result: $CP" >&5
4381 echo "${ECHO_T}$CP" >&6
4382 else
4383   echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6
4385 fi
4386
4387   test -n "$CP" && break
4388 done
4389 test -n "$CP" || CP="$ensc_dflt"
4390
4391
4392         if test -z "${CP}" && $rq; then
4393                 if test -z ""; then
4394                         { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
4395 echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4396    { (exit 1); exit 1; }; }
4397                 else
4398                         { { echo "$as_me:$LINENO: error:
4399 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4400 " >&5
4401 echo "$as_me: error:
4402 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4403 " >&2;}
4404    { (exit 1); exit 1; }; }
4405                 fi
4406         fi
4407
4408         test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
4409
4410         test "${CP}"
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 dirname
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_DIRNAME+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   case $DIRNAME in
4437   [\\/]* | ?:[\\/]*)
4438   ac_cv_path_DIRNAME="$DIRNAME" # 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_DIRNAME="$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 DIRNAME=$ac_cv_path_DIRNAME
4459
4460 if test -n "$DIRNAME"; then
4461   echo "$as_me:$LINENO: result: $DIRNAME" >&5
4462 echo "${ECHO_T}$DIRNAME" >&6
4463 else
4464   echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6
4466 fi
4467
4468   test -n "$DIRNAME" && break
4469 done
4470 test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
4471
4472
4473         if test -z "${DIRNAME}" && $rq; then
4474                 if test -z ""; then
4475                         { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
4476 echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4477    { (exit 1); exit 1; }; }
4478                 else
4479                         { { echo "$as_me:$LINENO: error:
4480 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4481 " >&5
4482 echo "$as_me: error:
4483 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4484 " >&2;}
4485    { (exit 1); exit 1; }; }
4486                 fi
4487         fi
4488
4489         test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
4490
4491         test "${DIRNAME}"
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 egrep
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_EGREP+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   case $EGREP in
4518   [\\/]* | ?:[\\/]*)
4519   ac_cv_path_EGREP="$EGREP" # 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_EGREP="$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 EGREP=$ac_cv_path_EGREP
4540
4541 if test -n "$EGREP"; then
4542   echo "$as_me:$LINENO: result: $EGREP" >&5
4543 echo "${ECHO_T}$EGREP" >&6
4544 else
4545   echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4547 fi
4548
4549   test -n "$EGREP" && break
4550 done
4551 test -n "$EGREP" || EGREP="$ensc_dflt"
4552
4553
4554         if test -z "${EGREP}" && $rq; then
4555                 if test -z ""; then
4556                         { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
4557 echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4558    { (exit 1); exit 1; }; }
4559                 else
4560                         { { echo "$as_me:$LINENO: error:
4561 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4562 " >&5
4563 echo "$as_me: error:
4564 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4565 " >&2;}
4566    { (exit 1); exit 1; }; }
4567                 fi
4568         fi
4569
4570         test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
4571
4572         test "${EGREP}"
4573
4574
4575
4576
4577         if test -z ""; then
4578                 rq=true
4579         else
4580                 rq=false
4581         fi
4582
4583         if $rq; then
4584                 ensc_dflt=
4585         else
4586                 ensc_dflt=""
4587         fi
4588
4589         for ac_prog in env
4590 do
4591   # Extract the first word of "$ac_prog", so it can be a program name with args.
4592 set dummy $ac_prog; ac_word=$2
4593 echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4595 if test "${ac_cv_path_ENV+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   case $ENV in
4599   [\\/]* | ?:[\\/]*)
4600   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
4601   ;;
4602   *)
4603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $ensc_searchpath
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608   for ac_exec_ext in '' $ac_executable_extensions; do
4609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
4611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612     break 2
4613   fi
4614 done
4615 done
4616
4617   ;;
4618 esac
4619 fi
4620 ENV=$ac_cv_path_ENV
4621
4622 if test -n "$ENV"; then
4623   echo "$as_me:$LINENO: result: $ENV" >&5
4624 echo "${ECHO_T}$ENV" >&6
4625 else
4626   echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4628 fi
4629
4630   test -n "$ENV" && break
4631 done
4632 test -n "$ENV" || ENV="$ensc_dflt"
4633
4634
4635         if test -z "${ENV}" && $rq; then
4636                 if test -z ""; then
4637                         { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
4638 echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4639    { (exit 1); exit 1; }; }
4640                 else
4641                         { { echo "$as_me:$LINENO: error:
4642 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4643 " >&5
4644 echo "$as_me: error:
4645 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4646 " >&2;}
4647    { (exit 1); exit 1; }; }
4648                 fi
4649         fi
4650
4651         test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
4652
4653         test "${ENV}"
4654
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 grep
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_GREP+set}" = set; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   case $GREP in
4680   [\\/]* | ?:[\\/]*)
4681   ac_cv_path_GREP="$GREP" # 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_GREP="$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 GREP=$ac_cv_path_GREP
4702
4703 if test -n "$GREP"; then
4704   echo "$as_me:$LINENO: result: $GREP" >&5
4705 echo "${ECHO_T}$GREP" >&6
4706 else
4707   echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6
4709 fi
4710
4711   test -n "$GREP" && break
4712 done
4713 test -n "$GREP" || GREP="$ensc_dflt"
4714
4715
4716         if test -z "${GREP}" && $rq; then
4717                 if test -z ""; then
4718                         { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
4719 echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4720    { (exit 1); exit 1; }; }
4721                 else
4722                         { { echo "$as_me:$LINENO: error:
4723 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4724 " >&5
4725 echo "$as_me: error:
4726 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4727 " >&2;}
4728    { (exit 1); exit 1; }; }
4729                 fi
4730         fi
4731
4732         test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
4733
4734         test "${GREP}"
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 ln
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_LN+set}" = set; then
4758   echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760   case $LN in
4761   [\\/]* | ?:[\\/]*)
4762   ac_cv_path_LN="$LN" # 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_LN="$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 LN=$ac_cv_path_LN
4783
4784 if test -n "$LN"; then
4785   echo "$as_me:$LINENO: result: $LN" >&5
4786 echo "${ECHO_T}$LN" >&6
4787 else
4788   echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6
4790 fi
4791
4792   test -n "$LN" && break
4793 done
4794 test -n "$LN" || LN="$ensc_dflt"
4795
4796
4797         if test -z "${LN}" && $rq; then
4798                 if test -z ""; then
4799                         { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
4800 echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4801    { (exit 1); exit 1; }; }
4802                 else
4803                         { { echo "$as_me:$LINENO: error:
4804 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4805 " >&5
4806 echo "$as_me: error:
4807 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4808 " >&2;}
4809    { (exit 1); exit 1; }; }
4810                 fi
4811         fi
4812
4813         test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
4814
4815         test "${LN}"
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 mkdir
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_MKDIR+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   case $MKDIR in
4842   [\\/]* | ?:[\\/]*)
4843   ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$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 MKDIR=$ac_cv_path_MKDIR
4864
4865 if test -n "$MKDIR"; then
4866   echo "$as_me:$LINENO: result: $MKDIR" >&5
4867 echo "${ECHO_T}$MKDIR" >&6
4868 else
4869   echo "$as_me:$LINENO: result: no" >&5
4870 echo "${ECHO_T}no" >&6
4871 fi
4872
4873   test -n "$MKDIR" && break
4874 done
4875 test -n "$MKDIR" || MKDIR="$ensc_dflt"
4876
4877
4878         if test -z "${MKDIR}" && $rq; then
4879                 if test -z ""; then
4880                         { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
4881 echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4882    { (exit 1); exit 1; }; }
4883                 else
4884                         { { echo "$as_me:$LINENO: error:
4885 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
4886 " >&5
4887 echo "$as_me: error:
4888 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
4889 " >&2;}
4890    { (exit 1); exit 1; }; }
4891                 fi
4892         fi
4893
4894         test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
4895
4896         test "${MKDIR}"
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 mkfifo
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_MKFIFO+set}" = set; then
4920   echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922   case $MKFIFO in
4923   [\\/]* | ?:[\\/]*)
4924   ac_cv_path_MKFIFO="$MKFIFO" # 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_MKFIFO="$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 MKFIFO=$ac_cv_path_MKFIFO
4945
4946 if test -n "$MKFIFO"; then
4947   echo "$as_me:$LINENO: result: $MKFIFO" >&5
4948 echo "${ECHO_T}$MKFIFO" >&6
4949 else
4950   echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6
4952 fi
4953
4954   test -n "$MKFIFO" && break
4955 done
4956 test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
4957
4958
4959         if test -z "${MKFIFO}" && $rq; then
4960                 if test -z ""; then
4961                         { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
4962 echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4963    { (exit 1); exit 1; }; }
4964                 else
4965                         { { echo "$as_me:$LINENO: error:
4966 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
4967 " >&5
4968 echo "$as_me: error:
4969 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
4970 " >&2;}
4971    { (exit 1); exit 1; }; }
4972                 fi
4973         fi
4974
4975         test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
4976
4977         test "${MKFIFO}"
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 mktemp
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_MKTEMP+set}" = set; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   case $MKTEMP in
5004   [\\/]* | ?:[\\/]*)
5005   ac_cv_path_MKTEMP="$MKTEMP" # 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_MKTEMP="$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 MKTEMP=$ac_cv_path_MKTEMP
5026
5027 if test -n "$MKTEMP"; then
5028   echo "$as_me:$LINENO: result: $MKTEMP" >&5
5029 echo "${ECHO_T}$MKTEMP" >&6
5030 else
5031   echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6
5033 fi
5034
5035   test -n "$MKTEMP" && break
5036 done
5037 test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
5038
5039
5040         if test -z "${MKTEMP}" && $rq; then
5041                 if test -z ""; then
5042                         { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
5043 echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5044    { (exit 1); exit 1; }; }
5045                 else
5046                         { { echo "$as_me:$LINENO: error:
5047 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5048 " >&5
5049 echo "$as_me: error:
5050 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5051 " >&2;}
5052    { (exit 1); exit 1; }; }
5053                 fi
5054         fi
5055
5056         test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
5057
5058         test "${MKTEMP}"
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 mount
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_MOUNT+set}" = set; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   case $MOUNT in
5085   [\\/]* | ?:[\\/]*)
5086   ac_cv_path_MOUNT="$MOUNT" # 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_MOUNT="$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 MOUNT=$ac_cv_path_MOUNT
5107
5108 if test -n "$MOUNT"; then
5109   echo "$as_me:$LINENO: result: $MOUNT" >&5
5110 echo "${ECHO_T}$MOUNT" >&6
5111 else
5112   echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6
5114 fi
5115
5116   test -n "$MOUNT" && break
5117 done
5118 test -n "$MOUNT" || MOUNT="$ensc_dflt"
5119
5120
5121         if test -z "${MOUNT}" && $rq; then
5122                 if test -z ""; then
5123                         { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
5124 echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5125    { (exit 1); exit 1; }; }
5126                 else
5127                         { { echo "$as_me:$LINENO: error:
5128 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5129 " >&5
5130 echo "$as_me: error:
5131 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5132 " >&2;}
5133    { (exit 1); exit 1; }; }
5134                 fi
5135         fi
5136
5137         test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
5138
5139         test "${MOUNT}"
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 mv
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_MV+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   case $MV in
5166   [\\/]* | ?:[\\/]*)
5167   ac_cv_path_MV="$MV" # 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_MV="$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 MV=$ac_cv_path_MV
5188
5189 if test -n "$MV"; then
5190   echo "$as_me:$LINENO: result: $MV" >&5
5191 echo "${ECHO_T}$MV" >&6
5192 else
5193   echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6
5195 fi
5196
5197   test -n "$MV" && break
5198 done
5199 test -n "$MV" || MV="$ensc_dflt"
5200
5201
5202         if test -z "${MV}" && $rq; then
5203                 if test -z ""; then
5204                         { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
5205 echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5206    { (exit 1); exit 1; }; }
5207                 else
5208                         { { echo "$as_me:$LINENO: error:
5209 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5210 " >&5
5211 echo "$as_me: error:
5212 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5213 " >&2;}
5214    { (exit 1); exit 1; }; }
5215                 fi
5216         fi
5217
5218         test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
5219
5220         test "${MV}"
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 nice
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_NICE+set}" = set; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   case $NICE in
5247   [\\/]* | ?:[\\/]*)
5248   ac_cv_path_NICE="$NICE" # 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_NICE="$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 NICE=$ac_cv_path_NICE
5269
5270 if test -n "$NICE"; then
5271   echo "$as_me:$LINENO: result: $NICE" >&5
5272 echo "${ECHO_T}$NICE" >&6
5273 else
5274   echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6
5276 fi
5277
5278   test -n "$NICE" && break
5279 done
5280 test -n "$NICE" || NICE="$ensc_dflt"
5281
5282
5283         if test -z "${NICE}" && $rq; then
5284                 if test -z ""; then
5285                         { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
5286 echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5287    { (exit 1); exit 1; }; }
5288                 else
5289                         { { echo "$as_me:$LINENO: error:
5290 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5291 " >&5
5292 echo "$as_me: error:
5293 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5294 " >&2;}
5295    { (exit 1); exit 1; }; }
5296                 fi
5297         fi
5298
5299         test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
5300
5301         test "${NICE}"
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 ps
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_PS+set}" = set; then
5325   echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327   case $PS in
5328   [\\/]* | ?:[\\/]*)
5329   ac_cv_path_PS="$PS" # 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_PS="$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 PS=$ac_cv_path_PS
5350
5351 if test -n "$PS"; then
5352   echo "$as_me:$LINENO: result: $PS" >&5
5353 echo "${ECHO_T}$PS" >&6
5354 else
5355   echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6
5357 fi
5358
5359   test -n "$PS" && break
5360 done
5361 test -n "$PS" || PS="$ensc_dflt"
5362
5363
5364         if test -z "${PS}" && $rq; then
5365                 if test -z ""; then
5366                         { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
5367 echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5368    { (exit 1); exit 1; }; }
5369                 else
5370                         { { echo "$as_me:$LINENO: error:
5371 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5372 " >&5
5373 echo "$as_me: error:
5374 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5375 " >&2;}
5376    { (exit 1); exit 1; }; }
5377                 fi
5378         fi
5379
5380         test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
5381
5382         test "${PS}"
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 rm
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_RM+set}" = set; then
5406   echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408   case $RM in
5409   [\\/]* | ?:[\\/]*)
5410   ac_cv_path_RM="$RM" # 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_RM="$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 RM=$ac_cv_path_RM
5431
5432 if test -n "$RM"; then
5433   echo "$as_me:$LINENO: result: $RM" >&5
5434 echo "${ECHO_T}$RM" >&6
5435 else
5436   echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6
5438 fi
5439
5440   test -n "$RM" && break
5441 done
5442 test -n "$RM" || RM="$ensc_dflt"
5443
5444
5445         if test -z "${RM}" && $rq; then
5446                 if test -z ""; then
5447                         { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
5448 echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5449    { (exit 1); exit 1; }; }
5450                 else
5451                         { { echo "$as_me:$LINENO: error:
5452 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5453 " >&5
5454 echo "$as_me: error:
5455 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5456 " >&2;}
5457    { (exit 1); exit 1; }; }
5458                 fi
5459         fi
5460
5461         test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
5462
5463         test "${RM}"
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 rmdir
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_RMDIR+set}" = set; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489   case $RMDIR in
5490   [\\/]* | ?:[\\/]*)
5491   ac_cv_path_RMDIR="$RMDIR" # 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_RMDIR="$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 RMDIR=$ac_cv_path_RMDIR
5512
5513 if test -n "$RMDIR"; then
5514   echo "$as_me:$LINENO: result: $RMDIR" >&5
5515 echo "${ECHO_T}$RMDIR" >&6
5516 else
5517   echo "$as_me:$LINENO: result: no" >&5
5518 echo "${ECHO_T}no" >&6
5519 fi
5520
5521   test -n "$RMDIR" && break
5522 done
5523 test -n "$RMDIR" || RMDIR="$ensc_dflt"
5524
5525
5526         if test -z "${RMDIR}" && $rq; then
5527                 if test -z ""; then
5528                         { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5529 echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5530    { (exit 1); exit 1; }; }
5531                 else
5532                         { { echo "$as_me:$LINENO: error:
5533 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5534 " >&5
5535 echo "$as_me: error:
5536 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5537 " >&2;}
5538    { (exit 1); exit 1; }; }
5539                 fi
5540         fi
5541
5542         test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
5543
5544         test "${RMDIR}"
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 sed
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_SED+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   case $SED in
5571   [\\/]* | ?:[\\/]*)
5572   ac_cv_path_SED="$SED" # 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_SED="$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 SED=$ac_cv_path_SED
5593
5594 if test -n "$SED"; then
5595   echo "$as_me:$LINENO: result: $SED" >&5
5596 echo "${ECHO_T}$SED" >&6
5597 else
5598   echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5600 fi
5601
5602   test -n "$SED" && break
5603 done
5604 test -n "$SED" || SED="$ensc_dflt"
5605
5606
5607         if test -z "${SED}" && $rq; then
5608                 if test -z ""; then
5609                         { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
5610 echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5611    { (exit 1); exit 1; }; }
5612                 else
5613                         { { echo "$as_me:$LINENO: error:
5614 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5615 " >&5
5616 echo "$as_me: error:
5617 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5618 " >&2;}
5619    { (exit 1); exit 1; }; }
5620                 fi
5621         fi
5622
5623         test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
5624
5625         test "${SED}"
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 sh
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_SH+set}" = set; then
5649   echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651   case $SH in
5652   [\\/]* | ?:[\\/]*)
5653   ac_cv_path_SH="$SH" # 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_SH="$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 SH=$ac_cv_path_SH
5674
5675 if test -n "$SH"; then
5676   echo "$as_me:$LINENO: result: $SH" >&5
5677 echo "${ECHO_T}$SH" >&6
5678 else
5679   echo "$as_me:$LINENO: result: no" >&5
5680 echo "${ECHO_T}no" >&6
5681 fi
5682
5683   test -n "$SH" && break
5684 done
5685 test -n "$SH" || SH="$ensc_dflt"
5686
5687
5688         if test -z "${SH}" && $rq; then
5689                 if test -z ""; then
5690                         { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
5691 echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5692    { (exit 1); exit 1; }; }
5693                 else
5694                         { { echo "$as_me:$LINENO: error:
5695 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5696 " >&5
5697 echo "$as_me: error:
5698 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5699 " >&2;}
5700    { (exit 1); exit 1; }; }
5701                 fi
5702         fi
5703
5704         test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
5705
5706         test "${SH}"
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 tac
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_TAC+set}" = set; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   case $TAC in
5733   [\\/]* | ?:[\\/]*)
5734   ac_cv_path_TAC="$TAC" # 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_TAC="$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 TAC=$ac_cv_path_TAC
5755
5756 if test -n "$TAC"; then
5757   echo "$as_me:$LINENO: result: $TAC" >&5
5758 echo "${ECHO_T}$TAC" >&6
5759 else
5760   echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6
5762 fi
5763
5764   test -n "$TAC" && break
5765 done
5766 test -n "$TAC" || TAC="$ensc_dflt"
5767
5768
5769         if test -z "${TAC}" && $rq; then
5770                 if test -z ""; then
5771                         { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
5772 echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5773    { (exit 1); exit 1; }; }
5774                 else
5775                         { { echo "$as_me:$LINENO: error:
5776 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5777 " >&5
5778 echo "$as_me: error:
5779 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5780 " >&2;}
5781    { (exit 1); exit 1; }; }
5782                 fi
5783         fi
5784
5785         test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
5786
5787         test "${TAC}"
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 tar
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_TAR+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   case $TAR in
5814   [\\/]* | ?:[\\/]*)
5815   ac_cv_path_TAR="$TAR" # 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_TAR="$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 TAR=$ac_cv_path_TAR
5836
5837 if test -n "$TAR"; then
5838   echo "$as_me:$LINENO: result: $TAR" >&5
5839 echo "${ECHO_T}$TAR" >&6
5840 else
5841   echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6
5843 fi
5844
5845   test -n "$TAR" && break
5846 done
5847 test -n "$TAR" || TAR="$ensc_dflt"
5848
5849
5850         if test -z "${TAR}" && $rq; then
5851                 if test -z ""; then
5852                         { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
5853 echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5854    { (exit 1); exit 1; }; }
5855                 else
5856                         { { echo "$as_me:$LINENO: error:
5857 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
5858 " >&5
5859 echo "$as_me: error:
5860 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
5861 " >&2;}
5862    { (exit 1); exit 1; }; }
5863                 fi
5864         fi
5865
5866         test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
5867
5868         test "${TAR}"
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 touch
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_TOUCH+set}" = set; then
5892   echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894   case $TOUCH in
5895   [\\/]* | ?:[\\/]*)
5896   ac_cv_path_TOUCH="$TOUCH" # 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_TOUCH="$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 TOUCH=$ac_cv_path_TOUCH
5917
5918 if test -n "$TOUCH"; then
5919   echo "$as_me:$LINENO: result: $TOUCH" >&5
5920 echo "${ECHO_T}$TOUCH" >&6
5921 else
5922   echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5924 fi
5925
5926   test -n "$TOUCH" && break
5927 done
5928 test -n "$TOUCH" || TOUCH="$ensc_dflt"
5929
5930
5931         if test -z "${TOUCH}" && $rq; then
5932                 if test -z ""; then
5933                         { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
5934 echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5935    { (exit 1); exit 1; }; }
5936                 else
5937                         { { echo "$as_me:$LINENO: error:
5938 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
5939 " >&5
5940 echo "$as_me: error:
5941 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
5942 " >&2;}
5943    { (exit 1); exit 1; }; }
5944                 fi
5945         fi
5946
5947         test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
5948
5949         test "${TOUCH}"
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 tty
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_TTY+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   case $TTY in
5976   [\\/]* | ?:[\\/]*)
5977   ac_cv_path_TTY="$TTY" # 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_TTY="$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 TTY=$ac_cv_path_TTY
5998
5999 if test -n "$TTY"; then
6000   echo "$as_me:$LINENO: result: $TTY" >&5
6001 echo "${ECHO_T}$TTY" >&6
6002 else
6003   echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6
6005 fi
6006
6007   test -n "$TTY" && break
6008 done
6009 test -n "$TTY" || TTY="$ensc_dflt"
6010
6011
6012         if test -z "${TTY}" && $rq; then
6013                 if test -z ""; then
6014                         { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
6015 echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6016    { (exit 1); exit 1; }; }
6017                 else
6018                         { { echo "$as_me:$LINENO: error:
6019 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6020 " >&5
6021 echo "$as_me: error:
6022 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6023 " >&2;}
6024    { (exit 1); exit 1; }; }
6025                 fi
6026         fi
6027
6028         test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
6029
6030         test "${TTY}"
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 umount
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_UMOUNT+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   case $UMOUNT in
6057   [\\/]* | ?:[\\/]*)
6058   ac_cv_path_UMOUNT="$UMOUNT" # 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_UMOUNT="$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 UMOUNT=$ac_cv_path_UMOUNT
6079
6080 if test -n "$UMOUNT"; then
6081   echo "$as_me:$LINENO: result: $UMOUNT" >&5
6082 echo "${ECHO_T}$UMOUNT" >&6
6083 else
6084   echo "$as_me:$LINENO: result: no" >&5
6085 echo "${ECHO_T}no" >&6
6086 fi
6087
6088   test -n "$UMOUNT" && break
6089 done
6090 test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
6091
6092
6093         if test -z "${UMOUNT}" && $rq; then
6094                 if test -z ""; then
6095                         { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
6096 echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6097    { (exit 1); exit 1; }; }
6098                 else
6099                         { { echo "$as_me:$LINENO: error:
6100 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6101 " >&5
6102 echo "$as_me: error:
6103 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6104 " >&2;}
6105    { (exit 1); exit 1; }; }
6106                 fi
6107         fi
6108
6109         test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
6110
6111         test "${UMOUNT}"
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 wc
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_WC+set}" = set; then
6135   echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137   case $WC in
6138   [\\/]* | ?:[\\/]*)
6139   ac_cv_path_WC="$WC" # 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_WC="$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 WC=$ac_cv_path_WC
6160
6161 if test -n "$WC"; then
6162   echo "$as_me:$LINENO: result: $WC" >&5
6163 echo "${ECHO_T}$WC" >&6
6164 else
6165   echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6
6167 fi
6168
6169   test -n "$WC" && break
6170 done
6171 test -n "$WC" || WC="$ensc_dflt"
6172
6173
6174         if test -z "${WC}" && $rq; then
6175                 if test -z ""; then
6176                         { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
6177 echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6178    { (exit 1); exit 1; }; }
6179                 else
6180                         { { echo "$as_me:$LINENO: error:
6181 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6182 " >&5
6183 echo "$as_me: error:
6184 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6185 " >&2;}
6186    { (exit 1); exit 1; }; }
6187                 fi
6188         fi
6189
6190         test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
6191
6192         test "${WC}"
6193
6194
6195
6196
6197
6198
6199         if test -z ""; then
6200                 rq=true
6201         else
6202                 rq=false
6203         fi
6204
6205         if $rq; then
6206                 ensc_dflt=
6207         else
6208                 ensc_dflt=""
6209         fi
6210
6211         for ac_prog in ip
6212 do
6213   # Extract the first word of "$ac_prog", so it can be a program name with args.
6214 set dummy $ac_prog; ac_word=$2
6215 echo "$as_me:$LINENO: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6217 if test "${ac_cv_path_IP+set}" = set; then
6218   echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220   case $IP in
6221   [\\/]* | ?:[\\/]*)
6222   ac_cv_path_IP="$IP" # Let the user override the test with a path.
6223   ;;
6224   *)
6225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $ensc_searchpath
6227 do
6228   IFS=$as_save_IFS
6229   test -z "$as_dir" && as_dir=.
6230   for ac_exec_ext in '' $ac_executable_extensions; do
6231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232     ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
6233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234     break 2
6235   fi
6236 done
6237 done
6238
6239   ;;
6240 esac
6241 fi
6242 IP=$ac_cv_path_IP
6243
6244 if test -n "$IP"; then
6245   echo "$as_me:$LINENO: result: $IP" >&5
6246 echo "${ECHO_T}$IP" >&6
6247 else
6248   echo "$as_me:$LINENO: result: no" >&5
6249 echo "${ECHO_T}no" >&6
6250 fi
6251
6252   test -n "$IP" && break
6253 done
6254 test -n "$IP" || IP="$ensc_dflt"
6255
6256
6257         if test -z "${IP}" && $rq; then
6258                 if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
6259                         { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
6260 echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6261    { (exit 1); exit 1; }; }
6262                 else
6263                         { { echo "$as_me:$LINENO: error:
6264 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6265 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
6266 echo "$as_me: error:
6267 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6268 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
6269    { (exit 1); exit 1; }; }
6270                 fi
6271         fi
6272
6273         test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
6274
6275         test "${IP}"
6276
6277
6278
6279
6280         if test -z ""; then
6281                 rq=true
6282         else
6283                 rq=false
6284         fi
6285
6286         if $rq; then
6287                 ensc_dflt=
6288         else
6289                 ensc_dflt=""
6290         fi
6291
6292         for ac_prog in iptables
6293 do
6294   # Extract the first word of "$ac_prog", so it can be a program name with args.
6295 set dummy $ac_prog; ac_word=$2
6296 echo "$as_me:$LINENO: checking for $ac_word" >&5
6297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6298 if test "${ac_cv_path_IPTABLES+set}" = set; then
6299   echo $ECHO_N "(cached) $ECHO_C" >&6
6300 else
6301   case $IPTABLES in
6302   [\\/]* | ?:[\\/]*)
6303   ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
6304   ;;
6305   *)
6306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $ensc_searchpath
6308 do
6309   IFS=$as_save_IFS
6310   test -z "$as_dir" && as_dir=.
6311   for ac_exec_ext in '' $ac_executable_extensions; do
6312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313     ac_cv_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
6314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315     break 2
6316   fi
6317 done
6318 done
6319
6320   ;;
6321 esac
6322 fi
6323 IPTABLES=$ac_cv_path_IPTABLES
6324
6325 if test -n "$IPTABLES"; then
6326   echo "$as_me:$LINENO: result: $IPTABLES" >&5
6327 echo "${ECHO_T}$IPTABLES" >&6
6328 else
6329   echo "$as_me:$LINENO: result: no" >&5
6330 echo "${ECHO_T}no" >&6
6331 fi
6332
6333   test -n "$IPTABLES" && break
6334 done
6335 test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
6336
6337
6338         if test -z "${IPTABLES}" && $rq; then
6339                 if test -z ""; then
6340                         { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
6341 echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6342    { (exit 1); exit 1; }; }
6343                 else
6344                         { { echo "$as_me:$LINENO: error:
6345 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6346 " >&5
6347 echo "$as_me: error:
6348 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6349 " >&2;}
6350    { (exit 1); exit 1; }; }
6351                 fi
6352         fi
6353
6354         test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
6355
6356         test "${IPTABLES}"
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 modprobe
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_MODPROBE+set}" = set; then
6380   echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382   case $MODPROBE in
6383   [\\/]* | ?:[\\/]*)
6384   ac_cv_path_MODPROBE="$MODPROBE" # 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_MODPROBE="$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 MODPROBE=$ac_cv_path_MODPROBE
6405
6406 if test -n "$MODPROBE"; then
6407   echo "$as_me:$LINENO: result: $MODPROBE" >&5
6408 echo "${ECHO_T}$MODPROBE" >&6
6409 else
6410   echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6
6412 fi
6413
6414   test -n "$MODPROBE" && break
6415 done
6416 test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
6417
6418
6419         if test -z "${MODPROBE}" && $rq; then
6420                 if test -z ""; then
6421                         { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
6422 echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6423    { (exit 1); exit 1; }; }
6424                 else
6425                         { { echo "$as_me:$LINENO: error:
6426 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6427 " >&5
6428 echo "$as_me: error:
6429 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6430 " >&2;}
6431    { (exit 1); exit 1; }; }
6432                 fi
6433         fi
6434
6435         test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
6436
6437         test "${MODPROBE}"
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 nameif
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_NAMEIF+set}" = set; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   case $NAMEIF in
6464   [\\/]* | ?:[\\/]*)
6465   ac_cv_path_NAMEIF="$NAMEIF" # 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_NAMEIF="$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 NAMEIF=$ac_cv_path_NAMEIF
6486
6487 if test -n "$NAMEIF"; then
6488   echo "$as_me:$LINENO: result: $NAMEIF" >&5
6489 echo "${ECHO_T}$NAMEIF" >&6
6490 else
6491   echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6
6493 fi
6494
6495   test -n "$NAMEIF" && break
6496 done
6497 test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
6498
6499
6500         if test -z "${NAMEIF}" && $rq; then
6501                 if test -z ""; then
6502                         { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
6503 echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6504    { (exit 1); exit 1; }; }
6505                 else
6506                         { { echo "$as_me:$LINENO: error:
6507 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6508 " >&5
6509 echo "$as_me: error:
6510 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6511 " >&2;}
6512    { (exit 1); exit 1; }; }
6513                 fi
6514         fi
6515
6516         test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
6517
6518         test "${NAMEIF}"
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 nohup
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_NOHUP+set}" = set; then
6542   echo $ECHO_N "(cached) $ECHO_C" >&6
6543 else
6544   case $NOHUP in
6545   [\\/]* | ?:[\\/]*)
6546   ac_cv_path_NOHUP="$NOHUP" # 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_NOHUP="$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 NOHUP=$ac_cv_path_NOHUP
6567
6568 if test -n "$NOHUP"; then
6569   echo "$as_me:$LINENO: result: $NOHUP" >&5
6570 echo "${ECHO_T}$NOHUP" >&6
6571 else
6572   echo "$as_me:$LINENO: result: no" >&5
6573 echo "${ECHO_T}no" >&6
6574 fi
6575
6576   test -n "$NOHUP" && break
6577 done
6578 test -n "$NOHUP" || NOHUP="$ensc_dflt"
6579
6580
6581         if test -z "${NOHUP}" && $rq; then
6582                 if test -z ""; then
6583                         { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
6584 echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6585    { (exit 1); exit 1; }; }
6586                 else
6587                         { { echo "$as_me:$LINENO: error:
6588 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6589 " >&5
6590 echo "$as_me: error:
6591 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6592 " >&2;}
6593    { (exit 1); exit 1; }; }
6594                 fi
6595         fi
6596
6597         test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
6598
6599         test "${NOHUP}"
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 rmmod
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_RMMOD+set}" = set; then
6623   echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625   case $RMMOD in
6626   [\\/]* | ?:[\\/]*)
6627   ac_cv_path_RMMOD="$RMMOD" # 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_RMMOD="$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 RMMOD=$ac_cv_path_RMMOD
6648
6649 if test -n "$RMMOD"; then
6650   echo "$as_me:$LINENO: result: $RMMOD" >&5
6651 echo "${ECHO_T}$RMMOD" >&6
6652 else
6653   echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6
6655 fi
6656
6657   test -n "$RMMOD" && break
6658 done
6659 test -n "$RMMOD" || RMMOD="$ensc_dflt"
6660
6661
6662         if test -z "${RMMOD}" && $rq; then
6663                 if test -z ""; then
6664                         { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
6665 echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6666    { (exit 1); exit 1; }; }
6667                 else
6668                         { { echo "$as_me:$LINENO: error:
6669 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6670 " >&5
6671 echo "$as_me: error:
6672 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6673 " >&2;}
6674    { (exit 1); exit 1; }; }
6675                 fi
6676         fi
6677
6678         test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
6679
6680         test "${RMMOD}"
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 vconfig
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_VCONFIG+set}" = set; then
6704   echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706   case $VCONFIG in
6707   [\\/]* | ?:[\\/]*)
6708   ac_cv_path_VCONFIG="$VCONFIG" # 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_VCONFIG="$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 VCONFIG=$ac_cv_path_VCONFIG
6729
6730 if test -n "$VCONFIG"; then
6731   echo "$as_me:$LINENO: result: $VCONFIG" >&5
6732 echo "${ECHO_T}$VCONFIG" >&6
6733 else
6734   echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6
6736 fi
6737
6738   test -n "$VCONFIG" && break
6739 done
6740 test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
6741
6742
6743         if test -z "${VCONFIG}" && $rq; then
6744                 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
6745                         { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
6746 echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6747    { (exit 1); exit 1; }; }
6748                 else
6749                         { { echo "$as_me:$LINENO: error:
6750 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6751 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
6752 echo "$as_me: error:
6753 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6754 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
6755    { (exit 1); exit 1; }; }
6756                 fi
6757         fi
6758
6759         test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
6760
6761         test "${VCONFIG}"
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 wget
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_WGET+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   case $WGET in
6788   [\\/]* | ?:[\\/]*)
6789   ac_cv_path_WGET="$WGET" # 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_WGET="$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 WGET=$ac_cv_path_WGET
6810
6811 if test -n "$WGET"; then
6812   echo "$as_me:$LINENO: result: $WGET" >&5
6813 echo "${ECHO_T}$WGET" >&6
6814 else
6815   echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6
6817 fi
6818
6819   test -n "$WGET" && break
6820 done
6821 test -n "$WGET" || WGET="$ensc_dflt"
6822
6823
6824         if test -z "${WGET}" && $rq; then
6825                 if test -z ""; then
6826                         { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
6827 echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6828    { (exit 1); exit 1; }; }
6829                 else
6830                         { { echo "$as_me:$LINENO: error:
6831 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
6832 " >&5
6833 echo "$as_me: error:
6834 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
6835 " >&2;}
6836    { (exit 1); exit 1; }; }
6837                 fi
6838         fi
6839
6840         test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
6841
6842         test "${WGET}"
6843
6844
6845
6846
6847
6848         if test -z ":"; then
6849                 rq=true
6850         else
6851                 rq=false
6852         fi
6853
6854         if $rq; then
6855                 ensc_dflt=
6856         else
6857                 ensc_dflt=":"
6858         fi
6859
6860         for ac_prog in doxygen
6861 do
6862   # Extract the first word of "$ac_prog", so it can be a program name with args.
6863 set dummy $ac_prog; ac_word=$2
6864 echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6866 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   case $DOXYGEN in
6870   [\\/]* | ?:[\\/]*)
6871   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6872   ;;
6873   *)
6874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $ensc_searchpath
6876 do
6877   IFS=$as_save_IFS
6878   test -z "$as_dir" && as_dir=.
6879   for ac_exec_ext in '' $ac_executable_extensions; do
6880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883     break 2
6884   fi
6885 done
6886 done
6887
6888   ;;
6889 esac
6890 fi
6891 DOXYGEN=$ac_cv_path_DOXYGEN
6892
6893 if test -n "$DOXYGEN"; then
6894   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6895 echo "${ECHO_T}$DOXYGEN" >&6
6896 else
6897   echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6
6899 fi
6900
6901   test -n "$DOXYGEN" && break
6902 done
6903 test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
6904
6905
6906         if test -z "${DOXYGEN}" && $rq; then
6907                 if test -z ""; then
6908                         { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
6909 echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6910    { (exit 1); exit 1; }; }
6911                 else
6912                         { { echo "$as_me:$LINENO: error:
6913 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
6914 " >&5
6915 echo "$as_me: error:
6916 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
6917 " >&2;}
6918    { (exit 1); exit 1; }; }
6919                 fi
6920         fi
6921
6922         test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
6923
6924         test "${DOXYGEN}"
6925
6926
6927
6928
6929         if test -z ":"; then
6930                 rq=true
6931         else
6932                 rq=false
6933         fi
6934
6935         if $rq; then
6936                 ensc_dflt=
6937         else
6938                 ensc_dflt=":"
6939         fi
6940
6941         for ac_prog in xsltp
6942 do
6943   # Extract the first word of "$ac_prog", so it can be a program name with args.
6944 set dummy $ac_prog; ac_word=$2
6945 echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6947 if test "${ac_cv_path_XSLTP+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   case $XSLTP in
6951   [\\/]* | ?:[\\/]*)
6952   ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
6953   ;;
6954   *)
6955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $ensc_searchpath
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960   for ac_exec_ext in '' $ac_executable_extensions; do
6961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6962     ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
6963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964     break 2
6965   fi
6966 done
6967 done
6968
6969   ;;
6970 esac
6971 fi
6972 XSLTP=$ac_cv_path_XSLTP
6973
6974 if test -n "$XSLTP"; then
6975   echo "$as_me:$LINENO: result: $XSLTP" >&5
6976 echo "${ECHO_T}$XSLTP" >&6
6977 else
6978   echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6
6980 fi
6981
6982   test -n "$XSLTP" && break
6983 done
6984 test -n "$XSLTP" || XSLTP="$ensc_dflt"
6985
6986
6987         if test -z "${XSLTP}" && $rq; then
6988                 if test -z ""; then
6989                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
6990 echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6991    { (exit 1); exit 1; }; }
6992                 else
6993                         { { echo "$as_me:$LINENO: error:
6994 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
6995 " >&5
6996 echo "$as_me: error:
6997 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
6998 " >&2;}
6999    { (exit 1); exit 1; }; }
7000                 fi
7001         fi
7002
7003         test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
7004
7005         test "${XSLTP}"
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 xsltproc
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_XSLTPROC+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   case $XSLTPROC in
7032   [\\/]* | ?:[\\/]*)
7033   ac_cv_path_XSLTPROC="$XSLTPROC" # 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_XSLTPROC="$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 XSLTPROC=$ac_cv_path_XSLTPROC
7054
7055 if test -n "$XSLTPROC"; then
7056   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
7057 echo "${ECHO_T}$XSLTPROC" >&6
7058 else
7059   echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6
7061 fi
7062
7063   test -n "$XSLTPROC" && break
7064 done
7065 test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
7066
7067
7068         if test -z "${XSLTPROC}" && $rq; then
7069                 if test -z ""; then
7070                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
7071 echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7072    { (exit 1); exit 1; }; }
7073                 else
7074                         { { echo "$as_me:$LINENO: error:
7075 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7076 " >&5
7077 echo "$as_me: error:
7078 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7079 " >&2;}
7080    { (exit 1); exit 1; }; }
7081                 fi
7082         fi
7083
7084         test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
7085
7086         test "${XSLTPROC}"
7087
7088
7089
7090
7091 if test "$XSLTP"    != ':'; then
7092   HAVE_XSLTP_TRUE=
7093   HAVE_XSLTP_FALSE='#'
7094 else
7095   HAVE_XSLTP_TRUE='#'
7096   HAVE_XSLTP_FALSE=
7097 fi
7098
7099
7100
7101 if test "$XSLTPROC" != ':'; then
7102   HAVE_XSLTPROC_TRUE=
7103   HAVE_XSLTPROC_FALSE='#'
7104 else
7105   HAVE_XSLTPROC_TRUE='#'
7106   HAVE_XSLTPROC_FALSE=
7107 fi
7108
7109
7110
7111
7112
7113         warn_flags="-Werror -W"
7114         echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
7115 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6
7116         ac_ext=c
7117 ac_cpp='$CPP $CPPFLAGS'
7118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7121
7122         __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
7123         CFLAGS="$warn_flags"
7124         cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h.  */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h.  */
7130 inline static void f(){}
7131 int
7132 main ()
7133 {
7134
7135   ;
7136   return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141   (eval $ac_compile) 2>conftest.er1
7142   ac_status=$?
7143   grep -v '^ *+' conftest.er1 >conftest.err
7144   rm -f conftest.er1
7145   cat conftest.err >&5
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); } &&
7148          { ac_try='test -z "$ac_c_werror_flag"
7149                          || test ! -s conftest.err'
7150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151   (eval $ac_try) 2>&5
7152   ac_status=$?
7153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); }; } &&
7155          { ac_try='test -s conftest.$ac_objext'
7156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157   (eval $ac_try) 2>&5
7158   ac_status=$?
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); }; }; then
7161   ensc_sys_compilerwarnflags_C=${warn_flags}
7162 else
7163   echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166 ensc_sys_compilerwarnflags_C=
7167 fi
7168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7169         ac_ext=c
7170 ac_cpp='$CPP $CPPFLAGS'
7171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7174
7175         CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7176
7177         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
7178                 echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6
7180         else
7181                 echo "$as_me:$LINENO: result: yes" >&5
7182 echo "${ECHO_T}yes" >&6
7183         fi
7184
7185
7186
7187
7188
7189 echo 'void f(){}' > conftest.c
7190   for i in -std=c99 -Wall -pedantic -W
7191   do
7192     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7193 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7194     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7195     then
7196       CFLAGS="${CFLAGS} $i"
7197       echo "$as_me:$LINENO: result: yes" >&5
7198 echo "${ECHO_T}yes" >&6
7199     else
7200       echo "$as_me:$LINENO: result: no" >&5
7201 echo "${ECHO_T}no" >&6
7202     fi
7203   done
7204   rm -f conftest.c conftest.o
7205
7206
7207
7208         warn_flags="-Werror -W"
7209         echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
7210 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6
7211         ac_ext=cc
7212 ac_cpp='$CXXCPP $CPPFLAGS'
7213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7216
7217         __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
7218         CXXFLAGS="$warn_flags"
7219         cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225 inline static void f(){}
7226 int
7227 main ()
7228 {
7229
7230   ;
7231   return 0;
7232 }
7233 _ACEOF
7234 rm -f conftest.$ac_objext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7236   (eval $ac_compile) 2>conftest.er1
7237   ac_status=$?
7238   grep -v '^ *+' conftest.er1 >conftest.err
7239   rm -f conftest.er1
7240   cat conftest.err >&5
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); } &&
7243          { ac_try='test -z "$ac_cxx_werror_flag"
7244                          || test ! -s conftest.err'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; } &&
7250          { ac_try='test -s conftest.$ac_objext'
7251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252   (eval $ac_try) 2>&5
7253   ac_status=$?
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); }; }; then
7256   ensc_sys_compilerwarnflags_CXX=${warn_flags}
7257 else
7258   echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 ensc_sys_compilerwarnflags_CXX=
7262 fi
7263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7264         ac_ext=c
7265 ac_cpp='$CPP $CPPFLAGS'
7266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269
7270         CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7271
7272         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
7273                 echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6
7275         else
7276                 echo "$as_me:$LINENO: result: yes" >&5
7277 echo "${ECHO_T}yes" >&6
7278         fi
7279
7280
7281
7282
7283
7284   echo 'void f(){}' > conftest.cc
7285   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
7286   do
7287     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
7288 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
7289     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
7290     then
7291       CXXFLAGS="${CXXFLAGS} $i"
7292       echo "$as_me:$LINENO: result: yes" >&5
7293 echo "${ECHO_T}yes" >&6
7294     else
7295       echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6
7297     fi
7298   done
7299   rm -f conftest.cc conftest.o
7300
7301
7302 echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
7303 echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6
7304 # Check whether --enable-extra-optimizations or --disable-extra-optimizations was given.
7305 if test "${enable_extra_optimizations+set}" = set; then
7306   enableval="$enable_extra_optimizations"
7307   case "$enableval" in
7308                   (yes) use_extra_optimizations=1;;
7309                   (no)  use_extra_optimizations=;;
7310                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
7311 echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
7312    { (exit 1); exit 1; }; };;
7313                esac
7314 else
7315   use_extra_optimizations=1
7316 fi;
7317
7318 if test x"$use_extra_optimizations" = x; then
7319         echo "$as_me:$LINENO: result: no" >&5
7320 echo "${ECHO_T}no" >&6
7321 else
7322         echo "$as_me:$LINENO: result: yes" >&5
7323 echo "${ECHO_T}yes" >&6
7324
7325
7326
7327 echo 'void f(){}' > conftest.c
7328   for i in -funit-at-a-time
7329   do
7330     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7331 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7332     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7333     then
7334       CFLAGS="${CFLAGS} $i"
7335       echo "$as_me:$LINENO: result: yes" >&5
7336 echo "${ECHO_T}yes" >&6
7337     else
7338       echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6
7340     fi
7341   done
7342   rm -f conftest.c conftest.o
7343
7344
7345
7346
7347   echo 'void f(){}' > conftest.cc
7348   for i in -funit-at-a-time
7349   do
7350     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
7351 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
7352     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
7353     then
7354       CXXFLAGS="${CXXFLAGS} $i"
7355       echo "$as_me:$LINENO: result: yes" >&5
7356 echo "${ECHO_T}yes" >&6
7357     else
7358       echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6
7360     fi
7361   done
7362   rm -f conftest.cc conftest.o
7363
7364 fi
7365
7366 echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
7367 echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6
7368 # Check whether --enable-lib-debug or --disable-lib-debug was given.
7369 if test "${enable_lib_debug+set}" = set; then
7370   enableval="$enable_lib_debug"
7371   case "$enableval" in
7372                   (yes) use_lib_debug=1;;
7373                   (no)  use_lib_debug=;;
7374                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
7375 echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
7376    { (exit 1); exit 1; }; };;
7377                esac
7378 else
7379    use_lib_debug=
7380 fi;
7381
7382 if test x"$use_lib_debug" = x; then
7383         LIB_DEBUG_CPPFLAGS=-DNDEBUG
7384
7385         echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6
7387 else
7388
7389         echo "$as_me:$LINENO: result: yes" >&5
7390 echo "${ECHO_T}yes" >&6
7391 fi
7392
7393 echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
7394 echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6
7395 # Check whether --enable-expensive-tests or --disable-expensive-tests was given.
7396 if test "${enable_expensive_tests+set}" = set; then
7397   enableval="$enable_expensive_tests"
7398   case "$enableval" in
7399                  (yes|no)  use_expensive_tests=$enableval;;
7400                  (*)       { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-expensive-tests'" >&5
7401 echo "$as_me: error: '$enableval' is not a valid value for '--disable-expensive-tests'" >&2;}
7402    { (exit 1); exit 1; }; };;
7403                esac
7404 else
7405    use_expensive_tests=yes
7406 fi;
7407 echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
7408 echo "${ECHO_T}$use_expensive_tests" >&6
7409
7410 ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
7411
7412
7413
7414
7415         echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
7416 echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6
7417         echo "$as_me:$LINENO: result: " >&5
7418 echo "${ECHO_T}" >&6
7419
7420         ac_ext=c
7421 ac_cpp='$CPP $CPPFLAGS'
7422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7425
7426         echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
7427 echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6
7428 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
7429   echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431   cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h.  */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h.  */
7437
7438 #include <linux/personality.h>
7439
7440
7441 int
7442 main ()
7443 {
7444 #ifndef MMAP_PAGE_ZERO
7445   char *p = (char *) MMAP_PAGE_ZERO;
7446 #endif
7447
7448   ;
7449   return 0;
7450 }
7451 _ACEOF
7452 rm -f conftest.$ac_objext
7453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7454   (eval $ac_compile) 2>conftest.er1
7455   ac_status=$?
7456   grep -v '^ *+' conftest.er1 >conftest.err
7457   rm -f conftest.er1
7458   cat conftest.err >&5
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); } &&
7461          { ac_try='test -z "$ac_c_werror_flag"
7462                          || test ! -s conftest.err'
7463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464   (eval $ac_try) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); }; } &&
7468          { ac_try='test -s conftest.$ac_objext'
7469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470   (eval $ac_try) 2>&5
7471   ac_status=$?
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); }; }; then
7474   ac_cv_have_decl_MMAP_PAGE_ZERO=yes
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479 ac_cv_have_decl_MMAP_PAGE_ZERO=no
7480 fi
7481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
7484 echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6
7485 if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
7486
7487 cat >>confdefs.h <<_ACEOF
7488 #define HAVE_DECL_MMAP_PAGE_ZERO 1
7489 _ACEOF
7490
7491
7492 else
7493   cat >>confdefs.h <<_ACEOF
7494 #define HAVE_DECL_MMAP_PAGE_ZERO 0
7495 _ACEOF
7496
7497
7498 fi
7499 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
7500 echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6
7501 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h.  */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h.  */
7510
7511 #include <linux/personality.h>
7512
7513
7514 int
7515 main ()
7516 {
7517 #ifndef ADDR_LIMIT_32BIT
7518   char *p = (char *) ADDR_LIMIT_32BIT;
7519 #endif
7520
7521   ;
7522   return 0;
7523 }
7524 _ACEOF
7525 rm -f conftest.$ac_objext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527   (eval $ac_compile) 2>conftest.er1
7528   ac_status=$?
7529   grep -v '^ *+' conftest.er1 >conftest.err
7530   rm -f conftest.er1
7531   cat conftest.err >&5
7532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533   (exit $ac_status); } &&
7534          { ac_try='test -z "$ac_c_werror_flag"
7535                          || test ! -s conftest.err'
7536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537   (eval $ac_try) 2>&5
7538   ac_status=$?
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); }; } &&
7541          { ac_try='test -s conftest.$ac_objext'
7542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543   (eval $ac_try) 2>&5
7544   ac_status=$?
7545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546   (exit $ac_status); }; }; then
7547   ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
7548 else
7549   echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7551
7552 ac_cv_have_decl_ADDR_LIMIT_32BIT=no
7553 fi
7554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7555 fi
7556 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
7557 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6
7558 if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
7559
7560 cat >>confdefs.h <<_ACEOF
7561 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
7562 _ACEOF
7563
7564
7565 else
7566   cat >>confdefs.h <<_ACEOF
7567 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
7568 _ACEOF
7569
7570
7571 fi
7572 echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
7573 echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6
7574 if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
7575   echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577   cat >conftest.$ac_ext <<_ACEOF
7578 /* confdefs.h.  */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h.  */
7583
7584 #include <linux/personality.h>
7585
7586
7587 int
7588 main ()
7589 {
7590 #ifndef SHORT_INODE
7591   char *p = (char *) SHORT_INODE;
7592 #endif
7593
7594   ;
7595   return 0;
7596 }
7597 _ACEOF
7598 rm -f conftest.$ac_objext
7599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7600   (eval $ac_compile) 2>conftest.er1
7601   ac_status=$?
7602   grep -v '^ *+' conftest.er1 >conftest.err
7603   rm -f conftest.er1
7604   cat conftest.err >&5
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); } &&
7607          { ac_try='test -z "$ac_c_werror_flag"
7608                          || test ! -s conftest.err'
7609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610   (eval $ac_try) 2>&5
7611   ac_status=$?
7612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613   (exit $ac_status); }; } &&
7614          { ac_try='test -s conftest.$ac_objext'
7615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616   (eval $ac_try) 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }; }; then
7620   ac_cv_have_decl_SHORT_INODE=yes
7621 else
7622   echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7624
7625 ac_cv_have_decl_SHORT_INODE=no
7626 fi
7627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7628 fi
7629 echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
7630 echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6
7631 if test $ac_cv_have_decl_SHORT_INODE = yes; then
7632
7633 cat >>confdefs.h <<_ACEOF
7634 #define HAVE_DECL_SHORT_INODE 1
7635 _ACEOF
7636
7637
7638 else
7639   cat >>confdefs.h <<_ACEOF
7640 #define HAVE_DECL_SHORT_INODE 0
7641 _ACEOF
7642
7643
7644 fi
7645 echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
7646 echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6
7647 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
7648   echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650   cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h.  */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h.  */
7656
7657 #include <linux/personality.h>
7658
7659
7660 int
7661 main ()
7662 {
7663 #ifndef WHOLE_SECONDS
7664   char *p = (char *) WHOLE_SECONDS;
7665 #endif
7666
7667   ;
7668   return 0;
7669 }
7670 _ACEOF
7671 rm -f conftest.$ac_objext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7673   (eval $ac_compile) 2>conftest.er1
7674   ac_status=$?
7675   grep -v '^ *+' conftest.er1 >conftest.err
7676   rm -f conftest.er1
7677   cat conftest.err >&5
7678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   (exit $ac_status); } &&
7680          { ac_try='test -z "$ac_c_werror_flag"
7681                          || test ! -s conftest.err'
7682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683   (eval $ac_try) 2>&5
7684   ac_status=$?
7685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686   (exit $ac_status); }; } &&
7687          { ac_try='test -s conftest.$ac_objext'
7688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689   (eval $ac_try) 2>&5
7690   ac_status=$?
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); }; }; then
7693   ac_cv_have_decl_WHOLE_SECONDS=yes
7694 else
7695   echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7697
7698 ac_cv_have_decl_WHOLE_SECONDS=no
7699 fi
7700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7701 fi
7702 echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
7703 echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6
7704 if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
7705
7706 cat >>confdefs.h <<_ACEOF
7707 #define HAVE_DECL_WHOLE_SECONDS 1
7708 _ACEOF
7709
7710
7711 else
7712   cat >>confdefs.h <<_ACEOF
7713 #define HAVE_DECL_WHOLE_SECONDS 0
7714 _ACEOF
7715
7716
7717 fi
7718 echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
7719 echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6
7720 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
7721   echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723   cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h.  */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h.  */
7729
7730 #include <linux/personality.h>
7731
7732
7733 int
7734 main ()
7735 {
7736 #ifndef STICKY_TIMEOUTS
7737   char *p = (char *) STICKY_TIMEOUTS;
7738 #endif
7739
7740   ;
7741   return 0;
7742 }
7743 _ACEOF
7744 rm -f conftest.$ac_objext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7746   (eval $ac_compile) 2>conftest.er1
7747   ac_status=$?
7748   grep -v '^ *+' conftest.er1 >conftest.err
7749   rm -f conftest.er1
7750   cat conftest.err >&5
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); } &&
7753          { ac_try='test -z "$ac_c_werror_flag"
7754                          || test ! -s conftest.err'
7755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756   (eval $ac_try) 2>&5
7757   ac_status=$?
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); }; } &&
7760          { ac_try='test -s conftest.$ac_objext'
7761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762   (eval $ac_try) 2>&5
7763   ac_status=$?
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); }; }; then
7766   ac_cv_have_decl_STICKY_TIMEOUTS=yes
7767 else
7768   echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7770
7771 ac_cv_have_decl_STICKY_TIMEOUTS=no
7772 fi
7773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7774 fi
7775 echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
7776 echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6
7777 if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
7778
7779 cat >>confdefs.h <<_ACEOF
7780 #define HAVE_DECL_STICKY_TIMEOUTS 1
7781 _ACEOF
7782
7783
7784 else
7785   cat >>confdefs.h <<_ACEOF
7786 #define HAVE_DECL_STICKY_TIMEOUTS 0
7787 _ACEOF
7788
7789
7790 fi
7791 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
7792 echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6
7793 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h.  */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h.  */
7802
7803 #include <linux/personality.h>
7804
7805
7806 int
7807 main ()
7808 {
7809 #ifndef ADDR_LIMIT_3GB
7810   char *p = (char *) ADDR_LIMIT_3GB;
7811 #endif
7812
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 rm -f conftest.$ac_objext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7819   (eval $ac_compile) 2>conftest.er1
7820   ac_status=$?
7821   grep -v '^ *+' conftest.er1 >conftest.err
7822   rm -f conftest.er1
7823   cat conftest.err >&5
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); } &&
7826          { ac_try='test -z "$ac_c_werror_flag"
7827                          || test ! -s conftest.err'
7828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829   (eval $ac_try) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; } &&
7833          { ac_try='test -s conftest.$ac_objext'
7834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835   (eval $ac_try) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; }; then
7839   ac_cv_have_decl_ADDR_LIMIT_3GB=yes
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844 ac_cv_have_decl_ADDR_LIMIT_3GB=no
7845 fi
7846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7847 fi
7848 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
7849 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6
7850 if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
7851
7852 cat >>confdefs.h <<_ACEOF
7853 #define HAVE_DECL_ADDR_LIMIT_3GB 1
7854 _ACEOF
7855
7856
7857 else
7858   cat >>confdefs.h <<_ACEOF
7859 #define HAVE_DECL_ADDR_LIMIT_3GB 0
7860 _ACEOF
7861
7862
7863 fi
7864
7865
7866
7867         echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
7868 echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6
7869 if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
7870   echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872   cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h.  */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h.  */
7878
7879 #include <linux/personality.h>
7880
7881
7882 int
7883 main ()
7884 {
7885 #ifndef PER_LINUX
7886   char *p = (char *) PER_LINUX;
7887 #endif
7888
7889   ;
7890   return 0;
7891 }
7892 _ACEOF
7893 rm -f conftest.$ac_objext
7894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895   (eval $ac_compile) 2>conftest.er1
7896   ac_status=$?
7897   grep -v '^ *+' conftest.er1 >conftest.err
7898   rm -f conftest.er1
7899   cat conftest.err >&5
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); } &&
7902          { ac_try='test -z "$ac_c_werror_flag"
7903                          || test ! -s conftest.err'
7904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905   (eval $ac_try) 2>&5
7906   ac_status=$?
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); }; } &&
7909          { ac_try='test -s conftest.$ac_objext'
7910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911   (eval $ac_try) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; }; then
7915   ac_cv_have_decl_PER_LINUX=yes
7916 else
7917   echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920 ac_cv_have_decl_PER_LINUX=no
7921 fi
7922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7923 fi
7924 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
7925 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6
7926 if test $ac_cv_have_decl_PER_LINUX = yes; then
7927
7928 cat >>confdefs.h <<_ACEOF
7929 #define HAVE_DECL_PER_LINUX 1
7930 _ACEOF
7931
7932
7933 else
7934   cat >>confdefs.h <<_ACEOF
7935 #define HAVE_DECL_PER_LINUX 0
7936 _ACEOF
7937
7938
7939 fi
7940 echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
7941 echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6
7942 if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
7943   echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945   cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h.  */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h.  */
7951
7952 #include <linux/personality.h>
7953
7954
7955 int
7956 main ()
7957 {
7958 #ifndef PER_LINUX_32BIT
7959   char *p = (char *) PER_LINUX_32BIT;
7960 #endif
7961
7962   ;
7963   return 0;
7964 }
7965 _ACEOF
7966 rm -f conftest.$ac_objext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7968   (eval $ac_compile) 2>conftest.er1
7969   ac_status=$?
7970   grep -v '^ *+' conftest.er1 >conftest.err
7971   rm -f conftest.er1
7972   cat conftest.err >&5
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); } &&
7975          { ac_try='test -z "$ac_c_werror_flag"
7976                          || test ! -s conftest.err'
7977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978   (eval $ac_try) 2>&5
7979   ac_status=$?
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); }; } &&
7982          { ac_try='test -s conftest.$ac_objext'
7983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984   (eval $ac_try) 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; }; then
7988   ac_cv_have_decl_PER_LINUX_32BIT=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993 ac_cv_have_decl_PER_LINUX_32BIT=no
7994 fi
7995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7996 fi
7997 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
7998 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6
7999 if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
8000
8001 cat >>confdefs.h <<_ACEOF
8002 #define HAVE_DECL_PER_LINUX_32BIT 1
8003 _ACEOF
8004
8005
8006 else
8007   cat >>confdefs.h <<_ACEOF
8008 #define HAVE_DECL_PER_LINUX_32BIT 0
8009 _ACEOF
8010
8011
8012 fi
8013 echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
8014 echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6
8015 if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
8016   echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018   cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h.  */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h.  */
8024
8025 #include <linux/personality.h>
8026
8027
8028 int
8029 main ()
8030 {
8031 #ifndef PER_SVR4
8032   char *p = (char *) PER_SVR4;
8033 #endif
8034
8035   ;
8036   return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041   (eval $ac_compile) 2>conftest.er1
8042   ac_status=$?
8043   grep -v '^ *+' conftest.er1 >conftest.err
8044   rm -f conftest.er1
8045   cat conftest.err >&5
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); } &&
8048          { ac_try='test -z "$ac_c_werror_flag"
8049                          || test ! -s conftest.err'
8050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051   (eval $ac_try) 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; } &&
8055          { ac_try='test -s conftest.$ac_objext'
8056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057   (eval $ac_try) 2>&5
8058   ac_status=$?
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); }; }; then
8061   ac_cv_have_decl_PER_SVR4=yes
8062 else
8063   echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 ac_cv_have_decl_PER_SVR4=no
8067 fi
8068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8069 fi
8070 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
8071 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6
8072 if test $ac_cv_have_decl_PER_SVR4 = yes; then
8073
8074 cat >>confdefs.h <<_ACEOF
8075 #define HAVE_DECL_PER_SVR4 1
8076 _ACEOF
8077
8078
8079 else
8080   cat >>confdefs.h <<_ACEOF
8081 #define HAVE_DECL_PER_SVR4 0
8082 _ACEOF
8083
8084
8085 fi
8086 echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
8087 echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6
8088 if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   cat >conftest.$ac_ext <<_ACEOF
8092 /* confdefs.h.  */
8093 _ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h.  */
8097
8098 #include <linux/personality.h>
8099
8100
8101 int
8102 main ()
8103 {
8104 #ifndef PER_SVR3
8105   char *p = (char *) PER_SVR3;
8106 #endif
8107
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114   (eval $ac_compile) 2>conftest.er1
8115   ac_status=$?
8116   grep -v '^ *+' conftest.er1 >conftest.err
8117   rm -f conftest.er1
8118   cat conftest.err >&5
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); } &&
8121          { ac_try='test -z "$ac_c_werror_flag"
8122                          || test ! -s conftest.err'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; } &&
8128          { ac_try='test -s conftest.$ac_objext'
8129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   ac_cv_have_decl_PER_SVR3=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 ac_cv_have_decl_PER_SVR3=no
8140 fi
8141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8142 fi
8143 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
8144 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6
8145 if test $ac_cv_have_decl_PER_SVR3 = yes; then
8146
8147 cat >>confdefs.h <<_ACEOF
8148 #define HAVE_DECL_PER_SVR3 1
8149 _ACEOF
8150
8151
8152 else
8153   cat >>confdefs.h <<_ACEOF
8154 #define HAVE_DECL_PER_SVR3 0
8155 _ACEOF
8156
8157
8158 fi
8159 echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
8160 echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6
8161 if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170
8171 #include <linux/personality.h>
8172
8173
8174 int
8175 main ()
8176 {
8177 #ifndef PER_SCOSVR3
8178   char *p = (char *) PER_SCOSVR3;
8179 #endif
8180
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187   (eval $ac_compile) 2>conftest.er1
8188   ac_status=$?
8189   grep -v '^ *+' conftest.er1 >conftest.err
8190   rm -f conftest.er1
8191   cat conftest.err >&5
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); } &&
8194          { ac_try='test -z "$ac_c_werror_flag"
8195                          || test ! -s conftest.err'
8196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197   (eval $ac_try) 2>&5
8198   ac_status=$?
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); }; } &&
8201          { ac_try='test -s conftest.$ac_objext'
8202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203   (eval $ac_try) 2>&5
8204   ac_status=$?
8205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); }; }; then
8207   ac_cv_have_decl_PER_SCOSVR3=yes
8208 else
8209   echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8211
8212 ac_cv_have_decl_PER_SCOSVR3=no
8213 fi
8214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8215 fi
8216 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
8217 echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6
8218 if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
8219
8220 cat >>confdefs.h <<_ACEOF
8221 #define HAVE_DECL_PER_SCOSVR3 1
8222 _ACEOF
8223
8224
8225 else
8226   cat >>confdefs.h <<_ACEOF
8227 #define HAVE_DECL_PER_SCOSVR3 0
8228 _ACEOF
8229
8230
8231 fi
8232 echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
8233 echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6
8234 if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243
8244 #include <linux/personality.h>
8245
8246
8247 int
8248 main ()
8249 {
8250 #ifndef PER_OSR5
8251   char *p = (char *) PER_OSR5;
8252 #endif
8253
8254   ;
8255   return 0;
8256 }
8257 _ACEOF
8258 rm -f conftest.$ac_objext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8260   (eval $ac_compile) 2>conftest.er1
8261   ac_status=$?
8262   grep -v '^ *+' conftest.er1 >conftest.err
8263   rm -f conftest.er1
8264   cat conftest.err >&5
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); } &&
8267          { ac_try='test -z "$ac_c_werror_flag"
8268                          || test ! -s conftest.err'
8269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270   (eval $ac_try) 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); }; } &&
8274          { ac_try='test -s conftest.$ac_objext'
8275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276   (eval $ac_try) 2>&5
8277   ac_status=$?
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); }; }; then
8280   ac_cv_have_decl_PER_OSR5=yes
8281 else
8282   echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8284
8285 ac_cv_have_decl_PER_OSR5=no
8286 fi
8287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8288 fi
8289 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
8290 echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6
8291 if test $ac_cv_have_decl_PER_OSR5 = yes; then
8292
8293 cat >>confdefs.h <<_ACEOF
8294 #define HAVE_DECL_PER_OSR5 1
8295 _ACEOF
8296
8297
8298 else
8299   cat >>confdefs.h <<_ACEOF
8300 #define HAVE_DECL_PER_OSR5 0
8301 _ACEOF
8302
8303
8304 fi
8305 echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
8306 echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6
8307 if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
8308   echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310   cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316
8317 #include <linux/personality.h>
8318
8319
8320 int
8321 main ()
8322 {
8323 #ifndef PER_WYSEV386
8324   char *p = (char *) PER_WYSEV386;
8325 #endif
8326
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 rm -f conftest.$ac_objext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8333   (eval $ac_compile) 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } &&
8340          { ac_try='test -z "$ac_c_werror_flag"
8341                          || test ! -s conftest.err'
8342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343   (eval $ac_try) 2>&5
8344   ac_status=$?
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); }; } &&
8347          { ac_try='test -s conftest.$ac_objext'
8348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349   (eval $ac_try) 2>&5
8350   ac_status=$?
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); }; }; then
8353   ac_cv_have_decl_PER_WYSEV386=yes
8354 else
8355   echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8357
8358 ac_cv_have_decl_PER_WYSEV386=no
8359 fi
8360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8361 fi
8362 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
8363 echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6
8364 if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
8365
8366 cat >>confdefs.h <<_ACEOF
8367 #define HAVE_DECL_PER_WYSEV386 1
8368 _ACEOF
8369
8370
8371 else
8372   cat >>confdefs.h <<_ACEOF
8373 #define HAVE_DECL_PER_WYSEV386 0
8374 _ACEOF
8375
8376
8377 fi
8378 echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
8379 echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6
8380 if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
8381   echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383   cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h.  */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h.  */
8389
8390 #include <linux/personality.h>
8391
8392
8393 int
8394 main ()
8395 {
8396 #ifndef PER_ISCR4
8397   char *p = (char *) PER_ISCR4;
8398 #endif
8399
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406   (eval $ac_compile) 2>conftest.er1
8407   ac_status=$?
8408   grep -v '^ *+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } &&
8413          { ac_try='test -z "$ac_c_werror_flag"
8414                          || test ! -s conftest.err'
8415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416   (eval $ac_try) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }; } &&
8420          { ac_try='test -s conftest.$ac_objext'
8421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422   (eval $ac_try) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   ac_cv_have_decl_PER_ISCR4=yes
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431 ac_cv_have_decl_PER_ISCR4=no
8432 fi
8433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8434 fi
8435 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
8436 echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6
8437 if test $ac_cv_have_decl_PER_ISCR4 = yes; then
8438
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_PER_ISCR4 1
8441 _ACEOF
8442
8443
8444 else
8445   cat >>confdefs.h <<_ACEOF
8446 #define HAVE_DECL_PER_ISCR4 0
8447 _ACEOF
8448
8449
8450 fi
8451 echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
8452 echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6
8453 if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
8454   echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456   cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462
8463 #include <linux/personality.h>
8464
8465
8466 int
8467 main ()
8468 {
8469 #ifndef PER_BSD
8470   char *p = (char *) PER_BSD;
8471 #endif
8472
8473   ;
8474   return 0;
8475 }
8476 _ACEOF
8477 rm -f conftest.$ac_objext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8479   (eval $ac_compile) 2>conftest.er1
8480   ac_status=$?
8481   grep -v '^ *+' conftest.er1 >conftest.err
8482   rm -f conftest.er1
8483   cat conftest.err >&5
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); } &&
8486          { ac_try='test -z "$ac_c_werror_flag"
8487                          || test ! -s conftest.err'
8488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489   (eval $ac_try) 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; } &&
8493          { ac_try='test -s conftest.$ac_objext'
8494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495   (eval $ac_try) 2>&5
8496   ac_status=$?
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); }; }; then
8499   ac_cv_have_decl_PER_BSD=yes
8500 else
8501   echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8503
8504 ac_cv_have_decl_PER_BSD=no
8505 fi
8506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8507 fi
8508 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
8509 echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6
8510 if test $ac_cv_have_decl_PER_BSD = yes; then
8511
8512 cat >>confdefs.h <<_ACEOF
8513 #define HAVE_DECL_PER_BSD 1
8514 _ACEOF
8515
8516
8517 else
8518   cat >>confdefs.h <<_ACEOF
8519 #define HAVE_DECL_PER_BSD 0
8520 _ACEOF
8521
8522
8523 fi
8524 echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
8525 echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6
8526 if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
8527   echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529   cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h.  */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h.  */
8535
8536 #include <linux/personality.h>
8537
8538
8539 int
8540 main ()
8541 {
8542 #ifndef PER_SUNOS
8543   char *p = (char *) PER_SUNOS;
8544 #endif
8545
8546   ;
8547   return 0;
8548 }
8549 _ACEOF
8550 rm -f conftest.$ac_objext
8551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8552   (eval $ac_compile) 2>conftest.er1
8553   ac_status=$?
8554   grep -v '^ *+' conftest.er1 >conftest.err
8555   rm -f conftest.er1
8556   cat conftest.err >&5
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); } &&
8559          { ac_try='test -z "$ac_c_werror_flag"
8560                          || test ! -s conftest.err'
8561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562   (eval $ac_try) 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; } &&
8566          { ac_try='test -s conftest.$ac_objext'
8567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568   (eval $ac_try) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); }; }; then
8572   ac_cv_have_decl_PER_SUNOS=yes
8573 else
8574   echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8576
8577 ac_cv_have_decl_PER_SUNOS=no
8578 fi
8579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8580 fi
8581 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
8582 echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6
8583 if test $ac_cv_have_decl_PER_SUNOS = yes; then
8584
8585 cat >>confdefs.h <<_ACEOF
8586 #define HAVE_DECL_PER_SUNOS 1
8587 _ACEOF
8588
8589
8590 else
8591   cat >>confdefs.h <<_ACEOF
8592 #define HAVE_DECL_PER_SUNOS 0
8593 _ACEOF
8594
8595
8596 fi
8597 echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
8598 echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6
8599 if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
8600   echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602   cat >conftest.$ac_ext <<_ACEOF
8603 /* confdefs.h.  */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h.  */
8608
8609 #include <linux/personality.h>
8610
8611
8612 int
8613 main ()
8614 {
8615 #ifndef PER_XENIX
8616   char *p = (char *) PER_XENIX;
8617 #endif
8618
8619   ;
8620   return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8625   (eval $ac_compile) 2>conftest.er1
8626   ac_status=$?
8627   grep -v '^ *+' conftest.er1 >conftest.err
8628   rm -f conftest.er1
8629   cat conftest.err >&5
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); } &&
8632          { ac_try='test -z "$ac_c_werror_flag"
8633                          || test ! -s conftest.err'
8634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635   (eval $ac_try) 2>&5
8636   ac_status=$?
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); }; } &&
8639          { ac_try='test -s conftest.$ac_objext'
8640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641   (eval $ac_try) 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; }; then
8645   ac_cv_have_decl_PER_XENIX=yes
8646 else
8647   echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8649
8650 ac_cv_have_decl_PER_XENIX=no
8651 fi
8652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8653 fi
8654 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
8655 echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6
8656 if test $ac_cv_have_decl_PER_XENIX = yes; then
8657
8658 cat >>confdefs.h <<_ACEOF
8659 #define HAVE_DECL_PER_XENIX 1
8660 _ACEOF
8661
8662
8663 else
8664   cat >>confdefs.h <<_ACEOF
8665 #define HAVE_DECL_PER_XENIX 0
8666 _ACEOF
8667
8668
8669 fi
8670 echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
8671 echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6
8672 if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
8673   echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675   cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h.  */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h.  */
8681
8682 #include <linux/personality.h>
8683
8684
8685 int
8686 main ()
8687 {
8688 #ifndef PER_LINUX32
8689   char *p = (char *) PER_LINUX32;
8690 #endif
8691
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8698   (eval $ac_compile) 2>conftest.er1
8699   ac_status=$?
8700   grep -v '^ *+' conftest.er1 >conftest.err
8701   rm -f conftest.er1
8702   cat conftest.err >&5
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } &&
8705          { ac_try='test -z "$ac_c_werror_flag"
8706                          || test ! -s conftest.err'
8707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; } &&
8712          { ac_try='test -s conftest.$ac_objext'
8713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714   (eval $ac_try) 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); }; }; then
8718   ac_cv_have_decl_PER_LINUX32=yes
8719 else
8720   echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723 ac_cv_have_decl_PER_LINUX32=no
8724 fi
8725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8726 fi
8727 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
8728 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6
8729 if test $ac_cv_have_decl_PER_LINUX32 = yes; then
8730
8731 cat >>confdefs.h <<_ACEOF
8732 #define HAVE_DECL_PER_LINUX32 1
8733 _ACEOF
8734
8735
8736 else
8737   cat >>confdefs.h <<_ACEOF
8738 #define HAVE_DECL_PER_LINUX32 0
8739 _ACEOF
8740
8741
8742 fi
8743 echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
8744 echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6
8745 if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
8746   echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748   cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h.  */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h.  */
8754
8755 #include <linux/personality.h>
8756
8757
8758 int
8759 main ()
8760 {
8761 #ifndef PER_LINUX32_3GB
8762   char *p = (char *) PER_LINUX32_3GB;
8763 #endif
8764
8765   ;
8766   return 0;
8767 }
8768 _ACEOF
8769 rm -f conftest.$ac_objext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8771   (eval $ac_compile) 2>conftest.er1
8772   ac_status=$?
8773   grep -v '^ *+' conftest.er1 >conftest.err
8774   rm -f conftest.er1
8775   cat conftest.err >&5
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); } &&
8778          { ac_try='test -z "$ac_c_werror_flag"
8779                          || test ! -s conftest.err'
8780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781   (eval $ac_try) 2>&5
8782   ac_status=$?
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); }; } &&
8785          { ac_try='test -s conftest.$ac_objext'
8786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787   (eval $ac_try) 2>&5
8788   ac_status=$?
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); }; }; then
8791   ac_cv_have_decl_PER_LINUX32_3GB=yes
8792 else
8793   echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8795
8796 ac_cv_have_decl_PER_LINUX32_3GB=no
8797 fi
8798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8799 fi
8800 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
8801 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6
8802 if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
8803
8804 cat >>confdefs.h <<_ACEOF
8805 #define HAVE_DECL_PER_LINUX32_3GB 1
8806 _ACEOF
8807
8808
8809 else
8810   cat >>confdefs.h <<_ACEOF
8811 #define HAVE_DECL_PER_LINUX32_3GB 0
8812 _ACEOF
8813
8814
8815 fi
8816 echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
8817 echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6
8818 if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
8819   echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821   cat >conftest.$ac_ext <<_ACEOF
8822 /* confdefs.h.  */
8823 _ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h.  */
8827
8828 #include <linux/personality.h>
8829
8830
8831 int
8832 main ()
8833 {
8834 #ifndef PER_IRIX32
8835   char *p = (char *) PER_IRIX32;
8836 #endif
8837
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8844   (eval $ac_compile) 2>conftest.er1
8845   ac_status=$?
8846   grep -v '^ *+' conftest.er1 >conftest.err
8847   rm -f conftest.er1
8848   cat conftest.err >&5
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } &&
8851          { ac_try='test -z "$ac_c_werror_flag"
8852                          || test ! -s conftest.err'
8853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854   (eval $ac_try) 2>&5
8855   ac_status=$?
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); }; } &&
8858          { ac_try='test -s conftest.$ac_objext'
8859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860   (eval $ac_try) 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); }; }; then
8864   ac_cv_have_decl_PER_IRIX32=yes
8865 else
8866   echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8868
8869 ac_cv_have_decl_PER_IRIX32=no
8870 fi
8871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8872 fi
8873 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
8874 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6
8875 if test $ac_cv_have_decl_PER_IRIX32 = yes; then
8876
8877 cat >>confdefs.h <<_ACEOF
8878 #define HAVE_DECL_PER_IRIX32 1
8879 _ACEOF
8880
8881
8882 else
8883   cat >>confdefs.h <<_ACEOF
8884 #define HAVE_DECL_PER_IRIX32 0
8885 _ACEOF
8886
8887
8888 fi
8889 echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
8890 echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6
8891 if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
8892   echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894   cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900
8901 #include <linux/personality.h>
8902
8903
8904 int
8905 main ()
8906 {
8907 #ifndef PER_IRIXN32
8908   char *p = (char *) PER_IRIXN32;
8909 #endif
8910
8911   ;
8912   return 0;
8913 }
8914 _ACEOF
8915 rm -f conftest.$ac_objext
8916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8917   (eval $ac_compile) 2>conftest.er1
8918   ac_status=$?
8919   grep -v '^ *+' conftest.er1 >conftest.err
8920   rm -f conftest.er1
8921   cat conftest.err >&5
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); } &&
8924          { ac_try='test -z "$ac_c_werror_flag"
8925                          || test ! -s conftest.err'
8926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927   (eval $ac_try) 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); }; } &&
8931          { ac_try='test -s conftest.$ac_objext'
8932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933   (eval $ac_try) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); }; }; then
8937   ac_cv_have_decl_PER_IRIXN32=yes
8938 else
8939   echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8941
8942 ac_cv_have_decl_PER_IRIXN32=no
8943 fi
8944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8945 fi
8946 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
8947 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6
8948 if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
8949
8950 cat >>confdefs.h <<_ACEOF
8951 #define HAVE_DECL_PER_IRIXN32 1
8952 _ACEOF
8953
8954
8955 else
8956   cat >>confdefs.h <<_ACEOF
8957 #define HAVE_DECL_PER_IRIXN32 0
8958 _ACEOF
8959
8960
8961 fi
8962 echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
8963 echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6
8964 if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
8965   echo $ECHO_N "(cached) $ECHO_C" >&6
8966 else
8967   cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h.  */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h.  */
8973
8974 #include <linux/personality.h>
8975
8976
8977 int
8978 main ()
8979 {
8980 #ifndef PER_IRIX64
8981   char *p = (char *) PER_IRIX64;
8982 #endif
8983
8984   ;
8985   return 0;
8986 }
8987 _ACEOF
8988 rm -f conftest.$ac_objext
8989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8990   (eval $ac_compile) 2>conftest.er1
8991   ac_status=$?
8992   grep -v '^ *+' conftest.er1 >conftest.err
8993   rm -f conftest.er1
8994   cat conftest.err >&5
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } &&
8997          { ac_try='test -z "$ac_c_werror_flag"
8998                          || test ! -s conftest.err'
8999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000   (eval $ac_try) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); }; } &&
9004          { ac_try='test -s conftest.$ac_objext'
9005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006   (eval $ac_try) 2>&5
9007   ac_status=$?
9008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); }; }; then
9010   ac_cv_have_decl_PER_IRIX64=yes
9011 else
9012   echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9014
9015 ac_cv_have_decl_PER_IRIX64=no
9016 fi
9017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9018 fi
9019 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
9020 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6
9021 if test $ac_cv_have_decl_PER_IRIX64 = yes; then
9022
9023 cat >>confdefs.h <<_ACEOF
9024 #define HAVE_DECL_PER_IRIX64 1
9025 _ACEOF
9026
9027
9028 else
9029   cat >>confdefs.h <<_ACEOF
9030 #define HAVE_DECL_PER_IRIX64 0
9031 _ACEOF
9032
9033
9034 fi
9035 echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
9036 echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6
9037 if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
9038   echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040   cat >conftest.$ac_ext <<_ACEOF
9041 /* confdefs.h.  */
9042 _ACEOF
9043 cat confdefs.h >>conftest.$ac_ext
9044 cat >>conftest.$ac_ext <<_ACEOF
9045 /* end confdefs.h.  */
9046
9047 #include <linux/personality.h>
9048
9049
9050 int
9051 main ()
9052 {
9053 #ifndef PER_RISCOS
9054   char *p = (char *) PER_RISCOS;
9055 #endif
9056
9057   ;
9058   return 0;
9059 }
9060 _ACEOF
9061 rm -f conftest.$ac_objext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9063   (eval $ac_compile) 2>conftest.er1
9064   ac_status=$?
9065   grep -v '^ *+' conftest.er1 >conftest.err
9066   rm -f conftest.er1
9067   cat conftest.err >&5
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); } &&
9070          { ac_try='test -z "$ac_c_werror_flag"
9071                          || test ! -s conftest.err'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; } &&
9077          { ac_try='test -s conftest.$ac_objext'
9078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079   (eval $ac_try) 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); }; }; then
9083   ac_cv_have_decl_PER_RISCOS=yes
9084 else
9085   echo "$as_me: failed program was:" >&5
9086 sed 's/^/| /' conftest.$ac_ext >&5
9087
9088 ac_cv_have_decl_PER_RISCOS=no
9089 fi
9090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9091 fi
9092 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
9093 echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6
9094 if test $ac_cv_have_decl_PER_RISCOS = yes; then
9095
9096 cat >>confdefs.h <<_ACEOF
9097 #define HAVE_DECL_PER_RISCOS 1
9098 _ACEOF
9099
9100
9101 else
9102   cat >>confdefs.h <<_ACEOF
9103 #define HAVE_DECL_PER_RISCOS 0
9104 _ACEOF
9105
9106
9107 fi
9108 echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
9109 echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6
9110 if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
9111   echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113   cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119
9120 #include <linux/personality.h>
9121
9122
9123 int
9124 main ()
9125 {
9126 #ifndef PER_SOLARIS
9127   char *p = (char *) PER_SOLARIS;
9128 #endif
9129
9130   ;
9131   return 0;
9132 }
9133 _ACEOF
9134 rm -f conftest.$ac_objext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136   (eval $ac_compile) 2>conftest.er1
9137   ac_status=$?
9138   grep -v '^ *+' conftest.er1 >conftest.err
9139   rm -f conftest.er1
9140   cat conftest.err >&5
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } &&
9143          { ac_try='test -z "$ac_c_werror_flag"
9144                          || test ! -s conftest.err'
9145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146   (eval $ac_try) 2>&5
9147   ac_status=$?
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); }; } &&
9150          { ac_try='test -s conftest.$ac_objext'
9151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152   (eval $ac_try) 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); }; }; then
9156   ac_cv_have_decl_PER_SOLARIS=yes
9157 else
9158   echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9160
9161 ac_cv_have_decl_PER_SOLARIS=no
9162 fi
9163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9164 fi
9165 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
9166 echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6
9167 if test $ac_cv_have_decl_PER_SOLARIS = yes; then
9168
9169 cat >>confdefs.h <<_ACEOF
9170 #define HAVE_DECL_PER_SOLARIS 1
9171 _ACEOF
9172
9173
9174 else
9175   cat >>confdefs.h <<_ACEOF
9176 #define HAVE_DECL_PER_SOLARIS 0
9177 _ACEOF
9178
9179
9180 fi
9181 echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
9182 echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6
9183 if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
9184   echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186   cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h.  */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h.  */
9192
9193 #include <linux/personality.h>
9194
9195
9196 int
9197 main ()
9198 {
9199 #ifndef PER_UW7
9200   char *p = (char *) PER_UW7;
9201 #endif
9202
9203   ;
9204   return 0;
9205 }
9206 _ACEOF
9207 rm -f conftest.$ac_objext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209   (eval $ac_compile) 2>conftest.er1
9210   ac_status=$?
9211   grep -v '^ *+' conftest.er1 >conftest.err
9212   rm -f conftest.er1
9213   cat conftest.err >&5
9214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215   (exit $ac_status); } &&
9216          { ac_try='test -z "$ac_c_werror_flag"
9217                          || test ! -s conftest.err'
9218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219   (eval $ac_try) 2>&5
9220   ac_status=$?
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); }; } &&
9223          { ac_try='test -s conftest.$ac_objext'
9224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225   (eval $ac_try) 2>&5
9226   ac_status=$?
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); }; }; then
9229   ac_cv_have_decl_PER_UW7=yes
9230 else
9231   echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9233
9234 ac_cv_have_decl_PER_UW7=no
9235 fi
9236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9237 fi
9238 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
9239 echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6
9240 if test $ac_cv_have_decl_PER_UW7 = yes; then
9241
9242 cat >>confdefs.h <<_ACEOF
9243 #define HAVE_DECL_PER_UW7 1
9244 _ACEOF
9245
9246
9247 else
9248   cat >>confdefs.h <<_ACEOF
9249 #define HAVE_DECL_PER_UW7 0
9250 _ACEOF
9251
9252
9253 fi
9254 echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
9255 echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6
9256 if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
9257   echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259   cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h.  */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h.  */
9265
9266 #include <linux/personality.h>
9267
9268
9269 int
9270 main ()
9271 {
9272 #ifndef PER_HPUX
9273   char *p = (char *) PER_HPUX;
9274 #endif
9275
9276   ;
9277   return 0;
9278 }
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282   (eval $ac_compile) 2>conftest.er1
9283   ac_status=$?
9284   grep -v '^ *+' conftest.er1 >conftest.err
9285   rm -f conftest.er1
9286   cat conftest.err >&5
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); } &&
9289          { ac_try='test -z "$ac_c_werror_flag"
9290                          || test ! -s conftest.err'
9291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292   (eval $ac_try) 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); }; } &&
9296          { ac_try='test -s conftest.$ac_objext'
9297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298   (eval $ac_try) 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   ac_cv_have_decl_PER_HPUX=yes
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 ac_cv_have_decl_PER_HPUX=no
9308 fi
9309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9310 fi
9311 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
9312 echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6
9313 if test $ac_cv_have_decl_PER_HPUX = yes; then
9314
9315 cat >>confdefs.h <<_ACEOF
9316 #define HAVE_DECL_PER_HPUX 1
9317 _ACEOF
9318
9319
9320 else
9321   cat >>confdefs.h <<_ACEOF
9322 #define HAVE_DECL_PER_HPUX 0
9323 _ACEOF
9324
9325
9326 fi
9327 echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
9328 echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6
9329 if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
9330   echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332   cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338
9339 #include <linux/personality.h>
9340
9341
9342 int
9343 main ()
9344 {
9345 #ifndef PER_OSF4
9346   char *p = (char *) PER_OSF4;
9347 #endif
9348
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 rm -f conftest.$ac_objext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355   (eval $ac_compile) 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } &&
9362          { ac_try='test -z "$ac_c_werror_flag"
9363                          || test ! -s conftest.err'
9364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365   (eval $ac_try) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); }; } &&
9369          { ac_try='test -s conftest.$ac_objext'
9370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371   (eval $ac_try) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); }; }; then
9375   ac_cv_have_decl_PER_OSF4=yes
9376 else
9377   echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9379
9380 ac_cv_have_decl_PER_OSF4=no
9381 fi
9382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9383 fi
9384 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
9385 echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6
9386 if test $ac_cv_have_decl_PER_OSF4 = yes; then
9387
9388 cat >>confdefs.h <<_ACEOF
9389 #define HAVE_DECL_PER_OSF4 1
9390 _ACEOF
9391
9392
9393 else
9394   cat >>confdefs.h <<_ACEOF
9395 #define HAVE_DECL_PER_OSF4 0
9396 _ACEOF
9397
9398
9399 fi
9400
9401
9402         ac_ext=c
9403 ac_cpp='$CPP $CPPFLAGS'
9404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9407
9408
9409
9410
9411
9412
9413         echo "$as_me:$LINENO: checking for initrddir" >&5
9414 echo $ECHO_N "checking for initrddir... $ECHO_C" >&6
9415
9416 # Check whether --with-initrddir or --without-initrddir was given.
9417 if test "${with_initrddir+set}" = set; then
9418   withval="$with_initrddir"
9419   case "$withval" in
9420                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
9421 echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
9422    { (exit 1); exit 1; }; };;
9423                         *)      ensc_initrddir=$withval;;
9424                      esac
9425 else
9426   ensc_initrddir='$(sysconfdir)/init.d'
9427 fi;
9428
9429         if test "initrddir"; then
9430                 initrddir=$ensc_initrddir
9431
9432         fi
9433
9434         echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
9435 echo "${ECHO_T}$ensc_initrddir" >&6
9436
9437
9438         echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
9439 echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6
9440         # Check whether --enable-release or --disable-release was given.
9441 if test "${enable_release+set}" = set; then
9442   enableval="$enable_release"
9443   case "$enableval" in
9444                           yes)  ensc_release_mode=yes;;
9445                           no)   ensc_release_mode=no;;
9446                           *)    { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
9447 echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
9448    { (exit 1); exit 1; }; };;
9449                        esac
9450 else
9451    ensc_release_mode=no
9452 fi;
9453
9454         if test x"$ensc_release_mode" = xno; then
9455                 RELEASE_CPPFLAGS=
9456         else
9457                 RELEASE_CPPFLAGS='-DNDEBUG'
9458         fi
9459
9460
9461         echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
9462 echo "${ECHO_T}$ensc_release_mode" >&6
9463
9464
9465
9466 case $host_cpu in
9467         (i*86|athlon)   min_diet_ver=0.25;;
9468         (ia64|hppa*)    min_diet_ver=0.29;;
9469         (*)             min_diet_ver=0.28;;
9470 esac
9471
9472
9473         echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
9474 echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6
9475
9476
9477
9478
9479         : ${DIET:=diet}
9480         : ${DIETFLAGS=-Os}
9481
9482         # Check whether --enable-dietlibc or --disable-dietlibc was given.
9483 if test "${enable_dietlibc+set}" = set; then
9484   enableval="$enable_dietlibc"
9485   case "$enableval" in
9486                           (yes) use_dietlibc=forced;;
9487                           (no)  use_dietlibc=forced_no;;
9488                           (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
9489 echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
9490    { (exit 1); exit 1; }; };;
9491                        esac
9492 else
9493   which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
9494 fi;
9495
9496         if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
9497             _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
9498             _dietlibc_ver=${_dietlibc_ver##*diet version }
9499             _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
9500             _dietlibc_ver_maj=${_dietlibc_ver%%.*}
9501             _dietlibc_ver_min=${_dietlibc_ver##*.}
9502             _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
9503             _dietlibc_cmp="$min_diet_ver"
9504             _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
9505             _dietlibc_cmp_min=${_dietlibc_cmp##*.}
9506
9507             ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
9508
9509             let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
9510             let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
9511
9512             test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
9513         else
9514             ENSC_VERSION_DIETLIBC=
9515             _dietlibc_ver=-1
9516         fi
9517
9518         ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
9519         ensc_have_dietlibc=no
9520
9521         case x"$use_dietlibc" in
9522             xdetected)
9523
9524
9525 if true; then
9526   USE_DIETLIBC_TRUE=
9527   USE_DIETLIBC_FALSE='#'
9528 else
9529   USE_DIETLIBC_TRUE='#'
9530   USE_DIETLIBC_FALSE=
9531 fi
9532
9533                 echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
9534 echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6
9535                 ensc_have_dietlibc=yes
9536                 ;;
9537             xforced)
9538
9539
9540 if true; then
9541   USE_DIETLIBC_TRUE=
9542   USE_DIETLIBC_FALSE='#'
9543 else
9544   USE_DIETLIBC_TRUE='#'
9545   USE_DIETLIBC_FALSE=
9546 fi
9547
9548                 echo "$as_me:$LINENO: result: yes (forced)" >&5
9549 echo "${ECHO_T}yes (forced)" >&6
9550                 ensc_have_dietlibc=yes
9551                 ;;
9552             xdetected_no)
9553
9554
9555 if false; then
9556   USE_DIETLIBC_TRUE=
9557   USE_DIETLIBC_FALSE='#'
9558 else
9559   USE_DIETLIBC_TRUE='#'
9560   USE_DIETLIBC_FALSE=
9561 fi
9562
9563                 echo "$as_me:$LINENO: result: no (detected)" >&5
9564 echo "${ECHO_T}no (detected)" >&6
9565                 ;;
9566             xdetected_old)
9567
9568
9569 if false; then
9570   USE_DIETLIBC_TRUE=
9571   USE_DIETLIBC_FALSE='#'
9572 else
9573   USE_DIETLIBC_TRUE='#'
9574   USE_DIETLIBC_FALSE=
9575 fi
9576
9577                 echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
9578 echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6
9579                 ;;
9580             xforced_no)
9581
9582
9583 if false; then
9584   USE_DIETLIBC_TRUE=
9585   USE_DIETLIBC_FALSE='#'
9586 else
9587   USE_DIETLIBC_TRUE='#'
9588   USE_DIETLIBC_FALSE=
9589 fi
9590
9591                 echo "$as_me:$LINENO: result: no (forced)" >&5
9592 echo "${ECHO_T}no (forced)" >&6
9593                 ;;
9594             *)
9595                 { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
9596 echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
9597    { (exit 1); exit 1; }; }
9598                 ;;
9599         esac
9600
9601         if test x"$ensc_have_dietlibc" != xno; then
9602
9603
9604
9605
9606         echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
9607 echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6
9608 if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
9609   echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611
9612                 _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
9613                 _ensc_dietlibc_c99_old_CC=$CC
9614
9615                 CFLAGS="-std=c99"
9616                 CC="${DIET:-diet} $CC"
9617
9618                 ac_ext=c
9619 ac_cpp='$CPP $CPPFLAGS'
9620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9623
9624                 cat >conftest.$ac_ext <<_ACEOF
9625 /* */
9626 _ACEOF
9627 rm -f conftest.$ac_objext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9629   (eval $ac_compile) 2>conftest.er1
9630   ac_status=$?
9631   grep -v '^ *+' conftest.er1 >conftest.err
9632   rm -f conftest.er1
9633   cat conftest.err >&5
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } &&
9636          { ac_try='test -z "$ac_c_werror_flag"
9637                          || test ! -s conftest.err'
9638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639   (eval $ac_try) 2>&5
9640   ac_status=$?
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); }; } &&
9643          { ac_try='test -s conftest.$ac_objext'
9644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645   (eval $ac_try) 2>&5
9646   ac_status=$?
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); }; }; then
9649
9650                         cat >conftest.$ac_ext <<_ACEOF
9651
9652                                 #include <stdint.h>
9653                                 #include <sys/cdefs.h>
9654                                 #if defined(inline)
9655                                 #  error 'inline' badly defined
9656                                 #endif
9657                                 volatile uint64_t       a;
9658
9659 _ACEOF
9660 rm -f conftest.$ac_objext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9662   (eval $ac_compile) 2>conftest.er1
9663   ac_status=$?
9664   grep -v '^ *+' conftest.er1 >conftest.err
9665   rm -f conftest.er1
9666   cat conftest.err >&5
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); } &&
9669          { ac_try='test -z "$ac_c_werror_flag"
9670                          || test ! -s conftest.err'
9671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672   (eval $ac_try) 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; } &&
9676          { ac_try='test -s conftest.$ac_objext'
9677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678   (eval $ac_try) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; }; then
9682   ensc_cv_c_dietlibc_c99=yes
9683 else
9684   echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687 ensc_cv_c_dietlibc_c99=no
9688 fi
9689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9690 else
9691   echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9693
9694 ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
9695 fi
9696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697                 ac_ext=c
9698 ac_cpp='$CPP $CPPFLAGS'
9699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9702
9703
9704                 CC=$_ensc_dietlibc_c99_old_CC
9705                 CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
9706
9707 fi
9708 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
9709 echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6
9710
9711         if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
9712                 cat >>confdefs.h <<\_ACEOF
9713 #define ENSC_DIETLIBC_C99 1
9714 _ACEOF
9715
9716         fi
9717
9718         fi
9719
9720
9721 if test x"$ensc_have_dietlibc" = xno; then
9722         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
9723 echo "$as_me: WARNING: ***                                                         ***" >&2;}
9724         { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
9725 echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
9726         { echo "$as_me:$LINENO: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&5
9727 echo "$as_me: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&2;}
9728         { echo "$as_me:$LINENO: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&5
9729 echo "$as_me: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&2;}
9730         { echo "$as_me:$LINENO: WARNING: *** there.                                                  ***" >&5
9731 echo "$as_me: WARNING: *** there.                                                  ***" >&2;}
9732         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
9733 echo "$as_me: WARNING: ***                                                         ***" >&2;}
9734
9735
9736 if false; then
9737   USE_DIETLIBC_COMPAT_TRUE=
9738   USE_DIETLIBC_COMPAT_FALSE='#'
9739 else
9740   USE_DIETLIBC_COMPAT_TRUE='#'
9741   USE_DIETLIBC_COMPAT_FALSE=
9742 fi
9743
9744 else
9745         # HACK: libtool does not have cmdline options to build only
9746         # dynamic libraries; this can be done with the
9747         # '--disable-static' ./configure option only.  As our static
9748         # libraries will be build with dietlibc, we have to do set
9749         # this option which is evaluated by 'AC_PROG_LIBTOOL'
9750         # below.  Therefore, this macro must not be called earlier.
9751         enable_static=no
9752
9753
9754
9755
9756
9757         if test "$host_cpu" = x86_64 -a $ENSC_VERSION_DIETLIBC_NUM -le 0027; then
9758                 { echo "$as_me:$LINENO: WARNING: ***                                                             ***" >&5
9759 echo "$as_me: WARNING: ***                                                             ***" >&2;}
9760                 { echo "$as_me:$LINENO: WARNING: *** dietlibc<=0.27 is known to be broken for x86_64 systems     ***" >&5
9761 echo "$as_me: WARNING: *** dietlibc<=0.27 is known to be broken for x86_64 systems     ***" >&2;}
9762                 { echo "$as_me:$LINENO: WARNING: *** please make sure that at least the environ.S fix is applied ***" >&5
9763 echo "$as_me: WARNING: *** please make sure that at least the environ.S fix is applied ***" >&2;}
9764                 { echo "$as_me:$LINENO: WARNING: *** and lib/__nice.c added                                      ***" >&5
9765 echo "$as_me: WARNING: *** and lib/__nice.c added                                      ***" >&2;}
9766                 { echo "$as_me:$LINENO: WARNING: ***                                                             ***" >&5
9767 echo "$as_me: WARNING: ***                                                             ***" >&2;}
9768         fi
9769
9770
9771         echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
9772 echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6
9773         # Check whether --enable-alternative-syscalls or --disable-alternative-syscalls was given.
9774 if test "${enable_alternative_syscalls+set}" = set; then
9775   enableval="$enable_alternative_syscalls"
9776   case $enableval in
9777                            (yes|no)   ensc_use_alternative_syscall_macros=$enableval;;
9778                            (*)        { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
9779 echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
9780    { (exit 1); exit 1; }; };;
9781                        esac
9782 else
9783   ensc_use_alternative_syscall_macros=yes
9784 fi;
9785
9786         case $ensc_use_alternative_syscall_macros in
9787                 (yes)
9788 cat >>confdefs.h <<\_ACEOF
9789 #define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
9790 _ACEOF
9791 ;;
9792         esac
9793
9794         echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
9795 echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6
9796
9797
9798
9799
9800         echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
9801 echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6
9802 if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
9803   echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805
9806                 ac_ext=c
9807 ac_cpp='$CPP $CPPFLAGS'
9808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9811
9812                 ensc_dietlibc_need_compat_old_CC=$CC
9813                 CC="${DIET:-diet} $CC"
9814                 cat >conftest.$ac_ext <<_ACEOF
9815
9816                         /* confdefs.h.  */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h.  */
9821
9822 #include "$srcdir/lib/syscall-wrap.h"
9823 #include <errno.h>
9824
9825 #define __NR_foo0               42
9826 #define __NR_foo1               42
9827 #define __NR_foo2               42
9828 #define __NR_foo3               42
9829 #define __NR_foo4               42
9830 #define __NR_foo5               42
9831 inline static _syscall0(int, foo0)
9832 inline static _syscall1(int, foo1, int, a)
9833 inline static _syscall2(int, foo2, int, a, int, b)
9834 inline static _syscall3(int, foo3, int, a, int, b, int, c)
9835 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
9836 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
9837
9838 int
9839 main ()
9840 {
9841 foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
9842   ;
9843   return 0;
9844 }
9845 _ACEOF
9846 rm -f conftest.$ac_objext conftest$ac_exeext
9847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9848   (eval $ac_link) 2>conftest.er1
9849   ac_status=$?
9850   grep -v '^ *+' conftest.er1 >conftest.err
9851   rm -f conftest.er1
9852   cat conftest.err >&5
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); } &&
9855          { ac_try='test -z "$ac_c_werror_flag"
9856                          || test ! -s conftest.err'
9857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858   (eval $ac_try) 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); }; } &&
9862          { ac_try='test -s conftest$ac_exeext'
9863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864   (eval $ac_try) 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; }; then
9868   ensc_cv_c_dietlibc_compat=no
9869 else
9870   echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9872
9873 ensc_cv_c_dietlibc_compat=yes
9874 fi
9875 rm -f conftest.err conftest.$ac_objext \
9876       conftest$ac_exeext conftest.$ac_ext
9877                 CC=$ensc_dietlibc_need_compat_old_CC
9878                 ac_ext=c
9879 ac_cpp='$CPP $CPPFLAGS'
9880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9883
9884
9885 fi
9886 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
9887 echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6
9888
9889         if test x"USE_DIETLIBC_COMPAT" != x; then
9890
9891
9892 if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
9893   USE_DIETLIBC_COMPAT_TRUE=
9894   USE_DIETLIBC_COMPAT_FALSE='#'
9895 else
9896   USE_DIETLIBC_COMPAT_TRUE='#'
9897   USE_DIETLIBC_COMPAT_FALSE=
9898 fi
9899
9900         fi
9901
9902 fi
9903
9904
9905
9906 if test x"$ensc_have_dietlibc" = xyes; then
9907   ENSC_USE_DIETLIBC_TRUE=
9908   ENSC_USE_DIETLIBC_FALSE='#'
9909 else
9910   ENSC_USE_DIETLIBC_TRUE='#'
9911   ENSC_USE_DIETLIBC_FALSE=
9912 fi
9913
9914
9915
9916 if true; then
9917   ENSC_USE_GLIBC_TRUE=
9918   ENSC_USE_GLIBC_FALSE='#'
9919 else
9920   ENSC_USE_GLIBC_TRUE='#'
9921   ENSC_USE_GLIBC_FALSE=
9922 fi
9923
9924
9925 # HACK: see comments at 'enable_static' above
9926 # Check whether --enable-shared or --disable-shared was given.
9927 if test "${enable_shared+set}" = set; then
9928   enableval="$enable_shared"
9929   p=${PACKAGE-default}
9930     case $enableval in
9931     yes) enable_shared=yes ;;
9932     no) enable_shared=no ;;
9933     *)
9934       enable_shared=no
9935       # Look at the argument we got.  We use all the common list separators.
9936       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9937       for pkg in $enableval; do
9938         IFS="$lt_save_ifs"
9939         if test "X$pkg" = "X$p"; then
9940           enable_shared=yes
9941         fi
9942       done
9943       IFS="$lt_save_ifs"
9944       ;;
9945     esac
9946 else
9947   enable_shared=yes
9948 fi;
9949
9950 # Check whether --enable-static or --disable-static was given.
9951 if test "${enable_static+set}" = set; then
9952   enableval="$enable_static"
9953   p=${PACKAGE-default}
9954     case $enableval in
9955     yes) enable_static=yes ;;
9956     no) enable_static=no ;;
9957     *)
9958      enable_static=no
9959       # Look at the argument we got.  We use all the common list separators.
9960       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9961       for pkg in $enableval; do
9962         IFS="$lt_save_ifs"
9963         if test "X$pkg" = "X$p"; then
9964           enable_static=yes
9965         fi
9966       done
9967       IFS="$lt_save_ifs"
9968       ;;
9969     esac
9970 else
9971   enable_static=yes
9972 fi;
9973
9974 # Check whether --enable-fast-install or --disable-fast-install was given.
9975 if test "${enable_fast_install+set}" = set; then
9976   enableval="$enable_fast_install"
9977   p=${PACKAGE-default}
9978     case $enableval in
9979     yes) enable_fast_install=yes ;;
9980     no) enable_fast_install=no ;;
9981     *)
9982       enable_fast_install=no
9983       # Look at the argument we got.  We use all the common list separators.
9984       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9985       for pkg in $enableval; do
9986         IFS="$lt_save_ifs"
9987         if test "X$pkg" = "X$p"; then
9988           enable_fast_install=yes
9989         fi
9990       done
9991       IFS="$lt_save_ifs"
9992       ;;
9993     esac
9994 else
9995   enable_fast_install=yes
9996 fi;
9997
9998 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9999 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10000 if test "${lt_cv_path_SED+set}" = set; then
10001   echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003   # Loop through the user's path and test for sed and gsed.
10004 # Then use that list of sed's as ones to test for truncation.
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10007 do
10008   IFS=$as_save_IFS
10009   test -z "$as_dir" && as_dir=.
10010   for lt_ac_prog in sed gsed; do
10011     for ac_exec_ext in '' $ac_executable_extensions; do
10012       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10013         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10014       fi
10015     done
10016   done
10017 done
10018 lt_ac_max=0
10019 lt_ac_count=0
10020 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10021 # along with /bin/sed that truncates output.
10022 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10023   test ! -f $lt_ac_sed && continue
10024   cat /dev/null > conftest.in
10025   lt_ac_count=0
10026   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10027   # Check for GNU sed and select it if it is found.
10028   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10029     lt_cv_path_SED=$lt_ac_sed
10030     break
10031   fi
10032   while true; do
10033     cat conftest.in conftest.in >conftest.tmp
10034     mv conftest.tmp conftest.in
10035     cp conftest.in conftest.nl
10036     echo >>conftest.nl
10037     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10038     cmp -s conftest.out conftest.nl || break
10039     # 10000 chars as input seems more than enough
10040     test $lt_ac_count -gt 10 && break
10041     lt_ac_count=`expr $lt_ac_count + 1`
10042     if test $lt_ac_count -gt $lt_ac_max; then
10043       lt_ac_max=$lt_ac_count
10044       lt_cv_path_SED=$lt_ac_sed
10045     fi
10046   done
10047 done
10048
10049 fi
10050
10051 SED=$lt_cv_path_SED
10052 echo "$as_me:$LINENO: result: $SED" >&5
10053 echo "${ECHO_T}$SED" >&6
10054
10055 echo "$as_me:$LINENO: checking for egrep" >&5
10056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10057 if test "${ac_cv_prog_egrep+set}" = set; then
10058   echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10061     then ac_cv_prog_egrep='grep -E'
10062     else ac_cv_prog_egrep='egrep'
10063     fi
10064 fi
10065 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10066 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10067  EGREP=$ac_cv_prog_egrep
10068
10069
10070
10071 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10072 if test "${with_gnu_ld+set}" = set; then
10073   withval="$with_gnu_ld"
10074   test "$withval" = no || with_gnu_ld=yes
10075 else
10076   with_gnu_ld=no
10077 fi;
10078 ac_prog=ld
10079 if test "$GCC" = yes; then
10080   # Check if gcc -print-prog-name=ld gives a path.
10081   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10082 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10083   case $host in
10084   *-*-mingw*)
10085     # gcc leaves a trailing carriage return which upsets mingw
10086     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10087   *)
10088     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10089   esac
10090   case $ac_prog in
10091     # Accept absolute paths.
10092     [\\/]* | ?:[\\/]*)
10093       re_direlt='/[^/][^/]*/\.\./'
10094       # Canonicalize the pathname of ld
10095       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10096       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10097         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10098       done
10099       test -z "$LD" && LD="$ac_prog"
10100       ;;
10101   "")
10102     # If it fails, then pretend we aren't using GCC.
10103     ac_prog=ld
10104     ;;
10105   *)
10106     # If it is relative, then search for the first ld in PATH.
10107     with_gnu_ld=unknown
10108     ;;
10109   esac
10110 elif test "$with_gnu_ld" = yes; then
10111   echo "$as_me:$LINENO: checking for GNU ld" >&5
10112 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10113 else
10114   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10115 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10116 fi
10117 if test "${lt_cv_path_LD+set}" = set; then
10118   echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120   if test -z "$LD"; then
10121   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10122   for ac_dir in $PATH; do
10123     IFS="$lt_save_ifs"
10124     test -z "$ac_dir" && ac_dir=.
10125     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10126       lt_cv_path_LD="$ac_dir/$ac_prog"
10127       # Check to see if the program is GNU ld.  I'd rather use --version,
10128       # but apparently some GNU ld's only accept -v.
10129       # Break only if it was the GNU/non-GNU ld that we prefer.
10130       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10131       *GNU* | *'with BFD'*)
10132         test "$with_gnu_ld" != no && break
10133         ;;
10134       *)
10135         test "$with_gnu_ld" != yes && break
10136         ;;
10137       esac
10138     fi
10139   done
10140   IFS="$lt_save_ifs"
10141 else
10142   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10143 fi
10144 fi
10145
10146 LD="$lt_cv_path_LD"
10147 if test -n "$LD"; then
10148   echo "$as_me:$LINENO: result: $LD" >&5
10149 echo "${ECHO_T}$LD" >&6
10150 else
10151   echo "$as_me:$LINENO: result: no" >&5
10152 echo "${ECHO_T}no" >&6
10153 fi
10154 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10155 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10156    { (exit 1); exit 1; }; }
10157 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10158 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10159 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10160   echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10163 case `$LD -v 2>&1 </dev/null` in
10164 *GNU* | *'with BFD'*)
10165   lt_cv_prog_gnu_ld=yes
10166   ;;
10167 *)
10168   lt_cv_prog_gnu_ld=no
10169   ;;
10170 esac
10171 fi
10172 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10173 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10174 with_gnu_ld=$lt_cv_prog_gnu_ld
10175
10176
10177 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10178 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10179 if test "${lt_cv_ld_reload_flag+set}" = set; then
10180   echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182   lt_cv_ld_reload_flag='-r'
10183 fi
10184 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10185 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10186 reload_flag=$lt_cv_ld_reload_flag
10187 case $reload_flag in
10188 "" | " "*) ;;
10189 *) reload_flag=" $reload_flag" ;;
10190 esac
10191 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10192 case $host_os in
10193   darwin*)
10194     if test "$GCC" = yes; then
10195       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10196     else
10197       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10198     fi
10199     ;;
10200 esac
10201
10202 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10203 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10204 if test "${lt_cv_path_NM+set}" = set; then
10205   echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207   if test -n "$NM"; then
10208   # Let the user override the test.
10209   lt_cv_path_NM="$NM"
10210 else
10211   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10212   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
10213     IFS="$lt_save_ifs"
10214     test -z "$ac_dir" && ac_dir=.
10215     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
10216     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10217       # Check to see if the nm accepts a BSD-compat flag.
10218       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10219       #   nm: unknown option "B" ignored
10220       # Tru64's nm complains that /dev/null is an invalid object file
10221       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10222       */dev/null* | *'Invalid file or object type'*)
10223         lt_cv_path_NM="$tmp_nm -B"
10224         break
10225         ;;
10226       *)
10227         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10228         */dev/null*)
10229           lt_cv_path_NM="$tmp_nm -p"
10230           break
10231           ;;
10232         *)
10233           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10234           continue # so that we can try to find one that supports BSD flags
10235           ;;
10236         esac
10237       esac
10238     fi
10239   done
10240   IFS="$lt_save_ifs"
10241   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10242 fi
10243 fi
10244 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10245 echo "${ECHO_T}$lt_cv_path_NM" >&6
10246 NM="$lt_cv_path_NM"
10247
10248 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10249 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10250 if test "${lt_cv_deplibs_check_method+set}" = set; then
10251   echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253   lt_cv_file_magic_cmd='$MAGIC_CMD'
10254 lt_cv_file_magic_test_file=
10255 lt_cv_deplibs_check_method='unknown'
10256 # Need to set the preceding variable on all platforms that support
10257 # interlibrary dependencies.
10258 # 'none' -- dependencies not supported.
10259 # `unknown' -- same as none, but documents that we really don't know.
10260 # 'pass_all' -- all dependencies passed with no checks.
10261 # 'test_compile' -- check by making test program.
10262 # 'file_magic [[regex]]' -- check by looking for files in library path
10263 # which responds to the $file_magic_cmd with a given extended regex.
10264 # If you have `file' or equivalent on your system and you're not sure
10265 # whether `pass_all' will *always* work, you probably want this one.
10266
10267 case $host_os in
10268 aix4* | aix5*)
10269   lt_cv_deplibs_check_method=pass_all
10270   ;;
10271
10272 beos*)
10273   lt_cv_deplibs_check_method=pass_all
10274   ;;
10275
10276 bsdi[45]*)
10277   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10278   lt_cv_file_magic_cmd='/usr/bin/file -L'
10279   lt_cv_file_magic_test_file=/shlib/libc.so
10280   ;;
10281
10282 cygwin*)
10283   # func_win32_libid is a shell function defined in ltmain.sh
10284   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10285   lt_cv_file_magic_cmd='func_win32_libid'
10286   ;;
10287
10288 mingw* | pw32*)
10289   # Base MSYS/MinGW do not provide the 'file' command needed by
10290   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10291   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10292   lt_cv_file_magic_cmd='$OBJDUMP -f'
10293   ;;
10294
10295 darwin* | rhapsody*)
10296   lt_cv_deplibs_check_method=pass_all
10297   ;;
10298
10299 freebsd* | kfreebsd*-gnu | dragonfly*)
10300   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10301     case $host_cpu in
10302     i*86 )
10303       # Not sure whether the presence of OpenBSD here was a mistake.
10304       # Let's accept both of them until this is cleared up.
10305       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10306       lt_cv_file_magic_cmd=/usr/bin/file
10307       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10308       ;;
10309     esac
10310   else
10311     lt_cv_deplibs_check_method=pass_all
10312   fi
10313   ;;
10314
10315 gnu*)
10316   lt_cv_deplibs_check_method=pass_all
10317   ;;
10318
10319 hpux10.20* | hpux11*)
10320   lt_cv_file_magic_cmd=/usr/bin/file
10321   case "$host_cpu" in
10322   ia64*)
10323     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10324     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10325     ;;
10326   hppa*64*)
10327     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]'
10328     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10329     ;;
10330   *)
10331     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10332     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10333     ;;
10334   esac
10335   ;;
10336
10337 irix5* | irix6* | nonstopux*)
10338   case $LD in
10339   *-32|*"-32 ") libmagic=32-bit;;
10340   *-n32|*"-n32 ") libmagic=N32;;
10341   *-64|*"-64 ") libmagic=64-bit;;
10342   *) libmagic=never-match;;
10343   esac
10344   lt_cv_deplibs_check_method=pass_all
10345   ;;
10346
10347 # This must be Linux ELF.
10348 linux*)
10349   lt_cv_deplibs_check_method=pass_all
10350   ;;
10351
10352 netbsd*)
10353   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10354     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10355   else
10356     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10357   fi
10358   ;;
10359
10360 newos6*)
10361   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10362   lt_cv_file_magic_cmd=/usr/bin/file
10363   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10364   ;;
10365
10366 nto-qnx*)
10367   lt_cv_deplibs_check_method=unknown
10368   ;;
10369
10370 openbsd*)
10371   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10372     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10373   else
10374     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10375   fi
10376   ;;
10377
10378 osf3* | osf4* | osf5*)
10379   lt_cv_deplibs_check_method=pass_all
10380   ;;
10381
10382 sco3.2v5*)
10383   lt_cv_deplibs_check_method=pass_all
10384   ;;
10385
10386 solaris*)
10387   lt_cv_deplibs_check_method=pass_all
10388   ;;
10389
10390 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10391   case $host_vendor in
10392   motorola)
10393     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]'
10394     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10395     ;;
10396   ncr)
10397     lt_cv_deplibs_check_method=pass_all
10398     ;;
10399   sequent)
10400     lt_cv_file_magic_cmd='/bin/file'
10401     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10402     ;;
10403   sni)
10404     lt_cv_file_magic_cmd='/bin/file'
10405     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10406     lt_cv_file_magic_test_file=/lib/libc.so
10407     ;;
10408   siemens)
10409     lt_cv_deplibs_check_method=pass_all
10410     ;;
10411   esac
10412   ;;
10413
10414 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10415   lt_cv_deplibs_check_method=pass_all
10416   ;;
10417 esac
10418
10419 fi
10420 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10421 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10422 file_magic_cmd=$lt_cv_file_magic_cmd
10423 deplibs_check_method=$lt_cv_deplibs_check_method
10424 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10425
10426
10427
10428
10429 # If no C compiler was specified, use CC.
10430 LTCC=${LTCC-"$CC"}
10431
10432 # Allow CC to be a program name with arguments.
10433 compiler=$CC
10434
10435 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10436 if test "${enable_libtool_lock+set}" = set; then
10437   enableval="$enable_libtool_lock"
10438
10439 fi;
10440 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10441
10442 # Some flags need to be propagated to the compiler or linker for good
10443 # libtool support.
10444 case $host in
10445 ia64-*-hpux*)
10446   # Find out which ABI we are using.
10447   echo 'int i;' > conftest.$ac_ext
10448   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449   (eval $ac_compile) 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); }; then
10453     case `/usr/bin/file conftest.$ac_objext` in
10454     *ELF-32*)
10455       HPUX_IA64_MODE="32"
10456       ;;
10457     *ELF-64*)
10458       HPUX_IA64_MODE="64"
10459       ;;
10460     esac
10461   fi
10462   rm -rf conftest*
10463   ;;
10464 *-*-irix6*)
10465   # Find out which ABI we are using.
10466   echo '#line 10466 "configure"' > conftest.$ac_ext
10467   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468   (eval $ac_compile) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; then
10472    if test "$lt_cv_prog_gnu_ld" = yes; then
10473     case `/usr/bin/file conftest.$ac_objext` in
10474     *32-bit*)
10475       LD="${LD-ld} -melf32bsmip"
10476       ;;
10477     *N32*)
10478       LD="${LD-ld} -melf32bmipn32"
10479       ;;
10480     *64-bit*)
10481       LD="${LD-ld} -melf64bmip"
10482       ;;
10483     esac
10484    else
10485     case `/usr/bin/file conftest.$ac_objext` in
10486     *32-bit*)
10487       LD="${LD-ld} -32"
10488       ;;
10489     *N32*)
10490       LD="${LD-ld} -n32"
10491       ;;
10492     *64-bit*)
10493       LD="${LD-ld} -64"
10494       ;;
10495     esac
10496    fi
10497   fi
10498   rm -rf conftest*
10499   ;;
10500
10501 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10502   # Find out which ABI we are using.
10503   echo 'int i;' > conftest.$ac_ext
10504   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10505   (eval $ac_compile) 2>&5
10506   ac_status=$?
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); }; then
10509     case "`/usr/bin/file conftest.o`" in
10510     *32-bit*)
10511       case $host in
10512         x86_64-*linux*)
10513           LD="${LD-ld} -m elf_i386"
10514           ;;
10515         ppc64-*linux*|powerpc64-*linux*)
10516           LD="${LD-ld} -m elf32ppclinux"
10517           ;;
10518         s390x-*linux*)
10519           LD="${LD-ld} -m elf_s390"
10520           ;;
10521         sparc64-*linux*)
10522           LD="${LD-ld} -m elf32_sparc"
10523           ;;
10524       esac
10525       ;;
10526     *64-bit*)
10527       case $host in
10528         x86_64-*linux*)
10529           LD="${LD-ld} -m elf_x86_64"
10530           ;;
10531         ppc*-*linux*|powerpc*-*linux*)
10532           LD="${LD-ld} -m elf64ppc"
10533           ;;
10534         s390*-*linux*)
10535           LD="${LD-ld} -m elf64_s390"
10536           ;;
10537         sparc*-*linux*)
10538           LD="${LD-ld} -m elf64_sparc"
10539           ;;
10540       esac
10541       ;;
10542     esac
10543   fi
10544   rm -rf conftest*
10545   ;;
10546
10547 *-*-sco3.2v5*)
10548   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10549   SAVE_CFLAGS="$CFLAGS"
10550   CFLAGS="$CFLAGS -belf"
10551   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10552 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10553 if test "${lt_cv_cc_needs_belf+set}" = set; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556   ac_ext=c
10557 ac_cpp='$CPP $CPPFLAGS'
10558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10561
10562      cat >conftest.$ac_ext <<_ACEOF
10563 /* confdefs.h.  */
10564 _ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h.  */
10568
10569 int
10570 main ()
10571 {
10572
10573   ;
10574   return 0;
10575 }
10576 _ACEOF
10577 rm -f conftest.$ac_objext conftest$ac_exeext
10578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10579   (eval $ac_link) 2>conftest.er1
10580   ac_status=$?
10581   grep -v '^ *+' conftest.er1 >conftest.err
10582   rm -f conftest.er1
10583   cat conftest.err >&5
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); } &&
10586          { ac_try='test -z "$ac_c_werror_flag"
10587                          || test ! -s conftest.err'
10588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589   (eval $ac_try) 2>&5
10590   ac_status=$?
10591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); }; } &&
10593          { ac_try='test -s conftest$ac_exeext'
10594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595   (eval $ac_try) 2>&5
10596   ac_status=$?
10597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598   (exit $ac_status); }; }; then
10599   lt_cv_cc_needs_belf=yes
10600 else
10601   echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10603
10604 lt_cv_cc_needs_belf=no
10605 fi
10606 rm -f conftest.err conftest.$ac_objext \
10607       conftest$ac_exeext conftest.$ac_ext
10608      ac_ext=c
10609 ac_cpp='$CPP $CPPFLAGS'
10610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10613
10614 fi
10615 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10616 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10617   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10618     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10619     CFLAGS="$SAVE_CFLAGS"
10620   fi
10621   ;;
10622
10623 esac
10624
10625 need_locks="$enable_libtool_lock"
10626
10627
10628 ac_ext=c
10629 ac_cpp='$CPP $CPPFLAGS'
10630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10633 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10634 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10635 # On Suns, sometimes $CPP names a directory.
10636 if test -n "$CPP" && test -d "$CPP"; then
10637   CPP=
10638 fi
10639 if test -z "$CPP"; then
10640   if test "${ac_cv_prog_CPP+set}" = set; then
10641   echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643       # Double quotes because CPP needs to be expanded
10644     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10645     do
10646       ac_preproc_ok=false
10647 for ac_c_preproc_warn_flag in '' yes
10648 do
10649   # Use a header file that comes with gcc, so configuring glibc
10650   # with a fresh cross-compiler works.
10651   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10652   # <limits.h> exists even on freestanding compilers.
10653   # On the NeXT, cc -E runs the code through the compiler's parser,
10654   # not just through cpp. "Syntax error" is here to catch this case.
10655   cat >conftest.$ac_ext <<_ACEOF
10656 /* confdefs.h.  */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h.  */
10661 #ifdef __STDC__
10662 # include <limits.h>
10663 #else
10664 # include <assert.h>
10665 #endif
10666                      Syntax error
10667 _ACEOF
10668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10669   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10670   ac_status=$?
10671   grep -v '^ *+' conftest.er1 >conftest.err
10672   rm -f conftest.er1
10673   cat conftest.err >&5
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); } >/dev/null; then
10676   if test -s conftest.err; then
10677     ac_cpp_err=$ac_c_preproc_warn_flag
10678     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10679   else
10680     ac_cpp_err=
10681   fi
10682 else
10683   ac_cpp_err=yes
10684 fi
10685 if test -z "$ac_cpp_err"; then
10686   :
10687 else
10688   echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10690
10691   # Broken: fails on valid input.
10692 continue
10693 fi
10694 rm -f conftest.err conftest.$ac_ext
10695
10696   # OK, works on sane cases.  Now check whether non-existent headers
10697   # can be detected and how.
10698   cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h.  */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h.  */
10704 #include <ac_nonexistent.h>
10705 _ACEOF
10706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10707   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10708   ac_status=$?
10709   grep -v '^ *+' conftest.er1 >conftest.err
10710   rm -f conftest.er1
10711   cat conftest.err >&5
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); } >/dev/null; then
10714   if test -s conftest.err; then
10715     ac_cpp_err=$ac_c_preproc_warn_flag
10716     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10717   else
10718     ac_cpp_err=
10719   fi
10720 else
10721   ac_cpp_err=yes
10722 fi
10723 if test -z "$ac_cpp_err"; then
10724   # Broken: success on invalid input.
10725 continue
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730   # Passes both tests.
10731 ac_preproc_ok=:
10732 break
10733 fi
10734 rm -f conftest.err conftest.$ac_ext
10735
10736 done
10737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10738 rm -f conftest.err conftest.$ac_ext
10739 if $ac_preproc_ok; then
10740   break
10741 fi
10742
10743     done
10744     ac_cv_prog_CPP=$CPP
10745
10746 fi
10747   CPP=$ac_cv_prog_CPP
10748 else
10749   ac_cv_prog_CPP=$CPP
10750 fi
10751 echo "$as_me:$LINENO: result: $CPP" >&5
10752 echo "${ECHO_T}$CPP" >&6
10753 ac_preproc_ok=false
10754 for ac_c_preproc_warn_flag in '' yes
10755 do
10756   # Use a header file that comes with gcc, so configuring glibc
10757   # with a fresh cross-compiler works.
10758   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10759   # <limits.h> exists even on freestanding compilers.
10760   # On the NeXT, cc -E runs the code through the compiler's parser,
10761   # not just through cpp. "Syntax error" is here to catch this case.
10762   cat >conftest.$ac_ext <<_ACEOF
10763 /* confdefs.h.  */
10764 _ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h.  */
10768 #ifdef __STDC__
10769 # include <limits.h>
10770 #else
10771 # include <assert.h>
10772 #endif
10773                      Syntax error
10774 _ACEOF
10775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10777   ac_status=$?
10778   grep -v '^ *+' conftest.er1 >conftest.err
10779   rm -f conftest.er1
10780   cat conftest.err >&5
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); } >/dev/null; then
10783   if test -s conftest.err; then
10784     ac_cpp_err=$ac_c_preproc_warn_flag
10785     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10786   else
10787     ac_cpp_err=
10788   fi
10789 else
10790   ac_cpp_err=yes
10791 fi
10792 if test -z "$ac_cpp_err"; then
10793   :
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798   # Broken: fails on valid input.
10799 continue
10800 fi
10801 rm -f conftest.err conftest.$ac_ext
10802
10803   # OK, works on sane cases.  Now check whether non-existent headers
10804   # can be detected and how.
10805   cat >conftest.$ac_ext <<_ACEOF
10806 /* confdefs.h.  */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h.  */
10811 #include <ac_nonexistent.h>
10812 _ACEOF
10813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10814   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10815   ac_status=$?
10816   grep -v '^ *+' conftest.er1 >conftest.err
10817   rm -f conftest.er1
10818   cat conftest.err >&5
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); } >/dev/null; then
10821   if test -s conftest.err; then
10822     ac_cpp_err=$ac_c_preproc_warn_flag
10823     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10824   else
10825     ac_cpp_err=
10826   fi
10827 else
10828   ac_cpp_err=yes
10829 fi
10830 if test -z "$ac_cpp_err"; then
10831   # Broken: success on invalid input.
10832 continue
10833 else
10834   echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10836
10837   # Passes both tests.
10838 ac_preproc_ok=:
10839 break
10840 fi
10841 rm -f conftest.err conftest.$ac_ext
10842
10843 done
10844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10845 rm -f conftest.err conftest.$ac_ext
10846 if $ac_preproc_ok; then
10847   :
10848 else
10849   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10850 See \`config.log' for more details." >&5
10851 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10852 See \`config.log' for more details." >&2;}
10853    { (exit 1); exit 1; }; }
10854 fi
10855
10856 ac_ext=c
10857 ac_cpp='$CPP $CPPFLAGS'
10858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10861
10862
10863 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10864 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10865 if test "${ac_cv_header_stdc+set}" = set; then
10866   echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868   cat >conftest.$ac_ext <<_ACEOF
10869 /* confdefs.h.  */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h.  */
10874 #include <stdlib.h>
10875 #include <stdarg.h>
10876 #include <string.h>
10877 #include <float.h>
10878
10879 int
10880 main ()
10881 {
10882
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 rm -f conftest.$ac_objext
10888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10889   (eval $ac_compile) 2>conftest.er1
10890   ac_status=$?
10891   grep -v '^ *+' conftest.er1 >conftest.err
10892   rm -f conftest.er1
10893   cat conftest.err >&5
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); } &&
10896          { ac_try='test -z "$ac_c_werror_flag"
10897                          || test ! -s conftest.err'
10898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899   (eval $ac_try) 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; } &&
10903          { ac_try='test -s conftest.$ac_objext'
10904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905   (eval $ac_try) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; }; then
10909   ac_cv_header_stdc=yes
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 ac_cv_header_stdc=no
10915 fi
10916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10917
10918 if test $ac_cv_header_stdc = yes; then
10919   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10920   cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h.  */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h.  */
10926 #include <string.h>
10927
10928 _ACEOF
10929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10930   $EGREP "memchr" >/dev/null 2>&1; then
10931   :
10932 else
10933   ac_cv_header_stdc=no
10934 fi
10935 rm -f conftest*
10936
10937 fi
10938
10939 if test $ac_cv_header_stdc = yes; then
10940   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10941   cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h.  */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h.  */
10947 #include <stdlib.h>
10948
10949 _ACEOF
10950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10951   $EGREP "free" >/dev/null 2>&1; then
10952   :
10953 else
10954   ac_cv_header_stdc=no
10955 fi
10956 rm -f conftest*
10957
10958 fi
10959
10960 if test $ac_cv_header_stdc = yes; then
10961   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10962   if test "$cross_compiling" = yes; then
10963   :
10964 else
10965   cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971 #include <ctype.h>
10972 #if ((' ' & 0x0FF) == 0x020)
10973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10975 #else
10976 # define ISLOWER(c) \
10977                    (('a' <= (c) && (c) <= 'i') \
10978                      || ('j' <= (c) && (c) <= 'r') \
10979                      || ('s' <= (c) && (c) <= 'z'))
10980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10981 #endif
10982
10983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10984 int
10985 main ()
10986 {
10987   int i;
10988   for (i = 0; i < 256; i++)
10989     if (XOR (islower (i), ISLOWER (i))
10990         || toupper (i) != TOUPPER (i))
10991       exit(2);
10992   exit (0);
10993 }
10994 _ACEOF
10995 rm -f conftest$ac_exeext
10996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10997   (eval $ac_link) 2>&5
10998   ac_status=$?
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002   (eval $ac_try) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; }; then
11006   :
11007 else
11008   echo "$as_me: program exited with status $ac_status" >&5
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012 ( exit $ac_status )
11013 ac_cv_header_stdc=no
11014 fi
11015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11016 fi
11017 fi
11018 fi
11019 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11020 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11021 if test $ac_cv_header_stdc = yes; then
11022
11023 cat >>confdefs.h <<\_ACEOF
11024 #define STDC_HEADERS 1
11025 _ACEOF
11026
11027 fi
11028
11029 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11040                   inttypes.h stdint.h unistd.h
11041 do
11042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11043 echo "$as_me:$LINENO: checking for $ac_header" >&5
11044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11046   echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048   cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h.  */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h.  */
11054 $ac_includes_default
11055
11056 #include <$ac_header>
11057 _ACEOF
11058 rm -f conftest.$ac_objext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11060   (eval $ac_compile) 2>conftest.er1
11061   ac_status=$?
11062   grep -v '^ *+' conftest.er1 >conftest.err
11063   rm -f conftest.er1
11064   cat conftest.err >&5
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); } &&
11067          { ac_try='test -z "$ac_c_werror_flag"
11068                          || test ! -s conftest.err'
11069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070   (eval $ac_try) 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); }; } &&
11074          { ac_try='test -s conftest.$ac_objext'
11075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076   (eval $ac_try) 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); }; }; then
11080   eval "$as_ac_Header=yes"
11081 else
11082   echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085 eval "$as_ac_Header=no"
11086 fi
11087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11088 fi
11089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11092   cat >>confdefs.h <<_ACEOF
11093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11094 _ACEOF
11095
11096 fi
11097
11098 done
11099
11100
11101
11102 for ac_header in dlfcn.h
11103 do
11104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11106   echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11109   echo $ECHO_N "(cached) $ECHO_C" >&6
11110 fi
11111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11113 else
11114   # Is the header compilable?
11115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11117 cat >conftest.$ac_ext <<_ACEOF
11118 /* confdefs.h.  */
11119 _ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h.  */
11123 $ac_includes_default
11124 #include <$ac_header>
11125 _ACEOF
11126 rm -f conftest.$ac_objext
11127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11128   (eval $ac_compile) 2>conftest.er1
11129   ac_status=$?
11130   grep -v '^ *+' conftest.er1 >conftest.err
11131   rm -f conftest.er1
11132   cat conftest.err >&5
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); } &&
11135          { ac_try='test -z "$ac_c_werror_flag"
11136                          || test ! -s conftest.err'
11137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138   (eval $ac_try) 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; } &&
11142          { ac_try='test -s conftest.$ac_objext'
11143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144   (eval $ac_try) 2>&5
11145   ac_status=$?
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); }; }; then
11148   ac_header_compiler=yes
11149 else
11150   echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11152
11153 ac_header_compiler=no
11154 fi
11155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11157 echo "${ECHO_T}$ac_header_compiler" >&6
11158
11159 # Is the header present?
11160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11162 cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h.  */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h.  */
11168 #include <$ac_header>
11169 _ACEOF
11170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11171   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11172   ac_status=$?
11173   grep -v '^ *+' conftest.er1 >conftest.err
11174   rm -f conftest.er1
11175   cat conftest.err >&5
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); } >/dev/null; then
11178   if test -s conftest.err; then
11179     ac_cpp_err=$ac_c_preproc_warn_flag
11180     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11181   else
11182     ac_cpp_err=
11183   fi
11184 else
11185   ac_cpp_err=yes
11186 fi
11187 if test -z "$ac_cpp_err"; then
11188   ac_header_preproc=yes
11189 else
11190   echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11192
11193   ac_header_preproc=no
11194 fi
11195 rm -f conftest.err conftest.$ac_ext
11196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11197 echo "${ECHO_T}$ac_header_preproc" >&6
11198
11199 # So?  What about this header?
11200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11201   yes:no: )
11202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11206     ac_header_preproc=yes
11207     ;;
11208   no:yes:* )
11209     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11211     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11212 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11215     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11216 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11219     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11221     (
11222       cat <<\_ASBOX
11223 ## ------------------------------------------------------ ##
11224 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
11225 ## ------------------------------------------------------ ##
11226 _ASBOX
11227     ) |
11228       sed "s/^/$as_me: WARNING:     /" >&2
11229     ;;
11230 esac
11231 echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236   eval "$as_ac_Header=\$ac_header_preproc"
11237 fi
11238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11240
11241 fi
11242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243   cat >>confdefs.h <<_ACEOF
11244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11245 _ACEOF
11246
11247 fi
11248
11249 done
11250
11251
11252
11253 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11254     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11255     (test "X$CXX" != "Xg++"))) ; then
11256   ac_ext=cc
11257 ac_cpp='$CXXCPP $CPPFLAGS'
11258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11261 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11262 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11263 if test -z "$CXXCPP"; then
11264   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11265   echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267       # Double quotes because CXXCPP needs to be expanded
11268     for CXXCPP in "$CXX -E" "/lib/cpp"
11269     do
11270       ac_preproc_ok=false
11271 for ac_cxx_preproc_warn_flag in '' yes
11272 do
11273   # Use a header file that comes with gcc, so configuring glibc
11274   # with a fresh cross-compiler works.
11275   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11276   # <limits.h> exists even on freestanding compilers.
11277   # On the NeXT, cc -E runs the code through the compiler's parser,
11278   # not just through cpp. "Syntax error" is here to catch this case.
11279   cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285 #ifdef __STDC__
11286 # include <limits.h>
11287 #else
11288 # include <assert.h>
11289 #endif
11290                      Syntax error
11291 _ACEOF
11292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11294   ac_status=$?
11295   grep -v '^ *+' conftest.er1 >conftest.err
11296   rm -f conftest.er1
11297   cat conftest.err >&5
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); } >/dev/null; then
11300   if test -s conftest.err; then
11301     ac_cpp_err=$ac_cxx_preproc_warn_flag
11302     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11303   else
11304     ac_cpp_err=
11305   fi
11306 else
11307   ac_cpp_err=yes
11308 fi
11309 if test -z "$ac_cpp_err"; then
11310   :
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315   # Broken: fails on valid input.
11316 continue
11317 fi
11318 rm -f conftest.err conftest.$ac_ext
11319
11320   # OK, works on sane cases.  Now check whether non-existent headers
11321   # can be detected and how.
11322   cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h.  */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h.  */
11328 #include <ac_nonexistent.h>
11329 _ACEOF
11330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11331   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11332   ac_status=$?
11333   grep -v '^ *+' conftest.er1 >conftest.err
11334   rm -f conftest.er1
11335   cat conftest.err >&5
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); } >/dev/null; then
11338   if test -s conftest.err; then
11339     ac_cpp_err=$ac_cxx_preproc_warn_flag
11340     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11341   else
11342     ac_cpp_err=
11343   fi
11344 else
11345   ac_cpp_err=yes
11346 fi
11347 if test -z "$ac_cpp_err"; then
11348   # Broken: success on invalid input.
11349 continue
11350 else
11351   echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354   # Passes both tests.
11355 ac_preproc_ok=:
11356 break
11357 fi
11358 rm -f conftest.err conftest.$ac_ext
11359
11360 done
11361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11362 rm -f conftest.err conftest.$ac_ext
11363 if $ac_preproc_ok; then
11364   break
11365 fi
11366
11367     done
11368     ac_cv_prog_CXXCPP=$CXXCPP
11369
11370 fi
11371   CXXCPP=$ac_cv_prog_CXXCPP
11372 else
11373   ac_cv_prog_CXXCPP=$CXXCPP
11374 fi
11375 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11376 echo "${ECHO_T}$CXXCPP" >&6
11377 ac_preproc_ok=false
11378 for ac_cxx_preproc_warn_flag in '' yes
11379 do
11380   # Use a header file that comes with gcc, so configuring glibc
11381   # with a fresh cross-compiler works.
11382   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11383   # <limits.h> exists even on freestanding compilers.
11384   # On the NeXT, cc -E runs the code through the compiler's parser,
11385   # not just through cpp. "Syntax error" is here to catch this case.
11386   cat >conftest.$ac_ext <<_ACEOF
11387 /* confdefs.h.  */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h.  */
11392 #ifdef __STDC__
11393 # include <limits.h>
11394 #else
11395 # include <assert.h>
11396 #endif
11397                      Syntax error
11398 _ACEOF
11399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11401   ac_status=$?
11402   grep -v '^ *+' conftest.er1 >conftest.err
11403   rm -f conftest.er1
11404   cat conftest.err >&5
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); } >/dev/null; then
11407   if test -s conftest.err; then
11408     ac_cpp_err=$ac_cxx_preproc_warn_flag
11409     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11410   else
11411     ac_cpp_err=
11412   fi
11413 else
11414   ac_cpp_err=yes
11415 fi
11416 if test -z "$ac_cpp_err"; then
11417   :
11418 else
11419   echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11421
11422   # Broken: fails on valid input.
11423 continue
11424 fi
11425 rm -f conftest.err conftest.$ac_ext
11426
11427   # OK, works on sane cases.  Now check whether non-existent headers
11428   # can be detected and how.
11429   cat >conftest.$ac_ext <<_ACEOF
11430 /* confdefs.h.  */
11431 _ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h.  */
11435 #include <ac_nonexistent.h>
11436 _ACEOF
11437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11438   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11439   ac_status=$?
11440   grep -v '^ *+' conftest.er1 >conftest.err
11441   rm -f conftest.er1
11442   cat conftest.err >&5
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); } >/dev/null; then
11445   if test -s conftest.err; then
11446     ac_cpp_err=$ac_cxx_preproc_warn_flag
11447     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11448   else
11449     ac_cpp_err=
11450   fi
11451 else
11452   ac_cpp_err=yes
11453 fi
11454 if test -z "$ac_cpp_err"; then
11455   # Broken: success on invalid input.
11456 continue
11457 else
11458   echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11460
11461   # Passes both tests.
11462 ac_preproc_ok=:
11463 break
11464 fi
11465 rm -f conftest.err conftest.$ac_ext
11466
11467 done
11468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11469 rm -f conftest.err conftest.$ac_ext
11470 if $ac_preproc_ok; then
11471   :
11472 else
11473   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11474 See \`config.log' for more details." >&5
11475 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11476 See \`config.log' for more details." >&2;}
11477    { (exit 1); exit 1; }; }
11478 fi
11479
11480 ac_ext=cc
11481 ac_cpp='$CXXCPP $CPPFLAGS'
11482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11485
11486 fi
11487
11488 ac_ext=f
11489 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11490 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11492 if test -n "$ac_tool_prefix"; then
11493   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11494   do
11495     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11497 echo "$as_me:$LINENO: checking for $ac_word" >&5
11498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11499 if test "${ac_cv_prog_F77+set}" = set; then
11500   echo $ECHO_N "(cached) $ECHO_C" >&6
11501 else
11502   if test -n "$F77"; then
11503   ac_cv_prog_F77="$F77" # Let the user override the test.
11504 else
11505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11506 for as_dir in $PATH
11507 do
11508   IFS=$as_save_IFS
11509   test -z "$as_dir" && as_dir=.
11510   for ac_exec_ext in '' $ac_executable_extensions; do
11511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11512     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11514     break 2
11515   fi
11516 done
11517 done
11518
11519 fi
11520 fi
11521 F77=$ac_cv_prog_F77
11522 if test -n "$F77"; then
11523   echo "$as_me:$LINENO: result: $F77" >&5
11524 echo "${ECHO_T}$F77" >&6
11525 else
11526   echo "$as_me:$LINENO: result: no" >&5
11527 echo "${ECHO_T}no" >&6
11528 fi
11529
11530     test -n "$F77" && break
11531   done
11532 fi
11533 if test -z "$F77"; then
11534   ac_ct_F77=$F77
11535   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11536 do
11537   # Extract the first word of "$ac_prog", so it can be a program name with args.
11538 set dummy $ac_prog; ac_word=$2
11539 echo "$as_me:$LINENO: checking for $ac_word" >&5
11540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11541 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11542   echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544   if test -n "$ac_ct_F77"; then
11545   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11546 else
11547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $PATH
11549 do
11550   IFS=$as_save_IFS
11551   test -z "$as_dir" && as_dir=.
11552   for ac_exec_ext in '' $ac_executable_extensions; do
11553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11554     ac_cv_prog_ac_ct_F77="$ac_prog"
11555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11556     break 2
11557   fi
11558 done
11559 done
11560
11561 fi
11562 fi
11563 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11564 if test -n "$ac_ct_F77"; then
11565   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11566 echo "${ECHO_T}$ac_ct_F77" >&6
11567 else
11568   echo "$as_me:$LINENO: result: no" >&5
11569 echo "${ECHO_T}no" >&6
11570 fi
11571
11572   test -n "$ac_ct_F77" && break
11573 done
11574
11575   F77=$ac_ct_F77
11576 fi
11577
11578
11579 # Provide some information about the compiler.
11580 echo "$as_me:11580:" \
11581      "checking for Fortran 77 compiler version" >&5
11582 ac_compiler=`set X $ac_compile; echo $2`
11583 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11584   (eval $ac_compiler --version </dev/null >&5) 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); }
11588 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11589   (eval $ac_compiler -v </dev/null >&5) 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); }
11593 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11594   (eval $ac_compiler -V </dev/null >&5) 2>&5
11595   ac_status=$?
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); }
11598 rm -f a.out
11599
11600 # If we don't use `.F' as extension, the preprocessor is not run on the
11601 # input file.  (Note that this only needs to work for GNU compilers.)
11602 ac_save_ext=$ac_ext
11603 ac_ext=F
11604 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11605 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11606 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11607   echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609   cat >conftest.$ac_ext <<_ACEOF
11610       program main
11611 #ifndef __GNUC__
11612        choke me
11613 #endif
11614
11615       end
11616 _ACEOF
11617 rm -f conftest.$ac_objext
11618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11619   (eval $ac_compile) 2>conftest.er1
11620   ac_status=$?
11621   grep -v '^ *+' conftest.er1 >conftest.err
11622   rm -f conftest.er1
11623   cat conftest.err >&5
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); } &&
11626          { ac_try='test -z "$ac_f77_werror_flag"
11627                          || test ! -s conftest.err'
11628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629   (eval $ac_try) 2>&5
11630   ac_status=$?
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); }; } &&
11633          { ac_try='test -s conftest.$ac_objext'
11634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635   (eval $ac_try) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); }; }; then
11639   ac_compiler_gnu=yes
11640 else
11641   echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11643
11644 ac_compiler_gnu=no
11645 fi
11646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11647 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11648
11649 fi
11650 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11651 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11652 ac_ext=$ac_save_ext
11653 ac_test_FFLAGS=${FFLAGS+set}
11654 ac_save_FFLAGS=$FFLAGS
11655 FFLAGS=
11656 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11657 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11658 if test "${ac_cv_prog_f77_g+set}" = set; then
11659   echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661   FFLAGS=-g
11662 cat >conftest.$ac_ext <<_ACEOF
11663       program main
11664
11665       end
11666 _ACEOF
11667 rm -f conftest.$ac_objext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669   (eval $ac_compile) 2>conftest.er1
11670   ac_status=$?
11671   grep -v '^ *+' conftest.er1 >conftest.err
11672   rm -f conftest.er1
11673   cat conftest.err >&5
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } &&
11676          { ac_try='test -z "$ac_f77_werror_flag"
11677                          || test ! -s conftest.err'
11678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679   (eval $ac_try) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; } &&
11683          { ac_try='test -s conftest.$ac_objext'
11684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685   (eval $ac_try) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; }; then
11689   ac_cv_prog_f77_g=yes
11690 else
11691   echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 ac_cv_prog_f77_g=no
11695 fi
11696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11697
11698 fi
11699 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11700 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11701 if test "$ac_test_FFLAGS" = set; then
11702   FFLAGS=$ac_save_FFLAGS
11703 elif test $ac_cv_prog_f77_g = yes; then
11704   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11705     FFLAGS="-g -O2"
11706   else
11707     FFLAGS="-g"
11708   fi
11709 else
11710   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11711     FFLAGS="-O2"
11712   else
11713     FFLAGS=
11714   fi
11715 fi
11716
11717 G77=`test $ac_compiler_gnu = yes && echo yes`
11718 ac_ext=c
11719 ac_cpp='$CPP $CPPFLAGS'
11720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11723
11724
11725
11726 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11727
11728 # find the maximum length of command line arguments
11729 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11730 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11731 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11732   echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734     i=0
11735   teststring="ABCD"
11736
11737   case $build_os in
11738   msdosdjgpp*)
11739     # On DJGPP, this test can blow up pretty badly due to problems in libc
11740     # (any single argument exceeding 2000 bytes causes a buffer overrun
11741     # during glob expansion).  Even if it were fixed, the result of this
11742     # check would be larger than it should be.
11743     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11744     ;;
11745
11746   gnu*)
11747     # Under GNU Hurd, this test is not required because there is
11748     # no limit to the length of command line arguments.
11749     # Libtool will interpret -1 as no limit whatsoever
11750     lt_cv_sys_max_cmd_len=-1;
11751     ;;
11752
11753   cygwin* | mingw*)
11754     # On Win9x/ME, this test blows up -- it succeeds, but takes
11755     # about 5 minutes as the teststring grows exponentially.
11756     # Worse, since 9x/ME are not pre-emptively multitasking,
11757     # you end up with a "frozen" computer, even though with patience
11758     # the test eventually succeeds (with a max line length of 256k).
11759     # Instead, let's just punt: use the minimum linelength reported by
11760     # all of the supported platforms: 8192 (on NT/2K/XP).
11761     lt_cv_sys_max_cmd_len=8192;
11762     ;;
11763
11764   amigaos*)
11765     # On AmigaOS with pdksh, this test takes hours, literally.
11766     # So we just punt and use a minimum line length of 8192.
11767     lt_cv_sys_max_cmd_len=8192;
11768     ;;
11769
11770   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11771     # This has been around since 386BSD, at least.  Likely further.
11772     if test -x /sbin/sysctl; then
11773       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11774     elif test -x /usr/sbin/sysctl; then
11775       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11776     else
11777       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11778     fi
11779     # And add a safety zone
11780     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11781     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11782     ;;
11783   osf*)
11784     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11785     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11786     # nice to cause kernel panics so lets avoid the loop below.
11787     # First set a reasonable default.
11788     lt_cv_sys_max_cmd_len=16384
11789     #
11790     if test -x /sbin/sysconfig; then
11791       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11792         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11793       esac
11794     fi
11795     ;;
11796   *)
11797     # If test is not a shell built-in, we'll probably end up computing a
11798     # maximum length that is only half of the actual maximum length, but
11799     # we can't tell.
11800     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11801     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11802                = "XX$teststring") >/dev/null 2>&1 &&
11803             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11804             lt_cv_sys_max_cmd_len=$new_result &&
11805             test $i != 17 # 1/2 MB should be enough
11806     do
11807       i=`expr $i + 1`
11808       teststring=$teststring$teststring
11809     done
11810     teststring=
11811     # Add a significant safety factor because C++ compilers can tack on massive
11812     # amounts of additional arguments before passing them to the linker.
11813     # It appears as though 1/2 is a usable value.
11814     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11815     ;;
11816   esac
11817
11818 fi
11819
11820 if test -n $lt_cv_sys_max_cmd_len ; then
11821   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11822 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11823 else
11824   echo "$as_me:$LINENO: result: none" >&5
11825 echo "${ECHO_T}none" >&6
11826 fi
11827
11828
11829
11830
11831 # Check for command to grab the raw symbol name followed by C symbol from nm.
11832 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11833 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11834 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11835   echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837
11838 # These are sane defaults that work on at least a few old systems.
11839 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11840
11841 # Character class describing NM global symbol codes.
11842 symcode='[BCDEGRST]'
11843
11844 # Regexp to match symbols that can be accessed directly from C.
11845 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11846
11847 # Transform an extracted symbol line into a proper C declaration
11848 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11849
11850 # Transform an extracted symbol line into symbol name and symbol address
11851 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'"
11852
11853 # Define system-specific variables.
11854 case $host_os in
11855 aix*)
11856   symcode='[BCDT]'
11857   ;;
11858 cygwin* | mingw* | pw32*)
11859   symcode='[ABCDGISTW]'
11860   ;;
11861 hpux*) # Its linker distinguishes data from code symbols
11862   if test "$host_cpu" = ia64; then
11863     symcode='[ABCDEGRST]'
11864   fi
11865   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11866   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'"
11867   ;;
11868 linux*)
11869   if test "$host_cpu" = ia64; then
11870     symcode='[ABCDGIRSTW]'
11871     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11872     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'"
11873   fi
11874   ;;
11875 irix* | nonstopux*)
11876   symcode='[BCDEGRST]'
11877   ;;
11878 osf*)
11879   symcode='[BCDEGQRST]'
11880   ;;
11881 solaris* | sysv5*)
11882   symcode='[BDRT]'
11883   ;;
11884 sysv4)
11885   symcode='[DFNSTU]'
11886   ;;
11887 esac
11888
11889 # Handle CRLF in mingw tool chain
11890 opt_cr=
11891 case $build_os in
11892 mingw*)
11893   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11894   ;;
11895 esac
11896
11897 # If we're using GNU nm, then use its standard symbol codes.
11898 case `$NM -V 2>&1` in
11899 *GNU* | *'with BFD'*)
11900   symcode='[ABCDGIRSTW]' ;;
11901 esac
11902
11903 # Try without a prefix undercore, then with it.
11904 for ac_symprfx in "" "_"; do
11905
11906   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11907   symxfrm="\\1 $ac_symprfx\\2 \\2"
11908
11909   # Write the raw and C identifiers.
11910   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11911
11912   # Check to see that the pipe works correctly.
11913   pipe_works=no
11914
11915   rm -f conftest*
11916   cat > conftest.$ac_ext <<EOF
11917 #ifdef __cplusplus
11918 extern "C" {
11919 #endif
11920 char nm_test_var;
11921 void nm_test_func(){}
11922 #ifdef __cplusplus
11923 }
11924 #endif
11925 int main(){nm_test_var='a';nm_test_func();return(0);}
11926 EOF
11927
11928   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11929   (eval $ac_compile) 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; then
11933     # Now try to grab the symbols.
11934     nlist=conftest.nm
11935     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11936   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11937   ac_status=$?
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); } && test -s "$nlist"; then
11940       # Try sorting and uniquifying the output.
11941       if sort "$nlist" | uniq > "$nlist"T; then
11942         mv -f "$nlist"T "$nlist"
11943       else
11944         rm -f "$nlist"T
11945       fi
11946
11947       # Make sure that we snagged all the symbols we need.
11948       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11949         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11950           cat <<EOF > conftest.$ac_ext
11951 #ifdef __cplusplus
11952 extern "C" {
11953 #endif
11954
11955 EOF
11956           # Now generate the symbol file.
11957           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11958
11959           cat <<EOF >> conftest.$ac_ext
11960 #if defined (__STDC__) && __STDC__
11961 # define lt_ptr_t void *
11962 #else
11963 # define lt_ptr_t char *
11964 # define const
11965 #endif
11966
11967 /* The mapping between symbol names and symbols. */
11968 const struct {
11969   const char *name;
11970   lt_ptr_t address;
11971 }
11972 lt_preloaded_symbols[] =
11973 {
11974 EOF
11975           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11976           cat <<\EOF >> conftest.$ac_ext
11977   {0, (lt_ptr_t) 0}
11978 };
11979
11980 #ifdef __cplusplus
11981 }
11982 #endif
11983 EOF
11984           # Now try linking the two files.
11985           mv conftest.$ac_objext conftstm.$ac_objext
11986           lt_save_LIBS="$LIBS"
11987           lt_save_CFLAGS="$CFLAGS"
11988           LIBS="conftstm.$ac_objext"
11989           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11990           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11991   (eval $ac_link) 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11995             pipe_works=yes
11996           fi
11997           LIBS="$lt_save_LIBS"
11998           CFLAGS="$lt_save_CFLAGS"
11999         else
12000           echo "cannot find nm_test_func in $nlist" >&5
12001         fi
12002       else
12003         echo "cannot find nm_test_var in $nlist" >&5
12004       fi
12005     else
12006       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12007     fi
12008   else
12009     echo "$progname: failed program was:" >&5
12010     cat conftest.$ac_ext >&5
12011   fi
12012   rm -f conftest* conftst*
12013
12014   # Do not use the global_symbol_pipe unless it works.
12015   if test "$pipe_works" = yes; then
12016     break
12017   else
12018     lt_cv_sys_global_symbol_pipe=
12019   fi
12020 done
12021
12022 fi
12023
12024 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12025   lt_cv_sys_global_symbol_to_cdecl=
12026 fi
12027 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12028   echo "$as_me:$LINENO: result: failed" >&5
12029 echo "${ECHO_T}failed" >&6
12030 else
12031   echo "$as_me:$LINENO: result: ok" >&5
12032 echo "${ECHO_T}ok" >&6
12033 fi
12034
12035 echo "$as_me:$LINENO: checking for objdir" >&5
12036 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
12037 if test "${lt_cv_objdir+set}" = set; then
12038   echo $ECHO_N "(cached) $ECHO_C" >&6
12039 else
12040   rm -f .libs 2>/dev/null
12041 mkdir .libs 2>/dev/null
12042 if test -d .libs; then
12043   lt_cv_objdir=.libs
12044 else
12045   # MS-DOS does not allow filenames that begin with a dot.
12046   lt_cv_objdir=_libs
12047 fi
12048 rmdir .libs 2>/dev/null
12049 fi
12050 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12051 echo "${ECHO_T}$lt_cv_objdir" >&6
12052 objdir=$lt_cv_objdir
12053
12054
12055
12056
12057
12058 case $host_os in
12059 aix3*)
12060   # AIX sometimes has problems with the GCC collect2 program.  For some
12061   # reason, if we set the COLLECT_NAMES environment variable, the problems
12062   # vanish in a puff of smoke.
12063   if test "X${COLLECT_NAMES+set}" != Xset; then
12064     COLLECT_NAMES=
12065     export COLLECT_NAMES
12066   fi
12067   ;;
12068 esac
12069
12070 # Sed substitution that helps us do robust quoting.  It backslashifies
12071 # metacharacters that are still active within double-quoted strings.
12072 Xsed='sed -e 1s/^X//'
12073 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12074
12075 # Same as above, but do not quote variable references.
12076 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12077
12078 # Sed substitution to delay expansion of an escaped shell variable in a
12079 # double_quote_subst'ed string.
12080 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12081
12082 # Sed substitution to avoid accidental globbing in evaled expressions
12083 no_glob_subst='s/\*/\\\*/g'
12084
12085 # Constants:
12086 rm="rm -f"
12087
12088 # Global variables:
12089 default_ofile=libtool
12090 can_build_shared=yes
12091
12092 # All known linkers require a `.a' archive for static linking (except M$VC,
12093 # which needs '.lib').
12094 libext=a
12095 ltmain="$ac_aux_dir/ltmain.sh"
12096 ofile="$default_ofile"
12097 with_gnu_ld="$lt_cv_prog_gnu_ld"
12098
12099 if test -n "$ac_tool_prefix"; then
12100   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12101 set dummy ${ac_tool_prefix}ar; ac_word=$2
12102 echo "$as_me:$LINENO: checking for $ac_word" >&5
12103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12104 if test "${ac_cv_prog_AR+set}" = set; then
12105   echo $ECHO_N "(cached) $ECHO_C" >&6
12106 else
12107   if test -n "$AR"; then
12108   ac_cv_prog_AR="$AR" # Let the user override the test.
12109 else
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12112 do
12113   IFS=$as_save_IFS
12114   test -z "$as_dir" && as_dir=.
12115   for ac_exec_ext in '' $ac_executable_extensions; do
12116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12117     ac_cv_prog_AR="${ac_tool_prefix}ar"
12118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12119     break 2
12120   fi
12121 done
12122 done
12123
12124 fi
12125 fi
12126 AR=$ac_cv_prog_AR
12127 if test -n "$AR"; then
12128   echo "$as_me:$LINENO: result: $AR" >&5
12129 echo "${ECHO_T}$AR" >&6
12130 else
12131   echo "$as_me:$LINENO: result: no" >&5
12132 echo "${ECHO_T}no" >&6
12133 fi
12134
12135 fi
12136 if test -z "$ac_cv_prog_AR"; then
12137   ac_ct_AR=$AR
12138   # Extract the first word of "ar", so it can be a program name with args.
12139 set dummy ar; ac_word=$2
12140 echo "$as_me:$LINENO: checking for $ac_word" >&5
12141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12143   echo $ECHO_N "(cached) $ECHO_C" >&6
12144 else
12145   if test -n "$ac_ct_AR"; then
12146   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12147 else
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12150 do
12151   IFS=$as_save_IFS
12152   test -z "$as_dir" && as_dir=.
12153   for ac_exec_ext in '' $ac_executable_extensions; do
12154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155     ac_cv_prog_ac_ct_AR="ar"
12156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12157     break 2
12158   fi
12159 done
12160 done
12161
12162   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
12163 fi
12164 fi
12165 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12166 if test -n "$ac_ct_AR"; then
12167   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12168 echo "${ECHO_T}$ac_ct_AR" >&6
12169 else
12170   echo "$as_me:$LINENO: result: no" >&5
12171 echo "${ECHO_T}no" >&6
12172 fi
12173
12174   AR=$ac_ct_AR
12175 else
12176   AR="$ac_cv_prog_AR"
12177 fi
12178
12179 if test -n "$ac_tool_prefix"; then
12180   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12182 echo "$as_me:$LINENO: checking for $ac_word" >&5
12183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12184 if test "${ac_cv_prog_RANLIB+set}" = set; then
12185   echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12187   if test -n "$RANLIB"; then
12188   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12189 else
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12192 do
12193   IFS=$as_save_IFS
12194   test -z "$as_dir" && as_dir=.
12195   for ac_exec_ext in '' $ac_executable_extensions; do
12196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12197     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12199     break 2
12200   fi
12201 done
12202 done
12203
12204 fi
12205 fi
12206 RANLIB=$ac_cv_prog_RANLIB
12207 if test -n "$RANLIB"; then
12208   echo "$as_me:$LINENO: result: $RANLIB" >&5
12209 echo "${ECHO_T}$RANLIB" >&6
12210 else
12211   echo "$as_me:$LINENO: result: no" >&5
12212 echo "${ECHO_T}no" >&6
12213 fi
12214
12215 fi
12216 if test -z "$ac_cv_prog_RANLIB"; then
12217   ac_ct_RANLIB=$RANLIB
12218   # Extract the first word of "ranlib", so it can be a program name with args.
12219 set dummy ranlib; ac_word=$2
12220 echo "$as_me:$LINENO: checking for $ac_word" >&5
12221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12222 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12223   echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225   if test -n "$ac_ct_RANLIB"; then
12226   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12227 else
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12230 do
12231   IFS=$as_save_IFS
12232   test -z "$as_dir" && as_dir=.
12233   for ac_exec_ext in '' $ac_executable_extensions; do
12234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12235     ac_cv_prog_ac_ct_RANLIB="ranlib"
12236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12237     break 2
12238   fi
12239 done
12240 done
12241
12242   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12243 fi
12244 fi
12245 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12246 if test -n "$ac_ct_RANLIB"; then
12247   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12248 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12249 else
12250   echo "$as_me:$LINENO: result: no" >&5
12251 echo "${ECHO_T}no" >&6
12252 fi
12253
12254   RANLIB=$ac_ct_RANLIB
12255 else
12256   RANLIB="$ac_cv_prog_RANLIB"
12257 fi
12258
12259 if test -n "$ac_tool_prefix"; then
12260   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12261 set dummy ${ac_tool_prefix}strip; ac_word=$2
12262 echo "$as_me:$LINENO: checking for $ac_word" >&5
12263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12264 if test "${ac_cv_prog_STRIP+set}" = set; then
12265   echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267   if test -n "$STRIP"; then
12268   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12269 else
12270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271 for as_dir in $PATH
12272 do
12273   IFS=$as_save_IFS
12274   test -z "$as_dir" && as_dir=.
12275   for ac_exec_ext in '' $ac_executable_extensions; do
12276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12277     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12279     break 2
12280   fi
12281 done
12282 done
12283
12284 fi
12285 fi
12286 STRIP=$ac_cv_prog_STRIP
12287 if test -n "$STRIP"; then
12288   echo "$as_me:$LINENO: result: $STRIP" >&5
12289 echo "${ECHO_T}$STRIP" >&6
12290 else
12291   echo "$as_me:$LINENO: result: no" >&5
12292 echo "${ECHO_T}no" >&6
12293 fi
12294
12295 fi
12296 if test -z "$ac_cv_prog_STRIP"; then
12297   ac_ct_STRIP=$STRIP
12298   # Extract the first word of "strip", so it can be a program name with args.
12299 set dummy strip; ac_word=$2
12300 echo "$as_me:$LINENO: checking for $ac_word" >&5
12301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12302 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12303   echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305   if test -n "$ac_ct_STRIP"; then
12306   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12307 else
12308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309 for as_dir in $PATH
12310 do
12311   IFS=$as_save_IFS
12312   test -z "$as_dir" && as_dir=.
12313   for ac_exec_ext in '' $ac_executable_extensions; do
12314   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12315     ac_cv_prog_ac_ct_STRIP="strip"
12316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12317     break 2
12318   fi
12319 done
12320 done
12321
12322   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12323 fi
12324 fi
12325 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12326 if test -n "$ac_ct_STRIP"; then
12327   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12328 echo "${ECHO_T}$ac_ct_STRIP" >&6
12329 else
12330   echo "$as_me:$LINENO: result: no" >&5
12331 echo "${ECHO_T}no" >&6
12332 fi
12333
12334   STRIP=$ac_ct_STRIP
12335 else
12336   STRIP="$ac_cv_prog_STRIP"
12337 fi
12338
12339
12340 old_CC="$CC"
12341 old_CFLAGS="$CFLAGS"
12342
12343 # Set sane defaults for various variables
12344 test -z "$AR" && AR=ar
12345 test -z "$AR_FLAGS" && AR_FLAGS=cru
12346 test -z "$AS" && AS=as
12347 test -z "$CC" && CC=cc
12348 test -z "$LTCC" && LTCC=$CC
12349 test -z "$DLLTOOL" && DLLTOOL=dlltool
12350 test -z "$LD" && LD=ld
12351 test -z "$LN_S" && LN_S="ln -s"
12352 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12353 test -z "$NM" && NM=nm
12354 test -z "$SED" && SED=sed
12355 test -z "$OBJDUMP" && OBJDUMP=objdump
12356 test -z "$RANLIB" && RANLIB=:
12357 test -z "$STRIP" && STRIP=:
12358 test -z "$ac_objext" && ac_objext=o
12359
12360 # Determine commands to create old-style static archives.
12361 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12362 old_postinstall_cmds='chmod 644 $oldlib'
12363 old_postuninstall_cmds=
12364
12365 if test -n "$RANLIB"; then
12366   case $host_os in
12367   openbsd*)
12368     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12369     ;;
12370   *)
12371     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12372     ;;
12373   esac
12374   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12375 fi
12376
12377 for cc_temp in $compiler""; do
12378   case $cc_temp in
12379     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12380     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12381     \-*) ;;
12382     *) break;;
12383   esac
12384 done
12385 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12386
12387
12388 # Only perform the check for file, if the check method requires it
12389 case $deplibs_check_method in
12390 file_magic*)
12391   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12392     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12393 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   case $MAGIC_CMD in
12398 [\\/*] |  ?:[\\/]*)
12399   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12400   ;;
12401 *)
12402   lt_save_MAGIC_CMD="$MAGIC_CMD"
12403   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12404   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12405   for ac_dir in $ac_dummy; do
12406     IFS="$lt_save_ifs"
12407     test -z "$ac_dir" && ac_dir=.
12408     if test -f $ac_dir/${ac_tool_prefix}file; then
12409       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12410       if test -n "$file_magic_test_file"; then
12411         case $deplibs_check_method in
12412         "file_magic "*)
12413           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12414           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12415           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12416             $EGREP "$file_magic_regex" > /dev/null; then
12417             :
12418           else
12419             cat <<EOF 1>&2
12420
12421 *** Warning: the command libtool uses to detect shared libraries,
12422 *** $file_magic_cmd, produces output that libtool cannot recognize.
12423 *** The result is that libtool may fail to recognize shared libraries
12424 *** as such.  This will affect the creation of libtool libraries that
12425 *** depend on shared libraries, but programs linked with such libtool
12426 *** libraries will work regardless of this problem.  Nevertheless, you
12427 *** may want to report the problem to your system manager and/or to
12428 *** bug-libtool@gnu.org
12429
12430 EOF
12431           fi ;;
12432         esac
12433       fi
12434       break
12435     fi
12436   done
12437   IFS="$lt_save_ifs"
12438   MAGIC_CMD="$lt_save_MAGIC_CMD"
12439   ;;
12440 esac
12441 fi
12442
12443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12444 if test -n "$MAGIC_CMD"; then
12445   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12446 echo "${ECHO_T}$MAGIC_CMD" >&6
12447 else
12448   echo "$as_me:$LINENO: result: no" >&5
12449 echo "${ECHO_T}no" >&6
12450 fi
12451
12452 if test -z "$lt_cv_path_MAGIC_CMD"; then
12453   if test -n "$ac_tool_prefix"; then
12454     echo "$as_me:$LINENO: checking for file" >&5
12455 echo $ECHO_N "checking for file... $ECHO_C" >&6
12456 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12457   echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459   case $MAGIC_CMD in
12460 [\\/*] |  ?:[\\/]*)
12461   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12462   ;;
12463 *)
12464   lt_save_MAGIC_CMD="$MAGIC_CMD"
12465   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12466   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12467   for ac_dir in $ac_dummy; do
12468     IFS="$lt_save_ifs"
12469     test -z "$ac_dir" && ac_dir=.
12470     if test -f $ac_dir/file; then
12471       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12472       if test -n "$file_magic_test_file"; then
12473         case $deplibs_check_method in
12474         "file_magic "*)
12475           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12476           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12477           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12478             $EGREP "$file_magic_regex" > /dev/null; then
12479             :
12480           else
12481             cat <<EOF 1>&2
12482
12483 *** Warning: the command libtool uses to detect shared libraries,
12484 *** $file_magic_cmd, produces output that libtool cannot recognize.
12485 *** The result is that libtool may fail to recognize shared libraries
12486 *** as such.  This will affect the creation of libtool libraries that
12487 *** depend on shared libraries, but programs linked with such libtool
12488 *** libraries will work regardless of this problem.  Nevertheless, you
12489 *** may want to report the problem to your system manager and/or to
12490 *** bug-libtool@gnu.org
12491
12492 EOF
12493           fi ;;
12494         esac
12495       fi
12496       break
12497     fi
12498   done
12499   IFS="$lt_save_ifs"
12500   MAGIC_CMD="$lt_save_MAGIC_CMD"
12501   ;;
12502 esac
12503 fi
12504
12505 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12506 if test -n "$MAGIC_CMD"; then
12507   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12508 echo "${ECHO_T}$MAGIC_CMD" >&6
12509 else
12510   echo "$as_me:$LINENO: result: no" >&5
12511 echo "${ECHO_T}no" >&6
12512 fi
12513
12514   else
12515     MAGIC_CMD=:
12516   fi
12517 fi
12518
12519   fi
12520   ;;
12521 esac
12522
12523 enable_dlopen=no
12524 enable_win32_dll=no
12525
12526 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12527 if test "${enable_libtool_lock+set}" = set; then
12528   enableval="$enable_libtool_lock"
12529
12530 fi;
12531 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12532
12533
12534 # Check whether --with-pic or --without-pic was given.
12535 if test "${with_pic+set}" = set; then
12536   withval="$with_pic"
12537   pic_mode="$withval"
12538 else
12539   pic_mode=default
12540 fi;
12541 test -z "$pic_mode" && pic_mode=default
12542
12543 # Use C for the default configuration in the libtool script
12544 tagname=
12545 lt_save_CC="$CC"
12546 ac_ext=c
12547 ac_cpp='$CPP $CPPFLAGS'
12548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12551
12552
12553 # Source file extension for C test sources.
12554 ac_ext=c
12555
12556 # Object file extension for compiled C test sources.
12557 objext=o
12558 objext=$objext
12559
12560 # Code to be used in simple compile tests
12561 lt_simple_compile_test_code="int some_variable = 0;\n"
12562
12563 # Code to be used in simple link tests
12564 lt_simple_link_test_code='int main(){return(0);}\n'
12565
12566
12567 # If no C compiler was specified, use CC.
12568 LTCC=${LTCC-"$CC"}
12569
12570 # Allow CC to be a program name with arguments.
12571 compiler=$CC
12572
12573
12574 # save warnings/boilerplate of simple test code
12575 ac_outfile=conftest.$ac_objext
12576 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12577 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12578 _lt_compiler_boilerplate=`cat conftest.err`
12579 $rm conftest*
12580
12581 ac_outfile=conftest.$ac_objext
12582 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12583 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12584 _lt_linker_boilerplate=`cat conftest.err`
12585 $rm conftest*
12586
12587
12588 #
12589 # Check for any special shared library compilation flags.
12590 #
12591 lt_prog_cc_shlib=
12592 if test "$GCC" = no; then
12593   case $host_os in
12594   sco3.2v5*)
12595     lt_prog_cc_shlib='-belf'
12596     ;;
12597   esac
12598 fi
12599 if test -n "$lt_prog_cc_shlib"; then
12600   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12601 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12602   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
12603   else
12604     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12605 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12606     lt_cv_prog_cc_can_build_shared=no
12607   fi
12608 fi
12609
12610
12611 #
12612 # Check to make sure the static flag actually works.
12613 #
12614 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12615 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12616 if test "${lt_prog_compiler_static_works+set}" = set; then
12617   echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619   lt_prog_compiler_static_works=no
12620    save_LDFLAGS="$LDFLAGS"
12621    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12622    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12623    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12624      # The compiler can only warn and ignore the option if not recognized
12625      # So say no if there are warnings
12626      if test -s conftest.err; then
12627        # Append any errors to the config.log.
12628        cat conftest.err 1>&5
12629        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
12630        $SED '/^$/d' conftest.err >conftest.er2
12631        if diff conftest.exp conftest.er2 >/dev/null; then
12632          lt_prog_compiler_static_works=yes
12633        fi
12634      else
12635        lt_prog_compiler_static_works=yes
12636      fi
12637    fi
12638    $rm conftest*
12639    LDFLAGS="$save_LDFLAGS"
12640
12641 fi
12642 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12643 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12644
12645 if test x"$lt_prog_compiler_static_works" = xyes; then
12646     :
12647 else
12648     lt_prog_compiler_static=
12649 fi
12650
12651
12652
12653
12654 lt_prog_compiler_no_builtin_flag=
12655
12656 if test "$GCC" = yes; then
12657   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12658
12659
12660 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12661 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12662 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12663   echo $ECHO_N "(cached) $ECHO_C" >&6
12664 else
12665   lt_cv_prog_compiler_rtti_exceptions=no
12666   ac_outfile=conftest.$ac_objext
12667    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12668    lt_compiler_flag="-fno-rtti -fno-exceptions"
12669    # Insert the option either (1) after the last *FLAGS variable, or
12670    # (2) before a word containing "conftest.", or (3) at the end.
12671    # Note that $ac_compile itself does not contain backslashes and begins
12672    # with a dollar sign (not a hyphen), so the echo should work correctly.
12673    # The option is referenced via a variable to avoid confusing sed.
12674    lt_compile=`echo "$ac_compile" | $SED \
12675    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12676    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12677    -e 's:$: $lt_compiler_flag:'`
12678    (eval echo "\"\$as_me:12678: $lt_compile\"" >&5)
12679    (eval "$lt_compile" 2>conftest.err)
12680    ac_status=$?
12681    cat conftest.err >&5
12682    echo "$as_me:12682: \$? = $ac_status" >&5
12683    if (exit $ac_status) && test -s "$ac_outfile"; then
12684      # The compiler can only warn and ignore the option if not recognized
12685      # So say no if there are warnings other than the usual output.
12686      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12687      $SED '/^$/d' conftest.err >conftest.er2
12688      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12689        lt_cv_prog_compiler_rtti_exceptions=yes
12690      fi
12691    fi
12692    $rm conftest*
12693
12694 fi
12695 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12696 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12697
12698 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12699     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12700 else
12701     :
12702 fi
12703
12704 fi
12705
12706 lt_prog_compiler_wl=
12707 lt_prog_compiler_pic=
12708 lt_prog_compiler_static=
12709
12710 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12711 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12712
12713   if test "$GCC" = yes; then
12714     lt_prog_compiler_wl='-Wl,'
12715     lt_prog_compiler_static='-static'
12716
12717     case $host_os in
12718       aix*)
12719       # All AIX code is PIC.
12720       if test "$host_cpu" = ia64; then
12721         # AIX 5 now supports IA64 processor
12722         lt_prog_compiler_static='-Bstatic'
12723       fi
12724       ;;
12725
12726     amigaos*)
12727       # FIXME: we need at least 68020 code to build shared libraries, but
12728       # adding the `-m68020' flag to GCC prevents building anything better,
12729       # like `-m68040'.
12730       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12731       ;;
12732
12733     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12734       # PIC is the default for these OSes.
12735       ;;
12736
12737     mingw* | pw32* | os2*)
12738       # This hack is so that the source file can tell whether it is being
12739       # built for inclusion in a dll (and should export symbols for example).
12740       lt_prog_compiler_pic='-DDLL_EXPORT'
12741       ;;
12742
12743     darwin* | rhapsody*)
12744       # PIC is the default on this platform
12745       # Common symbols not allowed in MH_DYLIB files
12746       lt_prog_compiler_pic='-fno-common'
12747       ;;
12748
12749     msdosdjgpp*)
12750       # Just because we use GCC doesn't mean we suddenly get shared libraries
12751       # on systems that don't support them.
12752       lt_prog_compiler_can_build_shared=no
12753       enable_shared=no
12754       ;;
12755
12756     sysv4*MP*)
12757       if test -d /usr/nec; then
12758         lt_prog_compiler_pic=-Kconform_pic
12759       fi
12760       ;;
12761
12762     hpux*)
12763       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12764       # not for PA HP-UX.
12765       case "$host_cpu" in
12766       hppa*64*|ia64*)
12767         # +Z the default
12768         ;;
12769       *)
12770         lt_prog_compiler_pic='-fPIC'
12771         ;;
12772       esac
12773       ;;
12774
12775     *)
12776       lt_prog_compiler_pic='-fPIC'
12777       ;;
12778     esac
12779   else
12780     # PORTME Check for flag to pass linker flags through the system compiler.
12781     case $host_os in
12782     aix*)
12783       lt_prog_compiler_wl='-Wl,'
12784       if test "$host_cpu" = ia64; then
12785         # AIX 5 now supports IA64 processor
12786         lt_prog_compiler_static='-Bstatic'
12787       else
12788         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12789       fi
12790       ;;
12791       darwin*)
12792         # PIC is the default on this platform
12793         # Common symbols not allowed in MH_DYLIB files
12794        case $cc_basename in
12795          xlc*)
12796          lt_prog_compiler_pic='-qnocommon'
12797          lt_prog_compiler_wl='-Wl,'
12798          ;;
12799        esac
12800        ;;
12801
12802     mingw* | pw32* | os2*)
12803       # This hack is so that the source file can tell whether it is being
12804       # built for inclusion in a dll (and should export symbols for example).
12805       lt_prog_compiler_pic='-DDLL_EXPORT'
12806       ;;
12807
12808     hpux9* | hpux10* | hpux11*)
12809       lt_prog_compiler_wl='-Wl,'
12810       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12811       # not for PA HP-UX.
12812       case "$host_cpu" in
12813       hppa*64*|ia64*)
12814         # +Z the default
12815         ;;
12816       *)
12817         lt_prog_compiler_pic='+Z'
12818         ;;
12819       esac
12820       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12821       lt_prog_compiler_static='${wl}-a ${wl}archive'
12822       ;;
12823
12824     irix5* | irix6* | nonstopux*)
12825       lt_prog_compiler_wl='-Wl,'
12826       # PIC (with -KPIC) is the default.
12827       lt_prog_compiler_static='-non_shared'
12828       ;;
12829
12830     newsos6)
12831       lt_prog_compiler_pic='-KPIC'
12832       lt_prog_compiler_static='-Bstatic'
12833       ;;
12834
12835     linux*)
12836       case $cc_basename in
12837       icc* | ecc*)
12838         lt_prog_compiler_wl='-Wl,'
12839         lt_prog_compiler_pic='-KPIC'
12840         lt_prog_compiler_static='-static'
12841         ;;
12842       pgcc* | pgf77* | pgf90*)
12843         # Portland Group compilers (*not* the Pentium gcc compiler,
12844         # which looks to be a dead project)
12845         lt_prog_compiler_wl='-Wl,'
12846         lt_prog_compiler_pic='-fpic'
12847         lt_prog_compiler_static='-static'
12848         ;;
12849       ccc*)
12850         lt_prog_compiler_wl='-Wl,'
12851         # All Alpha code is PIC.
12852         lt_prog_compiler_static='-non_shared'
12853         ;;
12854       esac
12855       ;;
12856
12857     osf3* | osf4* | osf5*)
12858       lt_prog_compiler_wl='-Wl,'
12859       # All OSF/1 code is PIC.
12860       lt_prog_compiler_static='-non_shared'
12861       ;;
12862
12863     sco3.2v5*)
12864       lt_prog_compiler_pic='-Kpic'
12865       lt_prog_compiler_static='-dn'
12866       ;;
12867
12868     solaris*)
12869       lt_prog_compiler_pic='-KPIC'
12870       lt_prog_compiler_static='-Bstatic'
12871       case $cc_basename in
12872       f77* | f90* | f95*)
12873         lt_prog_compiler_wl='-Qoption ld ';;
12874       *)
12875         lt_prog_compiler_wl='-Wl,';;
12876       esac
12877       ;;
12878
12879     sunos4*)
12880       lt_prog_compiler_wl='-Qoption ld '
12881       lt_prog_compiler_pic='-PIC'
12882       lt_prog_compiler_static='-Bstatic'
12883       ;;
12884
12885     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12886       lt_prog_compiler_wl='-Wl,'
12887       lt_prog_compiler_pic='-KPIC'
12888       lt_prog_compiler_static='-Bstatic'
12889       ;;
12890
12891     sysv4*MP*)
12892       if test -d /usr/nec ;then
12893         lt_prog_compiler_pic='-Kconform_pic'
12894         lt_prog_compiler_static='-Bstatic'
12895       fi
12896       ;;
12897
12898     unicos*)
12899       lt_prog_compiler_wl='-Wl,'
12900       lt_prog_compiler_can_build_shared=no
12901       ;;
12902
12903     uts4*)
12904       lt_prog_compiler_pic='-pic'
12905       lt_prog_compiler_static='-Bstatic'
12906       ;;
12907
12908     *)
12909       lt_prog_compiler_can_build_shared=no
12910       ;;
12911     esac
12912   fi
12913
12914 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12915 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12916
12917 #
12918 # Check to make sure the PIC flag actually works.
12919 #
12920 if test -n "$lt_prog_compiler_pic"; then
12921
12922 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12923 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12924 if test "${lt_prog_compiler_pic_works+set}" = set; then
12925   echo $ECHO_N "(cached) $ECHO_C" >&6
12926 else
12927   lt_prog_compiler_pic_works=no
12928   ac_outfile=conftest.$ac_objext
12929    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12930    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12931    # Insert the option either (1) after the last *FLAGS variable, or
12932    # (2) before a word containing "conftest.", or (3) at the end.
12933    # Note that $ac_compile itself does not contain backslashes and begins
12934    # with a dollar sign (not a hyphen), so the echo should work correctly.
12935    # The option is referenced via a variable to avoid confusing sed.
12936    lt_compile=`echo "$ac_compile" | $SED \
12937    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12938    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12939    -e 's:$: $lt_compiler_flag:'`
12940    (eval echo "\"\$as_me:12940: $lt_compile\"" >&5)
12941    (eval "$lt_compile" 2>conftest.err)
12942    ac_status=$?
12943    cat conftest.err >&5
12944    echo "$as_me:12944: \$? = $ac_status" >&5
12945    if (exit $ac_status) && test -s "$ac_outfile"; then
12946      # The compiler can only warn and ignore the option if not recognized
12947      # So say no if there are warnings other than the usual output.
12948      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12949      $SED '/^$/d' conftest.err >conftest.er2
12950      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12951        lt_prog_compiler_pic_works=yes
12952      fi
12953    fi
12954    $rm conftest*
12955
12956 fi
12957 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12958 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12959
12960 if test x"$lt_prog_compiler_pic_works" = xyes; then
12961     case $lt_prog_compiler_pic in
12962      "" | " "*) ;;
12963      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12964      esac
12965 else
12966     lt_prog_compiler_pic=
12967      lt_prog_compiler_can_build_shared=no
12968 fi
12969
12970 fi
12971 case "$host_os" in
12972   # For platforms which do not support PIC, -DPIC is meaningless:
12973   *djgpp*)
12974     lt_prog_compiler_pic=
12975     ;;
12976   *)
12977     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12978     ;;
12979 esac
12980
12981 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12982 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12983 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12984   echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986   lt_cv_prog_compiler_c_o=no
12987    $rm -r conftest 2>/dev/null
12988    mkdir conftest
12989    cd conftest
12990    mkdir out
12991    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12992
12993    lt_compiler_flag="-o out/conftest2.$ac_objext"
12994    # Insert the option either (1) after the last *FLAGS variable, or
12995    # (2) before a word containing "conftest.", or (3) at the end.
12996    # Note that $ac_compile itself does not contain backslashes and begins
12997    # with a dollar sign (not a hyphen), so the echo should work correctly.
12998    lt_compile=`echo "$ac_compile" | $SED \
12999    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13000    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13001    -e 's:$: $lt_compiler_flag:'`
13002    (eval echo "\"\$as_me:13002: $lt_compile\"" >&5)
13003    (eval "$lt_compile" 2>out/conftest.err)
13004    ac_status=$?
13005    cat out/conftest.err >&5
13006    echo "$as_me:13006: \$? = $ac_status" >&5
13007    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13008    then
13009      # The compiler can only warn and ignore the option if not recognized
13010      # So say no if there are warnings
13011      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13012      $SED '/^$/d' out/conftest.err >out/conftest.er2
13013      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13014        lt_cv_prog_compiler_c_o=yes
13015      fi
13016    fi
13017    chmod u+w .
13018    $rm conftest*
13019    # SGI C++ compiler will create directory out/ii_files/ for
13020    # template instantiation
13021    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13022    $rm out/* && rmdir out
13023    cd ..
13024    rmdir conftest
13025    $rm conftest*
13026
13027 fi
13028 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13029 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
13030
13031
13032 hard_links="nottested"
13033 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13034   # do not overwrite the value of need_locks provided by the user
13035   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13036 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13037   hard_links=yes
13038   $rm conftest*
13039   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13040   touch conftest.a
13041   ln conftest.a conftest.b 2>&5 || hard_links=no
13042   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13043   echo "$as_me:$LINENO: result: $hard_links" >&5
13044 echo "${ECHO_T}$hard_links" >&6
13045   if test "$hard_links" = no; then
13046     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13047 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13048     need_locks=warn
13049   fi
13050 else
13051   need_locks=no
13052 fi
13053
13054 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13055 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13056
13057   runpath_var=
13058   allow_undefined_flag=
13059   enable_shared_with_static_runtimes=no
13060   archive_cmds=
13061   archive_expsym_cmds=
13062   old_archive_From_new_cmds=
13063   old_archive_from_expsyms_cmds=
13064   export_dynamic_flag_spec=
13065   whole_archive_flag_spec=
13066   thread_safe_flag_spec=
13067   hardcode_libdir_flag_spec=
13068   hardcode_libdir_flag_spec_ld=
13069   hardcode_libdir_separator=
13070   hardcode_direct=no
13071   hardcode_minus_L=no
13072   hardcode_shlibpath_var=unsupported
13073   link_all_deplibs=unknown
13074   hardcode_automatic=no
13075   module_cmds=
13076   module_expsym_cmds=
13077   always_export_symbols=no
13078   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13079   # include_expsyms should be a list of space-separated symbols to be *always*
13080   # included in the symbol list
13081   include_expsyms=
13082   # exclude_expsyms can be an extended regexp of symbols to exclude
13083   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13084   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13085   # as well as any symbol that contains `d'.
13086   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13087   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13088   # platforms (ab)use it in PIC code, but their linkers get confused if
13089   # the symbol is explicitly referenced.  Since portable code cannot
13090   # rely on this symbol name, it's probably fine to never include it in
13091   # preloaded symbol tables.
13092   extract_expsyms_cmds=
13093   # Just being paranoid about ensuring that cc_basename is set.
13094   for cc_temp in $compiler""; do
13095   case $cc_temp in
13096     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13097     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13098     \-*) ;;
13099     *) break;;
13100   esac
13101 done
13102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13103
13104   case $host_os in
13105   cygwin* | mingw* | pw32*)
13106     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13107     # When not using gcc, we currently assume that we are using
13108     # Microsoft Visual C++.
13109     if test "$GCC" != yes; then
13110       with_gnu_ld=no
13111     fi
13112     ;;
13113   openbsd*)
13114     with_gnu_ld=no
13115     ;;
13116   esac
13117
13118   ld_shlibs=yes
13119   if test "$with_gnu_ld" = yes; then
13120     # If archive_cmds runs LD, not CC, wlarc should be empty
13121     wlarc='${wl}'
13122
13123     # Set some defaults for GNU ld with shared library support. These
13124     # are reset later if shared libraries are not supported. Putting them
13125     # here allows them to be overridden if necessary.
13126     runpath_var=LD_RUN_PATH
13127     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13128     export_dynamic_flag_spec='${wl}--export-dynamic'
13129     # ancient GNU ld didn't support --whole-archive et. al.
13130     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13131         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13132       else
13133         whole_archive_flag_spec=
13134     fi
13135     supports_anon_versioning=no
13136     case `$LD -v 2>/dev/null` in
13137       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13138       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13139       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13140       *\ 2.11.*) ;; # other 2.11 versions
13141       *) supports_anon_versioning=yes ;;
13142     esac
13143
13144     # See if GNU ld supports shared libraries.
13145     case $host_os in
13146     aix3* | aix4* | aix5*)
13147       # On AIX/PPC, the GNU linker is very broken
13148       if test "$host_cpu" != ia64; then
13149         ld_shlibs=no
13150         cat <<EOF 1>&2
13151
13152 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13153 *** to be unable to reliably create shared libraries on AIX.
13154 *** Therefore, libtool is disabling shared libraries support.  If you
13155 *** really care for shared libraries, you may want to modify your PATH
13156 *** so that a non-GNU linker is found, and then restart.
13157
13158 EOF
13159       fi
13160       ;;
13161
13162     amigaos*)
13163       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)'
13164       hardcode_libdir_flag_spec='-L$libdir'
13165       hardcode_minus_L=yes
13166
13167       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13168       # that the semantics of dynamic libraries on AmigaOS, at least up
13169       # to version 4, is to share data among multiple programs linked
13170       # with the same dynamic library.  Since this doesn't match the
13171       # behavior of shared libraries on other platforms, we can't use
13172       # them.
13173       ld_shlibs=no
13174       ;;
13175
13176     beos*)
13177       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13178         allow_undefined_flag=unsupported
13179         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13180         # support --undefined.  This deserves some investigation.  FIXME
13181         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13182       else
13183         ld_shlibs=no
13184       fi
13185       ;;
13186
13187     cygwin* | mingw* | pw32*)
13188       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13189       # as there is no search path for DLLs.
13190       hardcode_libdir_flag_spec='-L$libdir'
13191       allow_undefined_flag=unsupported
13192       always_export_symbols=no
13193       enable_shared_with_static_runtimes=yes
13194       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13195
13196       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13197         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13198         # If the export-symbols file already is a .def file (1st line
13199         # is EXPORTS), use it as is; otherwise, prepend...
13200         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13201           cp $export_symbols $output_objdir/$soname.def;
13202         else
13203           echo EXPORTS > $output_objdir/$soname.def;
13204           cat $export_symbols >> $output_objdir/$soname.def;
13205         fi~
13206         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13207       else
13208         ld_shlibs=no
13209       fi
13210       ;;
13211
13212     linux*)
13213       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13214         tmp_addflag=
13215         case $cc_basename,$host_cpu in
13216         pgcc*)                          # Portland Group C compiler
13217           whole_archive_flag_spec=
13218           ;;
13219         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
13220           whole_archive_flag_spec=
13221           tmp_addflag=' -fpic -Mnomain' ;;
13222         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13223           tmp_addflag=' -i_dynamic' ;;
13224         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13225           tmp_addflag=' -i_dynamic -nofor_main' ;;
13226         ifc* | ifort*)                  # Intel Fortran compiler
13227           tmp_addflag=' -nofor_main' ;;
13228         esac
13229         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13230
13231         if test $supports_anon_versioning = yes; then
13232           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13233   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13234   $echo "local: *; };" >> $output_objdir/$libname.ver~
13235           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13236         fi
13237       else
13238         ld_shlibs=no
13239       fi
13240       ;;
13241
13242     netbsd*)
13243       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13244         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13245         wlarc=
13246       else
13247         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13248         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13249       fi
13250       ;;
13251
13252     solaris* | sysv5*)
13253       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13254         ld_shlibs=no
13255         cat <<EOF 1>&2
13256
13257 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13258 *** create shared libraries on Solaris systems.  Therefore, libtool
13259 *** is disabling shared libraries support.  We urge you to upgrade GNU
13260 *** binutils to release 2.9.1 or newer.  Another option is to modify
13261 *** your PATH or compiler configuration so that the native linker is
13262 *** used, and then restart.
13263
13264 EOF
13265       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13266         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13267         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13268       else
13269         ld_shlibs=no
13270       fi
13271       ;;
13272
13273     sunos4*)
13274       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13275       wlarc=
13276       hardcode_direct=yes
13277       hardcode_shlibpath_var=no
13278       ;;
13279
13280     *)
13281       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13282         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13283         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13284       else
13285         ld_shlibs=no
13286       fi
13287       ;;
13288     esac
13289
13290     if test "$ld_shlibs" = no; then
13291       runpath_var=
13292       hardcode_libdir_flag_spec=
13293       export_dynamic_flag_spec=
13294       whole_archive_flag_spec=
13295     fi
13296   else
13297     # PORTME fill in a description of your system's linker (not GNU ld)
13298     case $host_os in
13299     aix3*)
13300       allow_undefined_flag=unsupported
13301       always_export_symbols=yes
13302       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'
13303       # Note: this linker hardcodes the directories in LIBPATH if there
13304       # are no directories specified by -L.
13305       hardcode_minus_L=yes
13306       if test "$GCC" = yes && test -z "$link_static_flag"; then
13307         # Neither direct hardcoding nor static linking is supported with a
13308         # broken collect2.
13309         hardcode_direct=unsupported
13310       fi
13311       ;;
13312
13313     aix4* | aix5*)
13314       if test "$host_cpu" = ia64; then
13315         # On IA64, the linker does run time linking by default, so we don't
13316         # have to do anything special.
13317         aix_use_runtimelinking=no
13318         exp_sym_flag='-Bexport'
13319         no_entry_flag=""
13320       else
13321         # If we're using GNU nm, then we don't want the "-C" option.
13322         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13323         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13324           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'
13325         else
13326           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'
13327         fi
13328         aix_use_runtimelinking=no
13329
13330         # Test if we are trying to use run time linking or normal
13331         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13332         # need to do runtime linking.
13333         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13334           for ld_flag in $LDFLAGS; do
13335           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13336             aix_use_runtimelinking=yes
13337             break
13338           fi
13339           done
13340         esac
13341
13342         exp_sym_flag='-bexport'
13343         no_entry_flag='-bnoentry'
13344       fi
13345
13346       # When large executables or shared objects are built, AIX ld can
13347       # have problems creating the table of contents.  If linking a library
13348       # or program results in "error TOC overflow" add -mminimal-toc to
13349       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13350       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13351
13352       archive_cmds=''
13353       hardcode_direct=yes
13354       hardcode_libdir_separator=':'
13355       link_all_deplibs=yes
13356
13357       if test "$GCC" = yes; then
13358         case $host_os in aix4.[012]|aix4.[012].*)
13359         # We only want to do this on AIX 4.2 and lower, the check
13360         # below for broken collect2 doesn't work under 4.3+
13361           collect2name=`${CC} -print-prog-name=collect2`
13362           if test -f "$collect2name" && \
13363            strings "$collect2name" | grep resolve_lib_name >/dev/null
13364           then
13365           # We have reworked collect2
13366           hardcode_direct=yes
13367           else
13368           # We have old collect2
13369           hardcode_direct=unsupported
13370           # It fails to find uninstalled libraries when the uninstalled
13371           # path is not listed in the libpath.  Setting hardcode_minus_L
13372           # to unsupported forces relinking
13373           hardcode_minus_L=yes
13374           hardcode_libdir_flag_spec='-L$libdir'
13375           hardcode_libdir_separator=
13376           fi
13377         esac
13378         shared_flag='-shared'
13379         if test "$aix_use_runtimelinking" = yes; then
13380           shared_flag="$shared_flag "'${wl}-G'
13381         fi
13382       else
13383         # not using gcc
13384         if test "$host_cpu" = ia64; then
13385         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13386         # chokes on -Wl,-G. The following line is correct:
13387           shared_flag='-G'
13388         else
13389         if test "$aix_use_runtimelinking" = yes; then
13390             shared_flag='${wl}-G'
13391           else
13392             shared_flag='${wl}-bM:SRE'
13393         fi
13394         fi
13395       fi
13396
13397       # It seems that -bexpall does not export symbols beginning with
13398       # underscore (_), so it is better to generate a list of symbols to export.
13399       always_export_symbols=yes
13400       if test "$aix_use_runtimelinking" = yes; then
13401         # Warning - without using the other runtime loading flags (-brtl),
13402         # -berok will link without error, but may produce a broken library.
13403         allow_undefined_flag='-berok'
13404        # Determine the default libpath from the value encoded in an empty executable.
13405        cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411
13412 int
13413 main ()
13414 {
13415
13416   ;
13417   return 0;
13418 }
13419 _ACEOF
13420 rm -f conftest.$ac_objext conftest$ac_exeext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13422   (eval $ac_link) 2>conftest.er1
13423   ac_status=$?
13424   grep -v '^ *+' conftest.er1 >conftest.err
13425   rm -f conftest.er1
13426   cat conftest.err >&5
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); } &&
13429          { ac_try='test -z "$ac_c_werror_flag"
13430                          || test ! -s conftest.err'
13431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432   (eval $ac_try) 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; } &&
13436          { ac_try='test -s conftest$ac_exeext'
13437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438   (eval $ac_try) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; }; then
13442
13443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13444 }'`
13445 # Check for a 64-bit object if we didn't find anything.
13446 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; }
13447 }'`; fi
13448 else
13449   echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13451
13452 fi
13453 rm -f conftest.err conftest.$ac_objext \
13454       conftest$ac_exeext conftest.$ac_ext
13455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13456
13457        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13458         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"
13459        else
13460         if test "$host_cpu" = ia64; then
13461           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13462           allow_undefined_flag="-z nodefs"
13463           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"
13464         else
13465          # Determine the default libpath from the value encoded in an empty executable.
13466          cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h.  */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h.  */
13472
13473 int
13474 main ()
13475 {
13476
13477   ;
13478   return 0;
13479 }
13480 _ACEOF
13481 rm -f conftest.$ac_objext conftest$ac_exeext
13482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13483   (eval $ac_link) 2>conftest.er1
13484   ac_status=$?
13485   grep -v '^ *+' conftest.er1 >conftest.err
13486   rm -f conftest.er1
13487   cat conftest.err >&5
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); } &&
13490          { ac_try='test -z "$ac_c_werror_flag"
13491                          || test ! -s conftest.err'
13492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493   (eval $ac_try) 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); }; } &&
13497          { ac_try='test -s conftest$ac_exeext'
13498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499   (eval $ac_try) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; }; then
13503
13504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13505 }'`
13506 # Check for a 64-bit object if we didn't find anything.
13507 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; }
13508 }'`; fi
13509 else
13510   echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13512
13513 fi
13514 rm -f conftest.err conftest.$ac_objext \
13515       conftest$ac_exeext conftest.$ac_ext
13516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13517
13518          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13519           # Warning - without using the other run time loading flags,
13520           # -berok will link without error, but may produce a broken library.
13521           no_undefined_flag=' ${wl}-bernotok'
13522           allow_undefined_flag=' ${wl}-berok'
13523           # -bexpall does not export symbols beginning with underscore (_)
13524           always_export_symbols=yes
13525           # Exported symbols can be pulled into shared objects from archives
13526           whole_archive_flag_spec=' '
13527           archive_cmds_need_lc=yes
13528           # This is similar to how AIX traditionally builds it's shared libraries.
13529           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'
13530         fi
13531       fi
13532       ;;
13533
13534     amigaos*)
13535       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)'
13536       hardcode_libdir_flag_spec='-L$libdir'
13537       hardcode_minus_L=yes
13538       # see comment about different semantics on the GNU ld section
13539       ld_shlibs=no
13540       ;;
13541
13542     bsdi[45]*)
13543       export_dynamic_flag_spec=-rdynamic
13544       ;;
13545
13546     cygwin* | mingw* | pw32*)
13547       # When not using gcc, we currently assume that we are using
13548       # Microsoft Visual C++.
13549       # hardcode_libdir_flag_spec is actually meaningless, as there is
13550       # no search path for DLLs.
13551       hardcode_libdir_flag_spec=' '
13552       allow_undefined_flag=unsupported
13553       # Tell ltmain to make .lib files, not .a files.
13554       libext=lib
13555       # Tell ltmain to make .dll files, not .so files.
13556       shrext_cmds=".dll"
13557       # FIXME: Setting linknames here is a bad hack.
13558       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13559       # The linker will automatically build a .lib file if we build a DLL.
13560       old_archive_From_new_cmds='true'
13561       # FIXME: Should let the user specify the lib program.
13562       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13563       fix_srcfile_path='`cygpath -w "$srcfile"`'
13564       enable_shared_with_static_runtimes=yes
13565       ;;
13566
13567     darwin* | rhapsody*)
13568       case "$host_os" in
13569         rhapsody* | darwin1.[012])
13570          allow_undefined_flag='${wl}-undefined ${wl}suppress'
13571          ;;
13572        *) # Darwin 1.3 on
13573          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13574            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13575          else
13576            case ${MACOSX_DEPLOYMENT_TARGET} in
13577              10.[012])
13578                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13579                ;;
13580              10.*)
13581                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13582                ;;
13583            esac
13584          fi
13585          ;;
13586       esac
13587       archive_cmds_need_lc=no
13588       hardcode_direct=no
13589       hardcode_automatic=yes
13590       hardcode_shlibpath_var=unsupported
13591       whole_archive_flag_spec=''
13592       link_all_deplibs=yes
13593     if test "$GCC" = yes ; then
13594         output_verbose_link_cmd='echo'
13595         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13596       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13597       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13598       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}'
13599       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}'
13600     else
13601       case $cc_basename in
13602         xlc*)
13603          output_verbose_link_cmd='echo'
13604          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13605          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13606           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13607          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13608           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}'
13609           ;;
13610        *)
13611          ld_shlibs=no
13612           ;;
13613       esac
13614     fi
13615       ;;
13616
13617     dgux*)
13618       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13619       hardcode_libdir_flag_spec='-L$libdir'
13620       hardcode_shlibpath_var=no
13621       ;;
13622
13623     freebsd1*)
13624       ld_shlibs=no
13625       ;;
13626
13627     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13628     # support.  Future versions do this automatically, but an explicit c++rt0.o
13629     # does not break anything, and helps significantly (at the cost of a little
13630     # extra space).
13631     freebsd2.2*)
13632       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13633       hardcode_libdir_flag_spec='-R$libdir'
13634       hardcode_direct=yes
13635       hardcode_shlibpath_var=no
13636       ;;
13637
13638     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13639     freebsd2*)
13640       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13641       hardcode_direct=yes
13642       hardcode_minus_L=yes
13643       hardcode_shlibpath_var=no
13644       ;;
13645
13646     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13647     freebsd* | kfreebsd*-gnu | dragonfly*)
13648       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13649       hardcode_libdir_flag_spec='-R$libdir'
13650       hardcode_direct=yes
13651       hardcode_shlibpath_var=no
13652       ;;
13653
13654     hpux9*)
13655       if test "$GCC" = yes; then
13656         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'
13657       else
13658         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'
13659       fi
13660       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13661       hardcode_libdir_separator=:
13662       hardcode_direct=yes
13663
13664       # hardcode_minus_L: Not really in the search PATH,
13665       # but as the default location of the library.
13666       hardcode_minus_L=yes
13667       export_dynamic_flag_spec='${wl}-E'
13668       ;;
13669
13670     hpux10* | hpux11*)
13671       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13672         case "$host_cpu" in
13673         hppa*64*|ia64*)
13674           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13675           ;;
13676         *)
13677           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13678           ;;
13679         esac
13680       else
13681         case "$host_cpu" in
13682         hppa*64*|ia64*)
13683           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13684           ;;
13685         *)
13686           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13687           ;;
13688         esac
13689       fi
13690       if test "$with_gnu_ld" = no; then
13691         case "$host_cpu" in
13692         hppa*64*)
13693           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13694           hardcode_libdir_flag_spec_ld='+b $libdir'
13695           hardcode_libdir_separator=:
13696           hardcode_direct=no
13697           hardcode_shlibpath_var=no
13698           ;;
13699         ia64*)
13700           hardcode_libdir_flag_spec='-L$libdir'
13701           hardcode_direct=no
13702           hardcode_shlibpath_var=no
13703
13704           # hardcode_minus_L: Not really in the search PATH,
13705           # but as the default location of the library.
13706           hardcode_minus_L=yes
13707           ;;
13708         *)
13709           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13710           hardcode_libdir_separator=:
13711           hardcode_direct=yes
13712           export_dynamic_flag_spec='${wl}-E'
13713
13714           # hardcode_minus_L: Not really in the search PATH,
13715           # but as the default location of the library.
13716           hardcode_minus_L=yes
13717           ;;
13718         esac
13719       fi
13720       ;;
13721
13722     irix5* | irix6* | nonstopux*)
13723       if test "$GCC" = yes; then
13724         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'
13725       else
13726         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'
13727         hardcode_libdir_flag_spec_ld='-rpath $libdir'
13728       fi
13729       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13730       hardcode_libdir_separator=:
13731       link_all_deplibs=yes
13732       ;;
13733
13734     netbsd*)
13735       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13736         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13737       else
13738         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13739       fi
13740       hardcode_libdir_flag_spec='-R$libdir'
13741       hardcode_direct=yes
13742       hardcode_shlibpath_var=no
13743       ;;
13744
13745     newsos6)
13746       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13747       hardcode_direct=yes
13748       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13749       hardcode_libdir_separator=:
13750       hardcode_shlibpath_var=no
13751       ;;
13752
13753     openbsd*)
13754       hardcode_direct=yes
13755       hardcode_shlibpath_var=no
13756       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13757         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13758         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13759         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13760         export_dynamic_flag_spec='${wl}-E'
13761       else
13762        case $host_os in
13763          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13764            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13765            hardcode_libdir_flag_spec='-R$libdir'
13766            ;;
13767          *)
13768            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13769            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13770            ;;
13771        esac
13772       fi
13773       ;;
13774
13775     os2*)
13776       hardcode_libdir_flag_spec='-L$libdir'
13777       hardcode_minus_L=yes
13778       allow_undefined_flag=unsupported
13779       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'
13780       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13781       ;;
13782
13783     osf3*)
13784       if test "$GCC" = yes; then
13785         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13786         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'
13787       else
13788         allow_undefined_flag=' -expect_unresolved \*'
13789         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'
13790       fi
13791       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13792       hardcode_libdir_separator=:
13793       ;;
13794
13795     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13796       if test "$GCC" = yes; then
13797         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13798         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'
13799         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13800       else
13801         allow_undefined_flag=' -expect_unresolved \*'
13802         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'
13803         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13804         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13805
13806         # Both c and cxx compiler support -rpath directly
13807         hardcode_libdir_flag_spec='-rpath $libdir'
13808       fi
13809       hardcode_libdir_separator=:
13810       ;;
13811
13812     sco3.2v5*)
13813       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13814       hardcode_shlibpath_var=no
13815       export_dynamic_flag_spec='${wl}-Bexport'
13816       runpath_var=LD_RUN_PATH
13817       hardcode_runpath_var=yes
13818       ;;
13819
13820     solaris*)
13821       no_undefined_flag=' -z text'
13822       if test "$GCC" = yes; then
13823         wlarc='${wl}'
13824         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13825         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13826           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13827       else
13828         wlarc=''
13829         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13830         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13831         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13832       fi
13833       hardcode_libdir_flag_spec='-R$libdir'
13834       hardcode_shlibpath_var=no
13835       case $host_os in
13836       solaris2.[0-5] | solaris2.[0-5].*) ;;
13837       *)
13838         # The compiler driver will combine linker options so we
13839         # cannot just pass the convience library names through
13840         # without $wl, iff we do not link with $LD.
13841         # Luckily, gcc supports the same syntax we need for Sun Studio.
13842         # Supported since Solaris 2.6 (maybe 2.5.1?)
13843         case $wlarc in
13844         '')
13845           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13846         *)
13847           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13848         esac ;;
13849       esac
13850       link_all_deplibs=yes
13851       ;;
13852
13853     sunos4*)
13854       if test "x$host_vendor" = xsequent; then
13855         # Use $CC to link under sequent, because it throws in some extra .o
13856         # files that make .init and .fini sections work.
13857         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13858       else
13859         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13860       fi
13861       hardcode_libdir_flag_spec='-L$libdir'
13862       hardcode_direct=yes
13863       hardcode_minus_L=yes
13864       hardcode_shlibpath_var=no
13865       ;;
13866
13867     sysv4)
13868       case $host_vendor in
13869         sni)
13870           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13871           hardcode_direct=yes # is this really true???
13872         ;;
13873         siemens)
13874           ## LD is ld it makes a PLAMLIB
13875           ## CC just makes a GrossModule.
13876           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13877           reload_cmds='$CC -r -o $output$reload_objs'
13878           hardcode_direct=no
13879         ;;
13880         motorola)
13881           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13882           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13883         ;;
13884       esac
13885       runpath_var='LD_RUN_PATH'
13886       hardcode_shlibpath_var=no
13887       ;;
13888
13889     sysv4.3*)
13890       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13891       hardcode_shlibpath_var=no
13892       export_dynamic_flag_spec='-Bexport'
13893       ;;
13894
13895     sysv4*MP*)
13896       if test -d /usr/nec; then
13897         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13898         hardcode_shlibpath_var=no
13899         runpath_var=LD_RUN_PATH
13900         hardcode_runpath_var=yes
13901         ld_shlibs=yes
13902       fi
13903       ;;
13904
13905     sysv4.2uw2*)
13906       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13907       hardcode_direct=yes
13908       hardcode_minus_L=no
13909       hardcode_shlibpath_var=no
13910       hardcode_runpath_var=yes
13911       runpath_var=LD_RUN_PATH
13912       ;;
13913
13914    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13915       no_undefined_flag='${wl}-z ${wl}text'
13916       if test "$GCC" = yes; then
13917         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13918       else
13919         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13920       fi
13921       runpath_var='LD_RUN_PATH'
13922       hardcode_shlibpath_var=no
13923       ;;
13924
13925     sysv5*)
13926       no_undefined_flag=' -z text'
13927       # $CC -shared without GNU ld will not create a library from C++
13928       # object files and a static libstdc++, better avoid it by now
13929       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13930       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13931                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13932       hardcode_libdir_flag_spec=
13933       hardcode_shlibpath_var=no
13934       runpath_var='LD_RUN_PATH'
13935       ;;
13936
13937     uts4*)
13938       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13939       hardcode_libdir_flag_spec='-L$libdir'
13940       hardcode_shlibpath_var=no
13941       ;;
13942
13943     *)
13944       ld_shlibs=no
13945       ;;
13946     esac
13947   fi
13948
13949 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13950 echo "${ECHO_T}$ld_shlibs" >&6
13951 test "$ld_shlibs" = no && can_build_shared=no
13952
13953 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13954 if test "$GCC" = yes; then
13955   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13956 fi
13957
13958 #
13959 # Do we need to explicitly link libc?
13960 #
13961 case "x$archive_cmds_need_lc" in
13962 x|xyes)
13963   # Assume -lc should be added
13964   archive_cmds_need_lc=yes
13965
13966   if test "$enable_shared" = yes && test "$GCC" = yes; then
13967     case $archive_cmds in
13968     *'~'*)
13969       # FIXME: we may have to deal with multi-command sequences.
13970       ;;
13971     '$CC '*)
13972       # Test whether the compiler implicitly links with -lc since on some
13973       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13974       # to ld, don't add -lc before -lgcc.
13975       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13976 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13977       $rm conftest*
13978       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13979
13980       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13981   (eval $ac_compile) 2>&5
13982   ac_status=$?
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); } 2>conftest.err; then
13985         soname=conftest
13986         lib=conftest
13987         libobjs=conftest.$ac_objext
13988         deplibs=
13989         wl=$lt_prog_compiler_wl
13990         compiler_flags=-v
13991         linker_flags=-v
13992         verstring=
13993         output_objdir=.
13994         libname=conftest
13995         lt_save_allow_undefined_flag=$allow_undefined_flag
13996         allow_undefined_flag=
13997         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13998   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); }
14002         then
14003           archive_cmds_need_lc=no
14004         else
14005           archive_cmds_need_lc=yes
14006         fi
14007         allow_undefined_flag=$lt_save_allow_undefined_flag
14008       else
14009         cat conftest.err 1>&5
14010       fi
14011       $rm conftest*
14012       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14013 echo "${ECHO_T}$archive_cmds_need_lc" >&6
14014       ;;
14015     esac
14016   fi
14017   ;;
14018 esac
14019
14020 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14021 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14022 library_names_spec=
14023 libname_spec='lib$name'
14024 soname_spec=
14025 shrext_cmds=".so"
14026 postinstall_cmds=
14027 postuninstall_cmds=
14028 finish_cmds=
14029 finish_eval=
14030 shlibpath_var=
14031 shlibpath_overrides_runpath=unknown
14032 version_type=none
14033 dynamic_linker="$host_os ld.so"
14034 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14035 if test "$GCC" = yes; then
14036   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14037   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14038     # if the path contains ";" then we assume it to be the separator
14039     # otherwise default to the standard path separator (i.e. ":") - it is
14040     # assumed that no part of a normal pathname contains ";" but that should
14041     # okay in the real world where ";" in dirpaths is itself problematic.
14042     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14043   else
14044     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14045   fi
14046 else
14047   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14048 fi
14049 need_lib_prefix=unknown
14050 hardcode_into_libs=no
14051
14052 # when you set need_version to no, make sure it does not cause -set_version
14053 # flags to be left without arguments
14054 need_version=unknown
14055
14056 case $host_os in
14057 aix3*)
14058   version_type=linux
14059   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14060   shlibpath_var=LIBPATH
14061
14062   # AIX 3 has no versioning support, so we append a major version to the name.
14063   soname_spec='${libname}${release}${shared_ext}$major'
14064   ;;
14065
14066 aix4* | aix5*)
14067   version_type=linux
14068   need_lib_prefix=no
14069   need_version=no
14070   hardcode_into_libs=yes
14071   if test "$host_cpu" = ia64; then
14072     # AIX 5 supports IA64
14073     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14074     shlibpath_var=LD_LIBRARY_PATH
14075   else
14076     # With GCC up to 2.95.x, collect2 would create an import file
14077     # for dependence libraries.  The import file would start with
14078     # the line `#! .'.  This would cause the generated library to
14079     # depend on `.', always an invalid library.  This was fixed in
14080     # development snapshots of GCC prior to 3.0.
14081     case $host_os in
14082       aix4 | aix4.[01] | aix4.[01].*)
14083       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14084            echo ' yes '
14085            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14086         :
14087       else
14088         can_build_shared=no
14089       fi
14090       ;;
14091     esac
14092     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14093     # soname into executable. Probably we can add versioning support to
14094     # collect2, so additional links can be useful in future.
14095     if test "$aix_use_runtimelinking" = yes; then
14096       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14097       # instead of lib<name>.a to let people know that these are not
14098       # typical AIX shared libraries.
14099       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100     else
14101       # We preserve .a as extension for shared libraries through AIX4.2
14102       # and later when we are not doing run time linking.
14103       library_names_spec='${libname}${release}.a $libname.a'
14104       soname_spec='${libname}${release}${shared_ext}$major'
14105     fi
14106     shlibpath_var=LIBPATH
14107   fi
14108   ;;
14109
14110 amigaos*)
14111   library_names_spec='$libname.ixlibrary $libname.a'
14112   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14113   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'
14114   ;;
14115
14116 beos*)
14117   library_names_spec='${libname}${shared_ext}'
14118   dynamic_linker="$host_os ld.so"
14119   shlibpath_var=LIBRARY_PATH
14120   ;;
14121
14122 bsdi[45]*)
14123   version_type=linux
14124   need_version=no
14125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126   soname_spec='${libname}${release}${shared_ext}$major'
14127   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14128   shlibpath_var=LD_LIBRARY_PATH
14129   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14130   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14131   # the default ld.so.conf also contains /usr/contrib/lib and
14132   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14133   # libtool to hard-code these into programs
14134   ;;
14135
14136 cygwin* | mingw* | pw32*)
14137   version_type=windows
14138   shrext_cmds=".dll"
14139   need_version=no
14140   need_lib_prefix=no
14141
14142   case $GCC,$host_os in
14143   yes,cygwin* | yes,mingw* | yes,pw32*)
14144     library_names_spec='$libname.dll.a'
14145     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14146     postinstall_cmds='base_file=`basename \${file}`~
14147       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14148       dldir=$destdir/`dirname \$dlpath`~
14149       test -d \$dldir || mkdir -p \$dldir~
14150       $install_prog $dir/$dlname \$dldir/$dlname'
14151     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14152       dlpath=$dir/\$dldll~
14153        $rm \$dlpath'
14154     shlibpath_overrides_runpath=yes
14155
14156     case $host_os in
14157     cygwin*)
14158       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14159       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14160       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14161       ;;
14162     mingw*)
14163       # MinGW DLLs use traditional 'lib' prefix
14164       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14165       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14166       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14167         # It is most probably a Windows format PATH printed by
14168         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14169         # path with ; separators, and with drive letters. We can handle the
14170         # drive letters (cygwin fileutils understands them), so leave them,
14171         # especially as we might pass files found there to a mingw objdump,
14172         # which wouldn't understand a cygwinified path. Ahh.
14173         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14174       else
14175         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14176       fi
14177       ;;
14178     pw32*)
14179       # pw32 DLLs use 'pw' prefix rather than 'lib'
14180       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14181       ;;
14182     esac
14183     ;;
14184
14185   *)
14186     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14187     ;;
14188   esac
14189   dynamic_linker='Win32 ld.exe'
14190   # FIXME: first we should search . and the directory the executable is in
14191   shlibpath_var=PATH
14192   ;;
14193
14194 darwin* | rhapsody*)
14195   dynamic_linker="$host_os dyld"
14196   version_type=darwin
14197   need_lib_prefix=no
14198   need_version=no
14199   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14200   soname_spec='${libname}${release}${major}$shared_ext'
14201   shlibpath_overrides_runpath=yes
14202   shlibpath_var=DYLD_LIBRARY_PATH
14203   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14204   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14205   if test "$GCC" = yes; then
14206     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"`
14207   else
14208     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14209   fi
14210   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14211   ;;
14212
14213 dgux*)
14214   version_type=linux
14215   need_lib_prefix=no
14216   need_version=no
14217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14218   soname_spec='${libname}${release}${shared_ext}$major'
14219   shlibpath_var=LD_LIBRARY_PATH
14220   ;;
14221
14222 freebsd1*)
14223   dynamic_linker=no
14224   ;;
14225
14226 kfreebsd*-gnu)
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   shlibpath_overrides_runpath=no
14234   hardcode_into_libs=yes
14235   dynamic_linker='GNU ld.so'
14236   ;;
14237
14238 freebsd* | dragonfly*)
14239   # DragonFly does not have aout.  When/if they implement a new
14240   # versioning mechanism, adjust this.
14241   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14242   version_type=freebsd-$objformat
14243   case $version_type in
14244     freebsd-elf*)
14245       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14246       need_version=no
14247       need_lib_prefix=no
14248       ;;
14249     freebsd-*)
14250       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14251       need_version=yes
14252       ;;
14253   esac
14254   shlibpath_var=LD_LIBRARY_PATH
14255   case $host_os in
14256   freebsd2*)
14257     shlibpath_overrides_runpath=yes
14258     ;;
14259   freebsd3.[01]* | freebsdelf3.[01]*)
14260     shlibpath_overrides_runpath=yes
14261     hardcode_into_libs=yes
14262     ;;
14263   *) # from 3.2 on
14264     shlibpath_overrides_runpath=no
14265     hardcode_into_libs=yes
14266     ;;
14267   esac
14268   ;;
14269
14270 gnu*)
14271   version_type=linux
14272   need_lib_prefix=no
14273   need_version=no
14274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14275   soname_spec='${libname}${release}${shared_ext}$major'
14276   shlibpath_var=LD_LIBRARY_PATH
14277   hardcode_into_libs=yes
14278   ;;
14279
14280 hpux9* | hpux10* | hpux11*)
14281   # Give a soname corresponding to the major version so that dld.sl refuses to
14282   # link against other versions.
14283   version_type=sunos
14284   need_lib_prefix=no
14285   need_version=no
14286   case "$host_cpu" in
14287   ia64*)
14288     shrext_cmds='.so'
14289     hardcode_into_libs=yes
14290     dynamic_linker="$host_os dld.so"
14291     shlibpath_var=LD_LIBRARY_PATH
14292     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14294     soname_spec='${libname}${release}${shared_ext}$major'
14295     if test "X$HPUX_IA64_MODE" = X32; then
14296       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14297     else
14298       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14299     fi
14300     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14301     ;;
14302    hppa*64*)
14303      shrext_cmds='.sl'
14304      hardcode_into_libs=yes
14305      dynamic_linker="$host_os dld.sl"
14306      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14307      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14308      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14309      soname_spec='${libname}${release}${shared_ext}$major'
14310      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14311      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14312      ;;
14313    *)
14314     shrext_cmds='.sl'
14315     dynamic_linker="$host_os dld.sl"
14316     shlibpath_var=SHLIB_PATH
14317     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14319     soname_spec='${libname}${release}${shared_ext}$major'
14320     ;;
14321   esac
14322   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14323   postinstall_cmds='chmod 555 $lib'
14324   ;;
14325
14326 irix5* | irix6* | nonstopux*)
14327   case $host_os in
14328     nonstopux*) version_type=nonstopux ;;
14329     *)
14330         if test "$lt_cv_prog_gnu_ld" = yes; then
14331                 version_type=linux
14332         else
14333                 version_type=irix
14334         fi ;;
14335   esac
14336   need_lib_prefix=no
14337   need_version=no
14338   soname_spec='${libname}${release}${shared_ext}$major'
14339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14340   case $host_os in
14341   irix5* | nonstopux*)
14342     libsuff= shlibsuff=
14343     ;;
14344   *)
14345     case $LD in # libtool.m4 will add one of these switches to LD
14346     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14347       libsuff= shlibsuff= libmagic=32-bit;;
14348     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14349       libsuff=32 shlibsuff=N32 libmagic=N32;;
14350     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14351       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14352     *) libsuff= shlibsuff= libmagic=never-match;;
14353     esac
14354     ;;
14355   esac
14356   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14357   shlibpath_overrides_runpath=no
14358   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14359   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14360   hardcode_into_libs=yes
14361   ;;
14362
14363 # No shared lib support for Linux oldld, aout, or coff.
14364 linux*oldld* | linux*aout* | linux*coff*)
14365   dynamic_linker=no
14366   ;;
14367
14368 # This must be Linux ELF.
14369 linux*)
14370   version_type=linux
14371   need_lib_prefix=no
14372   need_version=no
14373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14374   soname_spec='${libname}${release}${shared_ext}$major'
14375   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14376   shlibpath_var=LD_LIBRARY_PATH
14377   shlibpath_overrides_runpath=no
14378   # This implies no fast_install, which is unacceptable.
14379   # Some rework will be needed to allow for fast_install
14380   # before this can be enabled.
14381   hardcode_into_libs=yes
14382
14383   # find out which ABI we are using
14384   libsuff=
14385   case "$host_cpu" in
14386   x86_64*|s390x*|powerpc64*)
14387     echo '#line 14387 "configure"' > conftest.$ac_ext
14388     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389   (eval $ac_compile) 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); }; then
14393       case `/usr/bin/file conftest.$ac_objext` in
14394       *64-bit*)
14395         libsuff=64
14396         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14397         ;;
14398       esac
14399     fi
14400     rm -rf conftest*
14401     ;;
14402   esac
14403
14404   # Append ld.so.conf contents to the search path
14405   if test -f /etc/ld.so.conf; then
14406     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14407     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14408   fi
14409
14410   # We used to test for /lib/ld.so.1 and disable shared libraries on
14411   # powerpc, because MkLinux only supported shared libraries with the
14412   # GNU dynamic linker.  Since this was broken with cross compilers,
14413   # most powerpc-linux boxes support dynamic linking these days and
14414   # people can always --disable-shared, the test was removed, and we
14415   # assume the GNU/Linux dynamic linker is in use.
14416   dynamic_linker='GNU/Linux ld.so'
14417   ;;
14418
14419 knetbsd*-gnu)
14420   version_type=linux
14421   need_lib_prefix=no
14422   need_version=no
14423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14424   soname_spec='${libname}${release}${shared_ext}$major'
14425   shlibpath_var=LD_LIBRARY_PATH
14426   shlibpath_overrides_runpath=no
14427   hardcode_into_libs=yes
14428   dynamic_linker='GNU ld.so'
14429   ;;
14430
14431 netbsd*)
14432   version_type=sunos
14433   need_lib_prefix=no
14434   need_version=no
14435   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14437     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14438     dynamic_linker='NetBSD (a.out) ld.so'
14439   else
14440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14441     soname_spec='${libname}${release}${shared_ext}$major'
14442     dynamic_linker='NetBSD ld.elf_so'
14443   fi
14444   shlibpath_var=LD_LIBRARY_PATH
14445   shlibpath_overrides_runpath=yes
14446   hardcode_into_libs=yes
14447   ;;
14448
14449 newsos6)
14450   version_type=linux
14451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14452   shlibpath_var=LD_LIBRARY_PATH
14453   shlibpath_overrides_runpath=yes
14454   ;;
14455
14456 nto-qnx*)
14457   version_type=linux
14458   need_lib_prefix=no
14459   need_version=no
14460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461   soname_spec='${libname}${release}${shared_ext}$major'
14462   shlibpath_var=LD_LIBRARY_PATH
14463   shlibpath_overrides_runpath=yes
14464   ;;
14465
14466 openbsd*)
14467   version_type=sunos
14468   need_lib_prefix=no
14469   need_version=no
14470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14471   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14472   shlibpath_var=LD_LIBRARY_PATH
14473   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14474     case $host_os in
14475       openbsd2.[89] | openbsd2.[89].*)
14476         shlibpath_overrides_runpath=no
14477         ;;
14478       *)
14479         shlibpath_overrides_runpath=yes
14480         ;;
14481       esac
14482   else
14483     shlibpath_overrides_runpath=yes
14484   fi
14485   ;;
14486
14487 os2*)
14488   libname_spec='$name'
14489   shrext_cmds=".dll"
14490   need_lib_prefix=no
14491   library_names_spec='$libname${shared_ext} $libname.a'
14492   dynamic_linker='OS/2 ld.exe'
14493   shlibpath_var=LIBPATH
14494   ;;
14495
14496 osf3* | osf4* | osf5*)
14497   version_type=osf
14498   need_lib_prefix=no
14499   need_version=no
14500   soname_spec='${libname}${release}${shared_ext}$major'
14501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502   shlibpath_var=LD_LIBRARY_PATH
14503   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14504   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14505   ;;
14506
14507 sco3.2v5*)
14508   version_type=osf
14509   soname_spec='${libname}${release}${shared_ext}$major'
14510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511   shlibpath_var=LD_LIBRARY_PATH
14512   ;;
14513
14514 solaris*)
14515   version_type=linux
14516   need_lib_prefix=no
14517   need_version=no
14518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519   soname_spec='${libname}${release}${shared_ext}$major'
14520   shlibpath_var=LD_LIBRARY_PATH
14521   shlibpath_overrides_runpath=yes
14522   hardcode_into_libs=yes
14523   # ldd complains unless libraries are executable
14524   postinstall_cmds='chmod +x $lib'
14525   ;;
14526
14527 sunos4*)
14528   version_type=sunos
14529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14530   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14531   shlibpath_var=LD_LIBRARY_PATH
14532   shlibpath_overrides_runpath=yes
14533   if test "$with_gnu_ld" = yes; then
14534     need_lib_prefix=no
14535   fi
14536   need_version=yes
14537   ;;
14538
14539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14540   version_type=linux
14541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542   soname_spec='${libname}${release}${shared_ext}$major'
14543   shlibpath_var=LD_LIBRARY_PATH
14544   case $host_vendor in
14545     sni)
14546       shlibpath_overrides_runpath=no
14547       need_lib_prefix=no
14548       export_dynamic_flag_spec='${wl}-Blargedynsym'
14549       runpath_var=LD_RUN_PATH
14550       ;;
14551     siemens)
14552       need_lib_prefix=no
14553       ;;
14554     motorola)
14555       need_lib_prefix=no
14556       need_version=no
14557       shlibpath_overrides_runpath=no
14558       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14559       ;;
14560   esac
14561   ;;
14562
14563 sysv4*MP*)
14564   if test -d /usr/nec ;then
14565     version_type=linux
14566     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14567     soname_spec='$libname${shared_ext}.$major'
14568     shlibpath_var=LD_LIBRARY_PATH
14569   fi
14570   ;;
14571
14572 uts4*)
14573   version_type=linux
14574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14575   soname_spec='${libname}${release}${shared_ext}$major'
14576   shlibpath_var=LD_LIBRARY_PATH
14577   ;;
14578
14579 *)
14580   dynamic_linker=no
14581   ;;
14582 esac
14583 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14584 echo "${ECHO_T}$dynamic_linker" >&6
14585 test "$dynamic_linker" = no && can_build_shared=no
14586
14587 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14588 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14589 hardcode_action=
14590 if test -n "$hardcode_libdir_flag_spec" || \
14591    test -n "$runpath_var" || \
14592    test "X$hardcode_automatic" = "Xyes" ; then
14593
14594   # We can hardcode non-existant directories.
14595   if test "$hardcode_direct" != no &&
14596      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14597      # have to relink, otherwise we might link with an installed library
14598      # when we should be linking with a yet-to-be-installed one
14599      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14600      test "$hardcode_minus_L" != no; then
14601     # Linking always hardcodes the temporary library directory.
14602     hardcode_action=relink
14603   else
14604     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14605     hardcode_action=immediate
14606   fi
14607 else
14608   # We cannot hardcode anything, or else we can only hardcode existing
14609   # directories.
14610   hardcode_action=unsupported
14611 fi
14612 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14613 echo "${ECHO_T}$hardcode_action" >&6
14614
14615 if test "$hardcode_action" = relink; then
14616   # Fast installation is not supported
14617   enable_fast_install=no
14618 elif test "$shlibpath_overrides_runpath" = yes ||
14619      test "$enable_shared" = no; then
14620   # Fast installation is not necessary
14621   enable_fast_install=needless
14622 fi
14623
14624 striplib=
14625 old_striplib=
14626 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14627 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14628 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14629   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14630   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14631   echo "$as_me:$LINENO: result: yes" >&5
14632 echo "${ECHO_T}yes" >&6
14633 else
14634 # FIXME - insert some real tests, host_os isn't really good enough
14635   case $host_os in
14636    darwin*)
14637        if test -n "$STRIP" ; then
14638          striplib="$STRIP -x"
14639          echo "$as_me:$LINENO: result: yes" >&5
14640 echo "${ECHO_T}yes" >&6
14641        else
14642   echo "$as_me:$LINENO: result: no" >&5
14643 echo "${ECHO_T}no" >&6
14644 fi
14645        ;;
14646    *)
14647   echo "$as_me:$LINENO: result: no" >&5
14648 echo "${ECHO_T}no" >&6
14649     ;;
14650   esac
14651 fi
14652
14653 if test "x$enable_dlopen" != xyes; then
14654   enable_dlopen=unknown
14655   enable_dlopen_self=unknown
14656   enable_dlopen_self_static=unknown
14657 else
14658   lt_cv_dlopen=no
14659   lt_cv_dlopen_libs=
14660
14661   case $host_os in
14662   beos*)
14663     lt_cv_dlopen="load_add_on"
14664     lt_cv_dlopen_libs=
14665     lt_cv_dlopen_self=yes
14666     ;;
14667
14668   mingw* | pw32*)
14669     lt_cv_dlopen="LoadLibrary"
14670     lt_cv_dlopen_libs=
14671    ;;
14672
14673   cygwin*)
14674     lt_cv_dlopen="dlopen"
14675     lt_cv_dlopen_libs=
14676    ;;
14677
14678   darwin*)
14679   # if libdl is installed we need to link against it
14680     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14681 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14683   echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685   ac_check_lib_save_LIBS=$LIBS
14686 LIBS="-ldl  $LIBS"
14687 cat >conftest.$ac_ext <<_ACEOF
14688 /* confdefs.h.  */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h.  */
14693
14694 /* Override any gcc2 internal prototype to avoid an error.  */
14695 #ifdef __cplusplus
14696 extern "C"
14697 #endif
14698 /* We use char because int might match the return type of a gcc2
14699    builtin and then its argument prototype would still apply.  */
14700 char dlopen ();
14701 int
14702 main ()
14703 {
14704 dlopen ();
14705   ;
14706   return 0;
14707 }
14708 _ACEOF
14709 rm -f conftest.$ac_objext conftest$ac_exeext
14710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14711   (eval $ac_link) 2>conftest.er1
14712   ac_status=$?
14713   grep -v '^ *+' conftest.er1 >conftest.err
14714   rm -f conftest.er1
14715   cat conftest.err >&5
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); } &&
14718          { ac_try='test -z "$ac_c_werror_flag"
14719                          || test ! -s conftest.err'
14720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721   (eval $ac_try) 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); }; } &&
14725          { ac_try='test -s conftest$ac_exeext'
14726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727   (eval $ac_try) 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; }; then
14731   ac_cv_lib_dl_dlopen=yes
14732 else
14733   echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736 ac_cv_lib_dl_dlopen=no
14737 fi
14738 rm -f conftest.err conftest.$ac_objext \
14739       conftest$ac_exeext conftest.$ac_ext
14740 LIBS=$ac_check_lib_save_LIBS
14741 fi
14742 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14743 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14744 if test $ac_cv_lib_dl_dlopen = yes; then
14745   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14746 else
14747
14748     lt_cv_dlopen="dyld"
14749     lt_cv_dlopen_libs=
14750     lt_cv_dlopen_self=yes
14751
14752 fi
14753
14754    ;;
14755
14756   *)
14757     echo "$as_me:$LINENO: checking for shl_load" >&5
14758 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14759 if test "${ac_cv_func_shl_load+set}" = set; then
14760   echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762   cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h.  */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h.  */
14768 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14770 #define shl_load innocuous_shl_load
14771
14772 /* System header to define __stub macros and hopefully few prototypes,
14773     which can conflict with char shl_load (); below.
14774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14775     <limits.h> exists even on freestanding compilers.  */
14776
14777 #ifdef __STDC__
14778 # include <limits.h>
14779 #else
14780 # include <assert.h>
14781 #endif
14782
14783 #undef shl_load
14784
14785 /* Override any gcc2 internal prototype to avoid an error.  */
14786 #ifdef __cplusplus
14787 extern "C"
14788 {
14789 #endif
14790 /* We use char because int might match the return type of a gcc2
14791    builtin and then its argument prototype would still apply.  */
14792 char shl_load ();
14793 /* The GNU C library defines this for functions which it implements
14794     to always fail with ENOSYS.  Some functions are actually named
14795     something starting with __ and the normal name is an alias.  */
14796 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14797 choke me
14798 #else
14799 char (*f) () = shl_load;
14800 #endif
14801 #ifdef __cplusplus
14802 }
14803 #endif
14804
14805 int
14806 main ()
14807 {
14808 return f != shl_load;
14809   ;
14810   return 0;
14811 }
14812 _ACEOF
14813 rm -f conftest.$ac_objext conftest$ac_exeext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14815   (eval $ac_link) 2>conftest.er1
14816   ac_status=$?
14817   grep -v '^ *+' conftest.er1 >conftest.err
14818   rm -f conftest.er1
14819   cat conftest.err >&5
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); } &&
14822          { ac_try='test -z "$ac_c_werror_flag"
14823                          || test ! -s conftest.err'
14824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825   (eval $ac_try) 2>&5
14826   ac_status=$?
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); }; } &&
14829          { ac_try='test -s conftest$ac_exeext'
14830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831   (eval $ac_try) 2>&5
14832   ac_status=$?
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); }; }; then
14835   ac_cv_func_shl_load=yes
14836 else
14837   echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14839
14840 ac_cv_func_shl_load=no
14841 fi
14842 rm -f conftest.err conftest.$ac_objext \
14843       conftest$ac_exeext conftest.$ac_ext
14844 fi
14845 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14846 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14847 if test $ac_cv_func_shl_load = yes; then
14848   lt_cv_dlopen="shl_load"
14849 else
14850   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14853   echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855   ac_check_lib_save_LIBS=$LIBS
14856 LIBS="-ldld  $LIBS"
14857 cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863
14864 /* Override any gcc2 internal prototype to avoid an error.  */
14865 #ifdef __cplusplus
14866 extern "C"
14867 #endif
14868 /* We use char because int might match the return type of a gcc2
14869    builtin and then its argument prototype would still apply.  */
14870 char shl_load ();
14871 int
14872 main ()
14873 {
14874 shl_load ();
14875   ;
14876   return 0;
14877 }
14878 _ACEOF
14879 rm -f conftest.$ac_objext conftest$ac_exeext
14880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881   (eval $ac_link) 2>conftest.er1
14882   ac_status=$?
14883   grep -v '^ *+' conftest.er1 >conftest.err
14884   rm -f conftest.er1
14885   cat conftest.err >&5
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); } &&
14888          { ac_try='test -z "$ac_c_werror_flag"
14889                          || test ! -s conftest.err'
14890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891   (eval $ac_try) 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); }; } &&
14895          { ac_try='test -s conftest$ac_exeext'
14896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897   (eval $ac_try) 2>&5
14898   ac_status=$?
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); }; }; then
14901   ac_cv_lib_dld_shl_load=yes
14902 else
14903   echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14905
14906 ac_cv_lib_dld_shl_load=no
14907 fi
14908 rm -f conftest.err conftest.$ac_objext \
14909       conftest$ac_exeext conftest.$ac_ext
14910 LIBS=$ac_check_lib_save_LIBS
14911 fi
14912 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14913 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14914 if test $ac_cv_lib_dld_shl_load = yes; then
14915   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14916 else
14917   echo "$as_me:$LINENO: checking for dlopen" >&5
14918 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14919 if test "${ac_cv_func_dlopen+set}" = set; then
14920   echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922   cat >conftest.$ac_ext <<_ACEOF
14923 /* confdefs.h.  */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h.  */
14928 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14930 #define dlopen innocuous_dlopen
14931
14932 /* System header to define __stub macros and hopefully few prototypes,
14933     which can conflict with char dlopen (); below.
14934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14935     <limits.h> exists even on freestanding compilers.  */
14936
14937 #ifdef __STDC__
14938 # include <limits.h>
14939 #else
14940 # include <assert.h>
14941 #endif
14942
14943 #undef dlopen
14944
14945 /* Override any gcc2 internal prototype to avoid an error.  */
14946 #ifdef __cplusplus
14947 extern "C"
14948 {
14949 #endif
14950 /* We use char because int might match the return type of a gcc2
14951    builtin and then its argument prototype would still apply.  */
14952 char dlopen ();
14953 /* The GNU C library defines this for functions which it implements
14954     to always fail with ENOSYS.  Some functions are actually named
14955     something starting with __ and the normal name is an alias.  */
14956 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14957 choke me
14958 #else
14959 char (*f) () = dlopen;
14960 #endif
14961 #ifdef __cplusplus
14962 }
14963 #endif
14964
14965 int
14966 main ()
14967 {
14968 return f != dlopen;
14969   ;
14970   return 0;
14971 }
14972 _ACEOF
14973 rm -f conftest.$ac_objext conftest$ac_exeext
14974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975   (eval $ac_link) 2>conftest.er1
14976   ac_status=$?
14977   grep -v '^ *+' conftest.er1 >conftest.err
14978   rm -f conftest.er1
14979   cat conftest.err >&5
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } &&
14982          { ac_try='test -z "$ac_c_werror_flag"
14983                          || test ! -s conftest.err'
14984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985   (eval $ac_try) 2>&5
14986   ac_status=$?
14987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988   (exit $ac_status); }; } &&
14989          { ac_try='test -s conftest$ac_exeext'
14990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991   (eval $ac_try) 2>&5
14992   ac_status=$?
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); }; }; then
14995   ac_cv_func_dlopen=yes
14996 else
14997   echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
14999
15000 ac_cv_func_dlopen=no
15001 fi
15002 rm -f conftest.err conftest.$ac_objext \
15003       conftest$ac_exeext conftest.$ac_ext
15004 fi
15005 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15006 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15007 if test $ac_cv_func_dlopen = yes; then
15008   lt_cv_dlopen="dlopen"
15009 else
15010   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15011 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15013   echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015   ac_check_lib_save_LIBS=$LIBS
15016 LIBS="-ldl  $LIBS"
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h.  */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h.  */
15023
15024 /* Override any gcc2 internal prototype to avoid an error.  */
15025 #ifdef __cplusplus
15026 extern "C"
15027 #endif
15028 /* We use char because int might match the return type of a gcc2
15029    builtin and then its argument prototype would still apply.  */
15030 char dlopen ();
15031 int
15032 main ()
15033 {
15034 dlopen ();
15035   ;
15036   return 0;
15037 }
15038 _ACEOF
15039 rm -f conftest.$ac_objext conftest$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041   (eval $ac_link) 2>conftest.er1
15042   ac_status=$?
15043   grep -v '^ *+' conftest.er1 >conftest.err
15044   rm -f conftest.er1
15045   cat conftest.err >&5
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } &&
15048          { ac_try='test -z "$ac_c_werror_flag"
15049                          || test ! -s conftest.err'
15050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051   (eval $ac_try) 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; } &&
15055          { ac_try='test -s conftest$ac_exeext'
15056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057   (eval $ac_try) 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); }; }; then
15061   ac_cv_lib_dl_dlopen=yes
15062 else
15063   echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 ac_cv_lib_dl_dlopen=no
15067 fi
15068 rm -f conftest.err conftest.$ac_objext \
15069       conftest$ac_exeext conftest.$ac_ext
15070 LIBS=$ac_check_lib_save_LIBS
15071 fi
15072 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15073 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15074 if test $ac_cv_lib_dl_dlopen = yes; then
15075   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15076 else
15077   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15078 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15079 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15080   echo $ECHO_N "(cached) $ECHO_C" >&6
15081 else
15082   ac_check_lib_save_LIBS=$LIBS
15083 LIBS="-lsvld  $LIBS"
15084 cat >conftest.$ac_ext <<_ACEOF
15085 /* confdefs.h.  */
15086 _ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h.  */
15090
15091 /* Override any gcc2 internal prototype to avoid an error.  */
15092 #ifdef __cplusplus
15093 extern "C"
15094 #endif
15095 /* We use char because int might match the return type of a gcc2
15096    builtin and then its argument prototype would still apply.  */
15097 char dlopen ();
15098 int
15099 main ()
15100 {
15101 dlopen ();
15102   ;
15103   return 0;
15104 }
15105 _ACEOF
15106 rm -f conftest.$ac_objext conftest$ac_exeext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15108   (eval $ac_link) 2>conftest.er1
15109   ac_status=$?
15110   grep -v '^ *+' conftest.er1 >conftest.err
15111   rm -f conftest.er1
15112   cat conftest.err >&5
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); } &&
15115          { ac_try='test -z "$ac_c_werror_flag"
15116                          || test ! -s conftest.err'
15117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118   (eval $ac_try) 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); }; } &&
15122          { ac_try='test -s conftest$ac_exeext'
15123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124   (eval $ac_try) 2>&5
15125   ac_status=$?
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); }; }; then
15128   ac_cv_lib_svld_dlopen=yes
15129 else
15130   echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133 ac_cv_lib_svld_dlopen=no
15134 fi
15135 rm -f conftest.err conftest.$ac_objext \
15136       conftest$ac_exeext conftest.$ac_ext
15137 LIBS=$ac_check_lib_save_LIBS
15138 fi
15139 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15140 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15141 if test $ac_cv_lib_svld_dlopen = yes; then
15142   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15143 else
15144   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15145 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15146 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15147   echo $ECHO_N "(cached) $ECHO_C" >&6
15148 else
15149   ac_check_lib_save_LIBS=$LIBS
15150 LIBS="-ldld  $LIBS"
15151 cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h.  */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h.  */
15157
15158 /* Override any gcc2 internal prototype to avoid an error.  */
15159 #ifdef __cplusplus
15160 extern "C"
15161 #endif
15162 /* We use char because int might match the return type of a gcc2
15163    builtin and then its argument prototype would still apply.  */
15164 char dld_link ();
15165 int
15166 main ()
15167 {
15168 dld_link ();
15169   ;
15170   return 0;
15171 }
15172 _ACEOF
15173 rm -f conftest.$ac_objext conftest$ac_exeext
15174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15175   (eval $ac_link) 2>conftest.er1
15176   ac_status=$?
15177   grep -v '^ *+' conftest.er1 >conftest.err
15178   rm -f conftest.er1
15179   cat conftest.err >&5
15180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181   (exit $ac_status); } &&
15182          { ac_try='test -z "$ac_c_werror_flag"
15183                          || test ! -s conftest.err'
15184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185   (eval $ac_try) 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); }; } &&
15189          { ac_try='test -s conftest$ac_exeext'
15190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191   (eval $ac_try) 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); }; }; then
15195   ac_cv_lib_dld_dld_link=yes
15196 else
15197   echo "$as_me: failed program was:" >&5
15198 sed 's/^/| /' conftest.$ac_ext >&5
15199
15200 ac_cv_lib_dld_dld_link=no
15201 fi
15202 rm -f conftest.err conftest.$ac_objext \
15203       conftest$ac_exeext conftest.$ac_ext
15204 LIBS=$ac_check_lib_save_LIBS
15205 fi
15206 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15208 if test $ac_cv_lib_dld_dld_link = yes; then
15209   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15210 fi
15211
15212
15213 fi
15214
15215
15216 fi
15217
15218
15219 fi
15220
15221
15222 fi
15223
15224
15225 fi
15226
15227     ;;
15228   esac
15229
15230   if test "x$lt_cv_dlopen" != xno; then
15231     enable_dlopen=yes
15232   else
15233     enable_dlopen=no
15234   fi
15235
15236   case $lt_cv_dlopen in
15237   dlopen)
15238     save_CPPFLAGS="$CPPFLAGS"
15239     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15240
15241     save_LDFLAGS="$LDFLAGS"
15242     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15243
15244     save_LIBS="$LIBS"
15245     LIBS="$lt_cv_dlopen_libs $LIBS"
15246
15247     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15248 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15249 if test "${lt_cv_dlopen_self+set}" = set; then
15250   echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252           if test "$cross_compiling" = yes; then :
15253   lt_cv_dlopen_self=cross
15254 else
15255   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15256   lt_status=$lt_dlunknown
15257   cat > conftest.$ac_ext <<EOF
15258 #line 15258 "configure"
15259 #include "confdefs.h"
15260
15261 #if HAVE_DLFCN_H
15262 #include <dlfcn.h>
15263 #endif
15264
15265 #include <stdio.h>
15266
15267 #ifdef RTLD_GLOBAL
15268 #  define LT_DLGLOBAL           RTLD_GLOBAL
15269 #else
15270 #  ifdef DL_GLOBAL
15271 #    define LT_DLGLOBAL         DL_GLOBAL
15272 #  else
15273 #    define LT_DLGLOBAL         0
15274 #  endif
15275 #endif
15276
15277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15278    find out it does not work in some platform. */
15279 #ifndef LT_DLLAZY_OR_NOW
15280 #  ifdef RTLD_LAZY
15281 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15282 #  else
15283 #    ifdef DL_LAZY
15284 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15285 #    else
15286 #      ifdef RTLD_NOW
15287 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15288 #      else
15289 #        ifdef DL_NOW
15290 #          define LT_DLLAZY_OR_NOW      DL_NOW
15291 #        else
15292 #          define LT_DLLAZY_OR_NOW      0
15293 #        endif
15294 #      endif
15295 #    endif
15296 #  endif
15297 #endif
15298
15299 #ifdef __cplusplus
15300 extern "C" void exit (int);
15301 #endif
15302
15303 void fnord() { int i=42;}
15304 int main ()
15305 {
15306   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15307   int status = $lt_dlunknown;
15308
15309   if (self)
15310     {
15311       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15312       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15313       /* dlclose (self); */
15314     }
15315
15316     exit (status);
15317 }
15318 EOF
15319   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15320   (eval $ac_link) 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15324     (./conftest; exit; ) 2>/dev/null
15325     lt_status=$?
15326     case x$lt_status in
15327       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15328       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15329       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15330     esac
15331   else :
15332     # compilation failed
15333     lt_cv_dlopen_self=no
15334   fi
15335 fi
15336 rm -fr conftest*
15337
15338
15339 fi
15340 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15341 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15342
15343     if test "x$lt_cv_dlopen_self" = xyes; then
15344       LDFLAGS="$LDFLAGS $link_static_flag"
15345       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15346 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15347 if test "${lt_cv_dlopen_self_static+set}" = set; then
15348   echo $ECHO_N "(cached) $ECHO_C" >&6
15349 else
15350           if test "$cross_compiling" = yes; then :
15351   lt_cv_dlopen_self_static=cross
15352 else
15353   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15354   lt_status=$lt_dlunknown
15355   cat > conftest.$ac_ext <<EOF
15356 #line 15356 "configure"
15357 #include "confdefs.h"
15358
15359 #if HAVE_DLFCN_H
15360 #include <dlfcn.h>
15361 #endif
15362
15363 #include <stdio.h>
15364
15365 #ifdef RTLD_GLOBAL
15366 #  define LT_DLGLOBAL           RTLD_GLOBAL
15367 #else
15368 #  ifdef DL_GLOBAL
15369 #    define LT_DLGLOBAL         DL_GLOBAL
15370 #  else
15371 #    define LT_DLGLOBAL         0
15372 #  endif
15373 #endif
15374
15375 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15376    find out it does not work in some platform. */
15377 #ifndef LT_DLLAZY_OR_NOW
15378 #  ifdef RTLD_LAZY
15379 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15380 #  else
15381 #    ifdef DL_LAZY
15382 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15383 #    else
15384 #      ifdef RTLD_NOW
15385 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15386 #      else
15387 #        ifdef DL_NOW
15388 #          define LT_DLLAZY_OR_NOW      DL_NOW
15389 #        else
15390 #          define LT_DLLAZY_OR_NOW      0
15391 #        endif
15392 #      endif
15393 #    endif
15394 #  endif
15395 #endif
15396
15397 #ifdef __cplusplus
15398 extern "C" void exit (int);
15399 #endif
15400
15401 void fnord() { int i=42;}
15402 int main ()
15403 {
15404   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15405   int status = $lt_dlunknown;
15406
15407   if (self)
15408     {
15409       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15410       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15411       /* dlclose (self); */
15412     }
15413
15414     exit (status);
15415 }
15416 EOF
15417   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15418   (eval $ac_link) 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15422     (./conftest; exit; ) 2>/dev/null
15423     lt_status=$?
15424     case x$lt_status in
15425       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15426       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15427       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15428     esac
15429   else :
15430     # compilation failed
15431     lt_cv_dlopen_self_static=no
15432   fi
15433 fi
15434 rm -fr conftest*
15435
15436
15437 fi
15438 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15439 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15440     fi
15441
15442     CPPFLAGS="$save_CPPFLAGS"
15443     LDFLAGS="$save_LDFLAGS"
15444     LIBS="$save_LIBS"
15445     ;;
15446   esac
15447
15448   case $lt_cv_dlopen_self in
15449   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15450   *) enable_dlopen_self=unknown ;;
15451   esac
15452
15453   case $lt_cv_dlopen_self_static in
15454   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15455   *) enable_dlopen_self_static=unknown ;;
15456   esac
15457 fi
15458
15459
15460 # Report which librarie types wil actually be built
15461 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15462 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15463 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15464 echo "${ECHO_T}$can_build_shared" >&6
15465
15466 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15467 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15468 test "$can_build_shared" = "no" && enable_shared=no
15469
15470 # On AIX, shared libraries and static libraries use the same namespace, and
15471 # are all built from PIC.
15472 case "$host_os" in
15473 aix3*)
15474   test "$enable_shared" = yes && enable_static=no
15475   if test -n "$RANLIB"; then
15476     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15477     postinstall_cmds='$RANLIB $lib'
15478   fi
15479   ;;
15480
15481 aix4* | aix5*)
15482   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15483     test "$enable_shared" = yes && enable_static=no
15484   fi
15485     ;;
15486 esac
15487 echo "$as_me:$LINENO: result: $enable_shared" >&5
15488 echo "${ECHO_T}$enable_shared" >&6
15489
15490 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15491 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15492 # Make sure either enable_shared or enable_static is yes.
15493 test "$enable_shared" = yes || enable_static=yes
15494 echo "$as_me:$LINENO: result: $enable_static" >&5
15495 echo "${ECHO_T}$enable_static" >&6
15496
15497 # The else clause should only fire when bootstrapping the
15498 # libtool distribution, otherwise you forgot to ship ltmain.sh
15499 # with your package, and you will get complaints that there are
15500 # no rules to generate ltmain.sh.
15501 if test -f "$ltmain"; then
15502   # See if we are running on zsh, and set the options which allow our commands through
15503   # without removal of \ escapes.
15504   if test -n "${ZSH_VERSION+set}" ; then
15505     setopt NO_GLOB_SUBST
15506   fi
15507   # Now quote all the things that may contain metacharacters while being
15508   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15509   # variables and quote the copies for generation of the libtool script.
15510   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15511     SED SHELL STRIP \
15512     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15513     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15514     deplibs_check_method reload_flag reload_cmds need_locks \
15515     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15516     lt_cv_sys_global_symbol_to_c_name_address \
15517     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15518     old_postinstall_cmds old_postuninstall_cmds \
15519     compiler \
15520     CC \
15521     LD \
15522     lt_prog_compiler_wl \
15523     lt_prog_compiler_pic \
15524     lt_prog_compiler_static \
15525     lt_prog_compiler_no_builtin_flag \
15526     export_dynamic_flag_spec \
15527     thread_safe_flag_spec \
15528     whole_archive_flag_spec \
15529     enable_shared_with_static_runtimes \
15530     old_archive_cmds \
15531     old_archive_from_new_cmds \
15532     predep_objects \
15533     postdep_objects \
15534     predeps \
15535     postdeps \
15536     compiler_lib_search_path \
15537     archive_cmds \
15538     archive_expsym_cmds \
15539     postinstall_cmds \
15540     postuninstall_cmds \
15541     old_archive_from_expsyms_cmds \
15542     allow_undefined_flag \
15543     no_undefined_flag \
15544     export_symbols_cmds \
15545     hardcode_libdir_flag_spec \
15546     hardcode_libdir_flag_spec_ld \
15547     hardcode_libdir_separator \
15548     hardcode_automatic \
15549     module_cmds \
15550     module_expsym_cmds \
15551     lt_cv_prog_compiler_c_o \
15552     exclude_expsyms \
15553     include_expsyms; do
15554
15555     case $var in
15556     old_archive_cmds | \
15557     old_archive_from_new_cmds | \
15558     archive_cmds | \
15559     archive_expsym_cmds | \
15560     module_cmds | \
15561     module_expsym_cmds | \
15562     old_archive_from_expsyms_cmds | \
15563     export_symbols_cmds | \
15564     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15565     postinstall_cmds | postuninstall_cmds | \
15566     old_postinstall_cmds | old_postuninstall_cmds | \
15567     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15568       # Double-quote double-evaled strings.
15569       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15570       ;;
15571     *)
15572       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15573       ;;
15574     esac
15575   done
15576
15577   case $lt_echo in
15578   *'\$0 --fallback-echo"')
15579     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15580     ;;
15581   esac
15582
15583 cfgfile="${ofile}T"
15584   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15585   $rm -f "$cfgfile"
15586   { echo "$as_me:$LINENO: creating $ofile" >&5
15587 echo "$as_me: creating $ofile" >&6;}
15588
15589   cat <<__EOF__ >> "$cfgfile"
15590 #! $SHELL
15591
15592 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15593 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15594 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15595 #
15596 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15597 # Free Software Foundation, Inc.
15598 #
15599 # This file is part of GNU Libtool:
15600 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15601 #
15602 # This program is free software; you can redistribute it and/or modify
15603 # it under the terms of the GNU General Public License as published by
15604 # the Free Software Foundation; either version 2 of the License, or
15605 # (at your option) any later version.
15606 #
15607 # This program is distributed in the hope that it will be useful, but
15608 # WITHOUT ANY WARRANTY; without even the implied warranty of
15609 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15610 # General Public License for more details.
15611 #
15612 # You should have received a copy of the GNU General Public License
15613 # along with this program; if not, write to the Free Software
15614 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15615 #
15616 # As a special exception to the GNU General Public License, if you
15617 # distribute this file as part of a program that contains a
15618 # configuration script generated by Autoconf, you may include it under
15619 # the same distribution terms that you use for the rest of that program.
15620
15621 # A sed program that does not truncate output.
15622 SED=$lt_SED
15623
15624 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15625 Xsed="$SED -e 1s/^X//"
15626
15627 # The HP-UX ksh and POSIX shell print the target directory to stdout
15628 # if CDPATH is set.
15629 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15630
15631 # The names of the tagged configurations supported by this script.
15632 available_tags=
15633
15634 # ### BEGIN LIBTOOL CONFIG
15635
15636 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15637
15638 # Shell to use when invoking shell scripts.
15639 SHELL=$lt_SHELL
15640
15641 # Whether or not to build shared libraries.
15642 build_libtool_libs=$enable_shared
15643
15644 # Whether or not to build static libraries.
15645 build_old_libs=$enable_static
15646
15647 # Whether or not to add -lc for building shared libraries.
15648 build_libtool_need_lc=$archive_cmds_need_lc
15649
15650 # Whether or not to disallow shared libs when runtime libs are static
15651 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15652
15653 # Whether or not to optimize for fast installation.
15654 fast_install=$enable_fast_install
15655
15656 # The host system.
15657 host_alias=$host_alias
15658 host=$host
15659 host_os=$host_os
15660
15661 # The build system.
15662 build_alias=$build_alias
15663 build=$build
15664 build_os=$build_os
15665
15666 # An echo program that does not interpret backslashes.
15667 echo=$lt_echo
15668
15669 # The archiver.
15670 AR=$lt_AR
15671 AR_FLAGS=$lt_AR_FLAGS
15672
15673 # A C compiler.
15674 LTCC=$lt_LTCC
15675
15676 # A language-specific compiler.
15677 CC=$lt_compiler
15678
15679 # Is the compiler the GNU C compiler?
15680 with_gcc=$GCC
15681
15682 # An ERE matcher.
15683 EGREP=$lt_EGREP
15684
15685 # The linker used to build libraries.
15686 LD=$lt_LD
15687
15688 # Whether we need hard or soft links.
15689 LN_S=$lt_LN_S
15690
15691 # A BSD-compatible nm program.
15692 NM=$lt_NM
15693
15694 # A symbol stripping program
15695 STRIP=$lt_STRIP
15696
15697 # Used to examine libraries when file_magic_cmd begins "file"
15698 MAGIC_CMD=$MAGIC_CMD
15699
15700 # Used on cygwin: DLL creation program.
15701 DLLTOOL="$DLLTOOL"
15702
15703 # Used on cygwin: object dumper.
15704 OBJDUMP="$OBJDUMP"
15705
15706 # Used on cygwin: assembler.
15707 AS="$AS"
15708
15709 # The name of the directory that contains temporary libtool files.
15710 objdir=$objdir
15711
15712 # How to create reloadable object files.
15713 reload_flag=$lt_reload_flag
15714 reload_cmds=$lt_reload_cmds
15715
15716 # How to pass a linker flag through the compiler.
15717 wl=$lt_lt_prog_compiler_wl
15718
15719 # Object file suffix (normally "o").
15720 objext="$ac_objext"
15721
15722 # Old archive suffix (normally "a").
15723 libext="$libext"
15724
15725 # Shared library suffix (normally ".so").
15726 shrext_cmds='$shrext_cmds'
15727
15728 # Executable file suffix (normally "").
15729 exeext="$exeext"
15730
15731 # Additional compiler flags for building library objects.
15732 pic_flag=$lt_lt_prog_compiler_pic
15733 pic_mode=$pic_mode
15734
15735 # What is the maximum length of a command?
15736 max_cmd_len=$lt_cv_sys_max_cmd_len
15737
15738 # Does compiler simultaneously support -c and -o options?
15739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15740
15741 # Must we lock files when doing compilation?
15742 need_locks=$lt_need_locks
15743
15744 # Do we need the lib prefix for modules?
15745 need_lib_prefix=$need_lib_prefix
15746
15747 # Do we need a version for libraries?
15748 need_version=$need_version
15749
15750 # Whether dlopen is supported.
15751 dlopen_support=$enable_dlopen
15752
15753 # Whether dlopen of programs is supported.
15754 dlopen_self=$enable_dlopen_self
15755
15756 # Whether dlopen of statically linked programs is supported.
15757 dlopen_self_static=$enable_dlopen_self_static
15758
15759 # Compiler flag to prevent dynamic linking.
15760 link_static_flag=$lt_lt_prog_compiler_static
15761
15762 # Compiler flag to turn off builtin functions.
15763 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15764
15765 # Compiler flag to allow reflexive dlopens.
15766 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15767
15768 # Compiler flag to generate shared objects directly from archives.
15769 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15770
15771 # Compiler flag to generate thread-safe objects.
15772 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15773
15774 # Library versioning type.
15775 version_type=$version_type
15776
15777 # Format of library name prefix.
15778 libname_spec=$lt_libname_spec
15779
15780 # List of archive names.  First name is the real one, the rest are links.
15781 # The last name is the one that the linker finds with -lNAME.
15782 library_names_spec=$lt_library_names_spec
15783
15784 # The coded name of the library, if different from the real name.
15785 soname_spec=$lt_soname_spec
15786
15787 # Commands used to build and install an old-style archive.
15788 RANLIB=$lt_RANLIB
15789 old_archive_cmds=$lt_old_archive_cmds
15790 old_postinstall_cmds=$lt_old_postinstall_cmds
15791 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15792
15793 # Create an old-style archive from a shared archive.
15794 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15795
15796 # Create a temporary old-style archive to link instead of a shared archive.
15797 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15798
15799 # Commands used to build and install a shared archive.
15800 archive_cmds=$lt_archive_cmds
15801 archive_expsym_cmds=$lt_archive_expsym_cmds
15802 postinstall_cmds=$lt_postinstall_cmds
15803 postuninstall_cmds=$lt_postuninstall_cmds
15804
15805 # Commands used to build a loadable module (assumed same as above if empty)
15806 module_cmds=$lt_module_cmds
15807 module_expsym_cmds=$lt_module_expsym_cmds
15808
15809 # Commands to strip libraries.
15810 old_striplib=$lt_old_striplib
15811 striplib=$lt_striplib
15812
15813 # Dependencies to place before the objects being linked to create a
15814 # shared library.
15815 predep_objects=$lt_predep_objects
15816
15817 # Dependencies to place after the objects being linked to create a
15818 # shared library.
15819 postdep_objects=$lt_postdep_objects
15820
15821 # Dependencies to place before the objects being linked to create a
15822 # shared library.
15823 predeps=$lt_predeps
15824
15825 # Dependencies to place after the objects being linked to create a
15826 # shared library.
15827 postdeps=$lt_postdeps
15828
15829 # The library search path used internally by the compiler when linking
15830 # a shared library.
15831 compiler_lib_search_path=$lt_compiler_lib_search_path
15832
15833 # Method to check whether dependent libraries are shared objects.
15834 deplibs_check_method=$lt_deplibs_check_method
15835
15836 # Command to use when deplibs_check_method == file_magic.
15837 file_magic_cmd=$lt_file_magic_cmd
15838
15839 # Flag that allows shared libraries with undefined symbols to be built.
15840 allow_undefined_flag=$lt_allow_undefined_flag
15841
15842 # Flag that forces no undefined symbols.
15843 no_undefined_flag=$lt_no_undefined_flag
15844
15845 # Commands used to finish a libtool library installation in a directory.
15846 finish_cmds=$lt_finish_cmds
15847
15848 # Same as above, but a single script fragment to be evaled but not shown.
15849 finish_eval=$lt_finish_eval
15850
15851 # Take the output of nm and produce a listing of raw symbols and C names.
15852 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15853
15854 # Transform the output of nm in a proper C declaration
15855 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15856
15857 # Transform the output of nm in a C name address pair
15858 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15859
15860 # This is the shared library runtime path variable.
15861 runpath_var=$runpath_var
15862
15863 # This is the shared library path variable.
15864 shlibpath_var=$shlibpath_var
15865
15866 # Is shlibpath searched before the hard-coded library search path?
15867 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15868
15869 # How to hardcode a shared library path into an executable.
15870 hardcode_action=$hardcode_action
15871
15872 # Whether we should hardcode library paths into libraries.
15873 hardcode_into_libs=$hardcode_into_libs
15874
15875 # Flag to hardcode \$libdir into a binary during linking.
15876 # This must work even if \$libdir does not exist.
15877 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15878
15879 # If ld is used when linking, flag to hardcode \$libdir into
15880 # a binary during linking. This must work even if \$libdir does
15881 # not exist.
15882 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15883
15884 # Whether we need a single -rpath flag with a separated argument.
15885 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15886
15887 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15888 # resulting binary.
15889 hardcode_direct=$hardcode_direct
15890
15891 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15892 # resulting binary.
15893 hardcode_minus_L=$hardcode_minus_L
15894
15895 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15896 # the resulting binary.
15897 hardcode_shlibpath_var=$hardcode_shlibpath_var
15898
15899 # Set to yes if building a shared library automatically hardcodes DIR into the library
15900 # and all subsequent libraries and executables linked against it.
15901 hardcode_automatic=$hardcode_automatic
15902
15903 # Variables whose values should be saved in libtool wrapper scripts and
15904 # restored at relink time.
15905 variables_saved_for_relink="$variables_saved_for_relink"
15906
15907 # Whether libtool must link a program against all its dependency libraries.
15908 link_all_deplibs=$link_all_deplibs
15909
15910 # Compile-time system search path for libraries
15911 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15912
15913 # Run-time system search path for libraries
15914 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15915
15916 # Fix the shell variable \$srcfile for the compiler.
15917 fix_srcfile_path="$fix_srcfile_path"
15918
15919 # Set to yes if exported symbols are required.
15920 always_export_symbols=$always_export_symbols
15921
15922 # The commands to list exported symbols.
15923 export_symbols_cmds=$lt_export_symbols_cmds
15924
15925 # The commands to extract the exported symbol list from a shared archive.
15926 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15927
15928 # Symbols that should not be listed in the preloaded symbols.
15929 exclude_expsyms=$lt_exclude_expsyms
15930
15931 # Symbols that must always be exported.
15932 include_expsyms=$lt_include_expsyms
15933
15934 # ### END LIBTOOL CONFIG
15935
15936 __EOF__
15937
15938
15939   case $host_os in
15940   aix3*)
15941     cat <<\EOF >> "$cfgfile"
15942
15943 # AIX sometimes has problems with the GCC collect2 program.  For some
15944 # reason, if we set the COLLECT_NAMES environment variable, the problems
15945 # vanish in a puff of smoke.
15946 if test "X${COLLECT_NAMES+set}" != Xset; then
15947   COLLECT_NAMES=
15948   export COLLECT_NAMES
15949 fi
15950 EOF
15951     ;;
15952   esac
15953
15954   # We use sed instead of cat because bash on DJGPP gets confused if
15955   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15956   # text mode, it properly converts lines to CR/LF.  This bash problem
15957   # is reportedly fixed, but why not run on old versions too?
15958   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15959
15960   mv -f "$cfgfile" "$ofile" || \
15961     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15962   chmod +x "$ofile"
15963
15964 else
15965   # If there is no Makefile yet, we rely on a make rule to execute
15966   # `config.status --recheck' to rerun these tests and create the
15967   # libtool script then.
15968   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15969   if test -f "$ltmain_in"; then
15970     test -f Makefile && make "$ltmain"
15971   fi
15972 fi
15973
15974
15975 ac_ext=c
15976 ac_cpp='$CPP $CPPFLAGS'
15977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15980
15981 CC="$lt_save_CC"
15982
15983
15984 # Check whether --with-tags or --without-tags was given.
15985 if test "${with_tags+set}" = set; then
15986   withval="$with_tags"
15987   tagnames="$withval"
15988 fi;
15989
15990 if test -f "$ltmain" && test -n "$tagnames"; then
15991   if test ! -f "${ofile}"; then
15992     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15993 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15994   fi
15995
15996   if test -z "$LTCC"; then
15997     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15998     if test -z "$LTCC"; then
15999       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16000 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16001     else
16002       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16003 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16004     fi
16005   fi
16006
16007   # Extract list of available tagged configurations in $ofile.
16008   # Note that this assumes the entire list is on one line.
16009   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16010
16011   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16012   for tagname in $tagnames; do
16013     IFS="$lt_save_ifs"
16014     # Check whether tagname contains only valid characters
16015     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16016     "") ;;
16017     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16018 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16019    { (exit 1); exit 1; }; }
16020         ;;
16021     esac
16022
16023     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16024     then
16025       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16026 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16027    { (exit 1); exit 1; }; }
16028     fi
16029
16030     # Update the list of available tags.
16031     if test -n "$tagname"; then
16032       echo appending configuration tag \"$tagname\" to $ofile
16033
16034       case $tagname in
16035       CXX)
16036         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16037             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16038             (test "X$CXX" != "Xg++"))) ; then
16039           ac_ext=cc
16040 ac_cpp='$CXXCPP $CPPFLAGS'
16041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16044
16045
16046
16047
16048 archive_cmds_need_lc_CXX=no
16049 allow_undefined_flag_CXX=
16050 always_export_symbols_CXX=no
16051 archive_expsym_cmds_CXX=
16052 export_dynamic_flag_spec_CXX=
16053 hardcode_direct_CXX=no
16054 hardcode_libdir_flag_spec_CXX=
16055 hardcode_libdir_flag_spec_ld_CXX=
16056 hardcode_libdir_separator_CXX=
16057 hardcode_minus_L_CXX=no
16058 hardcode_automatic_CXX=no
16059 module_cmds_CXX=
16060 module_expsym_cmds_CXX=
16061 link_all_deplibs_CXX=unknown
16062 old_archive_cmds_CXX=$old_archive_cmds
16063 no_undefined_flag_CXX=
16064 whole_archive_flag_spec_CXX=
16065 enable_shared_with_static_runtimes_CXX=no
16066
16067 # Dependencies to place before and after the object being linked:
16068 predep_objects_CXX=
16069 postdep_objects_CXX=
16070 predeps_CXX=
16071 postdeps_CXX=
16072 compiler_lib_search_path_CXX=
16073
16074 # Source file extension for C++ test sources.
16075 ac_ext=cc
16076
16077 # Object file extension for compiled C++ test sources.
16078 objext=o
16079 objext_CXX=$objext
16080
16081 # Code to be used in simple compile tests
16082 lt_simple_compile_test_code="int some_variable = 0;\n"
16083
16084 # Code to be used in simple link tests
16085 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
16086
16087 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16088
16089 # If no C compiler was specified, use CC.
16090 LTCC=${LTCC-"$CC"}
16091
16092 # Allow CC to be a program name with arguments.
16093 compiler=$CC
16094
16095
16096 # save warnings/boilerplate of simple test code
16097 ac_outfile=conftest.$ac_objext
16098 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16099 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16100 _lt_compiler_boilerplate=`cat conftest.err`
16101 $rm conftest*
16102
16103 ac_outfile=conftest.$ac_objext
16104 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16105 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16106 _lt_linker_boilerplate=`cat conftest.err`
16107 $rm conftest*
16108
16109
16110 # Allow CC to be a program name with arguments.
16111 lt_save_CC=$CC
16112 lt_save_LD=$LD
16113 lt_save_GCC=$GCC
16114 GCC=$GXX
16115 lt_save_with_gnu_ld=$with_gnu_ld
16116 lt_save_path_LD=$lt_cv_path_LD
16117 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16118   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16119 else
16120   unset lt_cv_prog_gnu_ld
16121 fi
16122 if test -n "${lt_cv_path_LDCXX+set}"; then
16123   lt_cv_path_LD=$lt_cv_path_LDCXX
16124 else
16125   unset lt_cv_path_LD
16126 fi
16127 test -z "${LDCXX+set}" || LD=$LDCXX
16128 CC=${CXX-"c++"}
16129 compiler=$CC
16130 compiler_CXX=$CC
16131 for cc_temp in $compiler""; do
16132   case $cc_temp in
16133     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16134     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16135     \-*) ;;
16136     *) break;;
16137   esac
16138 done
16139 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16140
16141
16142 # We don't want -fno-exception wen compiling C++ code, so set the
16143 # no_builtin_flag separately
16144 if test "$GXX" = yes; then
16145   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16146 else
16147   lt_prog_compiler_no_builtin_flag_CXX=
16148 fi
16149
16150 if test "$GXX" = yes; then
16151   # Set up default GNU C++ configuration
16152
16153
16154 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16155 if test "${with_gnu_ld+set}" = set; then
16156   withval="$with_gnu_ld"
16157   test "$withval" = no || with_gnu_ld=yes
16158 else
16159   with_gnu_ld=no
16160 fi;
16161 ac_prog=ld
16162 if test "$GCC" = yes; then
16163   # Check if gcc -print-prog-name=ld gives a path.
16164   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16165 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16166   case $host in
16167   *-*-mingw*)
16168     # gcc leaves a trailing carriage return which upsets mingw
16169     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16170   *)
16171     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16172   esac
16173   case $ac_prog in
16174     # Accept absolute paths.
16175     [\\/]* | ?:[\\/]*)
16176       re_direlt='/[^/][^/]*/\.\./'
16177       # Canonicalize the pathname of ld
16178       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16179       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16180         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16181       done
16182       test -z "$LD" && LD="$ac_prog"
16183       ;;
16184   "")
16185     # If it fails, then pretend we aren't using GCC.
16186     ac_prog=ld
16187     ;;
16188   *)
16189     # If it is relative, then search for the first ld in PATH.
16190     with_gnu_ld=unknown
16191     ;;
16192   esac
16193 elif test "$with_gnu_ld" = yes; then
16194   echo "$as_me:$LINENO: checking for GNU ld" >&5
16195 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16196 else
16197   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16198 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16199 fi
16200 if test "${lt_cv_path_LD+set}" = set; then
16201   echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203   if test -z "$LD"; then
16204   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16205   for ac_dir in $PATH; do
16206     IFS="$lt_save_ifs"
16207     test -z "$ac_dir" && ac_dir=.
16208     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16209       lt_cv_path_LD="$ac_dir/$ac_prog"
16210       # Check to see if the program is GNU ld.  I'd rather use --version,
16211       # but apparently some GNU ld's only accept -v.
16212       # Break only if it was the GNU/non-GNU ld that we prefer.
16213       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16214       *GNU* | *'with BFD'*)
16215         test "$with_gnu_ld" != no && break
16216         ;;
16217       *)
16218         test "$with_gnu_ld" != yes && break
16219         ;;
16220       esac
16221     fi
16222   done
16223   IFS="$lt_save_ifs"
16224 else
16225   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16226 fi
16227 fi
16228
16229 LD="$lt_cv_path_LD"
16230 if test -n "$LD"; then
16231   echo "$as_me:$LINENO: result: $LD" >&5
16232 echo "${ECHO_T}$LD" >&6
16233 else
16234   echo "$as_me:$LINENO: result: no" >&5
16235 echo "${ECHO_T}no" >&6
16236 fi
16237 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16238 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16239    { (exit 1); exit 1; }; }
16240 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16241 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16242 if test "${lt_cv_prog_gnu_ld+set}" = set; then
16243   echo $ECHO_N "(cached) $ECHO_C" >&6
16244 else
16245   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16246 case `$LD -v 2>&1 </dev/null` in
16247 *GNU* | *'with BFD'*)
16248   lt_cv_prog_gnu_ld=yes
16249   ;;
16250 *)
16251   lt_cv_prog_gnu_ld=no
16252   ;;
16253 esac
16254 fi
16255 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16256 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
16257 with_gnu_ld=$lt_cv_prog_gnu_ld
16258
16259
16260
16261   # Check if GNU C++ uses GNU ld as the underlying linker, since the
16262   # archiving commands below assume that GNU ld is being used.
16263   if test "$with_gnu_ld" = yes; then
16264     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16265     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'
16266
16267     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16268     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16269
16270     # If archive_cmds runs LD, not CC, wlarc should be empty
16271     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16272     #     investigate it a little bit more. (MM)
16273     wlarc='${wl}'
16274
16275     # ancient GNU ld didn't support --whole-archive et. al.
16276     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
16277         grep 'no-whole-archive' > /dev/null; then
16278       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16279     else
16280       whole_archive_flag_spec_CXX=
16281     fi
16282   else
16283     with_gnu_ld=no
16284     wlarc=
16285
16286     # A generic and very simple default shared library creation
16287     # command for GNU C++ for the case where it uses the native
16288     # linker, instead of GNU ld.  If possible, this setting should
16289     # overridden to take advantage of the native linker features on
16290     # the platform it is being used on.
16291     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16292   fi
16293
16294   # Commands to make compiler produce verbose output that lists
16295   # what "hidden" libraries, object files and flags are used when
16296   # linking a shared library.
16297   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16298
16299 else
16300   GXX=no
16301   with_gnu_ld=no
16302   wlarc=
16303 fi
16304
16305 # PORTME: fill in a description of your system's C++ link characteristics
16306 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16307 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16308 ld_shlibs_CXX=yes
16309 case $host_os in
16310   aix3*)
16311     # FIXME: insert proper C++ library support
16312     ld_shlibs_CXX=no
16313     ;;
16314   aix4* | aix5*)
16315     if test "$host_cpu" = ia64; then
16316       # On IA64, the linker does run time linking by default, so we don't
16317       # have to do anything special.
16318       aix_use_runtimelinking=no
16319       exp_sym_flag='-Bexport'
16320       no_entry_flag=""
16321     else
16322       aix_use_runtimelinking=no
16323
16324       # Test if we are trying to use run time linking or normal
16325       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16326       # need to do runtime linking.
16327       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16328         for ld_flag in $LDFLAGS; do
16329           case $ld_flag in
16330           *-brtl*)
16331             aix_use_runtimelinking=yes
16332             break
16333             ;;
16334           esac
16335         done
16336       esac
16337
16338       exp_sym_flag='-bexport'
16339       no_entry_flag='-bnoentry'
16340     fi
16341
16342     # When large executables or shared objects are built, AIX ld can
16343     # have problems creating the table of contents.  If linking a library
16344     # or program results in "error TOC overflow" add -mminimal-toc to
16345     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16346     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16347
16348     archive_cmds_CXX=''
16349     hardcode_direct_CXX=yes
16350     hardcode_libdir_separator_CXX=':'
16351     link_all_deplibs_CXX=yes
16352
16353     if test "$GXX" = yes; then
16354       case $host_os in aix4.[012]|aix4.[012].*)
16355       # We only want to do this on AIX 4.2 and lower, the check
16356       # below for broken collect2 doesn't work under 4.3+
16357         collect2name=`${CC} -print-prog-name=collect2`
16358         if test -f "$collect2name" && \
16359            strings "$collect2name" | grep resolve_lib_name >/dev/null
16360         then
16361           # We have reworked collect2
16362           hardcode_direct_CXX=yes
16363         else
16364           # We have old collect2
16365           hardcode_direct_CXX=unsupported
16366           # It fails to find uninstalled libraries when the uninstalled
16367           # path is not listed in the libpath.  Setting hardcode_minus_L
16368           # to unsupported forces relinking
16369           hardcode_minus_L_CXX=yes
16370           hardcode_libdir_flag_spec_CXX='-L$libdir'
16371           hardcode_libdir_separator_CXX=
16372         fi
16373       esac
16374       shared_flag='-shared'
16375       if test "$aix_use_runtimelinking" = yes; then
16376         shared_flag="$shared_flag "'${wl}-G'
16377       fi
16378     else
16379       # not using gcc
16380       if test "$host_cpu" = ia64; then
16381         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16382         # chokes on -Wl,-G. The following line is correct:
16383         shared_flag='-G'
16384       else
16385         if test "$aix_use_runtimelinking" = yes; then
16386           shared_flag='${wl}-G'
16387         else
16388           shared_flag='${wl}-bM:SRE'
16389         fi
16390       fi
16391     fi
16392
16393     # It seems that -bexpall does not export symbols beginning with
16394     # underscore (_), so it is better to generate a list of symbols to export.
16395     always_export_symbols_CXX=yes
16396     if test "$aix_use_runtimelinking" = yes; then
16397       # Warning - without using the other runtime loading flags (-brtl),
16398       # -berok will link without error, but may produce a broken library.
16399       allow_undefined_flag_CXX='-berok'
16400       # Determine the default libpath from the value encoded in an empty executable.
16401       cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h.  */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h.  */
16407
16408 int
16409 main ()
16410 {
16411
16412   ;
16413   return 0;
16414 }
16415 _ACEOF
16416 rm -f conftest.$ac_objext conftest$ac_exeext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16418   (eval $ac_link) 2>conftest.er1
16419   ac_status=$?
16420   grep -v '^ *+' conftest.er1 >conftest.err
16421   rm -f conftest.er1
16422   cat conftest.err >&5
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } &&
16425          { ac_try='test -z "$ac_cxx_werror_flag"
16426                          || test ! -s conftest.err'
16427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428   (eval $ac_try) 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; } &&
16432          { ac_try='test -s conftest$ac_exeext'
16433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434   (eval $ac_try) 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; }; then
16438
16439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16440 }'`
16441 # Check for a 64-bit object if we didn't find anything.
16442 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; }
16443 }'`; fi
16444 else
16445   echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16447
16448 fi
16449 rm -f conftest.err conftest.$ac_objext \
16450       conftest$ac_exeext conftest.$ac_ext
16451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16452
16453       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16454
16455       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"
16456      else
16457       if test "$host_cpu" = ia64; then
16458         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16459         allow_undefined_flag_CXX="-z nodefs"
16460         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"
16461       else
16462         # Determine the default libpath from the value encoded in an empty executable.
16463         cat >conftest.$ac_ext <<_ACEOF
16464 /* confdefs.h.  */
16465 _ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h.  */
16469
16470 int
16471 main ()
16472 {
16473
16474   ;
16475   return 0;
16476 }
16477 _ACEOF
16478 rm -f conftest.$ac_objext conftest$ac_exeext
16479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16480   (eval $ac_link) 2>conftest.er1
16481   ac_status=$?
16482   grep -v '^ *+' conftest.er1 >conftest.err
16483   rm -f conftest.er1
16484   cat conftest.err >&5
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); } &&
16487          { ac_try='test -z "$ac_cxx_werror_flag"
16488                          || test ! -s conftest.err'
16489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490   (eval $ac_try) 2>&5
16491   ac_status=$?
16492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493   (exit $ac_status); }; } &&
16494          { ac_try='test -s conftest$ac_exeext'
16495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496   (eval $ac_try) 2>&5
16497   ac_status=$?
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); }; }; then
16500
16501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16502 }'`
16503 # Check for a 64-bit object if we didn't find anything.
16504 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; }
16505 }'`; fi
16506 else
16507   echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16509
16510 fi
16511 rm -f conftest.err conftest.$ac_objext \
16512       conftest$ac_exeext conftest.$ac_ext
16513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16514
16515         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16516         # Warning - without using the other run time loading flags,
16517         # -berok will link without error, but may produce a broken library.
16518         no_undefined_flag_CXX=' ${wl}-bernotok'
16519         allow_undefined_flag_CXX=' ${wl}-berok'
16520         # -bexpall does not export symbols beginning with underscore (_)
16521         always_export_symbols_CXX=yes
16522         # Exported symbols can be pulled into shared objects from archives
16523         whole_archive_flag_spec_CXX=' '
16524         archive_cmds_need_lc_CXX=yes
16525         # This is similar to how AIX traditionally builds it's shared libraries.
16526         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'
16527       fi
16528     fi
16529     ;;
16530   chorus*)
16531     case $cc_basename in
16532       *)
16533         # FIXME: insert proper C++ library support
16534         ld_shlibs_CXX=no
16535         ;;
16536     esac
16537     ;;
16538
16539
16540   cygwin* | mingw* | pw32*)
16541     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16542     # as there is no search path for DLLs.
16543     hardcode_libdir_flag_spec_CXX='-L$libdir'
16544     allow_undefined_flag_CXX=unsupported
16545     always_export_symbols_CXX=no
16546     enable_shared_with_static_runtimes_CXX=yes
16547
16548     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16549       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'
16550       # If the export-symbols file already is a .def file (1st line
16551       # is EXPORTS), use it as is; otherwise, prepend...
16552       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16553         cp $export_symbols $output_objdir/$soname.def;
16554       else
16555         echo EXPORTS > $output_objdir/$soname.def;
16556         cat $export_symbols >> $output_objdir/$soname.def;
16557       fi~
16558       $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'
16559     else
16560       ld_shlibs_CXX=no
16561     fi
16562   ;;
16563       darwin* | rhapsody*)
16564         case "$host_os" in
16565         rhapsody* | darwin1.[012])
16566          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16567          ;;
16568        *) # Darwin 1.3 on
16569          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16570            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16571          else
16572            case ${MACOSX_DEPLOYMENT_TARGET} in
16573              10.[012])
16574                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16575                ;;
16576              10.*)
16577                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16578                ;;
16579            esac
16580          fi
16581          ;;
16582         esac
16583       archive_cmds_need_lc_CXX=no
16584       hardcode_direct_CXX=no
16585       hardcode_automatic_CXX=yes
16586       hardcode_shlibpath_var_CXX=unsupported
16587       whole_archive_flag_spec_CXX=''
16588       link_all_deplibs_CXX=yes
16589
16590     if test "$GXX" = yes ; then
16591       lt_int_apple_cc_single_mod=no
16592       output_verbose_link_cmd='echo'
16593       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16594        lt_int_apple_cc_single_mod=yes
16595       fi
16596       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16597        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16598       else
16599           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16600         fi
16601         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16602         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16603           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16604             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}'
16605           else
16606             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16607           fi
16608             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}'
16609       else
16610       case $cc_basename in
16611         xlc*)
16612          output_verbose_link_cmd='echo'
16613           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16614           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16615           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16616           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
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           ;;
16619        *)
16620          ld_shlibs_CXX=no
16621           ;;
16622       esac
16623       fi
16624         ;;
16625
16626   dgux*)
16627     case $cc_basename in
16628       ec++*)
16629         # FIXME: insert proper C++ library support
16630         ld_shlibs_CXX=no
16631         ;;
16632       ghcx*)
16633         # Green Hills C++ Compiler
16634         # FIXME: insert proper C++ library support
16635         ld_shlibs_CXX=no
16636         ;;
16637       *)
16638         # FIXME: insert proper C++ library support
16639         ld_shlibs_CXX=no
16640         ;;
16641     esac
16642     ;;
16643   freebsd[12]*)
16644     # C++ shared libraries reported to be fairly broken before switch to ELF
16645     ld_shlibs_CXX=no
16646     ;;
16647   freebsd-elf*)
16648     archive_cmds_need_lc_CXX=no
16649     ;;
16650   freebsd* | kfreebsd*-gnu | dragonfly*)
16651     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16652     # conventions
16653     ld_shlibs_CXX=yes
16654     ;;
16655   gnu*)
16656     ;;
16657   hpux9*)
16658     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16659     hardcode_libdir_separator_CXX=:
16660     export_dynamic_flag_spec_CXX='${wl}-E'
16661     hardcode_direct_CXX=yes
16662     hardcode_minus_L_CXX=yes # Not in the search PATH,
16663                                 # but as the default
16664                                 # location of the library.
16665
16666     case $cc_basename in
16667     CC*)
16668       # FIXME: insert proper C++ library support
16669       ld_shlibs_CXX=no
16670       ;;
16671     aCC*)
16672       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'
16673       # Commands to make compiler produce verbose output that lists
16674       # what "hidden" libraries, object files and flags are used when
16675       # linking a shared library.
16676       #
16677       # There doesn't appear to be a way to prevent this compiler from
16678       # explicitly linking system object files so we need to strip them
16679       # from the output so that they don't get included in the library
16680       # dependencies.
16681       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'
16682       ;;
16683     *)
16684       if test "$GXX" = yes; then
16685         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'
16686       else
16687         # FIXME: insert proper C++ library support
16688         ld_shlibs_CXX=no
16689       fi
16690       ;;
16691     esac
16692     ;;
16693   hpux10*|hpux11*)
16694     if test $with_gnu_ld = no; then
16695       case "$host_cpu" in
16696       hppa*64*)
16697         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16698         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16699         hardcode_libdir_separator_CXX=:
16700         ;;
16701       ia64*)
16702         hardcode_libdir_flag_spec_CXX='-L$libdir'
16703         ;;
16704       *)
16705         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16706         hardcode_libdir_separator_CXX=:
16707         export_dynamic_flag_spec_CXX='${wl}-E'
16708         ;;
16709       esac
16710     fi
16711     case "$host_cpu" in
16712     hppa*64*)
16713       hardcode_direct_CXX=no
16714       hardcode_shlibpath_var_CXX=no
16715       ;;
16716     ia64*)
16717       hardcode_direct_CXX=no
16718       hardcode_shlibpath_var_CXX=no
16719       hardcode_minus_L_CXX=yes # Not in the search PATH,
16720                                               # but as the default
16721                                               # location of the library.
16722       ;;
16723     *)
16724       hardcode_direct_CXX=yes
16725       hardcode_minus_L_CXX=yes # Not in the search PATH,
16726                                               # but as the default
16727                                               # location of the library.
16728       ;;
16729     esac
16730
16731     case $cc_basename in
16732       CC*)
16733         # FIXME: insert proper C++ library support
16734         ld_shlibs_CXX=no
16735         ;;
16736       aCC*)
16737         case "$host_cpu" in
16738         hppa*64*|ia64*)
16739           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16740           ;;
16741         *)
16742           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16743           ;;
16744         esac
16745         # Commands to make compiler produce verbose output that lists
16746         # what "hidden" libraries, object files and flags are used when
16747         # linking a shared library.
16748         #
16749         # There doesn't appear to be a way to prevent this compiler from
16750         # explicitly linking system object files so we need to strip them
16751         # from the output so that they don't get included in the library
16752         # dependencies.
16753         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'
16754         ;;
16755       *)
16756         if test "$GXX" = yes; then
16757           if test $with_gnu_ld = no; then
16758             case "$host_cpu" in
16759             ia64*|hppa*64*)
16760               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16761               ;;
16762             *)
16763               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'
16764               ;;
16765             esac
16766           fi
16767         else
16768           # FIXME: insert proper C++ library support
16769           ld_shlibs_CXX=no
16770         fi
16771         ;;
16772     esac
16773     ;;
16774   irix5* | irix6*)
16775     case $cc_basename in
16776       CC*)
16777         # SGI C++
16778         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16779
16780         # Archives containing C++ object files must be created using
16781         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16782         # necessary to make sure instantiated templates are included
16783         # in the archive.
16784         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16785         ;;
16786       *)
16787         if test "$GXX" = yes; then
16788           if test "$with_gnu_ld" = no; then
16789             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16790           else
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` -o $lib'
16792           fi
16793         fi
16794         link_all_deplibs_CXX=yes
16795         ;;
16796     esac
16797     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16798     hardcode_libdir_separator_CXX=:
16799     ;;
16800   linux*)
16801     case $cc_basename in
16802       KCC*)
16803         # Kuck and Associates, Inc. (KAI) C++ Compiler
16804
16805         # KCC will only create a shared library if the output file
16806         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16807         # to its proper name (with version) after linking.
16808         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'
16809         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'
16810         # Commands to make compiler produce verbose output that lists
16811         # what "hidden" libraries, object files and flags are used when
16812         # linking a shared library.
16813         #
16814         # There doesn't appear to be a way to prevent this compiler from
16815         # explicitly linking system object files so we need to strip them
16816         # from the output so that they don't get included in the library
16817         # dependencies.
16818         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'
16819
16820         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16821         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16822
16823         # Archives containing C++ object files must be created using
16824         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16825         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16826         ;;
16827       icpc*)
16828         # Intel C++
16829         with_gnu_ld=yes
16830         # version 8.0 and above of icpc choke on multiply defined symbols
16831         # if we add $predep_objects and $postdep_objects, however 7.1 and
16832         # earlier do not add the objects themselves.
16833         case `$CC -V 2>&1` in
16834         *"Version 7."*)
16835           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16836           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'
16837           ;;
16838         *)  # Version 8.0 or newer
16839           tmp_idyn=
16840           case $host_cpu in
16841             ia64*) tmp_idyn=' -i_dynamic';;
16842           esac
16843           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16844           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16845           ;;
16846         esac
16847         archive_cmds_need_lc_CXX=no
16848         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16849         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16850         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16851         ;;
16852       pgCC*)
16853         # Portland Group C++ compiler
16854         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16855         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'
16856
16857         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16858         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16859         whole_archive_flag_spec_CXX=''
16860         ;;
16861       cxx*)
16862         # Compaq C++
16863         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16864         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'
16865
16866         runpath_var=LD_RUN_PATH
16867         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16868         hardcode_libdir_separator_CXX=:
16869
16870         # Commands to make compiler produce verbose output that lists
16871         # what "hidden" libraries, object files and flags are used when
16872         # linking a shared library.
16873         #
16874         # There doesn't appear to be a way to prevent this compiler from
16875         # explicitly linking system object files so we need to strip them
16876         # from the output so that they don't get included in the library
16877         # dependencies.
16878         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'
16879         ;;
16880     esac
16881     ;;
16882   lynxos*)
16883     # FIXME: insert proper C++ library support
16884     ld_shlibs_CXX=no
16885     ;;
16886   m88k*)
16887     # FIXME: insert proper C++ library support
16888     ld_shlibs_CXX=no
16889     ;;
16890   mvs*)
16891     case $cc_basename in
16892       cxx*)
16893         # FIXME: insert proper C++ library support
16894         ld_shlibs_CXX=no
16895         ;;
16896       *)
16897         # FIXME: insert proper C++ library support
16898         ld_shlibs_CXX=no
16899         ;;
16900     esac
16901     ;;
16902   netbsd*)
16903     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16904       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16905       wlarc=
16906       hardcode_libdir_flag_spec_CXX='-R$libdir'
16907       hardcode_direct_CXX=yes
16908       hardcode_shlibpath_var_CXX=no
16909     fi
16910     # Workaround some broken pre-1.5 toolchains
16911     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16912     ;;
16913   openbsd2*)
16914     # C++ shared libraries are fairly broken
16915     ld_shlibs_CXX=no
16916     ;;
16917   openbsd*)
16918     hardcode_direct_CXX=yes
16919     hardcode_shlibpath_var_CXX=no
16920     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16921     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16922     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16923       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16924       export_dynamic_flag_spec_CXX='${wl}-E'
16925       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16926     fi
16927     output_verbose_link_cmd='echo'
16928     ;;
16929   osf3*)
16930     case $cc_basename in
16931       KCC*)
16932         # Kuck and Associates, Inc. (KAI) C++ Compiler
16933
16934         # KCC will only create a shared library if the output file
16935         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16936         # to its proper name (with version) after linking.
16937         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'
16938
16939         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16940         hardcode_libdir_separator_CXX=:
16941
16942         # Archives containing C++ object files must be created using
16943         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16944         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16945
16946         ;;
16947       RCC*)
16948         # Rational C++ 2.4.1
16949         # FIXME: insert proper C++ library support
16950         ld_shlibs_CXX=no
16951         ;;
16952       cxx*)
16953         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16954         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16955
16956         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16957         hardcode_libdir_separator_CXX=:
16958
16959         # Commands to make compiler produce verbose output that lists
16960         # what "hidden" libraries, object files and flags are used when
16961         # linking a shared library.
16962         #
16963         # There doesn't appear to be a way to prevent this compiler from
16964         # explicitly linking system object files so we need to strip them
16965         # from the output so that they don't get included in the library
16966         # dependencies.
16967         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'
16968         ;;
16969       *)
16970         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16971           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16972           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16973
16974           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16975           hardcode_libdir_separator_CXX=:
16976
16977           # Commands to make compiler produce verbose output that lists
16978           # what "hidden" libraries, object files and flags are used when
16979           # linking a shared library.
16980           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16981
16982         else
16983           # FIXME: insert proper C++ library support
16984           ld_shlibs_CXX=no
16985         fi
16986         ;;
16987     esac
16988     ;;
16989   osf4* | osf5*)
16990     case $cc_basename in
16991       KCC*)
16992         # Kuck and Associates, Inc. (KAI) C++ Compiler
16993
16994         # KCC will only create a shared library if the output file
16995         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16996         # to its proper name (with version) after linking.
16997         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'
16998
16999         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17000         hardcode_libdir_separator_CXX=:
17001
17002         # Archives containing C++ object files must be created using
17003         # the KAI C++ compiler.
17004         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17005         ;;
17006       RCC*)
17007         # Rational C++ 2.4.1
17008         # FIXME: insert proper C++ library support
17009         ld_shlibs_CXX=no
17010         ;;
17011       cxx*)
17012         allow_undefined_flag_CXX=' -expect_unresolved \*'
17013         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17014         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17015           echo "-hidden">> $lib.exp~
17016           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
17017           $rm $lib.exp'
17018
17019         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17020         hardcode_libdir_separator_CXX=:
17021
17022         # Commands to make compiler produce verbose output that lists
17023         # what "hidden" libraries, object files and flags are used when
17024         # linking a shared library.
17025         #
17026         # There doesn't appear to be a way to prevent this compiler from
17027         # explicitly linking system object files so we need to strip them
17028         # from the output so that they don't get included in the library
17029         # dependencies.
17030         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'
17031         ;;
17032       *)
17033         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17034           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17035          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17036
17037           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17038           hardcode_libdir_separator_CXX=:
17039
17040           # Commands to make compiler produce verbose output that lists
17041           # what "hidden" libraries, object files and flags are used when
17042           # linking a shared library.
17043           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17044
17045         else
17046           # FIXME: insert proper C++ library support
17047           ld_shlibs_CXX=no
17048         fi
17049         ;;
17050     esac
17051     ;;
17052   psos*)
17053     # FIXME: insert proper C++ library support
17054     ld_shlibs_CXX=no
17055     ;;
17056   sco*)
17057     archive_cmds_need_lc_CXX=no
17058     case $cc_basename in
17059       CC*)
17060         # FIXME: insert proper C++ library support
17061         ld_shlibs_CXX=no
17062         ;;
17063       *)
17064         # FIXME: insert proper C++ library support
17065         ld_shlibs_CXX=no
17066         ;;
17067     esac
17068     ;;
17069   sunos4*)
17070     case $cc_basename in
17071       CC*)
17072         # Sun C++ 4.x
17073         # FIXME: insert proper C++ library support
17074         ld_shlibs_CXX=no
17075         ;;
17076       lcc*)
17077         # Lucid
17078         # FIXME: insert proper C++ library support
17079         ld_shlibs_CXX=no
17080         ;;
17081       *)
17082         # FIXME: insert proper C++ library support
17083         ld_shlibs_CXX=no
17084         ;;
17085     esac
17086     ;;
17087   solaris*)
17088     case $cc_basename in
17089       CC*)
17090         # Sun C++ 4.2, 5.x and Centerline C++
17091         no_undefined_flag_CXX=' -zdefs'
17092         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17093         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17094         $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'
17095
17096         hardcode_libdir_flag_spec_CXX='-R$libdir'
17097         hardcode_shlibpath_var_CXX=no
17098         case $host_os in
17099           solaris2.[0-5] | solaris2.[0-5].*) ;;
17100           *)
17101             # The C++ compiler is used as linker so we must use $wl
17102             # flag to pass the commands to the underlying system
17103             # linker. We must also pass each convience library through
17104             # to the system linker between allextract/defaultextract.
17105             # The C++ compiler will combine linker options so we
17106             # cannot just pass the convience library names through
17107             # without $wl.
17108             # Supported since Solaris 2.6 (maybe 2.5.1?)
17109             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
17110             ;;
17111         esac
17112         link_all_deplibs_CXX=yes
17113
17114         # Commands to make compiler produce verbose output that lists
17115         # what "hidden" libraries, object files and flags are used when
17116         # linking a shared library.
17117         #
17118         # There doesn't appear to be a way to prevent this compiler from
17119         # explicitly linking system object files so we need to strip them
17120         # from the output so that they don't get included in the library
17121         # dependencies.
17122         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'
17123
17124         # Archives containing C++ object files must be created using
17125         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17126         # necessary to make sure instantiated templates are included
17127         # in the archive.
17128         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17129         ;;
17130       gcx*)
17131         # Green Hills C++ Compiler
17132         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17133
17134         # The C++ compiler must be used to create the archive.
17135         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17136         ;;
17137       *)
17138         # GNU C++ compiler with Solaris linker
17139         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17140           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17141           if $CC --version | grep -v '^2\.7' > /dev/null; then
17142             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17143             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17144                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17145
17146             # Commands to make compiler produce verbose output that lists
17147             # what "hidden" libraries, object files and flags are used when
17148             # linking a shared library.
17149             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17150           else
17151             # g++ 2.7 appears to require `-G' NOT `-shared' on this
17152             # platform.
17153             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17154             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17155                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17156
17157             # Commands to make compiler produce verbose output that lists
17158             # what "hidden" libraries, object files and flags are used when
17159             # linking a shared library.
17160             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17161           fi
17162
17163           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17164         fi
17165         ;;
17166     esac
17167     ;;
17168   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17169     archive_cmds_need_lc_CXX=no
17170     ;;
17171   tandem*)
17172     case $cc_basename in
17173       NCC*)
17174         # NonStop-UX NCC 3.20
17175         # FIXME: insert proper C++ library support
17176         ld_shlibs_CXX=no
17177         ;;
17178       *)
17179         # FIXME: insert proper C++ library support
17180         ld_shlibs_CXX=no
17181         ;;
17182     esac
17183     ;;
17184   vxworks*)
17185     # FIXME: insert proper C++ library support
17186     ld_shlibs_CXX=no
17187     ;;
17188   *)
17189     # FIXME: insert proper C++ library support
17190     ld_shlibs_CXX=no
17191     ;;
17192 esac
17193 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17194 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17195 test "$ld_shlibs_CXX" = no && can_build_shared=no
17196
17197 GCC_CXX="$GXX"
17198 LD_CXX="$LD"
17199
17200
17201 cat > conftest.$ac_ext <<EOF
17202 class Foo
17203 {
17204 public:
17205   Foo (void) { a = 0; }
17206 private:
17207   int a;
17208 };
17209 EOF
17210
17211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17212   (eval $ac_compile) 2>&5
17213   ac_status=$?
17214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215   (exit $ac_status); }; then
17216   # Parse the compiler output and extract the necessary
17217   # objects, libraries and library flags.
17218
17219   # Sentinel used to keep track of whether or not we are before
17220   # the conftest object file.
17221   pre_test_object_deps_done=no
17222
17223   # The `*' in the case matches for architectures that use `case' in
17224   # $output_verbose_cmd can trigger glob expansion during the loop
17225   # eval without this substitution.
17226   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
17227
17228   for p in `eval $output_verbose_link_cmd`; do
17229     case $p in
17230
17231     -L* | -R* | -l*)
17232        # Some compilers place space between "-{L,R}" and the path.
17233        # Remove the space.
17234        if test $p = "-L" \
17235           || test $p = "-R"; then
17236          prev=$p
17237          continue
17238        else
17239          prev=
17240        fi
17241
17242        if test "$pre_test_object_deps_done" = no; then
17243          case $p in
17244          -L* | -R*)
17245            # Internal compiler library paths should come after those
17246            # provided the user.  The postdeps already come after the
17247            # user supplied libs so there is no need to process them.
17248            if test -z "$compiler_lib_search_path_CXX"; then
17249              compiler_lib_search_path_CXX="${prev}${p}"
17250            else
17251              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17252            fi
17253            ;;
17254          # The "-l" case would never come before the object being
17255          # linked, so don't bother handling this case.
17256          esac
17257        else
17258          if test -z "$postdeps_CXX"; then
17259            postdeps_CXX="${prev}${p}"
17260          else
17261            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17262          fi
17263        fi
17264        ;;
17265
17266     *.$objext)
17267        # This assumes that the test object file only shows up
17268        # once in the compiler output.
17269        if test "$p" = "conftest.$objext"; then
17270          pre_test_object_deps_done=yes
17271          continue
17272        fi
17273
17274        if test "$pre_test_object_deps_done" = no; then
17275          if test -z "$predep_objects_CXX"; then
17276            predep_objects_CXX="$p"
17277          else
17278            predep_objects_CXX="$predep_objects_CXX $p"
17279          fi
17280        else
17281          if test -z "$postdep_objects_CXX"; then
17282            postdep_objects_CXX="$p"
17283          else
17284            postdep_objects_CXX="$postdep_objects_CXX $p"
17285          fi
17286        fi
17287        ;;
17288
17289     *) ;; # Ignore the rest.
17290
17291     esac
17292   done
17293
17294   # Clean up.
17295   rm -f a.out a.exe
17296 else
17297   echo "libtool.m4: error: problem compiling CXX test program"
17298 fi
17299
17300 $rm -f confest.$objext
17301
17302 case " $postdeps_CXX " in
17303 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17304 esac
17305
17306 lt_prog_compiler_wl_CXX=
17307 lt_prog_compiler_pic_CXX=
17308 lt_prog_compiler_static_CXX=
17309
17310 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17311 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17312
17313   # C++ specific cases for pic, static, wl, etc.
17314   if test "$GXX" = yes; then
17315     lt_prog_compiler_wl_CXX='-Wl,'
17316     lt_prog_compiler_static_CXX='-static'
17317
17318     case $host_os in
17319     aix*)
17320       # All AIX code is PIC.
17321       if test "$host_cpu" = ia64; then
17322         # AIX 5 now supports IA64 processor
17323         lt_prog_compiler_static_CXX='-Bstatic'
17324       fi
17325       ;;
17326     amigaos*)
17327       # FIXME: we need at least 68020 code to build shared libraries, but
17328       # adding the `-m68020' flag to GCC prevents building anything better,
17329       # like `-m68040'.
17330       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17331       ;;
17332     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17333       # PIC is the default for these OSes.
17334       ;;
17335     mingw* | os2* | pw32*)
17336       # This hack is so that the source file can tell whether it is being
17337       # built for inclusion in a dll (and should export symbols for example).
17338       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17339       ;;
17340     darwin* | rhapsody*)
17341       # PIC is the default on this platform
17342       # Common symbols not allowed in MH_DYLIB files
17343       lt_prog_compiler_pic_CXX='-fno-common'
17344       ;;
17345     *djgpp*)
17346       # DJGPP does not support shared libraries at all
17347       lt_prog_compiler_pic_CXX=
17348       ;;
17349     sysv4*MP*)
17350       if test -d /usr/nec; then
17351         lt_prog_compiler_pic_CXX=-Kconform_pic
17352       fi
17353       ;;
17354     hpux*)
17355       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17356       # not for PA HP-UX.
17357       case "$host_cpu" in
17358       hppa*64*|ia64*)
17359         ;;
17360       *)
17361         lt_prog_compiler_pic_CXX='-fPIC'
17362         ;;
17363       esac
17364       ;;
17365     *)
17366       lt_prog_compiler_pic_CXX='-fPIC'
17367       ;;
17368     esac
17369   else
17370     case $host_os in
17371       aix4* | aix5*)
17372         # All AIX code is PIC.
17373         if test "$host_cpu" = ia64; then
17374           # AIX 5 now supports IA64 processor
17375           lt_prog_compiler_static_CXX='-Bstatic'
17376         else
17377           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17378         fi
17379         ;;
17380       chorus*)
17381         case $cc_basename in
17382         cxch68*)
17383           # Green Hills C++ Compiler
17384           # _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"
17385           ;;
17386         esac
17387         ;;
17388        darwin*)
17389          # PIC is the default on this platform
17390          # Common symbols not allowed in MH_DYLIB files
17391          case $cc_basename in
17392            xlc*)
17393            lt_prog_compiler_pic_CXX='-qnocommon'
17394            lt_prog_compiler_wl_CXX='-Wl,'
17395            ;;
17396          esac
17397        ;;
17398       dgux*)
17399         case $cc_basename in
17400           ec++*)
17401             lt_prog_compiler_pic_CXX='-KPIC'
17402             ;;
17403           ghcx*)
17404             # Green Hills C++ Compiler
17405             lt_prog_compiler_pic_CXX='-pic'
17406             ;;
17407           *)
17408             ;;
17409         esac
17410         ;;
17411       freebsd* | kfreebsd*-gnu | dragonfly*)
17412         # FreeBSD uses GNU C++
17413         ;;
17414       hpux9* | hpux10* | hpux11*)
17415         case $cc_basename in
17416           CC*)
17417             lt_prog_compiler_wl_CXX='-Wl,'
17418             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17419             if test "$host_cpu" != ia64; then
17420               lt_prog_compiler_pic_CXX='+Z'
17421             fi
17422             ;;
17423           aCC*)
17424             lt_prog_compiler_wl_CXX='-Wl,'
17425             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17426             case "$host_cpu" in
17427             hppa*64*|ia64*)
17428               # +Z the default
17429               ;;
17430             *)
17431               lt_prog_compiler_pic_CXX='+Z'
17432               ;;
17433             esac
17434             ;;
17435           *)
17436             ;;
17437         esac
17438         ;;
17439       irix5* | irix6* | nonstopux*)
17440         case $cc_basename in
17441           CC*)
17442             lt_prog_compiler_wl_CXX='-Wl,'
17443             lt_prog_compiler_static_CXX='-non_shared'
17444             # CC pic flag -KPIC is the default.
17445             ;;
17446           *)
17447             ;;
17448         esac
17449         ;;
17450       linux*)
17451         case $cc_basename in
17452           KCC*)
17453             # KAI C++ Compiler
17454             lt_prog_compiler_wl_CXX='--backend -Wl,'
17455             lt_prog_compiler_pic_CXX='-fPIC'
17456             ;;
17457           icpc* | ecpc*)
17458             # Intel C++
17459             lt_prog_compiler_wl_CXX='-Wl,'
17460             lt_prog_compiler_pic_CXX='-KPIC'
17461             lt_prog_compiler_static_CXX='-static'
17462             ;;
17463           pgCC*)
17464             # Portland Group C++ compiler.
17465             lt_prog_compiler_wl_CXX='-Wl,'
17466             lt_prog_compiler_pic_CXX='-fpic'
17467             lt_prog_compiler_static_CXX='-static'
17468             ;;
17469           cxx*)
17470             # Compaq C++
17471             # Make sure the PIC flag is empty.  It appears that all Alpha
17472             # Linux and Compaq Tru64 Unix objects are PIC.
17473             lt_prog_compiler_pic_CXX=
17474             lt_prog_compiler_static_CXX='-non_shared'
17475             ;;
17476           *)
17477             ;;
17478         esac
17479         ;;
17480       lynxos*)
17481         ;;
17482       m88k*)
17483         ;;
17484       mvs*)
17485         case $cc_basename in
17486           cxx*)
17487             lt_prog_compiler_pic_CXX='-W c,exportall'
17488             ;;
17489           *)
17490             ;;
17491         esac
17492         ;;
17493       netbsd*)
17494         ;;
17495       osf3* | osf4* | osf5*)
17496         case $cc_basename in
17497           KCC*)
17498             lt_prog_compiler_wl_CXX='--backend -Wl,'
17499             ;;
17500           RCC*)
17501             # Rational C++ 2.4.1
17502             lt_prog_compiler_pic_CXX='-pic'
17503             ;;
17504           cxx*)
17505             # Digital/Compaq C++
17506             lt_prog_compiler_wl_CXX='-Wl,'
17507             # Make sure the PIC flag is empty.  It appears that all Alpha
17508             # Linux and Compaq Tru64 Unix objects are PIC.
17509             lt_prog_compiler_pic_CXX=
17510             lt_prog_compiler_static_CXX='-non_shared'
17511             ;;
17512           *)
17513             ;;
17514         esac
17515         ;;
17516       psos*)
17517         ;;
17518       sco*)
17519         case $cc_basename in
17520           CC*)
17521             lt_prog_compiler_pic_CXX='-fPIC'
17522             ;;
17523           *)
17524             ;;
17525         esac
17526         ;;
17527       solaris*)
17528         case $cc_basename in
17529           CC*)
17530             # Sun C++ 4.2, 5.x and Centerline C++
17531             lt_prog_compiler_pic_CXX='-KPIC'
17532             lt_prog_compiler_static_CXX='-Bstatic'
17533             lt_prog_compiler_wl_CXX='-Qoption ld '
17534             ;;
17535           gcx*)
17536             # Green Hills C++ Compiler
17537             lt_prog_compiler_pic_CXX='-PIC'
17538             ;;
17539           *)
17540             ;;
17541         esac
17542         ;;
17543       sunos4*)
17544         case $cc_basename in
17545           CC*)
17546             # Sun C++ 4.x
17547             lt_prog_compiler_pic_CXX='-pic'
17548             lt_prog_compiler_static_CXX='-Bstatic'
17549             ;;
17550           lcc*)
17551             # Lucid
17552             lt_prog_compiler_pic_CXX='-pic'
17553             ;;
17554           *)
17555             ;;
17556         esac
17557         ;;
17558       tandem*)
17559         case $cc_basename in
17560           NCC*)
17561             # NonStop-UX NCC 3.20
17562             lt_prog_compiler_pic_CXX='-KPIC'
17563             ;;
17564           *)
17565             ;;
17566         esac
17567         ;;
17568       unixware*)
17569         ;;
17570       vxworks*)
17571         ;;
17572       *)
17573         lt_prog_compiler_can_build_shared_CXX=no
17574         ;;
17575     esac
17576   fi
17577
17578 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17579 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17580
17581 #
17582 # Check to make sure the PIC flag actually works.
17583 #
17584 if test -n "$lt_prog_compiler_pic_CXX"; then
17585
17586 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17587 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17588 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17589   echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591   lt_prog_compiler_pic_works_CXX=no
17592   ac_outfile=conftest.$ac_objext
17593    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17594    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17595    # Insert the option either (1) after the last *FLAGS variable, or
17596    # (2) before a word containing "conftest.", or (3) at the end.
17597    # Note that $ac_compile itself does not contain backslashes and begins
17598    # with a dollar sign (not a hyphen), so the echo should work correctly.
17599    # The option is referenced via a variable to avoid confusing sed.
17600    lt_compile=`echo "$ac_compile" | $SED \
17601    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17603    -e 's:$: $lt_compiler_flag:'`
17604    (eval echo "\"\$as_me:17604: $lt_compile\"" >&5)
17605    (eval "$lt_compile" 2>conftest.err)
17606    ac_status=$?
17607    cat conftest.err >&5
17608    echo "$as_me:17608: \$? = $ac_status" >&5
17609    if (exit $ac_status) && test -s "$ac_outfile"; then
17610      # The compiler can only warn and ignore the option if not recognized
17611      # So say no if there are warnings other than the usual output.
17612      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17613      $SED '/^$/d' conftest.err >conftest.er2
17614      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17615        lt_prog_compiler_pic_works_CXX=yes
17616      fi
17617    fi
17618    $rm conftest*
17619
17620 fi
17621 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17622 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17623
17624 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17625     case $lt_prog_compiler_pic_CXX in
17626      "" | " "*) ;;
17627      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17628      esac
17629 else
17630     lt_prog_compiler_pic_CXX=
17631      lt_prog_compiler_can_build_shared_CXX=no
17632 fi
17633
17634 fi
17635 case "$host_os" in
17636   # For platforms which do not support PIC, -DPIC is meaningless:
17637   *djgpp*)
17638     lt_prog_compiler_pic_CXX=
17639     ;;
17640   *)
17641     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17642     ;;
17643 esac
17644
17645 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17646 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17647 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17648   echo $ECHO_N "(cached) $ECHO_C" >&6
17649 else
17650   lt_cv_prog_compiler_c_o_CXX=no
17651    $rm -r conftest 2>/dev/null
17652    mkdir conftest
17653    cd conftest
17654    mkdir out
17655    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17656
17657    lt_compiler_flag="-o out/conftest2.$ac_objext"
17658    # Insert the option either (1) after the last *FLAGS variable, or
17659    # (2) before a word containing "conftest.", or (3) at the end.
17660    # Note that $ac_compile itself does not contain backslashes and begins
17661    # with a dollar sign (not a hyphen), so the echo should work correctly.
17662    lt_compile=`echo "$ac_compile" | $SED \
17663    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17664    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17665    -e 's:$: $lt_compiler_flag:'`
17666    (eval echo "\"\$as_me:17666: $lt_compile\"" >&5)
17667    (eval "$lt_compile" 2>out/conftest.err)
17668    ac_status=$?
17669    cat out/conftest.err >&5
17670    echo "$as_me:17670: \$? = $ac_status" >&5
17671    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17672    then
17673      # The compiler can only warn and ignore the option if not recognized
17674      # So say no if there are warnings
17675      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17676      $SED '/^$/d' out/conftest.err >out/conftest.er2
17677      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17678        lt_cv_prog_compiler_c_o_CXX=yes
17679      fi
17680    fi
17681    chmod u+w .
17682    $rm conftest*
17683    # SGI C++ compiler will create directory out/ii_files/ for
17684    # template instantiation
17685    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17686    $rm out/* && rmdir out
17687    cd ..
17688    rmdir conftest
17689    $rm conftest*
17690
17691 fi
17692 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17693 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17694
17695
17696 hard_links="nottested"
17697 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17698   # do not overwrite the value of need_locks provided by the user
17699   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17700 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17701   hard_links=yes
17702   $rm conftest*
17703   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17704   touch conftest.a
17705   ln conftest.a conftest.b 2>&5 || hard_links=no
17706   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17707   echo "$as_me:$LINENO: result: $hard_links" >&5
17708 echo "${ECHO_T}$hard_links" >&6
17709   if test "$hard_links" = no; then
17710     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17711 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17712     need_locks=warn
17713   fi
17714 else
17715   need_locks=no
17716 fi
17717
17718 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17719 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17720
17721   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17722   case $host_os in
17723   aix4* | aix5*)
17724     # If we're using GNU nm, then we don't want the "-C" option.
17725     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17726     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17727       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'
17728     else
17729       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'
17730     fi
17731     ;;
17732   pw32*)
17733     export_symbols_cmds_CXX="$ltdll_cmds"
17734   ;;
17735   cygwin* | mingw*)
17736     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17737   ;;
17738   *)
17739     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17740   ;;
17741   esac
17742
17743 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17744 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17745 test "$ld_shlibs_CXX" = no && can_build_shared=no
17746
17747 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17748 if test "$GCC" = yes; then
17749   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17750 fi
17751
17752 #
17753 # Do we need to explicitly link libc?
17754 #
17755 case "x$archive_cmds_need_lc_CXX" in
17756 x|xyes)
17757   # Assume -lc should be added
17758   archive_cmds_need_lc_CXX=yes
17759
17760   if test "$enable_shared" = yes && test "$GCC" = yes; then
17761     case $archive_cmds_CXX in
17762     *'~'*)
17763       # FIXME: we may have to deal with multi-command sequences.
17764       ;;
17765     '$CC '*)
17766       # Test whether the compiler implicitly links with -lc since on some
17767       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17768       # to ld, don't add -lc before -lgcc.
17769       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17770 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17771       $rm conftest*
17772       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17773
17774       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17775   (eval $ac_compile) 2>&5
17776   ac_status=$?
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); } 2>conftest.err; then
17779         soname=conftest
17780         lib=conftest
17781         libobjs=conftest.$ac_objext
17782         deplibs=
17783         wl=$lt_prog_compiler_wl_CXX
17784         compiler_flags=-v
17785         linker_flags=-v
17786         verstring=
17787         output_objdir=.
17788         libname=conftest
17789         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17790         allow_undefined_flag_CXX=
17791         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17792   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17793   ac_status=$?
17794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); }
17796         then
17797           archive_cmds_need_lc_CXX=no
17798         else
17799           archive_cmds_need_lc_CXX=yes
17800         fi
17801         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17802       else
17803         cat conftest.err 1>&5
17804       fi
17805       $rm conftest*
17806       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17807 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17808       ;;
17809     esac
17810   fi
17811   ;;
17812 esac
17813
17814 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17815 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17816 library_names_spec=
17817 libname_spec='lib$name'
17818 soname_spec=
17819 shrext_cmds=".so"
17820 postinstall_cmds=
17821 postuninstall_cmds=
17822 finish_cmds=
17823 finish_eval=
17824 shlibpath_var=
17825 shlibpath_overrides_runpath=unknown
17826 version_type=none
17827 dynamic_linker="$host_os ld.so"
17828 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17829 if test "$GCC" = yes; then
17830   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17831   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17832     # if the path contains ";" then we assume it to be the separator
17833     # otherwise default to the standard path separator (i.e. ":") - it is
17834     # assumed that no part of a normal pathname contains ";" but that should
17835     # okay in the real world where ";" in dirpaths is itself problematic.
17836     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17837   else
17838     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17839   fi
17840 else
17841   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17842 fi
17843 need_lib_prefix=unknown
17844 hardcode_into_libs=no
17845
17846 # when you set need_version to no, make sure it does not cause -set_version
17847 # flags to be left without arguments
17848 need_version=unknown
17849
17850 case $host_os in
17851 aix3*)
17852   version_type=linux
17853   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17854   shlibpath_var=LIBPATH
17855
17856   # AIX 3 has no versioning support, so we append a major version to the name.
17857   soname_spec='${libname}${release}${shared_ext}$major'
17858   ;;
17859
17860 aix4* | aix5*)
17861   version_type=linux
17862   need_lib_prefix=no
17863   need_version=no
17864   hardcode_into_libs=yes
17865   if test "$host_cpu" = ia64; then
17866     # AIX 5 supports IA64
17867     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17868     shlibpath_var=LD_LIBRARY_PATH
17869   else
17870     # With GCC up to 2.95.x, collect2 would create an import file
17871     # for dependence libraries.  The import file would start with
17872     # the line `#! .'.  This would cause the generated library to
17873     # depend on `.', always an invalid library.  This was fixed in
17874     # development snapshots of GCC prior to 3.0.
17875     case $host_os in
17876       aix4 | aix4.[01] | aix4.[01].*)
17877       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17878            echo ' yes '
17879            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17880         :
17881       else
17882         can_build_shared=no
17883       fi
17884       ;;
17885     esac
17886     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17887     # soname into executable. Probably we can add versioning support to
17888     # collect2, so additional links can be useful in future.
17889     if test "$aix_use_runtimelinking" = yes; then
17890       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17891       # instead of lib<name>.a to let people know that these are not
17892       # typical AIX shared libraries.
17893       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17894     else
17895       # We preserve .a as extension for shared libraries through AIX4.2
17896       # and later when we are not doing run time linking.
17897       library_names_spec='${libname}${release}.a $libname.a'
17898       soname_spec='${libname}${release}${shared_ext}$major'
17899     fi
17900     shlibpath_var=LIBPATH
17901   fi
17902   ;;
17903
17904 amigaos*)
17905   library_names_spec='$libname.ixlibrary $libname.a'
17906   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17907   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'
17908   ;;
17909
17910 beos*)
17911   library_names_spec='${libname}${shared_ext}'
17912   dynamic_linker="$host_os ld.so"
17913   shlibpath_var=LIBRARY_PATH
17914   ;;
17915
17916 bsdi[45]*)
17917   version_type=linux
17918   need_version=no
17919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17920   soname_spec='${libname}${release}${shared_ext}$major'
17921   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17922   shlibpath_var=LD_LIBRARY_PATH
17923   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17924   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17925   # the default ld.so.conf also contains /usr/contrib/lib and
17926   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17927   # libtool to hard-code these into programs
17928   ;;
17929
17930 cygwin* | mingw* | pw32*)
17931   version_type=windows
17932   shrext_cmds=".dll"
17933   need_version=no
17934   need_lib_prefix=no
17935
17936   case $GCC,$host_os in
17937   yes,cygwin* | yes,mingw* | yes,pw32*)
17938     library_names_spec='$libname.dll.a'
17939     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17940     postinstall_cmds='base_file=`basename \${file}`~
17941       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17942       dldir=$destdir/`dirname \$dlpath`~
17943       test -d \$dldir || mkdir -p \$dldir~
17944       $install_prog $dir/$dlname \$dldir/$dlname'
17945     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17946       dlpath=$dir/\$dldll~
17947        $rm \$dlpath'
17948     shlibpath_overrides_runpath=yes
17949
17950     case $host_os in
17951     cygwin*)
17952       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17953       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17954       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17955       ;;
17956     mingw*)
17957       # MinGW DLLs use traditional 'lib' prefix
17958       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17959       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17960       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17961         # It is most probably a Windows format PATH printed by
17962         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17963         # path with ; separators, and with drive letters. We can handle the
17964         # drive letters (cygwin fileutils understands them), so leave them,
17965         # especially as we might pass files found there to a mingw objdump,
17966         # which wouldn't understand a cygwinified path. Ahh.
17967         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17968       else
17969         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17970       fi
17971       ;;
17972     pw32*)
17973       # pw32 DLLs use 'pw' prefix rather than 'lib'
17974       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17975       ;;
17976     esac
17977     ;;
17978
17979   *)
17980     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17981     ;;
17982   esac
17983   dynamic_linker='Win32 ld.exe'
17984   # FIXME: first we should search . and the directory the executable is in
17985   shlibpath_var=PATH
17986   ;;
17987
17988 darwin* | rhapsody*)
17989   dynamic_linker="$host_os dyld"
17990   version_type=darwin
17991   need_lib_prefix=no
17992   need_version=no
17993   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17994   soname_spec='${libname}${release}${major}$shared_ext'
17995   shlibpath_overrides_runpath=yes
17996   shlibpath_var=DYLD_LIBRARY_PATH
17997   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17998   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17999   if test "$GCC" = yes; then
18000     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"`
18001   else
18002     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18003   fi
18004   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18005   ;;
18006
18007 dgux*)
18008   version_type=linux
18009   need_lib_prefix=no
18010   need_version=no
18011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18012   soname_spec='${libname}${release}${shared_ext}$major'
18013   shlibpath_var=LD_LIBRARY_PATH
18014   ;;
18015
18016 freebsd1*)
18017   dynamic_linker=no
18018   ;;
18019
18020 kfreebsd*-gnu)
18021   version_type=linux
18022   need_lib_prefix=no
18023   need_version=no
18024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18025   soname_spec='${libname}${release}${shared_ext}$major'
18026   shlibpath_var=LD_LIBRARY_PATH
18027   shlibpath_overrides_runpath=no
18028   hardcode_into_libs=yes
18029   dynamic_linker='GNU ld.so'
18030   ;;
18031
18032 freebsd* | dragonfly*)
18033   # DragonFly does not have aout.  When/if they implement a new
18034   # versioning mechanism, adjust this.
18035   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18036   version_type=freebsd-$objformat
18037   case $version_type in
18038     freebsd-elf*)
18039       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18040       need_version=no
18041       need_lib_prefix=no
18042       ;;
18043     freebsd-*)
18044       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18045       need_version=yes
18046       ;;
18047   esac
18048   shlibpath_var=LD_LIBRARY_PATH
18049   case $host_os in
18050   freebsd2*)
18051     shlibpath_overrides_runpath=yes
18052     ;;
18053   freebsd3.[01]* | freebsdelf3.[01]*)
18054     shlibpath_overrides_runpath=yes
18055     hardcode_into_libs=yes
18056     ;;
18057   *) # from 3.2 on
18058     shlibpath_overrides_runpath=no
18059     hardcode_into_libs=yes
18060     ;;
18061   esac
18062   ;;
18063
18064 gnu*)
18065   version_type=linux
18066   need_lib_prefix=no
18067   need_version=no
18068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18069   soname_spec='${libname}${release}${shared_ext}$major'
18070   shlibpath_var=LD_LIBRARY_PATH
18071   hardcode_into_libs=yes
18072   ;;
18073
18074 hpux9* | hpux10* | hpux11*)
18075   # Give a soname corresponding to the major version so that dld.sl refuses to
18076   # link against other versions.
18077   version_type=sunos
18078   need_lib_prefix=no
18079   need_version=no
18080   case "$host_cpu" in
18081   ia64*)
18082     shrext_cmds='.so'
18083     hardcode_into_libs=yes
18084     dynamic_linker="$host_os dld.so"
18085     shlibpath_var=LD_LIBRARY_PATH
18086     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18088     soname_spec='${libname}${release}${shared_ext}$major'
18089     if test "X$HPUX_IA64_MODE" = X32; then
18090       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18091     else
18092       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18093     fi
18094     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18095     ;;
18096    hppa*64*)
18097      shrext_cmds='.sl'
18098      hardcode_into_libs=yes
18099      dynamic_linker="$host_os dld.sl"
18100      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18101      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18102      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18103      soname_spec='${libname}${release}${shared_ext}$major'
18104      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18105      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18106      ;;
18107    *)
18108     shrext_cmds='.sl'
18109     dynamic_linker="$host_os dld.sl"
18110     shlibpath_var=SHLIB_PATH
18111     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18113     soname_spec='${libname}${release}${shared_ext}$major'
18114     ;;
18115   esac
18116   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18117   postinstall_cmds='chmod 555 $lib'
18118   ;;
18119
18120 irix5* | irix6* | nonstopux*)
18121   case $host_os in
18122     nonstopux*) version_type=nonstopux ;;
18123     *)
18124         if test "$lt_cv_prog_gnu_ld" = yes; then
18125                 version_type=linux
18126         else
18127                 version_type=irix
18128         fi ;;
18129   esac
18130   need_lib_prefix=no
18131   need_version=no
18132   soname_spec='${libname}${release}${shared_ext}$major'
18133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18134   case $host_os in
18135   irix5* | nonstopux*)
18136     libsuff= shlibsuff=
18137     ;;
18138   *)
18139     case $LD in # libtool.m4 will add one of these switches to LD
18140     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18141       libsuff= shlibsuff= libmagic=32-bit;;
18142     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18143       libsuff=32 shlibsuff=N32 libmagic=N32;;
18144     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18145       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18146     *) libsuff= shlibsuff= libmagic=never-match;;
18147     esac
18148     ;;
18149   esac
18150   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18151   shlibpath_overrides_runpath=no
18152   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18153   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18154   hardcode_into_libs=yes
18155   ;;
18156
18157 # No shared lib support for Linux oldld, aout, or coff.
18158 linux*oldld* | linux*aout* | linux*coff*)
18159   dynamic_linker=no
18160   ;;
18161
18162 # This must be Linux ELF.
18163 linux*)
18164   version_type=linux
18165   need_lib_prefix=no
18166   need_version=no
18167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18168   soname_spec='${libname}${release}${shared_ext}$major'
18169   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18170   shlibpath_var=LD_LIBRARY_PATH
18171   shlibpath_overrides_runpath=no
18172   # This implies no fast_install, which is unacceptable.
18173   # Some rework will be needed to allow for fast_install
18174   # before this can be enabled.
18175   hardcode_into_libs=yes
18176
18177   # find out which ABI we are using
18178   libsuff=
18179   case "$host_cpu" in
18180   x86_64*|s390x*|powerpc64*)
18181     echo '#line 18181 "configure"' > conftest.$ac_ext
18182     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18183   (eval $ac_compile) 2>&5
18184   ac_status=$?
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); }; then
18187       case `/usr/bin/file conftest.$ac_objext` in
18188       *64-bit*)
18189         libsuff=64
18190         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18191         ;;
18192       esac
18193     fi
18194     rm -rf conftest*
18195     ;;
18196   esac
18197
18198   # Append ld.so.conf contents to the search path
18199   if test -f /etc/ld.so.conf; then
18200     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18201     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18202   fi
18203
18204   # We used to test for /lib/ld.so.1 and disable shared libraries on
18205   # powerpc, because MkLinux only supported shared libraries with the
18206   # GNU dynamic linker.  Since this was broken with cross compilers,
18207   # most powerpc-linux boxes support dynamic linking these days and
18208   # people can always --disable-shared, the test was removed, and we
18209   # assume the GNU/Linux dynamic linker is in use.
18210   dynamic_linker='GNU/Linux ld.so'
18211   ;;
18212
18213 knetbsd*-gnu)
18214   version_type=linux
18215   need_lib_prefix=no
18216   need_version=no
18217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18218   soname_spec='${libname}${release}${shared_ext}$major'
18219   shlibpath_var=LD_LIBRARY_PATH
18220   shlibpath_overrides_runpath=no
18221   hardcode_into_libs=yes
18222   dynamic_linker='GNU ld.so'
18223   ;;
18224
18225 netbsd*)
18226   version_type=sunos
18227   need_lib_prefix=no
18228   need_version=no
18229   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18231     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18232     dynamic_linker='NetBSD (a.out) ld.so'
18233   else
18234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18235     soname_spec='${libname}${release}${shared_ext}$major'
18236     dynamic_linker='NetBSD ld.elf_so'
18237   fi
18238   shlibpath_var=LD_LIBRARY_PATH
18239   shlibpath_overrides_runpath=yes
18240   hardcode_into_libs=yes
18241   ;;
18242
18243 newsos6)
18244   version_type=linux
18245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18246   shlibpath_var=LD_LIBRARY_PATH
18247   shlibpath_overrides_runpath=yes
18248   ;;
18249
18250 nto-qnx*)
18251   version_type=linux
18252   need_lib_prefix=no
18253   need_version=no
18254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18255   soname_spec='${libname}${release}${shared_ext}$major'
18256   shlibpath_var=LD_LIBRARY_PATH
18257   shlibpath_overrides_runpath=yes
18258   ;;
18259
18260 openbsd*)
18261   version_type=sunos
18262   need_lib_prefix=no
18263   need_version=no
18264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18265   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18266   shlibpath_var=LD_LIBRARY_PATH
18267   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18268     case $host_os in
18269       openbsd2.[89] | openbsd2.[89].*)
18270         shlibpath_overrides_runpath=no
18271         ;;
18272       *)
18273         shlibpath_overrides_runpath=yes
18274         ;;
18275       esac
18276   else
18277     shlibpath_overrides_runpath=yes
18278   fi
18279   ;;
18280
18281 os2*)
18282   libname_spec='$name'
18283   shrext_cmds=".dll"
18284   need_lib_prefix=no
18285   library_names_spec='$libname${shared_ext} $libname.a'
18286   dynamic_linker='OS/2 ld.exe'
18287   shlibpath_var=LIBPATH
18288   ;;
18289
18290 osf3* | osf4* | osf5*)
18291   version_type=osf
18292   need_lib_prefix=no
18293   need_version=no
18294   soname_spec='${libname}${release}${shared_ext}$major'
18295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18296   shlibpath_var=LD_LIBRARY_PATH
18297   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18298   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18299   ;;
18300
18301 sco3.2v5*)
18302   version_type=osf
18303   soname_spec='${libname}${release}${shared_ext}$major'
18304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305   shlibpath_var=LD_LIBRARY_PATH
18306   ;;
18307
18308 solaris*)
18309   version_type=linux
18310   need_lib_prefix=no
18311   need_version=no
18312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18313   soname_spec='${libname}${release}${shared_ext}$major'
18314   shlibpath_var=LD_LIBRARY_PATH
18315   shlibpath_overrides_runpath=yes
18316   hardcode_into_libs=yes
18317   # ldd complains unless libraries are executable
18318   postinstall_cmds='chmod +x $lib'
18319   ;;
18320
18321 sunos4*)
18322   version_type=sunos
18323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18324   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18325   shlibpath_var=LD_LIBRARY_PATH
18326   shlibpath_overrides_runpath=yes
18327   if test "$with_gnu_ld" = yes; then
18328     need_lib_prefix=no
18329   fi
18330   need_version=yes
18331   ;;
18332
18333 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18334   version_type=linux
18335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18336   soname_spec='${libname}${release}${shared_ext}$major'
18337   shlibpath_var=LD_LIBRARY_PATH
18338   case $host_vendor in
18339     sni)
18340       shlibpath_overrides_runpath=no
18341       need_lib_prefix=no
18342       export_dynamic_flag_spec='${wl}-Blargedynsym'
18343       runpath_var=LD_RUN_PATH
18344       ;;
18345     siemens)
18346       need_lib_prefix=no
18347       ;;
18348     motorola)
18349       need_lib_prefix=no
18350       need_version=no
18351       shlibpath_overrides_runpath=no
18352       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18353       ;;
18354   esac
18355   ;;
18356
18357 sysv4*MP*)
18358   if test -d /usr/nec ;then
18359     version_type=linux
18360     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18361     soname_spec='$libname${shared_ext}.$major'
18362     shlibpath_var=LD_LIBRARY_PATH
18363   fi
18364   ;;
18365
18366 uts4*)
18367   version_type=linux
18368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18369   soname_spec='${libname}${release}${shared_ext}$major'
18370   shlibpath_var=LD_LIBRARY_PATH
18371   ;;
18372
18373 *)
18374   dynamic_linker=no
18375   ;;
18376 esac
18377 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18378 echo "${ECHO_T}$dynamic_linker" >&6
18379 test "$dynamic_linker" = no && can_build_shared=no
18380
18381 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18382 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18383 hardcode_action_CXX=
18384 if test -n "$hardcode_libdir_flag_spec_CXX" || \
18385    test -n "$runpath_var_CXX" || \
18386    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18387
18388   # We can hardcode non-existant directories.
18389   if test "$hardcode_direct_CXX" != no &&
18390      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18391      # have to relink, otherwise we might link with an installed library
18392      # when we should be linking with a yet-to-be-installed one
18393      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18394      test "$hardcode_minus_L_CXX" != no; then
18395     # Linking always hardcodes the temporary library directory.
18396     hardcode_action_CXX=relink
18397   else
18398     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18399     hardcode_action_CXX=immediate
18400   fi
18401 else
18402   # We cannot hardcode anything, or else we can only hardcode existing
18403   # directories.
18404   hardcode_action_CXX=unsupported
18405 fi
18406 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18407 echo "${ECHO_T}$hardcode_action_CXX" >&6
18408
18409 if test "$hardcode_action_CXX" = relink; then
18410   # Fast installation is not supported
18411   enable_fast_install=no
18412 elif test "$shlibpath_overrides_runpath" = yes ||
18413      test "$enable_shared" = no; then
18414   # Fast installation is not necessary
18415   enable_fast_install=needless
18416 fi
18417
18418 striplib=
18419 old_striplib=
18420 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18421 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18422 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18423   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18424   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18425   echo "$as_me:$LINENO: result: yes" >&5
18426 echo "${ECHO_T}yes" >&6
18427 else
18428 # FIXME - insert some real tests, host_os isn't really good enough
18429   case $host_os in
18430    darwin*)
18431        if test -n "$STRIP" ; then
18432          striplib="$STRIP -x"
18433          echo "$as_me:$LINENO: result: yes" >&5
18434 echo "${ECHO_T}yes" >&6
18435        else
18436   echo "$as_me:$LINENO: result: no" >&5
18437 echo "${ECHO_T}no" >&6
18438 fi
18439        ;;
18440    *)
18441   echo "$as_me:$LINENO: result: no" >&5
18442 echo "${ECHO_T}no" >&6
18443     ;;
18444   esac
18445 fi
18446
18447 if test "x$enable_dlopen" != xyes; then
18448   enable_dlopen=unknown
18449   enable_dlopen_self=unknown
18450   enable_dlopen_self_static=unknown
18451 else
18452   lt_cv_dlopen=no
18453   lt_cv_dlopen_libs=
18454
18455   case $host_os in
18456   beos*)
18457     lt_cv_dlopen="load_add_on"
18458     lt_cv_dlopen_libs=
18459     lt_cv_dlopen_self=yes
18460     ;;
18461
18462   mingw* | pw32*)
18463     lt_cv_dlopen="LoadLibrary"
18464     lt_cv_dlopen_libs=
18465    ;;
18466
18467   cygwin*)
18468     lt_cv_dlopen="dlopen"
18469     lt_cv_dlopen_libs=
18470    ;;
18471
18472   darwin*)
18473   # if libdl is installed we need to link against it
18474     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18475 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18476 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18477   echo $ECHO_N "(cached) $ECHO_C" >&6
18478 else
18479   ac_check_lib_save_LIBS=$LIBS
18480 LIBS="-ldl  $LIBS"
18481 cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h.  */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h.  */
18487
18488 /* Override any gcc2 internal prototype to avoid an error.  */
18489 #ifdef __cplusplus
18490 extern "C"
18491 #endif
18492 /* We use char because int might match the return type of a gcc2
18493    builtin and then its argument prototype would still apply.  */
18494 char dlopen ();
18495 int
18496 main ()
18497 {
18498 dlopen ();
18499   ;
18500   return 0;
18501 }
18502 _ACEOF
18503 rm -f conftest.$ac_objext conftest$ac_exeext
18504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18505   (eval $ac_link) 2>conftest.er1
18506   ac_status=$?
18507   grep -v '^ *+' conftest.er1 >conftest.err
18508   rm -f conftest.er1
18509   cat conftest.err >&5
18510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511   (exit $ac_status); } &&
18512          { ac_try='test -z "$ac_cxx_werror_flag"
18513                          || test ! -s conftest.err'
18514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515   (eval $ac_try) 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); }; } &&
18519          { ac_try='test -s conftest$ac_exeext'
18520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521   (eval $ac_try) 2>&5
18522   ac_status=$?
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); }; }; then
18525   ac_cv_lib_dl_dlopen=yes
18526 else
18527   echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18529
18530 ac_cv_lib_dl_dlopen=no
18531 fi
18532 rm -f conftest.err conftest.$ac_objext \
18533       conftest$ac_exeext conftest.$ac_ext
18534 LIBS=$ac_check_lib_save_LIBS
18535 fi
18536 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18537 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18538 if test $ac_cv_lib_dl_dlopen = yes; then
18539   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18540 else
18541
18542     lt_cv_dlopen="dyld"
18543     lt_cv_dlopen_libs=
18544     lt_cv_dlopen_self=yes
18545
18546 fi
18547
18548    ;;
18549
18550   *)
18551     echo "$as_me:$LINENO: checking for shl_load" >&5
18552 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18553 if test "${ac_cv_func_shl_load+set}" = set; then
18554   echo $ECHO_N "(cached) $ECHO_C" >&6
18555 else
18556   cat >conftest.$ac_ext <<_ACEOF
18557 /* confdefs.h.  */
18558 _ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h.  */
18562 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18564 #define shl_load innocuous_shl_load
18565
18566 /* System header to define __stub macros and hopefully few prototypes,
18567     which can conflict with char shl_load (); below.
18568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18569     <limits.h> exists even on freestanding compilers.  */
18570
18571 #ifdef __STDC__
18572 # include <limits.h>
18573 #else
18574 # include <assert.h>
18575 #endif
18576
18577 #undef shl_load
18578
18579 /* Override any gcc2 internal prototype to avoid an error.  */
18580 #ifdef __cplusplus
18581 extern "C"
18582 {
18583 #endif
18584 /* We use char because int might match the return type of a gcc2
18585    builtin and then its argument prototype would still apply.  */
18586 char shl_load ();
18587 /* The GNU C library defines this for functions which it implements
18588     to always fail with ENOSYS.  Some functions are actually named
18589     something starting with __ and the normal name is an alias.  */
18590 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18591 choke me
18592 #else
18593 char (*f) () = shl_load;
18594 #endif
18595 #ifdef __cplusplus
18596 }
18597 #endif
18598
18599 int
18600 main ()
18601 {
18602 return f != shl_load;
18603   ;
18604   return 0;
18605 }
18606 _ACEOF
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609   (eval $ac_link) 2>conftest.er1
18610   ac_status=$?
18611   grep -v '^ *+' conftest.er1 >conftest.err
18612   rm -f conftest.er1
18613   cat conftest.err >&5
18614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615   (exit $ac_status); } &&
18616          { ac_try='test -z "$ac_cxx_werror_flag"
18617                          || test ! -s conftest.err'
18618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619   (eval $ac_try) 2>&5
18620   ac_status=$?
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); }; } &&
18623          { ac_try='test -s conftest$ac_exeext'
18624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625   (eval $ac_try) 2>&5
18626   ac_status=$?
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); }; }; then
18629   ac_cv_func_shl_load=yes
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634 ac_cv_func_shl_load=no
18635 fi
18636 rm -f conftest.err conftest.$ac_objext \
18637       conftest$ac_exeext conftest.$ac_ext
18638 fi
18639 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18640 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18641 if test $ac_cv_func_shl_load = yes; then
18642   lt_cv_dlopen="shl_load"
18643 else
18644   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18645 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18646 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18647   echo $ECHO_N "(cached) $ECHO_C" >&6
18648 else
18649   ac_check_lib_save_LIBS=$LIBS
18650 LIBS="-ldld  $LIBS"
18651 cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h.  */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h.  */
18657
18658 /* Override any gcc2 internal prototype to avoid an error.  */
18659 #ifdef __cplusplus
18660 extern "C"
18661 #endif
18662 /* We use char because int might match the return type of a gcc2
18663    builtin and then its argument prototype would still apply.  */
18664 char shl_load ();
18665 int
18666 main ()
18667 {
18668 shl_load ();
18669   ;
18670   return 0;
18671 }
18672 _ACEOF
18673 rm -f conftest.$ac_objext conftest$ac_exeext
18674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18675   (eval $ac_link) 2>conftest.er1
18676   ac_status=$?
18677   grep -v '^ *+' conftest.er1 >conftest.err
18678   rm -f conftest.er1
18679   cat conftest.err >&5
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); } &&
18682          { ac_try='test -z "$ac_cxx_werror_flag"
18683                          || test ! -s conftest.err'
18684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685   (eval $ac_try) 2>&5
18686   ac_status=$?
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); }; } &&
18689          { ac_try='test -s conftest$ac_exeext'
18690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691   (eval $ac_try) 2>&5
18692   ac_status=$?
18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); }; }; then
18695   ac_cv_lib_dld_shl_load=yes
18696 else
18697   echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18699
18700 ac_cv_lib_dld_shl_load=no
18701 fi
18702 rm -f conftest.err conftest.$ac_objext \
18703       conftest$ac_exeext conftest.$ac_ext
18704 LIBS=$ac_check_lib_save_LIBS
18705 fi
18706 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18707 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18708 if test $ac_cv_lib_dld_shl_load = yes; then
18709   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18710 else
18711   echo "$as_me:$LINENO: checking for dlopen" >&5
18712 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18713 if test "${ac_cv_func_dlopen+set}" = set; then
18714   echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716   cat >conftest.$ac_ext <<_ACEOF
18717 /* confdefs.h.  */
18718 _ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h.  */
18722 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18724 #define dlopen innocuous_dlopen
18725
18726 /* System header to define __stub macros and hopefully few prototypes,
18727     which can conflict with char dlopen (); below.
18728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18729     <limits.h> exists even on freestanding compilers.  */
18730
18731 #ifdef __STDC__
18732 # include <limits.h>
18733 #else
18734 # include <assert.h>
18735 #endif
18736
18737 #undef dlopen
18738
18739 /* Override any gcc2 internal prototype to avoid an error.  */
18740 #ifdef __cplusplus
18741 extern "C"
18742 {
18743 #endif
18744 /* We use char because int might match the return type of a gcc2
18745    builtin and then its argument prototype would still apply.  */
18746 char dlopen ();
18747 /* The GNU C library defines this for functions which it implements
18748     to always fail with ENOSYS.  Some functions are actually named
18749     something starting with __ and the normal name is an alias.  */
18750 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18751 choke me
18752 #else
18753 char (*f) () = dlopen;
18754 #endif
18755 #ifdef __cplusplus
18756 }
18757 #endif
18758
18759 int
18760 main ()
18761 {
18762 return f != dlopen;
18763   ;
18764   return 0;
18765 }
18766 _ACEOF
18767 rm -f conftest.$ac_objext conftest$ac_exeext
18768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18769   (eval $ac_link) 2>conftest.er1
18770   ac_status=$?
18771   grep -v '^ *+' conftest.er1 >conftest.err
18772   rm -f conftest.er1
18773   cat conftest.err >&5
18774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775   (exit $ac_status); } &&
18776          { ac_try='test -z "$ac_cxx_werror_flag"
18777                          || test ! -s conftest.err'
18778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779   (eval $ac_try) 2>&5
18780   ac_status=$?
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); }; } &&
18783          { ac_try='test -s conftest$ac_exeext'
18784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785   (eval $ac_try) 2>&5
18786   ac_status=$?
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); }; }; then
18789   ac_cv_func_dlopen=yes
18790 else
18791   echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18793
18794 ac_cv_func_dlopen=no
18795 fi
18796 rm -f conftest.err conftest.$ac_objext \
18797       conftest$ac_exeext conftest.$ac_ext
18798 fi
18799 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18800 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18801 if test $ac_cv_func_dlopen = yes; then
18802   lt_cv_dlopen="dlopen"
18803 else
18804   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18805 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18806 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18807   echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809   ac_check_lib_save_LIBS=$LIBS
18810 LIBS="-ldl  $LIBS"
18811 cat >conftest.$ac_ext <<_ACEOF
18812 /* confdefs.h.  */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h.  */
18817
18818 /* Override any gcc2 internal prototype to avoid an error.  */
18819 #ifdef __cplusplus
18820 extern "C"
18821 #endif
18822 /* We use char because int might match the return type of a gcc2
18823    builtin and then its argument prototype would still apply.  */
18824 char dlopen ();
18825 int
18826 main ()
18827 {
18828 dlopen ();
18829   ;
18830   return 0;
18831 }
18832 _ACEOF
18833 rm -f conftest.$ac_objext conftest$ac_exeext
18834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18835   (eval $ac_link) 2>conftest.er1
18836   ac_status=$?
18837   grep -v '^ *+' conftest.er1 >conftest.err
18838   rm -f conftest.er1
18839   cat conftest.err >&5
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); } &&
18842          { ac_try='test -z "$ac_cxx_werror_flag"
18843                          || test ! -s conftest.err'
18844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845   (eval $ac_try) 2>&5
18846   ac_status=$?
18847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848   (exit $ac_status); }; } &&
18849          { ac_try='test -s conftest$ac_exeext'
18850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851   (eval $ac_try) 2>&5
18852   ac_status=$?
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); }; }; then
18855   ac_cv_lib_dl_dlopen=yes
18856 else
18857   echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18859
18860 ac_cv_lib_dl_dlopen=no
18861 fi
18862 rm -f conftest.err conftest.$ac_objext \
18863       conftest$ac_exeext conftest.$ac_ext
18864 LIBS=$ac_check_lib_save_LIBS
18865 fi
18866 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18867 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18868 if test $ac_cv_lib_dl_dlopen = yes; then
18869   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18870 else
18871   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18872 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18873 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18874   echo $ECHO_N "(cached) $ECHO_C" >&6
18875 else
18876   ac_check_lib_save_LIBS=$LIBS
18877 LIBS="-lsvld  $LIBS"
18878 cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h.  */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h.  */
18884
18885 /* Override any gcc2 internal prototype to avoid an error.  */
18886 #ifdef __cplusplus
18887 extern "C"
18888 #endif
18889 /* We use char because int might match the return type of a gcc2
18890    builtin and then its argument prototype would still apply.  */
18891 char dlopen ();
18892 int
18893 main ()
18894 {
18895 dlopen ();
18896   ;
18897   return 0;
18898 }
18899 _ACEOF
18900 rm -f conftest.$ac_objext conftest$ac_exeext
18901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18902   (eval $ac_link) 2>conftest.er1
18903   ac_status=$?
18904   grep -v '^ *+' conftest.er1 >conftest.err
18905   rm -f conftest.er1
18906   cat conftest.err >&5
18907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908   (exit $ac_status); } &&
18909          { ac_try='test -z "$ac_cxx_werror_flag"
18910                          || test ! -s conftest.err'
18911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18912   (eval $ac_try) 2>&5
18913   ac_status=$?
18914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915   (exit $ac_status); }; } &&
18916          { ac_try='test -s conftest$ac_exeext'
18917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918   (eval $ac_try) 2>&5
18919   ac_status=$?
18920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921   (exit $ac_status); }; }; then
18922   ac_cv_lib_svld_dlopen=yes
18923 else
18924   echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18926
18927 ac_cv_lib_svld_dlopen=no
18928 fi
18929 rm -f conftest.err conftest.$ac_objext \
18930       conftest$ac_exeext conftest.$ac_ext
18931 LIBS=$ac_check_lib_save_LIBS
18932 fi
18933 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18934 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18935 if test $ac_cv_lib_svld_dlopen = yes; then
18936   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18937 else
18938   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18939 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18940 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18941   echo $ECHO_N "(cached) $ECHO_C" >&6
18942 else
18943   ac_check_lib_save_LIBS=$LIBS
18944 LIBS="-ldld  $LIBS"
18945 cat >conftest.$ac_ext <<_ACEOF
18946 /* confdefs.h.  */
18947 _ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h.  */
18951
18952 /* Override any gcc2 internal prototype to avoid an error.  */
18953 #ifdef __cplusplus
18954 extern "C"
18955 #endif
18956 /* We use char because int might match the return type of a gcc2
18957    builtin and then its argument prototype would still apply.  */
18958 char dld_link ();
18959 int
18960 main ()
18961 {
18962 dld_link ();
18963   ;
18964   return 0;
18965 }
18966 _ACEOF
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18969   (eval $ac_link) 2>conftest.er1
18970   ac_status=$?
18971   grep -v '^ *+' conftest.er1 >conftest.err
18972   rm -f conftest.er1
18973   cat conftest.err >&5
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); } &&
18976          { ac_try='test -z "$ac_cxx_werror_flag"
18977                          || test ! -s conftest.err'
18978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979   (eval $ac_try) 2>&5
18980   ac_status=$?
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); }; } &&
18983          { ac_try='test -s conftest$ac_exeext'
18984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985   (eval $ac_try) 2>&5
18986   ac_status=$?
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); }; }; then
18989   ac_cv_lib_dld_dld_link=yes
18990 else
18991   echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18993
18994 ac_cv_lib_dld_dld_link=no
18995 fi
18996 rm -f conftest.err conftest.$ac_objext \
18997       conftest$ac_exeext conftest.$ac_ext
18998 LIBS=$ac_check_lib_save_LIBS
18999 fi
19000 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19001 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19002 if test $ac_cv_lib_dld_dld_link = yes; then
19003   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19004 fi
19005
19006
19007 fi
19008
19009
19010 fi
19011
19012
19013 fi
19014
19015
19016 fi
19017
19018
19019 fi
19020
19021     ;;
19022   esac
19023
19024   if test "x$lt_cv_dlopen" != xno; then
19025     enable_dlopen=yes
19026   else
19027     enable_dlopen=no
19028   fi
19029
19030   case $lt_cv_dlopen in
19031   dlopen)
19032     save_CPPFLAGS="$CPPFLAGS"
19033     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19034
19035     save_LDFLAGS="$LDFLAGS"
19036     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19037
19038     save_LIBS="$LIBS"
19039     LIBS="$lt_cv_dlopen_libs $LIBS"
19040
19041     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19042 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19043 if test "${lt_cv_dlopen_self+set}" = set; then
19044   echo $ECHO_N "(cached) $ECHO_C" >&6
19045 else
19046           if test "$cross_compiling" = yes; then :
19047   lt_cv_dlopen_self=cross
19048 else
19049   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19050   lt_status=$lt_dlunknown
19051   cat > conftest.$ac_ext <<EOF
19052 #line 19052 "configure"
19053 #include "confdefs.h"
19054
19055 #if HAVE_DLFCN_H
19056 #include <dlfcn.h>
19057 #endif
19058
19059 #include <stdio.h>
19060
19061 #ifdef RTLD_GLOBAL
19062 #  define LT_DLGLOBAL           RTLD_GLOBAL
19063 #else
19064 #  ifdef DL_GLOBAL
19065 #    define LT_DLGLOBAL         DL_GLOBAL
19066 #  else
19067 #    define LT_DLGLOBAL         0
19068 #  endif
19069 #endif
19070
19071 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19072    find out it does not work in some platform. */
19073 #ifndef LT_DLLAZY_OR_NOW
19074 #  ifdef RTLD_LAZY
19075 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19076 #  else
19077 #    ifdef DL_LAZY
19078 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19079 #    else
19080 #      ifdef RTLD_NOW
19081 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19082 #      else
19083 #        ifdef DL_NOW
19084 #          define LT_DLLAZY_OR_NOW      DL_NOW
19085 #        else
19086 #          define LT_DLLAZY_OR_NOW      0
19087 #        endif
19088 #      endif
19089 #    endif
19090 #  endif
19091 #endif
19092
19093 #ifdef __cplusplus
19094 extern "C" void exit (int);
19095 #endif
19096
19097 void fnord() { int i=42;}
19098 int main ()
19099 {
19100   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19101   int status = $lt_dlunknown;
19102
19103   if (self)
19104     {
19105       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19106       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19107       /* dlclose (self); */
19108     }
19109
19110     exit (status);
19111 }
19112 EOF
19113   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19114   (eval $ac_link) 2>&5
19115   ac_status=$?
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19118     (./conftest; exit; ) 2>/dev/null
19119     lt_status=$?
19120     case x$lt_status in
19121       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19122       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19123       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19124     esac
19125   else :
19126     # compilation failed
19127     lt_cv_dlopen_self=no
19128   fi
19129 fi
19130 rm -fr conftest*
19131
19132
19133 fi
19134 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19135 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19136
19137     if test "x$lt_cv_dlopen_self" = xyes; then
19138       LDFLAGS="$LDFLAGS $link_static_flag"
19139       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19140 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19141 if test "${lt_cv_dlopen_self_static+set}" = set; then
19142   echo $ECHO_N "(cached) $ECHO_C" >&6
19143 else
19144           if test "$cross_compiling" = yes; then :
19145   lt_cv_dlopen_self_static=cross
19146 else
19147   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19148   lt_status=$lt_dlunknown
19149   cat > conftest.$ac_ext <<EOF
19150 #line 19150 "configure"
19151 #include "confdefs.h"
19152
19153 #if HAVE_DLFCN_H
19154 #include <dlfcn.h>
19155 #endif
19156
19157 #include <stdio.h>
19158
19159 #ifdef RTLD_GLOBAL
19160 #  define LT_DLGLOBAL           RTLD_GLOBAL
19161 #else
19162 #  ifdef DL_GLOBAL
19163 #    define LT_DLGLOBAL         DL_GLOBAL
19164 #  else
19165 #    define LT_DLGLOBAL         0
19166 #  endif
19167 #endif
19168
19169 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19170    find out it does not work in some platform. */
19171 #ifndef LT_DLLAZY_OR_NOW
19172 #  ifdef RTLD_LAZY
19173 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19174 #  else
19175 #    ifdef DL_LAZY
19176 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19177 #    else
19178 #      ifdef RTLD_NOW
19179 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19180 #      else
19181 #        ifdef DL_NOW
19182 #          define LT_DLLAZY_OR_NOW      DL_NOW
19183 #        else
19184 #          define LT_DLLAZY_OR_NOW      0
19185 #        endif
19186 #      endif
19187 #    endif
19188 #  endif
19189 #endif
19190
19191 #ifdef __cplusplus
19192 extern "C" void exit (int);
19193 #endif
19194
19195 void fnord() { int i=42;}
19196 int main ()
19197 {
19198   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19199   int status = $lt_dlunknown;
19200
19201   if (self)
19202     {
19203       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19204       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19205       /* dlclose (self); */
19206     }
19207
19208     exit (status);
19209 }
19210 EOF
19211   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19212   (eval $ac_link) 2>&5
19213   ac_status=$?
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19216     (./conftest; exit; ) 2>/dev/null
19217     lt_status=$?
19218     case x$lt_status in
19219       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19220       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19221       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19222     esac
19223   else :
19224     # compilation failed
19225     lt_cv_dlopen_self_static=no
19226   fi
19227 fi
19228 rm -fr conftest*
19229
19230
19231 fi
19232 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19233 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19234     fi
19235
19236     CPPFLAGS="$save_CPPFLAGS"
19237     LDFLAGS="$save_LDFLAGS"
19238     LIBS="$save_LIBS"
19239     ;;
19240   esac
19241
19242   case $lt_cv_dlopen_self in
19243   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19244   *) enable_dlopen_self=unknown ;;
19245   esac
19246
19247   case $lt_cv_dlopen_self_static in
19248   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19249   *) enable_dlopen_self_static=unknown ;;
19250   esac
19251 fi
19252
19253
19254 # The else clause should only fire when bootstrapping the
19255 # libtool distribution, otherwise you forgot to ship ltmain.sh
19256 # with your package, and you will get complaints that there are
19257 # no rules to generate ltmain.sh.
19258 if test -f "$ltmain"; then
19259   # See if we are running on zsh, and set the options which allow our commands through
19260   # without removal of \ escapes.
19261   if test -n "${ZSH_VERSION+set}" ; then
19262     setopt NO_GLOB_SUBST
19263   fi
19264   # Now quote all the things that may contain metacharacters while being
19265   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19266   # variables and quote the copies for generation of the libtool script.
19267   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19268     SED SHELL STRIP \
19269     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19270     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19271     deplibs_check_method reload_flag reload_cmds need_locks \
19272     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19273     lt_cv_sys_global_symbol_to_c_name_address \
19274     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19275     old_postinstall_cmds old_postuninstall_cmds \
19276     compiler_CXX \
19277     CC_CXX \
19278     LD_CXX \
19279     lt_prog_compiler_wl_CXX \
19280     lt_prog_compiler_pic_CXX \
19281     lt_prog_compiler_static_CXX \
19282     lt_prog_compiler_no_builtin_flag_CXX \
19283     export_dynamic_flag_spec_CXX \
19284     thread_safe_flag_spec_CXX \
19285     whole_archive_flag_spec_CXX \
19286     enable_shared_with_static_runtimes_CXX \
19287     old_archive_cmds_CXX \
19288     old_archive_from_new_cmds_CXX \
19289     predep_objects_CXX \
19290     postdep_objects_CXX \
19291     predeps_CXX \
19292     postdeps_CXX \
19293     compiler_lib_search_path_CXX \
19294     archive_cmds_CXX \
19295     archive_expsym_cmds_CXX \
19296     postinstall_cmds_CXX \
19297     postuninstall_cmds_CXX \
19298     old_archive_from_expsyms_cmds_CXX \
19299     allow_undefined_flag_CXX \
19300     no_undefined_flag_CXX \
19301     export_symbols_cmds_CXX \
19302     hardcode_libdir_flag_spec_CXX \
19303     hardcode_libdir_flag_spec_ld_CXX \
19304     hardcode_libdir_separator_CXX \
19305     hardcode_automatic_CXX \
19306     module_cmds_CXX \
19307     module_expsym_cmds_CXX \
19308     lt_cv_prog_compiler_c_o_CXX \
19309     exclude_expsyms_CXX \
19310     include_expsyms_CXX; do
19311
19312     case $var in
19313     old_archive_cmds_CXX | \
19314     old_archive_from_new_cmds_CXX | \
19315     archive_cmds_CXX | \
19316     archive_expsym_cmds_CXX | \
19317     module_cmds_CXX | \
19318     module_expsym_cmds_CXX | \
19319     old_archive_from_expsyms_cmds_CXX | \
19320     export_symbols_cmds_CXX | \
19321     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19322     postinstall_cmds | postuninstall_cmds | \
19323     old_postinstall_cmds | old_postuninstall_cmds | \
19324     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19325       # Double-quote double-evaled strings.
19326       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19327       ;;
19328     *)
19329       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19330       ;;
19331     esac
19332   done
19333
19334   case $lt_echo in
19335   *'\$0 --fallback-echo"')
19336     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19337     ;;
19338   esac
19339
19340 cfgfile="$ofile"
19341
19342   cat <<__EOF__ >> "$cfgfile"
19343 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19344
19345 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19346
19347 # Shell to use when invoking shell scripts.
19348 SHELL=$lt_SHELL
19349
19350 # Whether or not to build shared libraries.
19351 build_libtool_libs=$enable_shared
19352
19353 # Whether or not to build static libraries.
19354 build_old_libs=$enable_static
19355
19356 # Whether or not to add -lc for building shared libraries.
19357 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19358
19359 # Whether or not to disallow shared libs when runtime libs are static
19360 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19361
19362 # Whether or not to optimize for fast installation.
19363 fast_install=$enable_fast_install
19364
19365 # The host system.
19366 host_alias=$host_alias
19367 host=$host
19368 host_os=$host_os
19369
19370 # The build system.
19371 build_alias=$build_alias
19372 build=$build
19373 build_os=$build_os
19374
19375 # An echo program that does not interpret backslashes.
19376 echo=$lt_echo
19377
19378 # The archiver.
19379 AR=$lt_AR
19380 AR_FLAGS=$lt_AR_FLAGS
19381
19382 # A C compiler.
19383 LTCC=$lt_LTCC
19384
19385 # A language-specific compiler.
19386 CC=$lt_compiler_CXX
19387
19388 # Is the compiler the GNU C compiler?
19389 with_gcc=$GCC_CXX
19390
19391 # An ERE matcher.
19392 EGREP=$lt_EGREP
19393
19394 # The linker used to build libraries.
19395 LD=$lt_LD_CXX
19396
19397 # Whether we need hard or soft links.
19398 LN_S=$lt_LN_S
19399
19400 # A BSD-compatible nm program.
19401 NM=$lt_NM
19402
19403 # A symbol stripping program
19404 STRIP=$lt_STRIP
19405
19406 # Used to examine libraries when file_magic_cmd begins "file"
19407 MAGIC_CMD=$MAGIC_CMD
19408
19409 # Used on cygwin: DLL creation program.
19410 DLLTOOL="$DLLTOOL"
19411
19412 # Used on cygwin: object dumper.
19413 OBJDUMP="$OBJDUMP"
19414
19415 # Used on cygwin: assembler.
19416 AS="$AS"
19417
19418 # The name of the directory that contains temporary libtool files.
19419 objdir=$objdir
19420
19421 # How to create reloadable object files.
19422 reload_flag=$lt_reload_flag
19423 reload_cmds=$lt_reload_cmds
19424
19425 # How to pass a linker flag through the compiler.
19426 wl=$lt_lt_prog_compiler_wl_CXX
19427
19428 # Object file suffix (normally "o").
19429 objext="$ac_objext"
19430
19431 # Old archive suffix (normally "a").
19432 libext="$libext"
19433
19434 # Shared library suffix (normally ".so").
19435 shrext_cmds='$shrext_cmds'
19436
19437 # Executable file suffix (normally "").
19438 exeext="$exeext"
19439
19440 # Additional compiler flags for building library objects.
19441 pic_flag=$lt_lt_prog_compiler_pic_CXX
19442 pic_mode=$pic_mode
19443
19444 # What is the maximum length of a command?
19445 max_cmd_len=$lt_cv_sys_max_cmd_len
19446
19447 # Does compiler simultaneously support -c and -o options?
19448 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19449
19450 # Must we lock files when doing compilation?
19451 need_locks=$lt_need_locks
19452
19453 # Do we need the lib prefix for modules?
19454 need_lib_prefix=$need_lib_prefix
19455
19456 # Do we need a version for libraries?
19457 need_version=$need_version
19458
19459 # Whether dlopen is supported.
19460 dlopen_support=$enable_dlopen
19461
19462 # Whether dlopen of programs is supported.
19463 dlopen_self=$enable_dlopen_self
19464
19465 # Whether dlopen of statically linked programs is supported.
19466 dlopen_self_static=$enable_dlopen_self_static
19467
19468 # Compiler flag to prevent dynamic linking.
19469 link_static_flag=$lt_lt_prog_compiler_static_CXX
19470
19471 # Compiler flag to turn off builtin functions.
19472 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19473
19474 # Compiler flag to allow reflexive dlopens.
19475 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19476
19477 # Compiler flag to generate shared objects directly from archives.
19478 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19479
19480 # Compiler flag to generate thread-safe objects.
19481 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19482
19483 # Library versioning type.
19484 version_type=$version_type
19485
19486 # Format of library name prefix.
19487 libname_spec=$lt_libname_spec
19488
19489 # List of archive names.  First name is the real one, the rest are links.
19490 # The last name is the one that the linker finds with -lNAME.
19491 library_names_spec=$lt_library_names_spec
19492
19493 # The coded name of the library, if different from the real name.
19494 soname_spec=$lt_soname_spec
19495
19496 # Commands used to build and install an old-style archive.
19497 RANLIB=$lt_RANLIB
19498 old_archive_cmds=$lt_old_archive_cmds_CXX
19499 old_postinstall_cmds=$lt_old_postinstall_cmds
19500 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19501
19502 # Create an old-style archive from a shared archive.
19503 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19504
19505 # Create a temporary old-style archive to link instead of a shared archive.
19506 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19507
19508 # Commands used to build and install a shared archive.
19509 archive_cmds=$lt_archive_cmds_CXX
19510 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19511 postinstall_cmds=$lt_postinstall_cmds
19512 postuninstall_cmds=$lt_postuninstall_cmds
19513
19514 # Commands used to build a loadable module (assumed same as above if empty)
19515 module_cmds=$lt_module_cmds_CXX
19516 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19517
19518 # Commands to strip libraries.
19519 old_striplib=$lt_old_striplib
19520 striplib=$lt_striplib
19521
19522 # Dependencies to place before the objects being linked to create a
19523 # shared library.
19524 predep_objects=$lt_predep_objects_CXX
19525
19526 # Dependencies to place after the objects being linked to create a
19527 # shared library.
19528 postdep_objects=$lt_postdep_objects_CXX
19529
19530 # Dependencies to place before the objects being linked to create a
19531 # shared library.
19532 predeps=$lt_predeps_CXX
19533
19534 # Dependencies to place after the objects being linked to create a
19535 # shared library.
19536 postdeps=$lt_postdeps_CXX
19537
19538 # The library search path used internally by the compiler when linking
19539 # a shared library.
19540 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19541
19542 # Method to check whether dependent libraries are shared objects.
19543 deplibs_check_method=$lt_deplibs_check_method
19544
19545 # Command to use when deplibs_check_method == file_magic.
19546 file_magic_cmd=$lt_file_magic_cmd
19547
19548 # Flag that allows shared libraries with undefined symbols to be built.
19549 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19550
19551 # Flag that forces no undefined symbols.
19552 no_undefined_flag=$lt_no_undefined_flag_CXX
19553
19554 # Commands used to finish a libtool library installation in a directory.
19555 finish_cmds=$lt_finish_cmds
19556
19557 # Same as above, but a single script fragment to be evaled but not shown.
19558 finish_eval=$lt_finish_eval
19559
19560 # Take the output of nm and produce a listing of raw symbols and C names.
19561 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19562
19563 # Transform the output of nm in a proper C declaration
19564 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19565
19566 # Transform the output of nm in a C name address pair
19567 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19568
19569 # This is the shared library runtime path variable.
19570 runpath_var=$runpath_var
19571
19572 # This is the shared library path variable.
19573 shlibpath_var=$shlibpath_var
19574
19575 # Is shlibpath searched before the hard-coded library search path?
19576 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19577
19578 # How to hardcode a shared library path into an executable.
19579 hardcode_action=$hardcode_action_CXX
19580
19581 # Whether we should hardcode library paths into libraries.
19582 hardcode_into_libs=$hardcode_into_libs
19583
19584 # Flag to hardcode \$libdir into a binary during linking.
19585 # This must work even if \$libdir does not exist.
19586 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19587
19588 # If ld is used when linking, flag to hardcode \$libdir into
19589 # a binary during linking. This must work even if \$libdir does
19590 # not exist.
19591 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19592
19593 # Whether we need a single -rpath flag with a separated argument.
19594 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19595
19596 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19597 # resulting binary.
19598 hardcode_direct=$hardcode_direct_CXX
19599
19600 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19601 # resulting binary.
19602 hardcode_minus_L=$hardcode_minus_L_CXX
19603
19604 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19605 # the resulting binary.
19606 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19607
19608 # Set to yes if building a shared library automatically hardcodes DIR into the library
19609 # and all subsequent libraries and executables linked against it.
19610 hardcode_automatic=$hardcode_automatic_CXX
19611
19612 # Variables whose values should be saved in libtool wrapper scripts and
19613 # restored at relink time.
19614 variables_saved_for_relink="$variables_saved_for_relink"
19615
19616 # Whether libtool must link a program against all its dependency libraries.
19617 link_all_deplibs=$link_all_deplibs_CXX
19618
19619 # Compile-time system search path for libraries
19620 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19621
19622 # Run-time system search path for libraries
19623 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19624
19625 # Fix the shell variable \$srcfile for the compiler.
19626 fix_srcfile_path="$fix_srcfile_path_CXX"
19627
19628 # Set to yes if exported symbols are required.
19629 always_export_symbols=$always_export_symbols_CXX
19630
19631 # The commands to list exported symbols.
19632 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19633
19634 # The commands to extract the exported symbol list from a shared archive.
19635 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19636
19637 # Symbols that should not be listed in the preloaded symbols.
19638 exclude_expsyms=$lt_exclude_expsyms_CXX
19639
19640 # Symbols that must always be exported.
19641 include_expsyms=$lt_include_expsyms_CXX
19642
19643 # ### END LIBTOOL TAG CONFIG: $tagname
19644
19645 __EOF__
19646
19647
19648 else
19649   # If there is no Makefile yet, we rely on a make rule to execute
19650   # `config.status --recheck' to rerun these tests and create the
19651   # libtool script then.
19652   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19653   if test -f "$ltmain_in"; then
19654     test -f Makefile && make "$ltmain"
19655   fi
19656 fi
19657
19658
19659 ac_ext=c
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664
19665 CC=$lt_save_CC
19666 LDCXX=$LD
19667 LD=$lt_save_LD
19668 GCC=$lt_save_GCC
19669 with_gnu_ldcxx=$with_gnu_ld
19670 with_gnu_ld=$lt_save_with_gnu_ld
19671 lt_cv_path_LDCXX=$lt_cv_path_LD
19672 lt_cv_path_LD=$lt_save_path_LD
19673 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19674 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19675
19676         else
19677           tagname=""
19678         fi
19679         ;;
19680
19681       F77)
19682         if test -n "$F77" && test "X$F77" != "Xno"; then
19683
19684 ac_ext=f
19685 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19686 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19687 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19688
19689
19690 archive_cmds_need_lc_F77=no
19691 allow_undefined_flag_F77=
19692 always_export_symbols_F77=no
19693 archive_expsym_cmds_F77=
19694 export_dynamic_flag_spec_F77=
19695 hardcode_direct_F77=no
19696 hardcode_libdir_flag_spec_F77=
19697 hardcode_libdir_flag_spec_ld_F77=
19698 hardcode_libdir_separator_F77=
19699 hardcode_minus_L_F77=no
19700 hardcode_automatic_F77=no
19701 module_cmds_F77=
19702 module_expsym_cmds_F77=
19703 link_all_deplibs_F77=unknown
19704 old_archive_cmds_F77=$old_archive_cmds
19705 no_undefined_flag_F77=
19706 whole_archive_flag_spec_F77=
19707 enable_shared_with_static_runtimes_F77=no
19708
19709 # Source file extension for f77 test sources.
19710 ac_ext=f
19711
19712 # Object file extension for compiled f77 test sources.
19713 objext=o
19714 objext_F77=$objext
19715
19716 # Code to be used in simple compile tests
19717 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19718
19719 # Code to be used in simple link tests
19720 lt_simple_link_test_code="      program t\n      end\n"
19721
19722 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19723
19724 # If no C compiler was specified, use CC.
19725 LTCC=${LTCC-"$CC"}
19726
19727 # Allow CC to be a program name with arguments.
19728 compiler=$CC
19729
19730
19731 # save warnings/boilerplate of simple test code
19732 ac_outfile=conftest.$ac_objext
19733 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19734 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19735 _lt_compiler_boilerplate=`cat conftest.err`
19736 $rm conftest*
19737
19738 ac_outfile=conftest.$ac_objext
19739 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19740 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19741 _lt_linker_boilerplate=`cat conftest.err`
19742 $rm conftest*
19743
19744
19745 # Allow CC to be a program name with arguments.
19746 lt_save_CC="$CC"
19747 CC=${F77-"f77"}
19748 compiler=$CC
19749 compiler_F77=$CC
19750 for cc_temp in $compiler""; do
19751   case $cc_temp in
19752     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19753     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19754     \-*) ;;
19755     *) break;;
19756   esac
19757 done
19758 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19759
19760
19761 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19762 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19763 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19764 echo "${ECHO_T}$can_build_shared" >&6
19765
19766 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19767 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19768 test "$can_build_shared" = "no" && enable_shared=no
19769
19770 # On AIX, shared libraries and static libraries use the same namespace, and
19771 # are all built from PIC.
19772 case "$host_os" in
19773 aix3*)
19774   test "$enable_shared" = yes && enable_static=no
19775   if test -n "$RANLIB"; then
19776     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19777     postinstall_cmds='$RANLIB $lib'
19778   fi
19779   ;;
19780 aix4* | aix5*)
19781   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19782     test "$enable_shared" = yes && enable_static=no
19783   fi
19784   ;;
19785 esac
19786 echo "$as_me:$LINENO: result: $enable_shared" >&5
19787 echo "${ECHO_T}$enable_shared" >&6
19788
19789 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19790 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19791 # Make sure either enable_shared or enable_static is yes.
19792 test "$enable_shared" = yes || enable_static=yes
19793 echo "$as_me:$LINENO: result: $enable_static" >&5
19794 echo "${ECHO_T}$enable_static" >&6
19795
19796 test "$ld_shlibs_F77" = no && can_build_shared=no
19797
19798 GCC_F77="$G77"
19799 LD_F77="$LD"
19800
19801 lt_prog_compiler_wl_F77=
19802 lt_prog_compiler_pic_F77=
19803 lt_prog_compiler_static_F77=
19804
19805 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19806 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19807
19808   if test "$GCC" = yes; then
19809     lt_prog_compiler_wl_F77='-Wl,'
19810     lt_prog_compiler_static_F77='-static'
19811
19812     case $host_os in
19813       aix*)
19814       # All AIX code is PIC.
19815       if test "$host_cpu" = ia64; then
19816         # AIX 5 now supports IA64 processor
19817         lt_prog_compiler_static_F77='-Bstatic'
19818       fi
19819       ;;
19820
19821     amigaos*)
19822       # FIXME: we need at least 68020 code to build shared libraries, but
19823       # adding the `-m68020' flag to GCC prevents building anything better,
19824       # like `-m68040'.
19825       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19826       ;;
19827
19828     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19829       # PIC is the default for these OSes.
19830       ;;
19831
19832     mingw* | pw32* | os2*)
19833       # This hack is so that the source file can tell whether it is being
19834       # built for inclusion in a dll (and should export symbols for example).
19835       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19836       ;;
19837
19838     darwin* | rhapsody*)
19839       # PIC is the default on this platform
19840       # Common symbols not allowed in MH_DYLIB files
19841       lt_prog_compiler_pic_F77='-fno-common'
19842       ;;
19843
19844     msdosdjgpp*)
19845       # Just because we use GCC doesn't mean we suddenly get shared libraries
19846       # on systems that don't support them.
19847       lt_prog_compiler_can_build_shared_F77=no
19848       enable_shared=no
19849       ;;
19850
19851     sysv4*MP*)
19852       if test -d /usr/nec; then
19853         lt_prog_compiler_pic_F77=-Kconform_pic
19854       fi
19855       ;;
19856
19857     hpux*)
19858       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19859       # not for PA HP-UX.
19860       case "$host_cpu" in
19861       hppa*64*|ia64*)
19862         # +Z the default
19863         ;;
19864       *)
19865         lt_prog_compiler_pic_F77='-fPIC'
19866         ;;
19867       esac
19868       ;;
19869
19870     *)
19871       lt_prog_compiler_pic_F77='-fPIC'
19872       ;;
19873     esac
19874   else
19875     # PORTME Check for flag to pass linker flags through the system compiler.
19876     case $host_os in
19877     aix*)
19878       lt_prog_compiler_wl_F77='-Wl,'
19879       if test "$host_cpu" = ia64; then
19880         # AIX 5 now supports IA64 processor
19881         lt_prog_compiler_static_F77='-Bstatic'
19882       else
19883         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19884       fi
19885       ;;
19886       darwin*)
19887         # PIC is the default on this platform
19888         # Common symbols not allowed in MH_DYLIB files
19889        case $cc_basename in
19890          xlc*)
19891          lt_prog_compiler_pic_F77='-qnocommon'
19892          lt_prog_compiler_wl_F77='-Wl,'
19893          ;;
19894        esac
19895        ;;
19896
19897     mingw* | pw32* | os2*)
19898       # This hack is so that the source file can tell whether it is being
19899       # built for inclusion in a dll (and should export symbols for example).
19900       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19901       ;;
19902
19903     hpux9* | hpux10* | hpux11*)
19904       lt_prog_compiler_wl_F77='-Wl,'
19905       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19906       # not for PA HP-UX.
19907       case "$host_cpu" in
19908       hppa*64*|ia64*)
19909         # +Z the default
19910         ;;
19911       *)
19912         lt_prog_compiler_pic_F77='+Z'
19913         ;;
19914       esac
19915       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19916       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19917       ;;
19918
19919     irix5* | irix6* | nonstopux*)
19920       lt_prog_compiler_wl_F77='-Wl,'
19921       # PIC (with -KPIC) is the default.
19922       lt_prog_compiler_static_F77='-non_shared'
19923       ;;
19924
19925     newsos6)
19926       lt_prog_compiler_pic_F77='-KPIC'
19927       lt_prog_compiler_static_F77='-Bstatic'
19928       ;;
19929
19930     linux*)
19931       case $cc_basename in
19932       icc* | ecc*)
19933         lt_prog_compiler_wl_F77='-Wl,'
19934         lt_prog_compiler_pic_F77='-KPIC'
19935         lt_prog_compiler_static_F77='-static'
19936         ;;
19937       pgcc* | pgf77* | pgf90*)
19938         # Portland Group compilers (*not* the Pentium gcc compiler,
19939         # which looks to be a dead project)
19940         lt_prog_compiler_wl_F77='-Wl,'
19941         lt_prog_compiler_pic_F77='-fpic'
19942         lt_prog_compiler_static_F77='-static'
19943         ;;
19944       ccc*)
19945         lt_prog_compiler_wl_F77='-Wl,'
19946         # All Alpha code is PIC.
19947         lt_prog_compiler_static_F77='-non_shared'
19948         ;;
19949       esac
19950       ;;
19951
19952     osf3* | osf4* | osf5*)
19953       lt_prog_compiler_wl_F77='-Wl,'
19954       # All OSF/1 code is PIC.
19955       lt_prog_compiler_static_F77='-non_shared'
19956       ;;
19957
19958     sco3.2v5*)
19959       lt_prog_compiler_pic_F77='-Kpic'
19960       lt_prog_compiler_static_F77='-dn'
19961       ;;
19962
19963     solaris*)
19964       lt_prog_compiler_pic_F77='-KPIC'
19965       lt_prog_compiler_static_F77='-Bstatic'
19966       case $cc_basename in
19967       f77* | f90* | f95*)
19968         lt_prog_compiler_wl_F77='-Qoption ld ';;
19969       *)
19970         lt_prog_compiler_wl_F77='-Wl,';;
19971       esac
19972       ;;
19973
19974     sunos4*)
19975       lt_prog_compiler_wl_F77='-Qoption ld '
19976       lt_prog_compiler_pic_F77='-PIC'
19977       lt_prog_compiler_static_F77='-Bstatic'
19978       ;;
19979
19980     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19981       lt_prog_compiler_wl_F77='-Wl,'
19982       lt_prog_compiler_pic_F77='-KPIC'
19983       lt_prog_compiler_static_F77='-Bstatic'
19984       ;;
19985
19986     sysv4*MP*)
19987       if test -d /usr/nec ;then
19988         lt_prog_compiler_pic_F77='-Kconform_pic'
19989         lt_prog_compiler_static_F77='-Bstatic'
19990       fi
19991       ;;
19992
19993     unicos*)
19994       lt_prog_compiler_wl_F77='-Wl,'
19995       lt_prog_compiler_can_build_shared_F77=no
19996       ;;
19997
19998     uts4*)
19999       lt_prog_compiler_pic_F77='-pic'
20000       lt_prog_compiler_static_F77='-Bstatic'
20001       ;;
20002
20003     *)
20004       lt_prog_compiler_can_build_shared_F77=no
20005       ;;
20006     esac
20007   fi
20008
20009 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20010 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
20011
20012 #
20013 # Check to make sure the PIC flag actually works.
20014 #
20015 if test -n "$lt_prog_compiler_pic_F77"; then
20016
20017 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20018 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
20019 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20020   echo $ECHO_N "(cached) $ECHO_C" >&6
20021 else
20022   lt_prog_compiler_pic_works_F77=no
20023   ac_outfile=conftest.$ac_objext
20024    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20025    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20026    # Insert the option either (1) after the last *FLAGS variable, or
20027    # (2) before a word containing "conftest.", or (3) at the end.
20028    # Note that $ac_compile itself does not contain backslashes and begins
20029    # with a dollar sign (not a hyphen), so the echo should work correctly.
20030    # The option is referenced via a variable to avoid confusing sed.
20031    lt_compile=`echo "$ac_compile" | $SED \
20032    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20033    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20034    -e 's:$: $lt_compiler_flag:'`
20035    (eval echo "\"\$as_me:20035: $lt_compile\"" >&5)
20036    (eval "$lt_compile" 2>conftest.err)
20037    ac_status=$?
20038    cat conftest.err >&5
20039    echo "$as_me:20039: \$? = $ac_status" >&5
20040    if (exit $ac_status) && test -s "$ac_outfile"; then
20041      # The compiler can only warn and ignore the option if not recognized
20042      # So say no if there are warnings other than the usual output.
20043      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
20044      $SED '/^$/d' conftest.err >conftest.er2
20045      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
20046        lt_prog_compiler_pic_works_F77=yes
20047      fi
20048    fi
20049    $rm conftest*
20050
20051 fi
20052 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20053 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
20054
20055 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20056     case $lt_prog_compiler_pic_F77 in
20057      "" | " "*) ;;
20058      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20059      esac
20060 else
20061     lt_prog_compiler_pic_F77=
20062      lt_prog_compiler_can_build_shared_F77=no
20063 fi
20064
20065 fi
20066 case "$host_os" in
20067   # For platforms which do not support PIC, -DPIC is meaningless:
20068   *djgpp*)
20069     lt_prog_compiler_pic_F77=
20070     ;;
20071   *)
20072     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20073     ;;
20074 esac
20075
20076 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20077 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20078 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20079   echo $ECHO_N "(cached) $ECHO_C" >&6
20080 else
20081   lt_cv_prog_compiler_c_o_F77=no
20082    $rm -r conftest 2>/dev/null
20083    mkdir conftest
20084    cd conftest
20085    mkdir out
20086    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20087
20088    lt_compiler_flag="-o out/conftest2.$ac_objext"
20089    # Insert the option either (1) after the last *FLAGS variable, or
20090    # (2) before a word containing "conftest.", or (3) at the end.
20091    # Note that $ac_compile itself does not contain backslashes and begins
20092    # with a dollar sign (not a hyphen), so the echo should work correctly.
20093    lt_compile=`echo "$ac_compile" | $SED \
20094    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20095    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20096    -e 's:$: $lt_compiler_flag:'`
20097    (eval echo "\"\$as_me:20097: $lt_compile\"" >&5)
20098    (eval "$lt_compile" 2>out/conftest.err)
20099    ac_status=$?
20100    cat out/conftest.err >&5
20101    echo "$as_me:20101: \$? = $ac_status" >&5
20102    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20103    then
20104      # The compiler can only warn and ignore the option if not recognized
20105      # So say no if there are warnings
20106      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
20107      $SED '/^$/d' out/conftest.err >out/conftest.er2
20108      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20109        lt_cv_prog_compiler_c_o_F77=yes
20110      fi
20111    fi
20112    chmod u+w .
20113    $rm conftest*
20114    # SGI C++ compiler will create directory out/ii_files/ for
20115    # template instantiation
20116    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20117    $rm out/* && rmdir out
20118    cd ..
20119    rmdir conftest
20120    $rm conftest*
20121
20122 fi
20123 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20124 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
20125
20126
20127 hard_links="nottested"
20128 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20129   # do not overwrite the value of need_locks provided by the user
20130   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20131 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20132   hard_links=yes
20133   $rm conftest*
20134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20135   touch conftest.a
20136   ln conftest.a conftest.b 2>&5 || hard_links=no
20137   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20138   echo "$as_me:$LINENO: result: $hard_links" >&5
20139 echo "${ECHO_T}$hard_links" >&6
20140   if test "$hard_links" = no; then
20141     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20142 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20143     need_locks=warn
20144   fi
20145 else
20146   need_locks=no
20147 fi
20148
20149 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20150 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20151
20152   runpath_var=
20153   allow_undefined_flag_F77=
20154   enable_shared_with_static_runtimes_F77=no
20155   archive_cmds_F77=
20156   archive_expsym_cmds_F77=
20157   old_archive_From_new_cmds_F77=
20158   old_archive_from_expsyms_cmds_F77=
20159   export_dynamic_flag_spec_F77=
20160   whole_archive_flag_spec_F77=
20161   thread_safe_flag_spec_F77=
20162   hardcode_libdir_flag_spec_F77=
20163   hardcode_libdir_flag_spec_ld_F77=
20164   hardcode_libdir_separator_F77=
20165   hardcode_direct_F77=no
20166   hardcode_minus_L_F77=no
20167   hardcode_shlibpath_var_F77=unsupported
20168   link_all_deplibs_F77=unknown
20169   hardcode_automatic_F77=no
20170   module_cmds_F77=
20171   module_expsym_cmds_F77=
20172   always_export_symbols_F77=no
20173   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20174   # include_expsyms should be a list of space-separated symbols to be *always*
20175   # included in the symbol list
20176   include_expsyms_F77=
20177   # exclude_expsyms can be an extended regexp of symbols to exclude
20178   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20179   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20180   # as well as any symbol that contains `d'.
20181   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20182   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20183   # platforms (ab)use it in PIC code, but their linkers get confused if
20184   # the symbol is explicitly referenced.  Since portable code cannot
20185   # rely on this symbol name, it's probably fine to never include it in
20186   # preloaded symbol tables.
20187   extract_expsyms_cmds=
20188   # Just being paranoid about ensuring that cc_basename is set.
20189   for cc_temp in $compiler""; do
20190   case $cc_temp in
20191     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20192     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20193     \-*) ;;
20194     *) break;;
20195   esac
20196 done
20197 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20198
20199   case $host_os in
20200   cygwin* | mingw* | pw32*)
20201     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20202     # When not using gcc, we currently assume that we are using
20203     # Microsoft Visual C++.
20204     if test "$GCC" != yes; then
20205       with_gnu_ld=no
20206     fi
20207     ;;
20208   openbsd*)
20209     with_gnu_ld=no
20210     ;;
20211   esac
20212
20213   ld_shlibs_F77=yes
20214   if test "$with_gnu_ld" = yes; then
20215     # If archive_cmds runs LD, not CC, wlarc should be empty
20216     wlarc='${wl}'
20217
20218     # Set some defaults for GNU ld with shared library support. These
20219     # are reset later if shared libraries are not supported. Putting them
20220     # here allows them to be overridden if necessary.
20221     runpath_var=LD_RUN_PATH
20222     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20223     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20224     # ancient GNU ld didn't support --whole-archive et. al.
20225     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20226         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20227       else
20228         whole_archive_flag_spec_F77=
20229     fi
20230     supports_anon_versioning=no
20231     case `$LD -v 2>/dev/null` in
20232       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20233       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20234       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20235       *\ 2.11.*) ;; # other 2.11 versions
20236       *) supports_anon_versioning=yes ;;
20237     esac
20238
20239     # See if GNU ld supports shared libraries.
20240     case $host_os in
20241     aix3* | aix4* | aix5*)
20242       # On AIX/PPC, the GNU linker is very broken
20243       if test "$host_cpu" != ia64; then
20244         ld_shlibs_F77=no
20245         cat <<EOF 1>&2
20246
20247 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20248 *** to be unable to reliably create shared libraries on AIX.
20249 *** Therefore, libtool is disabling shared libraries support.  If you
20250 *** really care for shared libraries, you may want to modify your PATH
20251 *** so that a non-GNU linker is found, and then restart.
20252
20253 EOF
20254       fi
20255       ;;
20256
20257     amigaos*)
20258       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)'
20259       hardcode_libdir_flag_spec_F77='-L$libdir'
20260       hardcode_minus_L_F77=yes
20261
20262       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20263       # that the semantics of dynamic libraries on AmigaOS, at least up
20264       # to version 4, is to share data among multiple programs linked
20265       # with the same dynamic library.  Since this doesn't match the
20266       # behavior of shared libraries on other platforms, we can't use
20267       # them.
20268       ld_shlibs_F77=no
20269       ;;
20270
20271     beos*)
20272       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20273         allow_undefined_flag_F77=unsupported
20274         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20275         # support --undefined.  This deserves some investigation.  FIXME
20276         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20277       else
20278         ld_shlibs_F77=no
20279       fi
20280       ;;
20281
20282     cygwin* | mingw* | pw32*)
20283       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20284       # as there is no search path for DLLs.
20285       hardcode_libdir_flag_spec_F77='-L$libdir'
20286       allow_undefined_flag_F77=unsupported
20287       always_export_symbols_F77=no
20288       enable_shared_with_static_runtimes_F77=yes
20289       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20290
20291       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20292         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20293         # If the export-symbols file already is a .def file (1st line
20294         # is EXPORTS), use it as is; otherwise, prepend...
20295         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20296           cp $export_symbols $output_objdir/$soname.def;
20297         else
20298           echo EXPORTS > $output_objdir/$soname.def;
20299           cat $export_symbols >> $output_objdir/$soname.def;
20300         fi~
20301         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
20302       else
20303         ld_shlibs_F77=no
20304       fi
20305       ;;
20306
20307     linux*)
20308       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20309         tmp_addflag=
20310         case $cc_basename,$host_cpu in
20311         pgcc*)                          # Portland Group C compiler
20312           whole_archive_flag_spec_F77=
20313           ;;
20314         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
20315           whole_archive_flag_spec_F77=
20316           tmp_addflag=' -fpic -Mnomain' ;;
20317         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
20318           tmp_addflag=' -i_dynamic' ;;
20319         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
20320           tmp_addflag=' -i_dynamic -nofor_main' ;;
20321         ifc* | ifort*)                  # Intel Fortran compiler
20322           tmp_addflag=' -nofor_main' ;;
20323         esac
20324         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20325
20326         if test $supports_anon_versioning = yes; then
20327           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20328   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20329   $echo "local: *; };" >> $output_objdir/$libname.ver~
20330           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20331         fi
20332       else
20333         ld_shlibs_F77=no
20334       fi
20335       ;;
20336
20337     netbsd*)
20338       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20339         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20340         wlarc=
20341       else
20342         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20343         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20344       fi
20345       ;;
20346
20347     solaris* | sysv5*)
20348       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20349         ld_shlibs_F77=no
20350         cat <<EOF 1>&2
20351
20352 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20353 *** create shared libraries on Solaris systems.  Therefore, libtool
20354 *** is disabling shared libraries support.  We urge you to upgrade GNU
20355 *** binutils to release 2.9.1 or newer.  Another option is to modify
20356 *** your PATH or compiler configuration so that the native linker is
20357 *** used, and then restart.
20358
20359 EOF
20360       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20361         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20362         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20363       else
20364         ld_shlibs_F77=no
20365       fi
20366       ;;
20367
20368     sunos4*)
20369       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20370       wlarc=
20371       hardcode_direct_F77=yes
20372       hardcode_shlibpath_var_F77=no
20373       ;;
20374
20375     *)
20376       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20377         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20378         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20379       else
20380         ld_shlibs_F77=no
20381       fi
20382       ;;
20383     esac
20384
20385     if test "$ld_shlibs_F77" = no; then
20386       runpath_var=
20387       hardcode_libdir_flag_spec_F77=
20388       export_dynamic_flag_spec_F77=
20389       whole_archive_flag_spec_F77=
20390     fi
20391   else
20392     # PORTME fill in a description of your system's linker (not GNU ld)
20393     case $host_os in
20394     aix3*)
20395       allow_undefined_flag_F77=unsupported
20396       always_export_symbols_F77=yes
20397       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'
20398       # Note: this linker hardcodes the directories in LIBPATH if there
20399       # are no directories specified by -L.
20400       hardcode_minus_L_F77=yes
20401       if test "$GCC" = yes && test -z "$link_static_flag"; then
20402         # Neither direct hardcoding nor static linking is supported with a
20403         # broken collect2.
20404         hardcode_direct_F77=unsupported
20405       fi
20406       ;;
20407
20408     aix4* | aix5*)
20409       if test "$host_cpu" = ia64; then
20410         # On IA64, the linker does run time linking by default, so we don't
20411         # have to do anything special.
20412         aix_use_runtimelinking=no
20413         exp_sym_flag='-Bexport'
20414         no_entry_flag=""
20415       else
20416         # If we're using GNU nm, then we don't want the "-C" option.
20417         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20418         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20419           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'
20420         else
20421           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'
20422         fi
20423         aix_use_runtimelinking=no
20424
20425         # Test if we are trying to use run time linking or normal
20426         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20427         # need to do runtime linking.
20428         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20429           for ld_flag in $LDFLAGS; do
20430           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20431             aix_use_runtimelinking=yes
20432             break
20433           fi
20434           done
20435         esac
20436
20437         exp_sym_flag='-bexport'
20438         no_entry_flag='-bnoentry'
20439       fi
20440
20441       # When large executables or shared objects are built, AIX ld can
20442       # have problems creating the table of contents.  If linking a library
20443       # or program results in "error TOC overflow" add -mminimal-toc to
20444       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20445       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20446
20447       archive_cmds_F77=''
20448       hardcode_direct_F77=yes
20449       hardcode_libdir_separator_F77=':'
20450       link_all_deplibs_F77=yes
20451
20452       if test "$GCC" = yes; then
20453         case $host_os in aix4.[012]|aix4.[012].*)
20454         # We only want to do this on AIX 4.2 and lower, the check
20455         # below for broken collect2 doesn't work under 4.3+
20456           collect2name=`${CC} -print-prog-name=collect2`
20457           if test -f "$collect2name" && \
20458            strings "$collect2name" | grep resolve_lib_name >/dev/null
20459           then
20460           # We have reworked collect2
20461           hardcode_direct_F77=yes
20462           else
20463           # We have old collect2
20464           hardcode_direct_F77=unsupported
20465           # It fails to find uninstalled libraries when the uninstalled
20466           # path is not listed in the libpath.  Setting hardcode_minus_L
20467           # to unsupported forces relinking
20468           hardcode_minus_L_F77=yes
20469           hardcode_libdir_flag_spec_F77='-L$libdir'
20470           hardcode_libdir_separator_F77=
20471           fi
20472         esac
20473         shared_flag='-shared'
20474         if test "$aix_use_runtimelinking" = yes; then
20475           shared_flag="$shared_flag "'${wl}-G'
20476         fi
20477       else
20478         # not using gcc
20479         if test "$host_cpu" = ia64; then
20480         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20481         # chokes on -Wl,-G. The following line is correct:
20482           shared_flag='-G'
20483         else
20484         if test "$aix_use_runtimelinking" = yes; then
20485             shared_flag='${wl}-G'
20486           else
20487             shared_flag='${wl}-bM:SRE'
20488         fi
20489         fi
20490       fi
20491
20492       # It seems that -bexpall does not export symbols beginning with
20493       # underscore (_), so it is better to generate a list of symbols to export.
20494       always_export_symbols_F77=yes
20495       if test "$aix_use_runtimelinking" = yes; then
20496         # Warning - without using the other runtime loading flags (-brtl),
20497         # -berok will link without error, but may produce a broken library.
20498         allow_undefined_flag_F77='-berok'
20499        # Determine the default libpath from the value encoded in an empty executable.
20500        cat >conftest.$ac_ext <<_ACEOF
20501       program main
20502
20503       end
20504 _ACEOF
20505 rm -f conftest.$ac_objext conftest$ac_exeext
20506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20507   (eval $ac_link) 2>conftest.er1
20508   ac_status=$?
20509   grep -v '^ *+' conftest.er1 >conftest.err
20510   rm -f conftest.er1
20511   cat conftest.err >&5
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); } &&
20514          { ac_try='test -z "$ac_f77_werror_flag"
20515                          || test ! -s conftest.err'
20516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517   (eval $ac_try) 2>&5
20518   ac_status=$?
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); }; } &&
20521          { ac_try='test -s conftest$ac_exeext'
20522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523   (eval $ac_try) 2>&5
20524   ac_status=$?
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); }; }; then
20527
20528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20529 }'`
20530 # Check for a 64-bit object if we didn't find anything.
20531 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; }
20532 }'`; fi
20533 else
20534   echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 fi
20538 rm -f conftest.err conftest.$ac_objext \
20539       conftest$ac_exeext conftest.$ac_ext
20540 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20541
20542        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20543         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"
20544        else
20545         if test "$host_cpu" = ia64; then
20546           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20547           allow_undefined_flag_F77="-z nodefs"
20548           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"
20549         else
20550          # Determine the default libpath from the value encoded in an empty executable.
20551          cat >conftest.$ac_ext <<_ACEOF
20552       program main
20553
20554       end
20555 _ACEOF
20556 rm -f conftest.$ac_objext conftest$ac_exeext
20557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20558   (eval $ac_link) 2>conftest.er1
20559   ac_status=$?
20560   grep -v '^ *+' conftest.er1 >conftest.err
20561   rm -f conftest.er1
20562   cat conftest.err >&5
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); } &&
20565          { ac_try='test -z "$ac_f77_werror_flag"
20566                          || test ! -s conftest.err'
20567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568   (eval $ac_try) 2>&5
20569   ac_status=$?
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); }; } &&
20572          { ac_try='test -s conftest$ac_exeext'
20573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574   (eval $ac_try) 2>&5
20575   ac_status=$?
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); }; }; then
20578
20579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20580 }'`
20581 # Check for a 64-bit object if we didn't find anything.
20582 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; }
20583 }'`; fi
20584 else
20585   echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588 fi
20589 rm -f conftest.err conftest.$ac_objext \
20590       conftest$ac_exeext conftest.$ac_ext
20591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20592
20593          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20594           # Warning - without using the other run time loading flags,
20595           # -berok will link without error, but may produce a broken library.
20596           no_undefined_flag_F77=' ${wl}-bernotok'
20597           allow_undefined_flag_F77=' ${wl}-berok'
20598           # -bexpall does not export symbols beginning with underscore (_)
20599           always_export_symbols_F77=yes
20600           # Exported symbols can be pulled into shared objects from archives
20601           whole_archive_flag_spec_F77=' '
20602           archive_cmds_need_lc_F77=yes
20603           # This is similar to how AIX traditionally builds it's shared libraries.
20604           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'
20605         fi
20606       fi
20607       ;;
20608
20609     amigaos*)
20610       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)'
20611       hardcode_libdir_flag_spec_F77='-L$libdir'
20612       hardcode_minus_L_F77=yes
20613       # see comment about different semantics on the GNU ld section
20614       ld_shlibs_F77=no
20615       ;;
20616
20617     bsdi[45]*)
20618       export_dynamic_flag_spec_F77=-rdynamic
20619       ;;
20620
20621     cygwin* | mingw* | pw32*)
20622       # When not using gcc, we currently assume that we are using
20623       # Microsoft Visual C++.
20624       # hardcode_libdir_flag_spec is actually meaningless, as there is
20625       # no search path for DLLs.
20626       hardcode_libdir_flag_spec_F77=' '
20627       allow_undefined_flag_F77=unsupported
20628       # Tell ltmain to make .lib files, not .a files.
20629       libext=lib
20630       # Tell ltmain to make .dll files, not .so files.
20631       shrext_cmds=".dll"
20632       # FIXME: Setting linknames here is a bad hack.
20633       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20634       # The linker will automatically build a .lib file if we build a DLL.
20635       old_archive_From_new_cmds_F77='true'
20636       # FIXME: Should let the user specify the lib program.
20637       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20638       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20639       enable_shared_with_static_runtimes_F77=yes
20640       ;;
20641
20642     darwin* | rhapsody*)
20643       case "$host_os" in
20644         rhapsody* | darwin1.[012])
20645          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20646          ;;
20647        *) # Darwin 1.3 on
20648          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20649            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20650          else
20651            case ${MACOSX_DEPLOYMENT_TARGET} in
20652              10.[012])
20653                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20654                ;;
20655              10.*)
20656                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20657                ;;
20658            esac
20659          fi
20660          ;;
20661       esac
20662       archive_cmds_need_lc_F77=no
20663       hardcode_direct_F77=no
20664       hardcode_automatic_F77=yes
20665       hardcode_shlibpath_var_F77=unsupported
20666       whole_archive_flag_spec_F77=''
20667       link_all_deplibs_F77=yes
20668     if test "$GCC" = yes ; then
20669         output_verbose_link_cmd='echo'
20670         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20671       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20672       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20673       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20674       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}'
20675     else
20676       case $cc_basename in
20677         xlc*)
20678          output_verbose_link_cmd='echo'
20679          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20680          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20681           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20682          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20683           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}'
20684           ;;
20685        *)
20686          ld_shlibs_F77=no
20687           ;;
20688       esac
20689     fi
20690       ;;
20691
20692     dgux*)
20693       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20694       hardcode_libdir_flag_spec_F77='-L$libdir'
20695       hardcode_shlibpath_var_F77=no
20696       ;;
20697
20698     freebsd1*)
20699       ld_shlibs_F77=no
20700       ;;
20701
20702     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20703     # support.  Future versions do this automatically, but an explicit c++rt0.o
20704     # does not break anything, and helps significantly (at the cost of a little
20705     # extra space).
20706     freebsd2.2*)
20707       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20708       hardcode_libdir_flag_spec_F77='-R$libdir'
20709       hardcode_direct_F77=yes
20710       hardcode_shlibpath_var_F77=no
20711       ;;
20712
20713     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20714     freebsd2*)
20715       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20716       hardcode_direct_F77=yes
20717       hardcode_minus_L_F77=yes
20718       hardcode_shlibpath_var_F77=no
20719       ;;
20720
20721     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20722     freebsd* | kfreebsd*-gnu | dragonfly*)
20723       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20724       hardcode_libdir_flag_spec_F77='-R$libdir'
20725       hardcode_direct_F77=yes
20726       hardcode_shlibpath_var_F77=no
20727       ;;
20728
20729     hpux9*)
20730       if test "$GCC" = yes; then
20731         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'
20732       else
20733         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'
20734       fi
20735       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20736       hardcode_libdir_separator_F77=:
20737       hardcode_direct_F77=yes
20738
20739       # hardcode_minus_L: Not really in the search PATH,
20740       # but as the default location of the library.
20741       hardcode_minus_L_F77=yes
20742       export_dynamic_flag_spec_F77='${wl}-E'
20743       ;;
20744
20745     hpux10* | hpux11*)
20746       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20747         case "$host_cpu" in
20748         hppa*64*|ia64*)
20749           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20750           ;;
20751         *)
20752           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20753           ;;
20754         esac
20755       else
20756         case "$host_cpu" in
20757         hppa*64*|ia64*)
20758           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20759           ;;
20760         *)
20761           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20762           ;;
20763         esac
20764       fi
20765       if test "$with_gnu_ld" = no; then
20766         case "$host_cpu" in
20767         hppa*64*)
20768           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20769           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20770           hardcode_libdir_separator_F77=:
20771           hardcode_direct_F77=no
20772           hardcode_shlibpath_var_F77=no
20773           ;;
20774         ia64*)
20775           hardcode_libdir_flag_spec_F77='-L$libdir'
20776           hardcode_direct_F77=no
20777           hardcode_shlibpath_var_F77=no
20778
20779           # hardcode_minus_L: Not really in the search PATH,
20780           # but as the default location of the library.
20781           hardcode_minus_L_F77=yes
20782           ;;
20783         *)
20784           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20785           hardcode_libdir_separator_F77=:
20786           hardcode_direct_F77=yes
20787           export_dynamic_flag_spec_F77='${wl}-E'
20788
20789           # hardcode_minus_L: Not really in the search PATH,
20790           # but as the default location of the library.
20791           hardcode_minus_L_F77=yes
20792           ;;
20793         esac
20794       fi
20795       ;;
20796
20797     irix5* | irix6* | nonstopux*)
20798       if test "$GCC" = yes; then
20799         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'
20800       else
20801         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'
20802         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20803       fi
20804       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20805       hardcode_libdir_separator_F77=:
20806       link_all_deplibs_F77=yes
20807       ;;
20808
20809     netbsd*)
20810       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20811         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20812       else
20813         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20814       fi
20815       hardcode_libdir_flag_spec_F77='-R$libdir'
20816       hardcode_direct_F77=yes
20817       hardcode_shlibpath_var_F77=no
20818       ;;
20819
20820     newsos6)
20821       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20822       hardcode_direct_F77=yes
20823       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20824       hardcode_libdir_separator_F77=:
20825       hardcode_shlibpath_var_F77=no
20826       ;;
20827
20828     openbsd*)
20829       hardcode_direct_F77=yes
20830       hardcode_shlibpath_var_F77=no
20831       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20832         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20833         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20834         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20835         export_dynamic_flag_spec_F77='${wl}-E'
20836       else
20837        case $host_os in
20838          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20839            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20840            hardcode_libdir_flag_spec_F77='-R$libdir'
20841            ;;
20842          *)
20843            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20844            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20845            ;;
20846        esac
20847       fi
20848       ;;
20849
20850     os2*)
20851       hardcode_libdir_flag_spec_F77='-L$libdir'
20852       hardcode_minus_L_F77=yes
20853       allow_undefined_flag_F77=unsupported
20854       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'
20855       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20856       ;;
20857
20858     osf3*)
20859       if test "$GCC" = yes; then
20860         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20861         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'
20862       else
20863         allow_undefined_flag_F77=' -expect_unresolved \*'
20864         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'
20865       fi
20866       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20867       hardcode_libdir_separator_F77=:
20868       ;;
20869
20870     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20871       if test "$GCC" = yes; then
20872         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20873         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'
20874         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20875       else
20876         allow_undefined_flag_F77=' -expect_unresolved \*'
20877         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'
20878         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~
20879         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
20880
20881         # Both c and cxx compiler support -rpath directly
20882         hardcode_libdir_flag_spec_F77='-rpath $libdir'
20883       fi
20884       hardcode_libdir_separator_F77=:
20885       ;;
20886
20887     sco3.2v5*)
20888       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20889       hardcode_shlibpath_var_F77=no
20890       export_dynamic_flag_spec_F77='${wl}-Bexport'
20891       runpath_var=LD_RUN_PATH
20892       hardcode_runpath_var=yes
20893       ;;
20894
20895     solaris*)
20896       no_undefined_flag_F77=' -z text'
20897       if test "$GCC" = yes; then
20898         wlarc='${wl}'
20899         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20900         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20901           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20902       else
20903         wlarc=''
20904         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20905         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20906         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20907       fi
20908       hardcode_libdir_flag_spec_F77='-R$libdir'
20909       hardcode_shlibpath_var_F77=no
20910       case $host_os in
20911       solaris2.[0-5] | solaris2.[0-5].*) ;;
20912       *)
20913         # The compiler driver will combine linker options so we
20914         # cannot just pass the convience library names through
20915         # without $wl, iff we do not link with $LD.
20916         # Luckily, gcc supports the same syntax we need for Sun Studio.
20917         # Supported since Solaris 2.6 (maybe 2.5.1?)
20918         case $wlarc in
20919         '')
20920           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20921         *)
20922           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
20923         esac ;;
20924       esac
20925       link_all_deplibs_F77=yes
20926       ;;
20927
20928     sunos4*)
20929       if test "x$host_vendor" = xsequent; then
20930         # Use $CC to link under sequent, because it throws in some extra .o
20931         # files that make .init and .fini sections work.
20932         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20933       else
20934         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20935       fi
20936       hardcode_libdir_flag_spec_F77='-L$libdir'
20937       hardcode_direct_F77=yes
20938       hardcode_minus_L_F77=yes
20939       hardcode_shlibpath_var_F77=no
20940       ;;
20941
20942     sysv4)
20943       case $host_vendor in
20944         sni)
20945           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20946           hardcode_direct_F77=yes # is this really true???
20947         ;;
20948         siemens)
20949           ## LD is ld it makes a PLAMLIB
20950           ## CC just makes a GrossModule.
20951           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20952           reload_cmds_F77='$CC -r -o $output$reload_objs'
20953           hardcode_direct_F77=no
20954         ;;
20955         motorola)
20956           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20957           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20958         ;;
20959       esac
20960       runpath_var='LD_RUN_PATH'
20961       hardcode_shlibpath_var_F77=no
20962       ;;
20963
20964     sysv4.3*)
20965       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20966       hardcode_shlibpath_var_F77=no
20967       export_dynamic_flag_spec_F77='-Bexport'
20968       ;;
20969
20970     sysv4*MP*)
20971       if test -d /usr/nec; then
20972         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20973         hardcode_shlibpath_var_F77=no
20974         runpath_var=LD_RUN_PATH
20975         hardcode_runpath_var=yes
20976         ld_shlibs_F77=yes
20977       fi
20978       ;;
20979
20980     sysv4.2uw2*)
20981       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20982       hardcode_direct_F77=yes
20983       hardcode_minus_L_F77=no
20984       hardcode_shlibpath_var_F77=no
20985       hardcode_runpath_var=yes
20986       runpath_var=LD_RUN_PATH
20987       ;;
20988
20989    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20990       no_undefined_flag_F77='${wl}-z ${wl}text'
20991       if test "$GCC" = yes; then
20992         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20993       else
20994         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20995       fi
20996       runpath_var='LD_RUN_PATH'
20997       hardcode_shlibpath_var_F77=no
20998       ;;
20999
21000     sysv5*)
21001       no_undefined_flag_F77=' -z text'
21002       # $CC -shared without GNU ld will not create a library from C++
21003       # object files and a static libstdc++, better avoid it by now
21004       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21005       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21006                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21007       hardcode_libdir_flag_spec_F77=
21008       hardcode_shlibpath_var_F77=no
21009       runpath_var='LD_RUN_PATH'
21010       ;;
21011
21012     uts4*)
21013       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21014       hardcode_libdir_flag_spec_F77='-L$libdir'
21015       hardcode_shlibpath_var_F77=no
21016       ;;
21017
21018     *)
21019       ld_shlibs_F77=no
21020       ;;
21021     esac
21022   fi
21023
21024 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21025 echo "${ECHO_T}$ld_shlibs_F77" >&6
21026 test "$ld_shlibs_F77" = no && can_build_shared=no
21027
21028 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21029 if test "$GCC" = yes; then
21030   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21031 fi
21032
21033 #
21034 # Do we need to explicitly link libc?
21035 #
21036 case "x$archive_cmds_need_lc_F77" in
21037 x|xyes)
21038   # Assume -lc should be added
21039   archive_cmds_need_lc_F77=yes
21040
21041   if test "$enable_shared" = yes && test "$GCC" = yes; then
21042     case $archive_cmds_F77 in
21043     *'~'*)
21044       # FIXME: we may have to deal with multi-command sequences.
21045       ;;
21046     '$CC '*)
21047       # Test whether the compiler implicitly links with -lc since on some
21048       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21049       # to ld, don't add -lc before -lgcc.
21050       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21051 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21052       $rm conftest*
21053       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21054
21055       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21056   (eval $ac_compile) 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); } 2>conftest.err; then
21060         soname=conftest
21061         lib=conftest
21062         libobjs=conftest.$ac_objext
21063         deplibs=
21064         wl=$lt_prog_compiler_wl_F77
21065         compiler_flags=-v
21066         linker_flags=-v
21067         verstring=
21068         output_objdir=.
21069         libname=conftest
21070         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21071         allow_undefined_flag_F77=
21072         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21073   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21074   ac_status=$?
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); }
21077         then
21078           archive_cmds_need_lc_F77=no
21079         else
21080           archive_cmds_need_lc_F77=yes
21081         fi
21082         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21083       else
21084         cat conftest.err 1>&5
21085       fi
21086       $rm conftest*
21087       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21088 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
21089       ;;
21090     esac
21091   fi
21092   ;;
21093 esac
21094
21095 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21096 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21097 library_names_spec=
21098 libname_spec='lib$name'
21099 soname_spec=
21100 shrext_cmds=".so"
21101 postinstall_cmds=
21102 postuninstall_cmds=
21103 finish_cmds=
21104 finish_eval=
21105 shlibpath_var=
21106 shlibpath_overrides_runpath=unknown
21107 version_type=none
21108 dynamic_linker="$host_os ld.so"
21109 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21110 if test "$GCC" = yes; then
21111   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21112   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21113     # if the path contains ";" then we assume it to be the separator
21114     # otherwise default to the standard path separator (i.e. ":") - it is
21115     # assumed that no part of a normal pathname contains ";" but that should
21116     # okay in the real world where ";" in dirpaths is itself problematic.
21117     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21118   else
21119     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21120   fi
21121 else
21122   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21123 fi
21124 need_lib_prefix=unknown
21125 hardcode_into_libs=no
21126
21127 # when you set need_version to no, make sure it does not cause -set_version
21128 # flags to be left without arguments
21129 need_version=unknown
21130
21131 case $host_os in
21132 aix3*)
21133   version_type=linux
21134   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21135   shlibpath_var=LIBPATH
21136
21137   # AIX 3 has no versioning support, so we append a major version to the name.
21138   soname_spec='${libname}${release}${shared_ext}$major'
21139   ;;
21140
21141 aix4* | aix5*)
21142   version_type=linux
21143   need_lib_prefix=no
21144   need_version=no
21145   hardcode_into_libs=yes
21146   if test "$host_cpu" = ia64; then
21147     # AIX 5 supports IA64
21148     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21149     shlibpath_var=LD_LIBRARY_PATH
21150   else
21151     # With GCC up to 2.95.x, collect2 would create an import file
21152     # for dependence libraries.  The import file would start with
21153     # the line `#! .'.  This would cause the generated library to
21154     # depend on `.', always an invalid library.  This was fixed in
21155     # development snapshots of GCC prior to 3.0.
21156     case $host_os in
21157       aix4 | aix4.[01] | aix4.[01].*)
21158       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21159            echo ' yes '
21160            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21161         :
21162       else
21163         can_build_shared=no
21164       fi
21165       ;;
21166     esac
21167     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21168     # soname into executable. Probably we can add versioning support to
21169     # collect2, so additional links can be useful in future.
21170     if test "$aix_use_runtimelinking" = yes; then
21171       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21172       # instead of lib<name>.a to let people know that these are not
21173       # typical AIX shared libraries.
21174       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21175     else
21176       # We preserve .a as extension for shared libraries through AIX4.2
21177       # and later when we are not doing run time linking.
21178       library_names_spec='${libname}${release}.a $libname.a'
21179       soname_spec='${libname}${release}${shared_ext}$major'
21180     fi
21181     shlibpath_var=LIBPATH
21182   fi
21183   ;;
21184
21185 amigaos*)
21186   library_names_spec='$libname.ixlibrary $libname.a'
21187   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21188   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'
21189   ;;
21190
21191 beos*)
21192   library_names_spec='${libname}${shared_ext}'
21193   dynamic_linker="$host_os ld.so"
21194   shlibpath_var=LIBRARY_PATH
21195   ;;
21196
21197 bsdi[45]*)
21198   version_type=linux
21199   need_version=no
21200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21201   soname_spec='${libname}${release}${shared_ext}$major'
21202   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21203   shlibpath_var=LD_LIBRARY_PATH
21204   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21205   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21206   # the default ld.so.conf also contains /usr/contrib/lib and
21207   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21208   # libtool to hard-code these into programs
21209   ;;
21210
21211 cygwin* | mingw* | pw32*)
21212   version_type=windows
21213   shrext_cmds=".dll"
21214   need_version=no
21215   need_lib_prefix=no
21216
21217   case $GCC,$host_os in
21218   yes,cygwin* | yes,mingw* | yes,pw32*)
21219     library_names_spec='$libname.dll.a'
21220     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21221     postinstall_cmds='base_file=`basename \${file}`~
21222       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21223       dldir=$destdir/`dirname \$dlpath`~
21224       test -d \$dldir || mkdir -p \$dldir~
21225       $install_prog $dir/$dlname \$dldir/$dlname'
21226     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21227       dlpath=$dir/\$dldll~
21228        $rm \$dlpath'
21229     shlibpath_overrides_runpath=yes
21230
21231     case $host_os in
21232     cygwin*)
21233       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21234       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21235       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21236       ;;
21237     mingw*)
21238       # MinGW DLLs use traditional 'lib' prefix
21239       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21240       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21241       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21242         # It is most probably a Windows format PATH printed by
21243         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21244         # path with ; separators, and with drive letters. We can handle the
21245         # drive letters (cygwin fileutils understands them), so leave them,
21246         # especially as we might pass files found there to a mingw objdump,
21247         # which wouldn't understand a cygwinified path. Ahh.
21248         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21249       else
21250         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21251       fi
21252       ;;
21253     pw32*)
21254       # pw32 DLLs use 'pw' prefix rather than 'lib'
21255       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21256       ;;
21257     esac
21258     ;;
21259
21260   *)
21261     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21262     ;;
21263   esac
21264   dynamic_linker='Win32 ld.exe'
21265   # FIXME: first we should search . and the directory the executable is in
21266   shlibpath_var=PATH
21267   ;;
21268
21269 darwin* | rhapsody*)
21270   dynamic_linker="$host_os dyld"
21271   version_type=darwin
21272   need_lib_prefix=no
21273   need_version=no
21274   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21275   soname_spec='${libname}${release}${major}$shared_ext'
21276   shlibpath_overrides_runpath=yes
21277   shlibpath_var=DYLD_LIBRARY_PATH
21278   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
21279   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21280   if test "$GCC" = yes; then
21281     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"`
21282   else
21283     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21284   fi
21285   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21286   ;;
21287
21288 dgux*)
21289   version_type=linux
21290   need_lib_prefix=no
21291   need_version=no
21292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21293   soname_spec='${libname}${release}${shared_ext}$major'
21294   shlibpath_var=LD_LIBRARY_PATH
21295   ;;
21296
21297 freebsd1*)
21298   dynamic_linker=no
21299   ;;
21300
21301 kfreebsd*-gnu)
21302   version_type=linux
21303   need_lib_prefix=no
21304   need_version=no
21305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21306   soname_spec='${libname}${release}${shared_ext}$major'
21307   shlibpath_var=LD_LIBRARY_PATH
21308   shlibpath_overrides_runpath=no
21309   hardcode_into_libs=yes
21310   dynamic_linker='GNU ld.so'
21311   ;;
21312
21313 freebsd* | dragonfly*)
21314   # DragonFly does not have aout.  When/if they implement a new
21315   # versioning mechanism, adjust this.
21316   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21317   version_type=freebsd-$objformat
21318   case $version_type in
21319     freebsd-elf*)
21320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21321       need_version=no
21322       need_lib_prefix=no
21323       ;;
21324     freebsd-*)
21325       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21326       need_version=yes
21327       ;;
21328   esac
21329   shlibpath_var=LD_LIBRARY_PATH
21330   case $host_os in
21331   freebsd2*)
21332     shlibpath_overrides_runpath=yes
21333     ;;
21334   freebsd3.[01]* | freebsdelf3.[01]*)
21335     shlibpath_overrides_runpath=yes
21336     hardcode_into_libs=yes
21337     ;;
21338   *) # from 3.2 on
21339     shlibpath_overrides_runpath=no
21340     hardcode_into_libs=yes
21341     ;;
21342   esac
21343   ;;
21344
21345 gnu*)
21346   version_type=linux
21347   need_lib_prefix=no
21348   need_version=no
21349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21350   soname_spec='${libname}${release}${shared_ext}$major'
21351   shlibpath_var=LD_LIBRARY_PATH
21352   hardcode_into_libs=yes
21353   ;;
21354
21355 hpux9* | hpux10* | hpux11*)
21356   # Give a soname corresponding to the major version so that dld.sl refuses to
21357   # link against other versions.
21358   version_type=sunos
21359   need_lib_prefix=no
21360   need_version=no
21361   case "$host_cpu" in
21362   ia64*)
21363     shrext_cmds='.so'
21364     hardcode_into_libs=yes
21365     dynamic_linker="$host_os dld.so"
21366     shlibpath_var=LD_LIBRARY_PATH
21367     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21369     soname_spec='${libname}${release}${shared_ext}$major'
21370     if test "X$HPUX_IA64_MODE" = X32; then
21371       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21372     else
21373       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21374     fi
21375     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21376     ;;
21377    hppa*64*)
21378      shrext_cmds='.sl'
21379      hardcode_into_libs=yes
21380      dynamic_linker="$host_os dld.sl"
21381      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21382      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21383      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21384      soname_spec='${libname}${release}${shared_ext}$major'
21385      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21386      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21387      ;;
21388    *)
21389     shrext_cmds='.sl'
21390     dynamic_linker="$host_os dld.sl"
21391     shlibpath_var=SHLIB_PATH
21392     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21394     soname_spec='${libname}${release}${shared_ext}$major'
21395     ;;
21396   esac
21397   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21398   postinstall_cmds='chmod 555 $lib'
21399   ;;
21400
21401 irix5* | irix6* | nonstopux*)
21402   case $host_os in
21403     nonstopux*) version_type=nonstopux ;;
21404     *)
21405         if test "$lt_cv_prog_gnu_ld" = yes; then
21406                 version_type=linux
21407         else
21408                 version_type=irix
21409         fi ;;
21410   esac
21411   need_lib_prefix=no
21412   need_version=no
21413   soname_spec='${libname}${release}${shared_ext}$major'
21414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21415   case $host_os in
21416   irix5* | nonstopux*)
21417     libsuff= shlibsuff=
21418     ;;
21419   *)
21420     case $LD in # libtool.m4 will add one of these switches to LD
21421     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21422       libsuff= shlibsuff= libmagic=32-bit;;
21423     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21424       libsuff=32 shlibsuff=N32 libmagic=N32;;
21425     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21426       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21427     *) libsuff= shlibsuff= libmagic=never-match;;
21428     esac
21429     ;;
21430   esac
21431   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21432   shlibpath_overrides_runpath=no
21433   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21434   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21435   hardcode_into_libs=yes
21436   ;;
21437
21438 # No shared lib support for Linux oldld, aout, or coff.
21439 linux*oldld* | linux*aout* | linux*coff*)
21440   dynamic_linker=no
21441   ;;
21442
21443 # This must be Linux ELF.
21444 linux*)
21445   version_type=linux
21446   need_lib_prefix=no
21447   need_version=no
21448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21449   soname_spec='${libname}${release}${shared_ext}$major'
21450   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21451   shlibpath_var=LD_LIBRARY_PATH
21452   shlibpath_overrides_runpath=no
21453   # This implies no fast_install, which is unacceptable.
21454   # Some rework will be needed to allow for fast_install
21455   # before this can be enabled.
21456   hardcode_into_libs=yes
21457
21458   # find out which ABI we are using
21459   libsuff=
21460   case "$host_cpu" in
21461   x86_64*|s390x*|powerpc64*)
21462     echo '#line 21462 "configure"' > conftest.$ac_ext
21463     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21464   (eval $ac_compile) 2>&5
21465   ac_status=$?
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); }; then
21468       case `/usr/bin/file conftest.$ac_objext` in
21469       *64-bit*)
21470         libsuff=64
21471         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
21472         ;;
21473       esac
21474     fi
21475     rm -rf conftest*
21476     ;;
21477   esac
21478
21479   # Append ld.so.conf contents to the search path
21480   if test -f /etc/ld.so.conf; then
21481     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
21482     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
21483   fi
21484
21485   # We used to test for /lib/ld.so.1 and disable shared libraries on
21486   # powerpc, because MkLinux only supported shared libraries with the
21487   # GNU dynamic linker.  Since this was broken with cross compilers,
21488   # most powerpc-linux boxes support dynamic linking these days and
21489   # people can always --disable-shared, the test was removed, and we
21490   # assume the GNU/Linux dynamic linker is in use.
21491   dynamic_linker='GNU/Linux ld.so'
21492   ;;
21493
21494 knetbsd*-gnu)
21495   version_type=linux
21496   need_lib_prefix=no
21497   need_version=no
21498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21499   soname_spec='${libname}${release}${shared_ext}$major'
21500   shlibpath_var=LD_LIBRARY_PATH
21501   shlibpath_overrides_runpath=no
21502   hardcode_into_libs=yes
21503   dynamic_linker='GNU ld.so'
21504   ;;
21505
21506 netbsd*)
21507   version_type=sunos
21508   need_lib_prefix=no
21509   need_version=no
21510   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21512     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21513     dynamic_linker='NetBSD (a.out) ld.so'
21514   else
21515     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21516     soname_spec='${libname}${release}${shared_ext}$major'
21517     dynamic_linker='NetBSD ld.elf_so'
21518   fi
21519   shlibpath_var=LD_LIBRARY_PATH
21520   shlibpath_overrides_runpath=yes
21521   hardcode_into_libs=yes
21522   ;;
21523
21524 newsos6)
21525   version_type=linux
21526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21527   shlibpath_var=LD_LIBRARY_PATH
21528   shlibpath_overrides_runpath=yes
21529   ;;
21530
21531 nto-qnx*)
21532   version_type=linux
21533   need_lib_prefix=no
21534   need_version=no
21535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21536   soname_spec='${libname}${release}${shared_ext}$major'
21537   shlibpath_var=LD_LIBRARY_PATH
21538   shlibpath_overrides_runpath=yes
21539   ;;
21540
21541 openbsd*)
21542   version_type=sunos
21543   need_lib_prefix=no
21544   need_version=no
21545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21546   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21547   shlibpath_var=LD_LIBRARY_PATH
21548   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21549     case $host_os in
21550       openbsd2.[89] | openbsd2.[89].*)
21551         shlibpath_overrides_runpath=no
21552         ;;
21553       *)
21554         shlibpath_overrides_runpath=yes
21555         ;;
21556       esac
21557   else
21558     shlibpath_overrides_runpath=yes
21559   fi
21560   ;;
21561
21562 os2*)
21563   libname_spec='$name'
21564   shrext_cmds=".dll"
21565   need_lib_prefix=no
21566   library_names_spec='$libname${shared_ext} $libname.a'
21567   dynamic_linker='OS/2 ld.exe'
21568   shlibpath_var=LIBPATH
21569   ;;
21570
21571 osf3* | osf4* | osf5*)
21572   version_type=osf
21573   need_lib_prefix=no
21574   need_version=no
21575   soname_spec='${libname}${release}${shared_ext}$major'
21576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21577   shlibpath_var=LD_LIBRARY_PATH
21578   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21579   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21580   ;;
21581
21582 sco3.2v5*)
21583   version_type=osf
21584   soname_spec='${libname}${release}${shared_ext}$major'
21585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21586   shlibpath_var=LD_LIBRARY_PATH
21587   ;;
21588
21589 solaris*)
21590   version_type=linux
21591   need_lib_prefix=no
21592   need_version=no
21593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21594   soname_spec='${libname}${release}${shared_ext}$major'
21595   shlibpath_var=LD_LIBRARY_PATH
21596   shlibpath_overrides_runpath=yes
21597   hardcode_into_libs=yes
21598   # ldd complains unless libraries are executable
21599   postinstall_cmds='chmod +x $lib'
21600   ;;
21601
21602 sunos4*)
21603   version_type=sunos
21604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21605   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21606   shlibpath_var=LD_LIBRARY_PATH
21607   shlibpath_overrides_runpath=yes
21608   if test "$with_gnu_ld" = yes; then
21609     need_lib_prefix=no
21610   fi
21611   need_version=yes
21612   ;;
21613
21614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21615   version_type=linux
21616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21617   soname_spec='${libname}${release}${shared_ext}$major'
21618   shlibpath_var=LD_LIBRARY_PATH
21619   case $host_vendor in
21620     sni)
21621       shlibpath_overrides_runpath=no
21622       need_lib_prefix=no
21623       export_dynamic_flag_spec='${wl}-Blargedynsym'
21624       runpath_var=LD_RUN_PATH
21625       ;;
21626     siemens)
21627       need_lib_prefix=no
21628       ;;
21629     motorola)
21630       need_lib_prefix=no
21631       need_version=no
21632       shlibpath_overrides_runpath=no
21633       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21634       ;;
21635   esac
21636   ;;
21637
21638 sysv4*MP*)
21639   if test -d /usr/nec ;then
21640     version_type=linux
21641     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21642     soname_spec='$libname${shared_ext}.$major'
21643     shlibpath_var=LD_LIBRARY_PATH
21644   fi
21645   ;;
21646
21647 uts4*)
21648   version_type=linux
21649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21650   soname_spec='${libname}${release}${shared_ext}$major'
21651   shlibpath_var=LD_LIBRARY_PATH
21652   ;;
21653
21654 *)
21655   dynamic_linker=no
21656   ;;
21657 esac
21658 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21659 echo "${ECHO_T}$dynamic_linker" >&6
21660 test "$dynamic_linker" = no && can_build_shared=no
21661
21662 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21663 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21664 hardcode_action_F77=
21665 if test -n "$hardcode_libdir_flag_spec_F77" || \
21666    test -n "$runpath_var_F77" || \
21667    test "X$hardcode_automatic_F77" = "Xyes" ; then
21668
21669   # We can hardcode non-existant directories.
21670   if test "$hardcode_direct_F77" != no &&
21671      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21672      # have to relink, otherwise we might link with an installed library
21673      # when we should be linking with a yet-to-be-installed one
21674      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21675      test "$hardcode_minus_L_F77" != no; then
21676     # Linking always hardcodes the temporary library directory.
21677     hardcode_action_F77=relink
21678   else
21679     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21680     hardcode_action_F77=immediate
21681   fi
21682 else
21683   # We cannot hardcode anything, or else we can only hardcode existing
21684   # directories.
21685   hardcode_action_F77=unsupported
21686 fi
21687 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21688 echo "${ECHO_T}$hardcode_action_F77" >&6
21689
21690 if test "$hardcode_action_F77" = relink; then
21691   # Fast installation is not supported
21692   enable_fast_install=no
21693 elif test "$shlibpath_overrides_runpath" = yes ||
21694      test "$enable_shared" = no; then
21695   # Fast installation is not necessary
21696   enable_fast_install=needless
21697 fi
21698
21699 striplib=
21700 old_striplib=
21701 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21702 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21703 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21704   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21705   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21706   echo "$as_me:$LINENO: result: yes" >&5
21707 echo "${ECHO_T}yes" >&6
21708 else
21709 # FIXME - insert some real tests, host_os isn't really good enough
21710   case $host_os in
21711    darwin*)
21712        if test -n "$STRIP" ; then
21713          striplib="$STRIP -x"
21714          echo "$as_me:$LINENO: result: yes" >&5
21715 echo "${ECHO_T}yes" >&6
21716        else
21717   echo "$as_me:$LINENO: result: no" >&5
21718 echo "${ECHO_T}no" >&6
21719 fi
21720        ;;
21721    *)
21722   echo "$as_me:$LINENO: result: no" >&5
21723 echo "${ECHO_T}no" >&6
21724     ;;
21725   esac
21726 fi
21727
21728
21729
21730 # The else clause should only fire when bootstrapping the
21731 # libtool distribution, otherwise you forgot to ship ltmain.sh
21732 # with your package, and you will get complaints that there are
21733 # no rules to generate ltmain.sh.
21734 if test -f "$ltmain"; then
21735   # See if we are running on zsh, and set the options which allow our commands through
21736   # without removal of \ escapes.
21737   if test -n "${ZSH_VERSION+set}" ; then
21738     setopt NO_GLOB_SUBST
21739   fi
21740   # Now quote all the things that may contain metacharacters while being
21741   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21742   # variables and quote the copies for generation of the libtool script.
21743   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21744     SED SHELL STRIP \
21745     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21746     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21747     deplibs_check_method reload_flag reload_cmds need_locks \
21748     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21749     lt_cv_sys_global_symbol_to_c_name_address \
21750     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21751     old_postinstall_cmds old_postuninstall_cmds \
21752     compiler_F77 \
21753     CC_F77 \
21754     LD_F77 \
21755     lt_prog_compiler_wl_F77 \
21756     lt_prog_compiler_pic_F77 \
21757     lt_prog_compiler_static_F77 \
21758     lt_prog_compiler_no_builtin_flag_F77 \
21759     export_dynamic_flag_spec_F77 \
21760     thread_safe_flag_spec_F77 \
21761     whole_archive_flag_spec_F77 \
21762     enable_shared_with_static_runtimes_F77 \
21763     old_archive_cmds_F77 \
21764     old_archive_from_new_cmds_F77 \
21765     predep_objects_F77 \
21766     postdep_objects_F77 \
21767     predeps_F77 \
21768     postdeps_F77 \
21769     compiler_lib_search_path_F77 \
21770     archive_cmds_F77 \
21771     archive_expsym_cmds_F77 \
21772     postinstall_cmds_F77 \
21773     postuninstall_cmds_F77 \
21774     old_archive_from_expsyms_cmds_F77 \
21775     allow_undefined_flag_F77 \
21776     no_undefined_flag_F77 \
21777     export_symbols_cmds_F77 \
21778     hardcode_libdir_flag_spec_F77 \
21779     hardcode_libdir_flag_spec_ld_F77 \
21780     hardcode_libdir_separator_F77 \
21781     hardcode_automatic_F77 \
21782     module_cmds_F77 \
21783     module_expsym_cmds_F77 \
21784     lt_cv_prog_compiler_c_o_F77 \
21785     exclude_expsyms_F77 \
21786     include_expsyms_F77; do
21787
21788     case $var in
21789     old_archive_cmds_F77 | \
21790     old_archive_from_new_cmds_F77 | \
21791     archive_cmds_F77 | \
21792     archive_expsym_cmds_F77 | \
21793     module_cmds_F77 | \
21794     module_expsym_cmds_F77 | \
21795     old_archive_from_expsyms_cmds_F77 | \
21796     export_symbols_cmds_F77 | \
21797     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21798     postinstall_cmds | postuninstall_cmds | \
21799     old_postinstall_cmds | old_postuninstall_cmds | \
21800     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21801       # Double-quote double-evaled strings.
21802       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21803       ;;
21804     *)
21805       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21806       ;;
21807     esac
21808   done
21809
21810   case $lt_echo in
21811   *'\$0 --fallback-echo"')
21812     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21813     ;;
21814   esac
21815
21816 cfgfile="$ofile"
21817
21818   cat <<__EOF__ >> "$cfgfile"
21819 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21820
21821 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21822
21823 # Shell to use when invoking shell scripts.
21824 SHELL=$lt_SHELL
21825
21826 # Whether or not to build shared libraries.
21827 build_libtool_libs=$enable_shared
21828
21829 # Whether or not to build static libraries.
21830 build_old_libs=$enable_static
21831
21832 # Whether or not to add -lc for building shared libraries.
21833 build_libtool_need_lc=$archive_cmds_need_lc_F77
21834
21835 # Whether or not to disallow shared libs when runtime libs are static
21836 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21837
21838 # Whether or not to optimize for fast installation.
21839 fast_install=$enable_fast_install
21840
21841 # The host system.
21842 host_alias=$host_alias
21843 host=$host
21844 host_os=$host_os
21845
21846 # The build system.
21847 build_alias=$build_alias
21848 build=$build
21849 build_os=$build_os
21850
21851 # An echo program that does not interpret backslashes.
21852 echo=$lt_echo
21853
21854 # The archiver.
21855 AR=$lt_AR
21856 AR_FLAGS=$lt_AR_FLAGS
21857
21858 # A C compiler.
21859 LTCC=$lt_LTCC
21860
21861 # A language-specific compiler.
21862 CC=$lt_compiler_F77
21863
21864 # Is the compiler the GNU C compiler?
21865 with_gcc=$GCC_F77
21866
21867 # An ERE matcher.
21868 EGREP=$lt_EGREP
21869
21870 # The linker used to build libraries.
21871 LD=$lt_LD_F77
21872
21873 # Whether we need hard or soft links.
21874 LN_S=$lt_LN_S
21875
21876 # A BSD-compatible nm program.
21877 NM=$lt_NM
21878
21879 # A symbol stripping program
21880 STRIP=$lt_STRIP
21881
21882 # Used to examine libraries when file_magic_cmd begins "file"
21883 MAGIC_CMD=$MAGIC_CMD
21884
21885 # Used on cygwin: DLL creation program.
21886 DLLTOOL="$DLLTOOL"
21887
21888 # Used on cygwin: object dumper.
21889 OBJDUMP="$OBJDUMP"
21890
21891 # Used on cygwin: assembler.
21892 AS="$AS"
21893
21894 # The name of the directory that contains temporary libtool files.
21895 objdir=$objdir
21896
21897 # How to create reloadable object files.
21898 reload_flag=$lt_reload_flag
21899 reload_cmds=$lt_reload_cmds
21900
21901 # How to pass a linker flag through the compiler.
21902 wl=$lt_lt_prog_compiler_wl_F77
21903
21904 # Object file suffix (normally "o").
21905 objext="$ac_objext"
21906
21907 # Old archive suffix (normally "a").
21908 libext="$libext"
21909
21910 # Shared library suffix (normally ".so").
21911 shrext_cmds='$shrext_cmds'
21912
21913 # Executable file suffix (normally "").
21914 exeext="$exeext"
21915
21916 # Additional compiler flags for building library objects.
21917 pic_flag=$lt_lt_prog_compiler_pic_F77
21918 pic_mode=$pic_mode
21919
21920 # What is the maximum length of a command?
21921 max_cmd_len=$lt_cv_sys_max_cmd_len
21922
21923 # Does compiler simultaneously support -c and -o options?
21924 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21925
21926 # Must we lock files when doing compilation?
21927 need_locks=$lt_need_locks
21928
21929 # Do we need the lib prefix for modules?
21930 need_lib_prefix=$need_lib_prefix
21931
21932 # Do we need a version for libraries?
21933 need_version=$need_version
21934
21935 # Whether dlopen is supported.
21936 dlopen_support=$enable_dlopen
21937
21938 # Whether dlopen of programs is supported.
21939 dlopen_self=$enable_dlopen_self
21940
21941 # Whether dlopen of statically linked programs is supported.
21942 dlopen_self_static=$enable_dlopen_self_static
21943
21944 # Compiler flag to prevent dynamic linking.
21945 link_static_flag=$lt_lt_prog_compiler_static_F77
21946
21947 # Compiler flag to turn off builtin functions.
21948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21949
21950 # Compiler flag to allow reflexive dlopens.
21951 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21952
21953 # Compiler flag to generate shared objects directly from archives.
21954 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21955
21956 # Compiler flag to generate thread-safe objects.
21957 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21958
21959 # Library versioning type.
21960 version_type=$version_type
21961
21962 # Format of library name prefix.
21963 libname_spec=$lt_libname_spec
21964
21965 # List of archive names.  First name is the real one, the rest are links.
21966 # The last name is the one that the linker finds with -lNAME.
21967 library_names_spec=$lt_library_names_spec
21968
21969 # The coded name of the library, if different from the real name.
21970 soname_spec=$lt_soname_spec
21971
21972 # Commands used to build and install an old-style archive.
21973 RANLIB=$lt_RANLIB
21974 old_archive_cmds=$lt_old_archive_cmds_F77
21975 old_postinstall_cmds=$lt_old_postinstall_cmds
21976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21977
21978 # Create an old-style archive from a shared archive.
21979 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21980
21981 # Create a temporary old-style archive to link instead of a shared archive.
21982 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21983
21984 # Commands used to build and install a shared archive.
21985 archive_cmds=$lt_archive_cmds_F77
21986 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21987 postinstall_cmds=$lt_postinstall_cmds
21988 postuninstall_cmds=$lt_postuninstall_cmds
21989
21990 # Commands used to build a loadable module (assumed same as above if empty)
21991 module_cmds=$lt_module_cmds_F77
21992 module_expsym_cmds=$lt_module_expsym_cmds_F77
21993
21994 # Commands to strip libraries.
21995 old_striplib=$lt_old_striplib
21996 striplib=$lt_striplib
21997
21998 # Dependencies to place before the objects being linked to create a
21999 # shared library.
22000 predep_objects=$lt_predep_objects_F77
22001
22002 # Dependencies to place after the objects being linked to create a
22003 # shared library.
22004 postdep_objects=$lt_postdep_objects_F77
22005
22006 # Dependencies to place before the objects being linked to create a
22007 # shared library.
22008 predeps=$lt_predeps_F77
22009
22010 # Dependencies to place after the objects being linked to create a
22011 # shared library.
22012 postdeps=$lt_postdeps_F77
22013
22014 # The library search path used internally by the compiler when linking
22015 # a shared library.
22016 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22017
22018 # Method to check whether dependent libraries are shared objects.
22019 deplibs_check_method=$lt_deplibs_check_method
22020
22021 # Command to use when deplibs_check_method == file_magic.
22022 file_magic_cmd=$lt_file_magic_cmd
22023
22024 # Flag that allows shared libraries with undefined symbols to be built.
22025 allow_undefined_flag=$lt_allow_undefined_flag_F77
22026
22027 # Flag that forces no undefined symbols.
22028 no_undefined_flag=$lt_no_undefined_flag_F77
22029
22030 # Commands used to finish a libtool library installation in a directory.
22031 finish_cmds=$lt_finish_cmds
22032
22033 # Same as above, but a single script fragment to be evaled but not shown.
22034 finish_eval=$lt_finish_eval
22035
22036 # Take the output of nm and produce a listing of raw symbols and C names.
22037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22038
22039 # Transform the output of nm in a proper C declaration
22040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22041
22042 # Transform the output of nm in a C name address pair
22043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22044
22045 # This is the shared library runtime path variable.
22046 runpath_var=$runpath_var
22047
22048 # This is the shared library path variable.
22049 shlibpath_var=$shlibpath_var
22050
22051 # Is shlibpath searched before the hard-coded library search path?
22052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22053
22054 # How to hardcode a shared library path into an executable.
22055 hardcode_action=$hardcode_action_F77
22056
22057 # Whether we should hardcode library paths into libraries.
22058 hardcode_into_libs=$hardcode_into_libs
22059
22060 # Flag to hardcode \$libdir into a binary during linking.
22061 # This must work even if \$libdir does not exist.
22062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22063
22064 # If ld is used when linking, flag to hardcode \$libdir into
22065 # a binary during linking. This must work even if \$libdir does
22066 # not exist.
22067 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22068
22069 # Whether we need a single -rpath flag with a separated argument.
22070 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22071
22072 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22073 # resulting binary.
22074 hardcode_direct=$hardcode_direct_F77
22075
22076 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22077 # resulting binary.
22078 hardcode_minus_L=$hardcode_minus_L_F77
22079
22080 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22081 # the resulting binary.
22082 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22083
22084 # Set to yes if building a shared library automatically hardcodes DIR into the library
22085 # and all subsequent libraries and executables linked against it.
22086 hardcode_automatic=$hardcode_automatic_F77
22087
22088 # Variables whose values should be saved in libtool wrapper scripts and
22089 # restored at relink time.
22090 variables_saved_for_relink="$variables_saved_for_relink"
22091
22092 # Whether libtool must link a program against all its dependency libraries.
22093 link_all_deplibs=$link_all_deplibs_F77
22094
22095 # Compile-time system search path for libraries
22096 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22097
22098 # Run-time system search path for libraries
22099 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22100
22101 # Fix the shell variable \$srcfile for the compiler.
22102 fix_srcfile_path="$fix_srcfile_path_F77"
22103
22104 # Set to yes if exported symbols are required.
22105 always_export_symbols=$always_export_symbols_F77
22106
22107 # The commands to list exported symbols.
22108 export_symbols_cmds=$lt_export_symbols_cmds_F77
22109
22110 # The commands to extract the exported symbol list from a shared archive.
22111 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22112
22113 # Symbols that should not be listed in the preloaded symbols.
22114 exclude_expsyms=$lt_exclude_expsyms_F77
22115
22116 # Symbols that must always be exported.
22117 include_expsyms=$lt_include_expsyms_F77
22118
22119 # ### END LIBTOOL TAG CONFIG: $tagname
22120
22121 __EOF__
22122
22123
22124 else
22125   # If there is no Makefile yet, we rely on a make rule to execute
22126   # `config.status --recheck' to rerun these tests and create the
22127   # libtool script then.
22128   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22129   if test -f "$ltmain_in"; then
22130     test -f Makefile && make "$ltmain"
22131   fi
22132 fi
22133
22134
22135 ac_ext=c
22136 ac_cpp='$CPP $CPPFLAGS'
22137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22140
22141 CC="$lt_save_CC"
22142
22143         else
22144           tagname=""
22145         fi
22146         ;;
22147
22148       GCJ)
22149         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22150
22151
22152
22153 # Source file extension for Java test sources.
22154 ac_ext=java
22155
22156 # Object file extension for compiled Java test sources.
22157 objext=o
22158 objext_GCJ=$objext
22159
22160 # Code to be used in simple compile tests
22161 lt_simple_compile_test_code="class foo {}\n"
22162
22163 # Code to be used in simple link tests
22164 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22165
22166 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22167
22168 # If no C compiler was specified, use CC.
22169 LTCC=${LTCC-"$CC"}
22170
22171 # Allow CC to be a program name with arguments.
22172 compiler=$CC
22173
22174
22175 # save warnings/boilerplate of simple test code
22176 ac_outfile=conftest.$ac_objext
22177 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22178 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22179 _lt_compiler_boilerplate=`cat conftest.err`
22180 $rm conftest*
22181
22182 ac_outfile=conftest.$ac_objext
22183 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22184 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22185 _lt_linker_boilerplate=`cat conftest.err`
22186 $rm conftest*
22187
22188
22189 # Allow CC to be a program name with arguments.
22190 lt_save_CC="$CC"
22191 CC=${GCJ-"gcj"}
22192 compiler=$CC
22193 compiler_GCJ=$CC
22194 for cc_temp in $compiler""; do
22195   case $cc_temp in
22196     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22197     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22198     \-*) ;;
22199     *) break;;
22200   esac
22201 done
22202 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22203
22204
22205 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22206 archive_cmds_need_lc_GCJ=no
22207
22208 old_archive_cmds_GCJ=$old_archive_cmds
22209
22210
22211 lt_prog_compiler_no_builtin_flag_GCJ=
22212
22213 if test "$GCC" = yes; then
22214   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22215
22216
22217 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22218 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
22219 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22220   echo $ECHO_N "(cached) $ECHO_C" >&6
22221 else
22222   lt_cv_prog_compiler_rtti_exceptions=no
22223   ac_outfile=conftest.$ac_objext
22224    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22225    lt_compiler_flag="-fno-rtti -fno-exceptions"
22226    # Insert the option either (1) after the last *FLAGS variable, or
22227    # (2) before a word containing "conftest.", or (3) at the end.
22228    # Note that $ac_compile itself does not contain backslashes and begins
22229    # with a dollar sign (not a hyphen), so the echo should work correctly.
22230    # The option is referenced via a variable to avoid confusing sed.
22231    lt_compile=`echo "$ac_compile" | $SED \
22232    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22234    -e 's:$: $lt_compiler_flag:'`
22235    (eval echo "\"\$as_me:22235: $lt_compile\"" >&5)
22236    (eval "$lt_compile" 2>conftest.err)
22237    ac_status=$?
22238    cat conftest.err >&5
22239    echo "$as_me:22239: \$? = $ac_status" >&5
22240    if (exit $ac_status) && test -s "$ac_outfile"; then
22241      # The compiler can only warn and ignore the option if not recognized
22242      # So say no if there are warnings other than the usual output.
22243      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22244      $SED '/^$/d' conftest.err >conftest.er2
22245      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22246        lt_cv_prog_compiler_rtti_exceptions=yes
22247      fi
22248    fi
22249    $rm conftest*
22250
22251 fi
22252 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22253 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
22254
22255 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22256     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22257 else
22258     :
22259 fi
22260
22261 fi
22262
22263 lt_prog_compiler_wl_GCJ=
22264 lt_prog_compiler_pic_GCJ=
22265 lt_prog_compiler_static_GCJ=
22266
22267 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22268 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22269
22270   if test "$GCC" = yes; then
22271     lt_prog_compiler_wl_GCJ='-Wl,'
22272     lt_prog_compiler_static_GCJ='-static'
22273
22274     case $host_os in
22275       aix*)
22276       # All AIX code is PIC.
22277       if test "$host_cpu" = ia64; then
22278         # AIX 5 now supports IA64 processor
22279         lt_prog_compiler_static_GCJ='-Bstatic'
22280       fi
22281       ;;
22282
22283     amigaos*)
22284       # FIXME: we need at least 68020 code to build shared libraries, but
22285       # adding the `-m68020' flag to GCC prevents building anything better,
22286       # like `-m68040'.
22287       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22288       ;;
22289
22290     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22291       # PIC is the default for these OSes.
22292       ;;
22293
22294     mingw* | pw32* | os2*)
22295       # This hack is so that the source file can tell whether it is being
22296       # built for inclusion in a dll (and should export symbols for example).
22297       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22298       ;;
22299
22300     darwin* | rhapsody*)
22301       # PIC is the default on this platform
22302       # Common symbols not allowed in MH_DYLIB files
22303       lt_prog_compiler_pic_GCJ='-fno-common'
22304       ;;
22305
22306     msdosdjgpp*)
22307       # Just because we use GCC doesn't mean we suddenly get shared libraries
22308       # on systems that don't support them.
22309       lt_prog_compiler_can_build_shared_GCJ=no
22310       enable_shared=no
22311       ;;
22312
22313     sysv4*MP*)
22314       if test -d /usr/nec; then
22315         lt_prog_compiler_pic_GCJ=-Kconform_pic
22316       fi
22317       ;;
22318
22319     hpux*)
22320       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22321       # not for PA HP-UX.
22322       case "$host_cpu" in
22323       hppa*64*|ia64*)
22324         # +Z the default
22325         ;;
22326       *)
22327         lt_prog_compiler_pic_GCJ='-fPIC'
22328         ;;
22329       esac
22330       ;;
22331
22332     *)
22333       lt_prog_compiler_pic_GCJ='-fPIC'
22334       ;;
22335     esac
22336   else
22337     # PORTME Check for flag to pass linker flags through the system compiler.
22338     case $host_os in
22339     aix*)
22340       lt_prog_compiler_wl_GCJ='-Wl,'
22341       if test "$host_cpu" = ia64; then
22342         # AIX 5 now supports IA64 processor
22343         lt_prog_compiler_static_GCJ='-Bstatic'
22344       else
22345         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22346       fi
22347       ;;
22348       darwin*)
22349         # PIC is the default on this platform
22350         # Common symbols not allowed in MH_DYLIB files
22351        case $cc_basename in
22352          xlc*)
22353          lt_prog_compiler_pic_GCJ='-qnocommon'
22354          lt_prog_compiler_wl_GCJ='-Wl,'
22355          ;;
22356        esac
22357        ;;
22358
22359     mingw* | pw32* | os2*)
22360       # This hack is so that the source file can tell whether it is being
22361       # built for inclusion in a dll (and should export symbols for example).
22362       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22363       ;;
22364
22365     hpux9* | hpux10* | hpux11*)
22366       lt_prog_compiler_wl_GCJ='-Wl,'
22367       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22368       # not for PA HP-UX.
22369       case "$host_cpu" in
22370       hppa*64*|ia64*)
22371         # +Z the default
22372         ;;
22373       *)
22374         lt_prog_compiler_pic_GCJ='+Z'
22375         ;;
22376       esac
22377       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22378       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22379       ;;
22380
22381     irix5* | irix6* | nonstopux*)
22382       lt_prog_compiler_wl_GCJ='-Wl,'
22383       # PIC (with -KPIC) is the default.
22384       lt_prog_compiler_static_GCJ='-non_shared'
22385       ;;
22386
22387     newsos6)
22388       lt_prog_compiler_pic_GCJ='-KPIC'
22389       lt_prog_compiler_static_GCJ='-Bstatic'
22390       ;;
22391
22392     linux*)
22393       case $cc_basename in
22394       icc* | ecc*)
22395         lt_prog_compiler_wl_GCJ='-Wl,'
22396         lt_prog_compiler_pic_GCJ='-KPIC'
22397         lt_prog_compiler_static_GCJ='-static'
22398         ;;
22399       pgcc* | pgf77* | pgf90*)
22400         # Portland Group compilers (*not* the Pentium gcc compiler,
22401         # which looks to be a dead project)
22402         lt_prog_compiler_wl_GCJ='-Wl,'
22403         lt_prog_compiler_pic_GCJ='-fpic'
22404         lt_prog_compiler_static_GCJ='-static'
22405         ;;
22406       ccc*)
22407         lt_prog_compiler_wl_GCJ='-Wl,'
22408         # All Alpha code is PIC.
22409         lt_prog_compiler_static_GCJ='-non_shared'
22410         ;;
22411       esac
22412       ;;
22413
22414     osf3* | osf4* | osf5*)
22415       lt_prog_compiler_wl_GCJ='-Wl,'
22416       # All OSF/1 code is PIC.
22417       lt_prog_compiler_static_GCJ='-non_shared'
22418       ;;
22419
22420     sco3.2v5*)
22421       lt_prog_compiler_pic_GCJ='-Kpic'
22422       lt_prog_compiler_static_GCJ='-dn'
22423       ;;
22424
22425     solaris*)
22426       lt_prog_compiler_pic_GCJ='-KPIC'
22427       lt_prog_compiler_static_GCJ='-Bstatic'
22428       case $cc_basename in
22429       f77* | f90* | f95*)
22430         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22431       *)
22432         lt_prog_compiler_wl_GCJ='-Wl,';;
22433       esac
22434       ;;
22435
22436     sunos4*)
22437       lt_prog_compiler_wl_GCJ='-Qoption ld '
22438       lt_prog_compiler_pic_GCJ='-PIC'
22439       lt_prog_compiler_static_GCJ='-Bstatic'
22440       ;;
22441
22442     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22443       lt_prog_compiler_wl_GCJ='-Wl,'
22444       lt_prog_compiler_pic_GCJ='-KPIC'
22445       lt_prog_compiler_static_GCJ='-Bstatic'
22446       ;;
22447
22448     sysv4*MP*)
22449       if test -d /usr/nec ;then
22450         lt_prog_compiler_pic_GCJ='-Kconform_pic'
22451         lt_prog_compiler_static_GCJ='-Bstatic'
22452       fi
22453       ;;
22454
22455     unicos*)
22456       lt_prog_compiler_wl_GCJ='-Wl,'
22457       lt_prog_compiler_can_build_shared_GCJ=no
22458       ;;
22459
22460     uts4*)
22461       lt_prog_compiler_pic_GCJ='-pic'
22462       lt_prog_compiler_static_GCJ='-Bstatic'
22463       ;;
22464
22465     *)
22466       lt_prog_compiler_can_build_shared_GCJ=no
22467       ;;
22468     esac
22469   fi
22470
22471 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22472 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22473
22474 #
22475 # Check to make sure the PIC flag actually works.
22476 #
22477 if test -n "$lt_prog_compiler_pic_GCJ"; then
22478
22479 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22480 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22481 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22482   echo $ECHO_N "(cached) $ECHO_C" >&6
22483 else
22484   lt_prog_compiler_pic_works_GCJ=no
22485   ac_outfile=conftest.$ac_objext
22486    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22487    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22488    # Insert the option either (1) after the last *FLAGS variable, or
22489    # (2) before a word containing "conftest.", or (3) at the end.
22490    # Note that $ac_compile itself does not contain backslashes and begins
22491    # with a dollar sign (not a hyphen), so the echo should work correctly.
22492    # The option is referenced via a variable to avoid confusing sed.
22493    lt_compile=`echo "$ac_compile" | $SED \
22494    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22495    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22496    -e 's:$: $lt_compiler_flag:'`
22497    (eval echo "\"\$as_me:22497: $lt_compile\"" >&5)
22498    (eval "$lt_compile" 2>conftest.err)
22499    ac_status=$?
22500    cat conftest.err >&5
22501    echo "$as_me:22501: \$? = $ac_status" >&5
22502    if (exit $ac_status) && test -s "$ac_outfile"; then
22503      # The compiler can only warn and ignore the option if not recognized
22504      # So say no if there are warnings other than the usual output.
22505      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22506      $SED '/^$/d' conftest.err >conftest.er2
22507      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22508        lt_prog_compiler_pic_works_GCJ=yes
22509      fi
22510    fi
22511    $rm conftest*
22512
22513 fi
22514 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22515 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22516
22517 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22518     case $lt_prog_compiler_pic_GCJ in
22519      "" | " "*) ;;
22520      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22521      esac
22522 else
22523     lt_prog_compiler_pic_GCJ=
22524      lt_prog_compiler_can_build_shared_GCJ=no
22525 fi
22526
22527 fi
22528 case "$host_os" in
22529   # For platforms which do not support PIC, -DPIC is meaningless:
22530   *djgpp*)
22531     lt_prog_compiler_pic_GCJ=
22532     ;;
22533   *)
22534     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22535     ;;
22536 esac
22537
22538 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22539 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22540 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22541   echo $ECHO_N "(cached) $ECHO_C" >&6
22542 else
22543   lt_cv_prog_compiler_c_o_GCJ=no
22544    $rm -r conftest 2>/dev/null
22545    mkdir conftest
22546    cd conftest
22547    mkdir out
22548    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22549
22550    lt_compiler_flag="-o out/conftest2.$ac_objext"
22551    # Insert the option either (1) after the last *FLAGS variable, or
22552    # (2) before a word containing "conftest.", or (3) at the end.
22553    # Note that $ac_compile itself does not contain backslashes and begins
22554    # with a dollar sign (not a hyphen), so the echo should work correctly.
22555    lt_compile=`echo "$ac_compile" | $SED \
22556    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22557    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22558    -e 's:$: $lt_compiler_flag:'`
22559    (eval echo "\"\$as_me:22559: $lt_compile\"" >&5)
22560    (eval "$lt_compile" 2>out/conftest.err)
22561    ac_status=$?
22562    cat out/conftest.err >&5
22563    echo "$as_me:22563: \$? = $ac_status" >&5
22564    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22565    then
22566      # The compiler can only warn and ignore the option if not recognized
22567      # So say no if there are warnings
22568      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
22569      $SED '/^$/d' out/conftest.err >out/conftest.er2
22570      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22571        lt_cv_prog_compiler_c_o_GCJ=yes
22572      fi
22573    fi
22574    chmod u+w .
22575    $rm conftest*
22576    # SGI C++ compiler will create directory out/ii_files/ for
22577    # template instantiation
22578    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22579    $rm out/* && rmdir out
22580    cd ..
22581    rmdir conftest
22582    $rm conftest*
22583
22584 fi
22585 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22586 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22587
22588
22589 hard_links="nottested"
22590 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22591   # do not overwrite the value of need_locks provided by the user
22592   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22593 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22594   hard_links=yes
22595   $rm conftest*
22596   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22597   touch conftest.a
22598   ln conftest.a conftest.b 2>&5 || hard_links=no
22599   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22600   echo "$as_me:$LINENO: result: $hard_links" >&5
22601 echo "${ECHO_T}$hard_links" >&6
22602   if test "$hard_links" = no; then
22603     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22604 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22605     need_locks=warn
22606   fi
22607 else
22608   need_locks=no
22609 fi
22610
22611 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22612 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22613
22614   runpath_var=
22615   allow_undefined_flag_GCJ=
22616   enable_shared_with_static_runtimes_GCJ=no
22617   archive_cmds_GCJ=
22618   archive_expsym_cmds_GCJ=
22619   old_archive_From_new_cmds_GCJ=
22620   old_archive_from_expsyms_cmds_GCJ=
22621   export_dynamic_flag_spec_GCJ=
22622   whole_archive_flag_spec_GCJ=
22623   thread_safe_flag_spec_GCJ=
22624   hardcode_libdir_flag_spec_GCJ=
22625   hardcode_libdir_flag_spec_ld_GCJ=
22626   hardcode_libdir_separator_GCJ=
22627   hardcode_direct_GCJ=no
22628   hardcode_minus_L_GCJ=no
22629   hardcode_shlibpath_var_GCJ=unsupported
22630   link_all_deplibs_GCJ=unknown
22631   hardcode_automatic_GCJ=no
22632   module_cmds_GCJ=
22633   module_expsym_cmds_GCJ=
22634   always_export_symbols_GCJ=no
22635   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22636   # include_expsyms should be a list of space-separated symbols to be *always*
22637   # included in the symbol list
22638   include_expsyms_GCJ=
22639   # exclude_expsyms can be an extended regexp of symbols to exclude
22640   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22641   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22642   # as well as any symbol that contains `d'.
22643   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22644   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22645   # platforms (ab)use it in PIC code, but their linkers get confused if
22646   # the symbol is explicitly referenced.  Since portable code cannot
22647   # rely on this symbol name, it's probably fine to never include it in
22648   # preloaded symbol tables.
22649   extract_expsyms_cmds=
22650   # Just being paranoid about ensuring that cc_basename is set.
22651   for cc_temp in $compiler""; do
22652   case $cc_temp in
22653     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22654     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22655     \-*) ;;
22656     *) break;;
22657   esac
22658 done
22659 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22660
22661   case $host_os in
22662   cygwin* | mingw* | pw32*)
22663     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22664     # When not using gcc, we currently assume that we are using
22665     # Microsoft Visual C++.
22666     if test "$GCC" != yes; then
22667       with_gnu_ld=no
22668     fi
22669     ;;
22670   openbsd*)
22671     with_gnu_ld=no
22672     ;;
22673   esac
22674
22675   ld_shlibs_GCJ=yes
22676   if test "$with_gnu_ld" = yes; then
22677     # If archive_cmds runs LD, not CC, wlarc should be empty
22678     wlarc='${wl}'
22679
22680     # Set some defaults for GNU ld with shared library support. These
22681     # are reset later if shared libraries are not supported. Putting them
22682     # here allows them to be overridden if necessary.
22683     runpath_var=LD_RUN_PATH
22684     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22685     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22686     # ancient GNU ld didn't support --whole-archive et. al.
22687     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22688         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22689       else
22690         whole_archive_flag_spec_GCJ=
22691     fi
22692     supports_anon_versioning=no
22693     case `$LD -v 2>/dev/null` in
22694       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22695       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22696       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22697       *\ 2.11.*) ;; # other 2.11 versions
22698       *) supports_anon_versioning=yes ;;
22699     esac
22700
22701     # See if GNU ld supports shared libraries.
22702     case $host_os in
22703     aix3* | aix4* | aix5*)
22704       # On AIX/PPC, the GNU linker is very broken
22705       if test "$host_cpu" != ia64; then
22706         ld_shlibs_GCJ=no
22707         cat <<EOF 1>&2
22708
22709 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22710 *** to be unable to reliably create shared libraries on AIX.
22711 *** Therefore, libtool is disabling shared libraries support.  If you
22712 *** really care for shared libraries, you may want to modify your PATH
22713 *** so that a non-GNU linker is found, and then restart.
22714
22715 EOF
22716       fi
22717       ;;
22718
22719     amigaos*)
22720       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)'
22721       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22722       hardcode_minus_L_GCJ=yes
22723
22724       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22725       # that the semantics of dynamic libraries on AmigaOS, at least up
22726       # to version 4, is to share data among multiple programs linked
22727       # with the same dynamic library.  Since this doesn't match the
22728       # behavior of shared libraries on other platforms, we can't use
22729       # them.
22730       ld_shlibs_GCJ=no
22731       ;;
22732
22733     beos*)
22734       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22735         allow_undefined_flag_GCJ=unsupported
22736         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22737         # support --undefined.  This deserves some investigation.  FIXME
22738         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22739       else
22740         ld_shlibs_GCJ=no
22741       fi
22742       ;;
22743
22744     cygwin* | mingw* | pw32*)
22745       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22746       # as there is no search path for DLLs.
22747       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22748       allow_undefined_flag_GCJ=unsupported
22749       always_export_symbols_GCJ=no
22750       enable_shared_with_static_runtimes_GCJ=yes
22751       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22752
22753       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22754         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22755         # If the export-symbols file already is a .def file (1st line
22756         # is EXPORTS), use it as is; otherwise, prepend...
22757         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22758           cp $export_symbols $output_objdir/$soname.def;
22759         else
22760           echo EXPORTS > $output_objdir/$soname.def;
22761           cat $export_symbols >> $output_objdir/$soname.def;
22762         fi~
22763         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
22764       else
22765         ld_shlibs_GCJ=no
22766       fi
22767       ;;
22768
22769     linux*)
22770       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22771         tmp_addflag=
22772         case $cc_basename,$host_cpu in
22773         pgcc*)                          # Portland Group C compiler
22774           whole_archive_flag_spec_GCJ=
22775           ;;
22776         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
22777           whole_archive_flag_spec_GCJ=
22778           tmp_addflag=' -fpic -Mnomain' ;;
22779         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22780           tmp_addflag=' -i_dynamic' ;;
22781         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22782           tmp_addflag=' -i_dynamic -nofor_main' ;;
22783         ifc* | ifort*)                  # Intel Fortran compiler
22784           tmp_addflag=' -nofor_main' ;;
22785         esac
22786         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22787
22788         if test $supports_anon_versioning = yes; then
22789           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22790   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22791   $echo "local: *; };" >> $output_objdir/$libname.ver~
22792           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22793         fi
22794       else
22795         ld_shlibs_GCJ=no
22796       fi
22797       ;;
22798
22799     netbsd*)
22800       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22801         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22802         wlarc=
22803       else
22804         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22805         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22806       fi
22807       ;;
22808
22809     solaris* | sysv5*)
22810       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22811         ld_shlibs_GCJ=no
22812         cat <<EOF 1>&2
22813
22814 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22815 *** create shared libraries on Solaris systems.  Therefore, libtool
22816 *** is disabling shared libraries support.  We urge you to upgrade GNU
22817 *** binutils to release 2.9.1 or newer.  Another option is to modify
22818 *** your PATH or compiler configuration so that the native linker is
22819 *** used, and then restart.
22820
22821 EOF
22822       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22823         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22824         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22825       else
22826         ld_shlibs_GCJ=no
22827       fi
22828       ;;
22829
22830     sunos4*)
22831       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22832       wlarc=
22833       hardcode_direct_GCJ=yes
22834       hardcode_shlibpath_var_GCJ=no
22835       ;;
22836
22837     *)
22838       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22839         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22840         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22841       else
22842         ld_shlibs_GCJ=no
22843       fi
22844       ;;
22845     esac
22846
22847     if test "$ld_shlibs_GCJ" = no; then
22848       runpath_var=
22849       hardcode_libdir_flag_spec_GCJ=
22850       export_dynamic_flag_spec_GCJ=
22851       whole_archive_flag_spec_GCJ=
22852     fi
22853   else
22854     # PORTME fill in a description of your system's linker (not GNU ld)
22855     case $host_os in
22856     aix3*)
22857       allow_undefined_flag_GCJ=unsupported
22858       always_export_symbols_GCJ=yes
22859       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'
22860       # Note: this linker hardcodes the directories in LIBPATH if there
22861       # are no directories specified by -L.
22862       hardcode_minus_L_GCJ=yes
22863       if test "$GCC" = yes && test -z "$link_static_flag"; then
22864         # Neither direct hardcoding nor static linking is supported with a
22865         # broken collect2.
22866         hardcode_direct_GCJ=unsupported
22867       fi
22868       ;;
22869
22870     aix4* | aix5*)
22871       if test "$host_cpu" = ia64; then
22872         # On IA64, the linker does run time linking by default, so we don't
22873         # have to do anything special.
22874         aix_use_runtimelinking=no
22875         exp_sym_flag='-Bexport'
22876         no_entry_flag=""
22877       else
22878         # If we're using GNU nm, then we don't want the "-C" option.
22879         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22880         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22881           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'
22882         else
22883           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'
22884         fi
22885         aix_use_runtimelinking=no
22886
22887         # Test if we are trying to use run time linking or normal
22888         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22889         # need to do runtime linking.
22890         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22891           for ld_flag in $LDFLAGS; do
22892           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22893             aix_use_runtimelinking=yes
22894             break
22895           fi
22896           done
22897         esac
22898
22899         exp_sym_flag='-bexport'
22900         no_entry_flag='-bnoentry'
22901       fi
22902
22903       # When large executables or shared objects are built, AIX ld can
22904       # have problems creating the table of contents.  If linking a library
22905       # or program results in "error TOC overflow" add -mminimal-toc to
22906       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22907       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22908
22909       archive_cmds_GCJ=''
22910       hardcode_direct_GCJ=yes
22911       hardcode_libdir_separator_GCJ=':'
22912       link_all_deplibs_GCJ=yes
22913
22914       if test "$GCC" = yes; then
22915         case $host_os in aix4.[012]|aix4.[012].*)
22916         # We only want to do this on AIX 4.2 and lower, the check
22917         # below for broken collect2 doesn't work under 4.3+
22918           collect2name=`${CC} -print-prog-name=collect2`
22919           if test -f "$collect2name" && \
22920            strings "$collect2name" | grep resolve_lib_name >/dev/null
22921           then
22922           # We have reworked collect2
22923           hardcode_direct_GCJ=yes
22924           else
22925           # We have old collect2
22926           hardcode_direct_GCJ=unsupported
22927           # It fails to find uninstalled libraries when the uninstalled
22928           # path is not listed in the libpath.  Setting hardcode_minus_L
22929           # to unsupported forces relinking
22930           hardcode_minus_L_GCJ=yes
22931           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22932           hardcode_libdir_separator_GCJ=
22933           fi
22934         esac
22935         shared_flag='-shared'
22936         if test "$aix_use_runtimelinking" = yes; then
22937           shared_flag="$shared_flag "'${wl}-G'
22938         fi
22939       else
22940         # not using gcc
22941         if test "$host_cpu" = ia64; then
22942         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22943         # chokes on -Wl,-G. The following line is correct:
22944           shared_flag='-G'
22945         else
22946         if test "$aix_use_runtimelinking" = yes; then
22947             shared_flag='${wl}-G'
22948           else
22949             shared_flag='${wl}-bM:SRE'
22950         fi
22951         fi
22952       fi
22953
22954       # It seems that -bexpall does not export symbols beginning with
22955       # underscore (_), so it is better to generate a list of symbols to export.
22956       always_export_symbols_GCJ=yes
22957       if test "$aix_use_runtimelinking" = yes; then
22958         # Warning - without using the other runtime loading flags (-brtl),
22959         # -berok will link without error, but may produce a broken library.
22960         allow_undefined_flag_GCJ='-berok'
22961        # Determine the default libpath from the value encoded in an empty executable.
22962        cat >conftest.$ac_ext <<_ACEOF
22963 /* confdefs.h.  */
22964 _ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h.  */
22968
22969 int
22970 main ()
22971 {
22972
22973   ;
22974   return 0;
22975 }
22976 _ACEOF
22977 rm -f conftest.$ac_objext conftest$ac_exeext
22978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22979   (eval $ac_link) 2>conftest.er1
22980   ac_status=$?
22981   grep -v '^ *+' conftest.er1 >conftest.err
22982   rm -f conftest.er1
22983   cat conftest.err >&5
22984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985   (exit $ac_status); } &&
22986          { ac_try='test -z "$ac_c_werror_flag"
22987                          || test ! -s conftest.err'
22988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22989   (eval $ac_try) 2>&5
22990   ac_status=$?
22991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992   (exit $ac_status); }; } &&
22993          { ac_try='test -s conftest$ac_exeext'
22994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995   (eval $ac_try) 2>&5
22996   ac_status=$?
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); }; }; then
22999
23000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23001 }'`
23002 # Check for a 64-bit object if we didn't find anything.
23003 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; }
23004 }'`; fi
23005 else
23006   echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.$ac_ext >&5
23008
23009 fi
23010 rm -f conftest.err conftest.$ac_objext \
23011       conftest$ac_exeext conftest.$ac_ext
23012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23013
23014        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23015         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"
23016        else
23017         if test "$host_cpu" = ia64; then
23018           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23019           allow_undefined_flag_GCJ="-z nodefs"
23020           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"
23021         else
23022          # Determine the default libpath from the value encoded in an empty executable.
23023          cat >conftest.$ac_ext <<_ACEOF
23024 /* confdefs.h.  */
23025 _ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h.  */
23029
23030 int
23031 main ()
23032 {
23033
23034   ;
23035   return 0;
23036 }
23037 _ACEOF
23038 rm -f conftest.$ac_objext conftest$ac_exeext
23039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23040   (eval $ac_link) 2>conftest.er1
23041   ac_status=$?
23042   grep -v '^ *+' conftest.er1 >conftest.err
23043   rm -f conftest.er1
23044   cat conftest.err >&5
23045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046   (exit $ac_status); } &&
23047          { ac_try='test -z "$ac_c_werror_flag"
23048                          || test ! -s conftest.err'
23049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050   (eval $ac_try) 2>&5
23051   ac_status=$?
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); }; } &&
23054          { ac_try='test -s conftest$ac_exeext'
23055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23056   (eval $ac_try) 2>&5
23057   ac_status=$?
23058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059   (exit $ac_status); }; }; then
23060
23061 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23062 }'`
23063 # Check for a 64-bit object if we didn't find anything.
23064 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; }
23065 }'`; fi
23066 else
23067   echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23069
23070 fi
23071 rm -f conftest.err conftest.$ac_objext \
23072       conftest$ac_exeext conftest.$ac_ext
23073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23074
23075          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23076           # Warning - without using the other run time loading flags,
23077           # -berok will link without error, but may produce a broken library.
23078           no_undefined_flag_GCJ=' ${wl}-bernotok'
23079           allow_undefined_flag_GCJ=' ${wl}-berok'
23080           # -bexpall does not export symbols beginning with underscore (_)
23081           always_export_symbols_GCJ=yes
23082           # Exported symbols can be pulled into shared objects from archives
23083           whole_archive_flag_spec_GCJ=' '
23084           archive_cmds_need_lc_GCJ=yes
23085           # This is similar to how AIX traditionally builds it's shared libraries.
23086           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'
23087         fi
23088       fi
23089       ;;
23090
23091     amigaos*)
23092       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)'
23093       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23094       hardcode_minus_L_GCJ=yes
23095       # see comment about different semantics on the GNU ld section
23096       ld_shlibs_GCJ=no
23097       ;;
23098
23099     bsdi[45]*)
23100       export_dynamic_flag_spec_GCJ=-rdynamic
23101       ;;
23102
23103     cygwin* | mingw* | pw32*)
23104       # When not using gcc, we currently assume that we are using
23105       # Microsoft Visual C++.
23106       # hardcode_libdir_flag_spec is actually meaningless, as there is
23107       # no search path for DLLs.
23108       hardcode_libdir_flag_spec_GCJ=' '
23109       allow_undefined_flag_GCJ=unsupported
23110       # Tell ltmain to make .lib files, not .a files.
23111       libext=lib
23112       # Tell ltmain to make .dll files, not .so files.
23113       shrext_cmds=".dll"
23114       # FIXME: Setting linknames here is a bad hack.
23115       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23116       # The linker will automatically build a .lib file if we build a DLL.
23117       old_archive_From_new_cmds_GCJ='true'
23118       # FIXME: Should let the user specify the lib program.
23119       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23120       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23121       enable_shared_with_static_runtimes_GCJ=yes
23122       ;;
23123
23124     darwin* | rhapsody*)
23125       case "$host_os" in
23126         rhapsody* | darwin1.[012])
23127          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23128          ;;
23129        *) # Darwin 1.3 on
23130          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23131            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23132          else
23133            case ${MACOSX_DEPLOYMENT_TARGET} in
23134              10.[012])
23135                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23136                ;;
23137              10.*)
23138                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23139                ;;
23140            esac
23141          fi
23142          ;;
23143       esac
23144       archive_cmds_need_lc_GCJ=no
23145       hardcode_direct_GCJ=no
23146       hardcode_automatic_GCJ=yes
23147       hardcode_shlibpath_var_GCJ=unsupported
23148       whole_archive_flag_spec_GCJ=''
23149       link_all_deplibs_GCJ=yes
23150     if test "$GCC" = yes ; then
23151         output_verbose_link_cmd='echo'
23152         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23153       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23154       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
23155       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23156       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}'
23157     else
23158       case $cc_basename in
23159         xlc*)
23160          output_verbose_link_cmd='echo'
23161          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23162          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23163           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
23164          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23165           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}'
23166           ;;
23167        *)
23168          ld_shlibs_GCJ=no
23169           ;;
23170       esac
23171     fi
23172       ;;
23173
23174     dgux*)
23175       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23176       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23177       hardcode_shlibpath_var_GCJ=no
23178       ;;
23179
23180     freebsd1*)
23181       ld_shlibs_GCJ=no
23182       ;;
23183
23184     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23185     # support.  Future versions do this automatically, but an explicit c++rt0.o
23186     # does not break anything, and helps significantly (at the cost of a little
23187     # extra space).
23188     freebsd2.2*)
23189       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23190       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23191       hardcode_direct_GCJ=yes
23192       hardcode_shlibpath_var_GCJ=no
23193       ;;
23194
23195     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23196     freebsd2*)
23197       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23198       hardcode_direct_GCJ=yes
23199       hardcode_minus_L_GCJ=yes
23200       hardcode_shlibpath_var_GCJ=no
23201       ;;
23202
23203     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23204     freebsd* | kfreebsd*-gnu | dragonfly*)
23205       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23206       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23207       hardcode_direct_GCJ=yes
23208       hardcode_shlibpath_var_GCJ=no
23209       ;;
23210
23211     hpux9*)
23212       if test "$GCC" = yes; then
23213         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'
23214       else
23215         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'
23216       fi
23217       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23218       hardcode_libdir_separator_GCJ=:
23219       hardcode_direct_GCJ=yes
23220
23221       # hardcode_minus_L: Not really in the search PATH,
23222       # but as the default location of the library.
23223       hardcode_minus_L_GCJ=yes
23224       export_dynamic_flag_spec_GCJ='${wl}-E'
23225       ;;
23226
23227     hpux10* | hpux11*)
23228       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23229         case "$host_cpu" in
23230         hppa*64*|ia64*)
23231           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23232           ;;
23233         *)
23234           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23235           ;;
23236         esac
23237       else
23238         case "$host_cpu" in
23239         hppa*64*|ia64*)
23240           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
23241           ;;
23242         *)
23243           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23244           ;;
23245         esac
23246       fi
23247       if test "$with_gnu_ld" = no; then
23248         case "$host_cpu" in
23249         hppa*64*)
23250           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23251           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23252           hardcode_libdir_separator_GCJ=:
23253           hardcode_direct_GCJ=no
23254           hardcode_shlibpath_var_GCJ=no
23255           ;;
23256         ia64*)
23257           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23258           hardcode_direct_GCJ=no
23259           hardcode_shlibpath_var_GCJ=no
23260
23261           # hardcode_minus_L: Not really in the search PATH,
23262           # but as the default location of the library.
23263           hardcode_minus_L_GCJ=yes
23264           ;;
23265         *)
23266           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23267           hardcode_libdir_separator_GCJ=:
23268           hardcode_direct_GCJ=yes
23269           export_dynamic_flag_spec_GCJ='${wl}-E'
23270
23271           # hardcode_minus_L: Not really in the search PATH,
23272           # but as the default location of the library.
23273           hardcode_minus_L_GCJ=yes
23274           ;;
23275         esac
23276       fi
23277       ;;
23278
23279     irix5* | irix6* | nonstopux*)
23280       if test "$GCC" = yes; then
23281         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'
23282       else
23283         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'
23284         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23285       fi
23286       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23287       hardcode_libdir_separator_GCJ=:
23288       link_all_deplibs_GCJ=yes
23289       ;;
23290
23291     netbsd*)
23292       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23293         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23294       else
23295         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23296       fi
23297       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23298       hardcode_direct_GCJ=yes
23299       hardcode_shlibpath_var_GCJ=no
23300       ;;
23301
23302     newsos6)
23303       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23304       hardcode_direct_GCJ=yes
23305       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23306       hardcode_libdir_separator_GCJ=:
23307       hardcode_shlibpath_var_GCJ=no
23308       ;;
23309
23310     openbsd*)
23311       hardcode_direct_GCJ=yes
23312       hardcode_shlibpath_var_GCJ=no
23313       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23314         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23315         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23316         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23317         export_dynamic_flag_spec_GCJ='${wl}-E'
23318       else
23319        case $host_os in
23320          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23321            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23322            hardcode_libdir_flag_spec_GCJ='-R$libdir'
23323            ;;
23324          *)
23325            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23326            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23327            ;;
23328        esac
23329       fi
23330       ;;
23331
23332     os2*)
23333       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23334       hardcode_minus_L_GCJ=yes
23335       allow_undefined_flag_GCJ=unsupported
23336       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'
23337       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23338       ;;
23339
23340     osf3*)
23341       if test "$GCC" = yes; then
23342         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23343         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'
23344       else
23345         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23346         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'
23347       fi
23348       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23349       hardcode_libdir_separator_GCJ=:
23350       ;;
23351
23352     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23353       if test "$GCC" = yes; then
23354         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23355         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'
23356         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23357       else
23358         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23359         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'
23360         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~
23361         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
23362
23363         # Both c and cxx compiler support -rpath directly
23364         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23365       fi
23366       hardcode_libdir_separator_GCJ=:
23367       ;;
23368
23369     sco3.2v5*)
23370       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23371       hardcode_shlibpath_var_GCJ=no
23372       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23373       runpath_var=LD_RUN_PATH
23374       hardcode_runpath_var=yes
23375       ;;
23376
23377     solaris*)
23378       no_undefined_flag_GCJ=' -z text'
23379       if test "$GCC" = yes; then
23380         wlarc='${wl}'
23381         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23382         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23383           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23384       else
23385         wlarc=''
23386         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23387         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23388         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23389       fi
23390       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23391       hardcode_shlibpath_var_GCJ=no
23392       case $host_os in
23393       solaris2.[0-5] | solaris2.[0-5].*) ;;
23394       *)
23395         # The compiler driver will combine linker options so we
23396         # cannot just pass the convience library names through
23397         # without $wl, iff we do not link with $LD.
23398         # Luckily, gcc supports the same syntax we need for Sun Studio.
23399         # Supported since Solaris 2.6 (maybe 2.5.1?)
23400         case $wlarc in
23401         '')
23402           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23403         *)
23404           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
23405         esac ;;
23406       esac
23407       link_all_deplibs_GCJ=yes
23408       ;;
23409
23410     sunos4*)
23411       if test "x$host_vendor" = xsequent; then
23412         # Use $CC to link under sequent, because it throws in some extra .o
23413         # files that make .init and .fini sections work.
23414         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23415       else
23416         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23417       fi
23418       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23419       hardcode_direct_GCJ=yes
23420       hardcode_minus_L_GCJ=yes
23421       hardcode_shlibpath_var_GCJ=no
23422       ;;
23423
23424     sysv4)
23425       case $host_vendor in
23426         sni)
23427           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23428           hardcode_direct_GCJ=yes # is this really true???
23429         ;;
23430         siemens)
23431           ## LD is ld it makes a PLAMLIB
23432           ## CC just makes a GrossModule.
23433           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23434           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23435           hardcode_direct_GCJ=no
23436         ;;
23437         motorola)
23438           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23439           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23440         ;;
23441       esac
23442       runpath_var='LD_RUN_PATH'
23443       hardcode_shlibpath_var_GCJ=no
23444       ;;
23445
23446     sysv4.3*)
23447       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23448       hardcode_shlibpath_var_GCJ=no
23449       export_dynamic_flag_spec_GCJ='-Bexport'
23450       ;;
23451
23452     sysv4*MP*)
23453       if test -d /usr/nec; then
23454         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23455         hardcode_shlibpath_var_GCJ=no
23456         runpath_var=LD_RUN_PATH
23457         hardcode_runpath_var=yes
23458         ld_shlibs_GCJ=yes
23459       fi
23460       ;;
23461
23462     sysv4.2uw2*)
23463       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23464       hardcode_direct_GCJ=yes
23465       hardcode_minus_L_GCJ=no
23466       hardcode_shlibpath_var_GCJ=no
23467       hardcode_runpath_var=yes
23468       runpath_var=LD_RUN_PATH
23469       ;;
23470
23471    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
23472       no_undefined_flag_GCJ='${wl}-z ${wl}text'
23473       if test "$GCC" = yes; then
23474         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23475       else
23476         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23477       fi
23478       runpath_var='LD_RUN_PATH'
23479       hardcode_shlibpath_var_GCJ=no
23480       ;;
23481
23482     sysv5*)
23483       no_undefined_flag_GCJ=' -z text'
23484       # $CC -shared without GNU ld will not create a library from C++
23485       # object files and a static libstdc++, better avoid it by now
23486       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23487       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23488                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23489       hardcode_libdir_flag_spec_GCJ=
23490       hardcode_shlibpath_var_GCJ=no
23491       runpath_var='LD_RUN_PATH'
23492       ;;
23493
23494     uts4*)
23495       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23496       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23497       hardcode_shlibpath_var_GCJ=no
23498       ;;
23499
23500     *)
23501       ld_shlibs_GCJ=no
23502       ;;
23503     esac
23504   fi
23505
23506 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23507 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23508 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23509
23510 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23511 if test "$GCC" = yes; then
23512   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23513 fi
23514
23515 #
23516 # Do we need to explicitly link libc?
23517 #
23518 case "x$archive_cmds_need_lc_GCJ" in
23519 x|xyes)
23520   # Assume -lc should be added
23521   archive_cmds_need_lc_GCJ=yes
23522
23523   if test "$enable_shared" = yes && test "$GCC" = yes; then
23524     case $archive_cmds_GCJ in
23525     *'~'*)
23526       # FIXME: we may have to deal with multi-command sequences.
23527       ;;
23528     '$CC '*)
23529       # Test whether the compiler implicitly links with -lc since on some
23530       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23531       # to ld, don't add -lc before -lgcc.
23532       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23533 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23534       $rm conftest*
23535       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23536
23537       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23538   (eval $ac_compile) 2>&5
23539   ac_status=$?
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); } 2>conftest.err; then
23542         soname=conftest
23543         lib=conftest
23544         libobjs=conftest.$ac_objext
23545         deplibs=
23546         wl=$lt_prog_compiler_wl_GCJ
23547         compiler_flags=-v
23548         linker_flags=-v
23549         verstring=
23550         output_objdir=.
23551         libname=conftest
23552         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23553         allow_undefined_flag_GCJ=
23554         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23555   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23556   ac_status=$?
23557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558   (exit $ac_status); }
23559         then
23560           archive_cmds_need_lc_GCJ=no
23561         else
23562           archive_cmds_need_lc_GCJ=yes
23563         fi
23564         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23565       else
23566         cat conftest.err 1>&5
23567       fi
23568       $rm conftest*
23569       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23570 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23571       ;;
23572     esac
23573   fi
23574   ;;
23575 esac
23576
23577 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23578 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23579 library_names_spec=
23580 libname_spec='lib$name'
23581 soname_spec=
23582 shrext_cmds=".so"
23583 postinstall_cmds=
23584 postuninstall_cmds=
23585 finish_cmds=
23586 finish_eval=
23587 shlibpath_var=
23588 shlibpath_overrides_runpath=unknown
23589 version_type=none
23590 dynamic_linker="$host_os ld.so"
23591 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23592 if test "$GCC" = yes; then
23593   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23594   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23595     # if the path contains ";" then we assume it to be the separator
23596     # otherwise default to the standard path separator (i.e. ":") - it is
23597     # assumed that no part of a normal pathname contains ";" but that should
23598     # okay in the real world where ";" in dirpaths is itself problematic.
23599     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23600   else
23601     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23602   fi
23603 else
23604   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23605 fi
23606 need_lib_prefix=unknown
23607 hardcode_into_libs=no
23608
23609 # when you set need_version to no, make sure it does not cause -set_version
23610 # flags to be left without arguments
23611 need_version=unknown
23612
23613 case $host_os in
23614 aix3*)
23615   version_type=linux
23616   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23617   shlibpath_var=LIBPATH
23618
23619   # AIX 3 has no versioning support, so we append a major version to the name.
23620   soname_spec='${libname}${release}${shared_ext}$major'
23621   ;;
23622
23623 aix4* | aix5*)
23624   version_type=linux
23625   need_lib_prefix=no
23626   need_version=no
23627   hardcode_into_libs=yes
23628   if test "$host_cpu" = ia64; then
23629     # AIX 5 supports IA64
23630     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23631     shlibpath_var=LD_LIBRARY_PATH
23632   else
23633     # With GCC up to 2.95.x, collect2 would create an import file
23634     # for dependence libraries.  The import file would start with
23635     # the line `#! .'.  This would cause the generated library to
23636     # depend on `.', always an invalid library.  This was fixed in
23637     # development snapshots of GCC prior to 3.0.
23638     case $host_os in
23639       aix4 | aix4.[01] | aix4.[01].*)
23640       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23641            echo ' yes '
23642            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23643         :
23644       else
23645         can_build_shared=no
23646       fi
23647       ;;
23648     esac
23649     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23650     # soname into executable. Probably we can add versioning support to
23651     # collect2, so additional links can be useful in future.
23652     if test "$aix_use_runtimelinking" = yes; then
23653       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23654       # instead of lib<name>.a to let people know that these are not
23655       # typical AIX shared libraries.
23656       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23657     else
23658       # We preserve .a as extension for shared libraries through AIX4.2
23659       # and later when we are not doing run time linking.
23660       library_names_spec='${libname}${release}.a $libname.a'
23661       soname_spec='${libname}${release}${shared_ext}$major'
23662     fi
23663     shlibpath_var=LIBPATH
23664   fi
23665   ;;
23666
23667 amigaos*)
23668   library_names_spec='$libname.ixlibrary $libname.a'
23669   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23670   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'
23671   ;;
23672
23673 beos*)
23674   library_names_spec='${libname}${shared_ext}'
23675   dynamic_linker="$host_os ld.so"
23676   shlibpath_var=LIBRARY_PATH
23677   ;;
23678
23679 bsdi[45]*)
23680   version_type=linux
23681   need_version=no
23682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23683   soname_spec='${libname}${release}${shared_ext}$major'
23684   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23685   shlibpath_var=LD_LIBRARY_PATH
23686   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23687   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23688   # the default ld.so.conf also contains /usr/contrib/lib and
23689   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23690   # libtool to hard-code these into programs
23691   ;;
23692
23693 cygwin* | mingw* | pw32*)
23694   version_type=windows
23695   shrext_cmds=".dll"
23696   need_version=no
23697   need_lib_prefix=no
23698
23699   case $GCC,$host_os in
23700   yes,cygwin* | yes,mingw* | yes,pw32*)
23701     library_names_spec='$libname.dll.a'
23702     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23703     postinstall_cmds='base_file=`basename \${file}`~
23704       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23705       dldir=$destdir/`dirname \$dlpath`~
23706       test -d \$dldir || mkdir -p \$dldir~
23707       $install_prog $dir/$dlname \$dldir/$dlname'
23708     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23709       dlpath=$dir/\$dldll~
23710        $rm \$dlpath'
23711     shlibpath_overrides_runpath=yes
23712
23713     case $host_os in
23714     cygwin*)
23715       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23716       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23717       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23718       ;;
23719     mingw*)
23720       # MinGW DLLs use traditional 'lib' prefix
23721       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23722       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23723       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23724         # It is most probably a Windows format PATH printed by
23725         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23726         # path with ; separators, and with drive letters. We can handle the
23727         # drive letters (cygwin fileutils understands them), so leave them,
23728         # especially as we might pass files found there to a mingw objdump,
23729         # which wouldn't understand a cygwinified path. Ahh.
23730         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23731       else
23732         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23733       fi
23734       ;;
23735     pw32*)
23736       # pw32 DLLs use 'pw' prefix rather than 'lib'
23737       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23738       ;;
23739     esac
23740     ;;
23741
23742   *)
23743     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23744     ;;
23745   esac
23746   dynamic_linker='Win32 ld.exe'
23747   # FIXME: first we should search . and the directory the executable is in
23748   shlibpath_var=PATH
23749   ;;
23750
23751 darwin* | rhapsody*)
23752   dynamic_linker="$host_os dyld"
23753   version_type=darwin
23754   need_lib_prefix=no
23755   need_version=no
23756   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23757   soname_spec='${libname}${release}${major}$shared_ext'
23758   shlibpath_overrides_runpath=yes
23759   shlibpath_var=DYLD_LIBRARY_PATH
23760   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
23761   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23762   if test "$GCC" = yes; then
23763     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"`
23764   else
23765     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23766   fi
23767   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23768   ;;
23769
23770 dgux*)
23771   version_type=linux
23772   need_lib_prefix=no
23773   need_version=no
23774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23775   soname_spec='${libname}${release}${shared_ext}$major'
23776   shlibpath_var=LD_LIBRARY_PATH
23777   ;;
23778
23779 freebsd1*)
23780   dynamic_linker=no
23781   ;;
23782
23783 kfreebsd*-gnu)
23784   version_type=linux
23785   need_lib_prefix=no
23786   need_version=no
23787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23788   soname_spec='${libname}${release}${shared_ext}$major'
23789   shlibpath_var=LD_LIBRARY_PATH
23790   shlibpath_overrides_runpath=no
23791   hardcode_into_libs=yes
23792   dynamic_linker='GNU ld.so'
23793   ;;
23794
23795 freebsd* | dragonfly*)
23796   # DragonFly does not have aout.  When/if they implement a new
23797   # versioning mechanism, adjust this.
23798   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23799   version_type=freebsd-$objformat
23800   case $version_type in
23801     freebsd-elf*)
23802       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23803       need_version=no
23804       need_lib_prefix=no
23805       ;;
23806     freebsd-*)
23807       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23808       need_version=yes
23809       ;;
23810   esac
23811   shlibpath_var=LD_LIBRARY_PATH
23812   case $host_os in
23813   freebsd2*)
23814     shlibpath_overrides_runpath=yes
23815     ;;
23816   freebsd3.[01]* | freebsdelf3.[01]*)
23817     shlibpath_overrides_runpath=yes
23818     hardcode_into_libs=yes
23819     ;;
23820   *) # from 3.2 on
23821     shlibpath_overrides_runpath=no
23822     hardcode_into_libs=yes
23823     ;;
23824   esac
23825   ;;
23826
23827 gnu*)
23828   version_type=linux
23829   need_lib_prefix=no
23830   need_version=no
23831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23832   soname_spec='${libname}${release}${shared_ext}$major'
23833   shlibpath_var=LD_LIBRARY_PATH
23834   hardcode_into_libs=yes
23835   ;;
23836
23837 hpux9* | hpux10* | hpux11*)
23838   # Give a soname corresponding to the major version so that dld.sl refuses to
23839   # link against other versions.
23840   version_type=sunos
23841   need_lib_prefix=no
23842   need_version=no
23843   case "$host_cpu" in
23844   ia64*)
23845     shrext_cmds='.so'
23846     hardcode_into_libs=yes
23847     dynamic_linker="$host_os dld.so"
23848     shlibpath_var=LD_LIBRARY_PATH
23849     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23851     soname_spec='${libname}${release}${shared_ext}$major'
23852     if test "X$HPUX_IA64_MODE" = X32; then
23853       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23854     else
23855       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23856     fi
23857     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23858     ;;
23859    hppa*64*)
23860      shrext_cmds='.sl'
23861      hardcode_into_libs=yes
23862      dynamic_linker="$host_os dld.sl"
23863      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23864      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23865      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23866      soname_spec='${libname}${release}${shared_ext}$major'
23867      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23868      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23869      ;;
23870    *)
23871     shrext_cmds='.sl'
23872     dynamic_linker="$host_os dld.sl"
23873     shlibpath_var=SHLIB_PATH
23874     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23876     soname_spec='${libname}${release}${shared_ext}$major'
23877     ;;
23878   esac
23879   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23880   postinstall_cmds='chmod 555 $lib'
23881   ;;
23882
23883 irix5* | irix6* | nonstopux*)
23884   case $host_os in
23885     nonstopux*) version_type=nonstopux ;;
23886     *)
23887         if test "$lt_cv_prog_gnu_ld" = yes; then
23888                 version_type=linux
23889         else
23890                 version_type=irix
23891         fi ;;
23892   esac
23893   need_lib_prefix=no
23894   need_version=no
23895   soname_spec='${libname}${release}${shared_ext}$major'
23896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23897   case $host_os in
23898   irix5* | nonstopux*)
23899     libsuff= shlibsuff=
23900     ;;
23901   *)
23902     case $LD in # libtool.m4 will add one of these switches to LD
23903     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23904       libsuff= shlibsuff= libmagic=32-bit;;
23905     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23906       libsuff=32 shlibsuff=N32 libmagic=N32;;
23907     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23908       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23909     *) libsuff= shlibsuff= libmagic=never-match;;
23910     esac
23911     ;;
23912   esac
23913   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23914   shlibpath_overrides_runpath=no
23915   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23916   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23917   hardcode_into_libs=yes
23918   ;;
23919
23920 # No shared lib support for Linux oldld, aout, or coff.
23921 linux*oldld* | linux*aout* | linux*coff*)
23922   dynamic_linker=no
23923   ;;
23924
23925 # This must be Linux ELF.
23926 linux*)
23927   version_type=linux
23928   need_lib_prefix=no
23929   need_version=no
23930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23931   soname_spec='${libname}${release}${shared_ext}$major'
23932   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23933   shlibpath_var=LD_LIBRARY_PATH
23934   shlibpath_overrides_runpath=no
23935   # This implies no fast_install, which is unacceptable.
23936   # Some rework will be needed to allow for fast_install
23937   # before this can be enabled.
23938   hardcode_into_libs=yes
23939
23940   # find out which ABI we are using
23941   libsuff=
23942   case "$host_cpu" in
23943   x86_64*|s390x*|powerpc64*)
23944     echo '#line 23944 "configure"' > conftest.$ac_ext
23945     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23946   (eval $ac_compile) 2>&5
23947   ac_status=$?
23948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949   (exit $ac_status); }; then
23950       case `/usr/bin/file conftest.$ac_objext` in
23951       *64-bit*)
23952         libsuff=64
23953         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
23954         ;;
23955       esac
23956     fi
23957     rm -rf conftest*
23958     ;;
23959   esac
23960
23961   # Append ld.so.conf contents to the search path
23962   if test -f /etc/ld.so.conf; then
23963     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
23964     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
23965   fi
23966
23967   # We used to test for /lib/ld.so.1 and disable shared libraries on
23968   # powerpc, because MkLinux only supported shared libraries with the
23969   # GNU dynamic linker.  Since this was broken with cross compilers,
23970   # most powerpc-linux boxes support dynamic linking these days and
23971   # people can always --disable-shared, the test was removed, and we
23972   # assume the GNU/Linux dynamic linker is in use.
23973   dynamic_linker='GNU/Linux ld.so'
23974   ;;
23975
23976 knetbsd*-gnu)
23977   version_type=linux
23978   need_lib_prefix=no
23979   need_version=no
23980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23981   soname_spec='${libname}${release}${shared_ext}$major'
23982   shlibpath_var=LD_LIBRARY_PATH
23983   shlibpath_overrides_runpath=no
23984   hardcode_into_libs=yes
23985   dynamic_linker='GNU ld.so'
23986   ;;
23987
23988 netbsd*)
23989   version_type=sunos
23990   need_lib_prefix=no
23991   need_version=no
23992   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23994     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23995     dynamic_linker='NetBSD (a.out) ld.so'
23996   else
23997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23998     soname_spec='${libname}${release}${shared_ext}$major'
23999     dynamic_linker='NetBSD ld.elf_so'
24000   fi
24001   shlibpath_var=LD_LIBRARY_PATH
24002   shlibpath_overrides_runpath=yes
24003   hardcode_into_libs=yes
24004   ;;
24005
24006 newsos6)
24007   version_type=linux
24008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24009   shlibpath_var=LD_LIBRARY_PATH
24010   shlibpath_overrides_runpath=yes
24011   ;;
24012
24013 nto-qnx*)
24014   version_type=linux
24015   need_lib_prefix=no
24016   need_version=no
24017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24018   soname_spec='${libname}${release}${shared_ext}$major'
24019   shlibpath_var=LD_LIBRARY_PATH
24020   shlibpath_overrides_runpath=yes
24021   ;;
24022
24023 openbsd*)
24024   version_type=sunos
24025   need_lib_prefix=no
24026   need_version=no
24027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24028   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24029   shlibpath_var=LD_LIBRARY_PATH
24030   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24031     case $host_os in
24032       openbsd2.[89] | openbsd2.[89].*)
24033         shlibpath_overrides_runpath=no
24034         ;;
24035       *)
24036         shlibpath_overrides_runpath=yes
24037         ;;
24038       esac
24039   else
24040     shlibpath_overrides_runpath=yes
24041   fi
24042   ;;
24043
24044 os2*)
24045   libname_spec='$name'
24046   shrext_cmds=".dll"
24047   need_lib_prefix=no
24048   library_names_spec='$libname${shared_ext} $libname.a'
24049   dynamic_linker='OS/2 ld.exe'
24050   shlibpath_var=LIBPATH
24051   ;;
24052
24053 osf3* | osf4* | osf5*)
24054   version_type=osf
24055   need_lib_prefix=no
24056   need_version=no
24057   soname_spec='${libname}${release}${shared_ext}$major'
24058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24059   shlibpath_var=LD_LIBRARY_PATH
24060   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24061   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24062   ;;
24063
24064 sco3.2v5*)
24065   version_type=osf
24066   soname_spec='${libname}${release}${shared_ext}$major'
24067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24068   shlibpath_var=LD_LIBRARY_PATH
24069   ;;
24070
24071 solaris*)
24072   version_type=linux
24073   need_lib_prefix=no
24074   need_version=no
24075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24076   soname_spec='${libname}${release}${shared_ext}$major'
24077   shlibpath_var=LD_LIBRARY_PATH
24078   shlibpath_overrides_runpath=yes
24079   hardcode_into_libs=yes
24080   # ldd complains unless libraries are executable
24081   postinstall_cmds='chmod +x $lib'
24082   ;;
24083
24084 sunos4*)
24085   version_type=sunos
24086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24087   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24088   shlibpath_var=LD_LIBRARY_PATH
24089   shlibpath_overrides_runpath=yes
24090   if test "$with_gnu_ld" = yes; then
24091     need_lib_prefix=no
24092   fi
24093   need_version=yes
24094   ;;
24095
24096 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24097   version_type=linux
24098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24099   soname_spec='${libname}${release}${shared_ext}$major'
24100   shlibpath_var=LD_LIBRARY_PATH
24101   case $host_vendor in
24102     sni)
24103       shlibpath_overrides_runpath=no
24104       need_lib_prefix=no
24105       export_dynamic_flag_spec='${wl}-Blargedynsym'
24106       runpath_var=LD_RUN_PATH
24107       ;;
24108     siemens)
24109       need_lib_prefix=no
24110       ;;
24111     motorola)
24112       need_lib_prefix=no
24113       need_version=no
24114       shlibpath_overrides_runpath=no
24115       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24116       ;;
24117   esac
24118   ;;
24119
24120 sysv4*MP*)
24121   if test -d /usr/nec ;then
24122     version_type=linux
24123     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24124     soname_spec='$libname${shared_ext}.$major'
24125     shlibpath_var=LD_LIBRARY_PATH
24126   fi
24127   ;;
24128
24129 uts4*)
24130   version_type=linux
24131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24132   soname_spec='${libname}${release}${shared_ext}$major'
24133   shlibpath_var=LD_LIBRARY_PATH
24134   ;;
24135
24136 *)
24137   dynamic_linker=no
24138   ;;
24139 esac
24140 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24141 echo "${ECHO_T}$dynamic_linker" >&6
24142 test "$dynamic_linker" = no && can_build_shared=no
24143
24144 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24145 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24146 hardcode_action_GCJ=
24147 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24148    test -n "$runpath_var_GCJ" || \
24149    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24150
24151   # We can hardcode non-existant directories.
24152   if test "$hardcode_direct_GCJ" != no &&
24153      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24154      # have to relink, otherwise we might link with an installed library
24155      # when we should be linking with a yet-to-be-installed one
24156      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24157      test "$hardcode_minus_L_GCJ" != no; then
24158     # Linking always hardcodes the temporary library directory.
24159     hardcode_action_GCJ=relink
24160   else
24161     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24162     hardcode_action_GCJ=immediate
24163   fi
24164 else
24165   # We cannot hardcode anything, or else we can only hardcode existing
24166   # directories.
24167   hardcode_action_GCJ=unsupported
24168 fi
24169 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24170 echo "${ECHO_T}$hardcode_action_GCJ" >&6
24171
24172 if test "$hardcode_action_GCJ" = relink; then
24173   # Fast installation is not supported
24174   enable_fast_install=no
24175 elif test "$shlibpath_overrides_runpath" = yes ||
24176      test "$enable_shared" = no; then
24177   # Fast installation is not necessary
24178   enable_fast_install=needless
24179 fi
24180
24181 striplib=
24182 old_striplib=
24183 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
24184 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
24185 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
24186   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
24187   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
24188   echo "$as_me:$LINENO: result: yes" >&5
24189 echo "${ECHO_T}yes" >&6
24190 else
24191 # FIXME - insert some real tests, host_os isn't really good enough
24192   case $host_os in
24193    darwin*)
24194        if test -n "$STRIP" ; then
24195          striplib="$STRIP -x"
24196          echo "$as_me:$LINENO: result: yes" >&5
24197 echo "${ECHO_T}yes" >&6
24198        else
24199   echo "$as_me:$LINENO: result: no" >&5
24200 echo "${ECHO_T}no" >&6
24201 fi
24202        ;;
24203    *)
24204   echo "$as_me:$LINENO: result: no" >&5
24205 echo "${ECHO_T}no" >&6
24206     ;;
24207   esac
24208 fi
24209
24210 if test "x$enable_dlopen" != xyes; then
24211   enable_dlopen=unknown
24212   enable_dlopen_self=unknown
24213   enable_dlopen_self_static=unknown
24214 else
24215   lt_cv_dlopen=no
24216   lt_cv_dlopen_libs=
24217
24218   case $host_os in
24219   beos*)
24220     lt_cv_dlopen="load_add_on"
24221     lt_cv_dlopen_libs=
24222     lt_cv_dlopen_self=yes
24223     ;;
24224
24225   mingw* | pw32*)
24226     lt_cv_dlopen="LoadLibrary"
24227     lt_cv_dlopen_libs=
24228    ;;
24229
24230   cygwin*)
24231     lt_cv_dlopen="dlopen"
24232     lt_cv_dlopen_libs=
24233    ;;
24234
24235   darwin*)
24236   # if libdl is installed we need to link against it
24237     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24238 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24239 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24240   echo $ECHO_N "(cached) $ECHO_C" >&6
24241 else
24242   ac_check_lib_save_LIBS=$LIBS
24243 LIBS="-ldl  $LIBS"
24244 cat >conftest.$ac_ext <<_ACEOF
24245 /* confdefs.h.  */
24246 _ACEOF
24247 cat confdefs.h >>conftest.$ac_ext
24248 cat >>conftest.$ac_ext <<_ACEOF
24249 /* end confdefs.h.  */
24250
24251 /* Override any gcc2 internal prototype to avoid an error.  */
24252 #ifdef __cplusplus
24253 extern "C"
24254 #endif
24255 /* We use char because int might match the return type of a gcc2
24256    builtin and then its argument prototype would still apply.  */
24257 char dlopen ();
24258 int
24259 main ()
24260 {
24261 dlopen ();
24262   ;
24263   return 0;
24264 }
24265 _ACEOF
24266 rm -f conftest.$ac_objext conftest$ac_exeext
24267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24268   (eval $ac_link) 2>conftest.er1
24269   ac_status=$?
24270   grep -v '^ *+' conftest.er1 >conftest.err
24271   rm -f conftest.er1
24272   cat conftest.err >&5
24273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274   (exit $ac_status); } &&
24275          { ac_try='test -z "$ac_c_werror_flag"
24276                          || test ! -s conftest.err'
24277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24278   (eval $ac_try) 2>&5
24279   ac_status=$?
24280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281   (exit $ac_status); }; } &&
24282          { ac_try='test -s conftest$ac_exeext'
24283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24284   (eval $ac_try) 2>&5
24285   ac_status=$?
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); }; }; then
24288   ac_cv_lib_dl_dlopen=yes
24289 else
24290   echo "$as_me: failed program was:" >&5
24291 sed 's/^/| /' conftest.$ac_ext >&5
24292
24293 ac_cv_lib_dl_dlopen=no
24294 fi
24295 rm -f conftest.err conftest.$ac_objext \
24296       conftest$ac_exeext conftest.$ac_ext
24297 LIBS=$ac_check_lib_save_LIBS
24298 fi
24299 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24300 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24301 if test $ac_cv_lib_dl_dlopen = yes; then
24302   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24303 else
24304
24305     lt_cv_dlopen="dyld"
24306     lt_cv_dlopen_libs=
24307     lt_cv_dlopen_self=yes
24308
24309 fi
24310
24311    ;;
24312
24313   *)
24314     echo "$as_me:$LINENO: checking for shl_load" >&5
24315 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
24316 if test "${ac_cv_func_shl_load+set}" = set; then
24317   echo $ECHO_N "(cached) $ECHO_C" >&6
24318 else
24319   cat >conftest.$ac_ext <<_ACEOF
24320 /* confdefs.h.  */
24321 _ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h.  */
24325 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
24326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24327 #define shl_load innocuous_shl_load
24328
24329 /* System header to define __stub macros and hopefully few prototypes,
24330     which can conflict with char shl_load (); below.
24331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24332     <limits.h> exists even on freestanding compilers.  */
24333
24334 #ifdef __STDC__
24335 # include <limits.h>
24336 #else
24337 # include <assert.h>
24338 #endif
24339
24340 #undef shl_load
24341
24342 /* Override any gcc2 internal prototype to avoid an error.  */
24343 #ifdef __cplusplus
24344 extern "C"
24345 {
24346 #endif
24347 /* We use char because int might match the return type of a gcc2
24348    builtin and then its argument prototype would still apply.  */
24349 char shl_load ();
24350 /* The GNU C library defines this for functions which it implements
24351     to always fail with ENOSYS.  Some functions are actually named
24352     something starting with __ and the normal name is an alias.  */
24353 #if defined (__stub_shl_load) || defined (__stub___shl_load)
24354 choke me
24355 #else
24356 char (*f) () = shl_load;
24357 #endif
24358 #ifdef __cplusplus
24359 }
24360 #endif
24361
24362 int
24363 main ()
24364 {
24365 return f != shl_load;
24366   ;
24367   return 0;
24368 }
24369 _ACEOF
24370 rm -f conftest.$ac_objext conftest$ac_exeext
24371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24372   (eval $ac_link) 2>conftest.er1
24373   ac_status=$?
24374   grep -v '^ *+' conftest.er1 >conftest.err
24375   rm -f conftest.er1
24376   cat conftest.err >&5
24377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378   (exit $ac_status); } &&
24379          { ac_try='test -z "$ac_c_werror_flag"
24380                          || test ! -s conftest.err'
24381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24382   (eval $ac_try) 2>&5
24383   ac_status=$?
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); }; } &&
24386          { ac_try='test -s conftest$ac_exeext'
24387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24388   (eval $ac_try) 2>&5
24389   ac_status=$?
24390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391   (exit $ac_status); }; }; then
24392   ac_cv_func_shl_load=yes
24393 else
24394   echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24396
24397 ac_cv_func_shl_load=no
24398 fi
24399 rm -f conftest.err conftest.$ac_objext \
24400       conftest$ac_exeext conftest.$ac_ext
24401 fi
24402 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
24403 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
24404 if test $ac_cv_func_shl_load = yes; then
24405   lt_cv_dlopen="shl_load"
24406 else
24407   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
24408 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
24409 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
24410   echo $ECHO_N "(cached) $ECHO_C" >&6
24411 else
24412   ac_check_lib_save_LIBS=$LIBS
24413 LIBS="-ldld  $LIBS"
24414 cat >conftest.$ac_ext <<_ACEOF
24415 /* confdefs.h.  */
24416 _ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h.  */
24420
24421 /* Override any gcc2 internal prototype to avoid an error.  */
24422 #ifdef __cplusplus
24423 extern "C"
24424 #endif
24425 /* We use char because int might match the return type of a gcc2
24426    builtin and then its argument prototype would still apply.  */
24427 char shl_load ();
24428 int
24429 main ()
24430 {
24431 shl_load ();
24432   ;
24433   return 0;
24434 }
24435 _ACEOF
24436 rm -f conftest.$ac_objext conftest$ac_exeext
24437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24438   (eval $ac_link) 2>conftest.er1
24439   ac_status=$?
24440   grep -v '^ *+' conftest.er1 >conftest.err
24441   rm -f conftest.er1
24442   cat conftest.err >&5
24443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444   (exit $ac_status); } &&
24445          { ac_try='test -z "$ac_c_werror_flag"
24446                          || test ! -s conftest.err'
24447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448   (eval $ac_try) 2>&5
24449   ac_status=$?
24450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451   (exit $ac_status); }; } &&
24452          { ac_try='test -s conftest$ac_exeext'
24453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24454   (eval $ac_try) 2>&5
24455   ac_status=$?
24456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457   (exit $ac_status); }; }; then
24458   ac_cv_lib_dld_shl_load=yes
24459 else
24460   echo "$as_me: failed program was:" >&5
24461 sed 's/^/| /' conftest.$ac_ext >&5
24462
24463 ac_cv_lib_dld_shl_load=no
24464 fi
24465 rm -f conftest.err conftest.$ac_objext \
24466       conftest$ac_exeext conftest.$ac_ext
24467 LIBS=$ac_check_lib_save_LIBS
24468 fi
24469 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24470 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24471 if test $ac_cv_lib_dld_shl_load = yes; then
24472   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24473 else
24474   echo "$as_me:$LINENO: checking for dlopen" >&5
24475 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24476 if test "${ac_cv_func_dlopen+set}" = set; then
24477   echo $ECHO_N "(cached) $ECHO_C" >&6
24478 else
24479   cat >conftest.$ac_ext <<_ACEOF
24480 /* confdefs.h.  */
24481 _ACEOF
24482 cat confdefs.h >>conftest.$ac_ext
24483 cat >>conftest.$ac_ext <<_ACEOF
24484 /* end confdefs.h.  */
24485 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24487 #define dlopen innocuous_dlopen
24488
24489 /* System header to define __stub macros and hopefully few prototypes,
24490     which can conflict with char dlopen (); below.
24491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24492     <limits.h> exists even on freestanding compilers.  */
24493
24494 #ifdef __STDC__
24495 # include <limits.h>
24496 #else
24497 # include <assert.h>
24498 #endif
24499
24500 #undef dlopen
24501
24502 /* Override any gcc2 internal prototype to avoid an error.  */
24503 #ifdef __cplusplus
24504 extern "C"
24505 {
24506 #endif
24507 /* We use char because int might match the return type of a gcc2
24508    builtin and then its argument prototype would still apply.  */
24509 char dlopen ();
24510 /* The GNU C library defines this for functions which it implements
24511     to always fail with ENOSYS.  Some functions are actually named
24512     something starting with __ and the normal name is an alias.  */
24513 #if defined (__stub_dlopen) || defined (__stub___dlopen)
24514 choke me
24515 #else
24516 char (*f) () = dlopen;
24517 #endif
24518 #ifdef __cplusplus
24519 }
24520 #endif
24521
24522 int
24523 main ()
24524 {
24525 return f != dlopen;
24526   ;
24527   return 0;
24528 }
24529 _ACEOF
24530 rm -f conftest.$ac_objext conftest$ac_exeext
24531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24532   (eval $ac_link) 2>conftest.er1
24533   ac_status=$?
24534   grep -v '^ *+' conftest.er1 >conftest.err
24535   rm -f conftest.er1
24536   cat conftest.err >&5
24537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538   (exit $ac_status); } &&
24539          { ac_try='test -z "$ac_c_werror_flag"
24540                          || test ! -s conftest.err'
24541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24542   (eval $ac_try) 2>&5
24543   ac_status=$?
24544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545   (exit $ac_status); }; } &&
24546          { ac_try='test -s conftest$ac_exeext'
24547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24548   (eval $ac_try) 2>&5
24549   ac_status=$?
24550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551   (exit $ac_status); }; }; then
24552   ac_cv_func_dlopen=yes
24553 else
24554   echo "$as_me: failed program was:" >&5
24555 sed 's/^/| /' conftest.$ac_ext >&5
24556
24557 ac_cv_func_dlopen=no
24558 fi
24559 rm -f conftest.err conftest.$ac_objext \
24560       conftest$ac_exeext conftest.$ac_ext
24561 fi
24562 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24563 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24564 if test $ac_cv_func_dlopen = yes; then
24565   lt_cv_dlopen="dlopen"
24566 else
24567   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24570   echo $ECHO_N "(cached) $ECHO_C" >&6
24571 else
24572   ac_check_lib_save_LIBS=$LIBS
24573 LIBS="-ldl  $LIBS"
24574 cat >conftest.$ac_ext <<_ACEOF
24575 /* confdefs.h.  */
24576 _ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h.  */
24580
24581 /* Override any gcc2 internal prototype to avoid an error.  */
24582 #ifdef __cplusplus
24583 extern "C"
24584 #endif
24585 /* We use char because int might match the return type of a gcc2
24586    builtin and then its argument prototype would still apply.  */
24587 char dlopen ();
24588 int
24589 main ()
24590 {
24591 dlopen ();
24592   ;
24593   return 0;
24594 }
24595 _ACEOF
24596 rm -f conftest.$ac_objext conftest$ac_exeext
24597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24598   (eval $ac_link) 2>conftest.er1
24599   ac_status=$?
24600   grep -v '^ *+' conftest.er1 >conftest.err
24601   rm -f conftest.er1
24602   cat conftest.err >&5
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); } &&
24605          { ac_try='test -z "$ac_c_werror_flag"
24606                          || test ! -s conftest.err'
24607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608   (eval $ac_try) 2>&5
24609   ac_status=$?
24610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611   (exit $ac_status); }; } &&
24612          { ac_try='test -s conftest$ac_exeext'
24613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24614   (eval $ac_try) 2>&5
24615   ac_status=$?
24616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617   (exit $ac_status); }; }; then
24618   ac_cv_lib_dl_dlopen=yes
24619 else
24620   echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24622
24623 ac_cv_lib_dl_dlopen=no
24624 fi
24625 rm -f conftest.err conftest.$ac_objext \
24626       conftest$ac_exeext conftest.$ac_ext
24627 LIBS=$ac_check_lib_save_LIBS
24628 fi
24629 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24631 if test $ac_cv_lib_dl_dlopen = yes; then
24632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24633 else
24634   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24635 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24636 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24637   echo $ECHO_N "(cached) $ECHO_C" >&6
24638 else
24639   ac_check_lib_save_LIBS=$LIBS
24640 LIBS="-lsvld  $LIBS"
24641 cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h.  */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h.  */
24647
24648 /* Override any gcc2 internal prototype to avoid an error.  */
24649 #ifdef __cplusplus
24650 extern "C"
24651 #endif
24652 /* We use char because int might match the return type of a gcc2
24653    builtin and then its argument prototype would still apply.  */
24654 char dlopen ();
24655 int
24656 main ()
24657 {
24658 dlopen ();
24659   ;
24660   return 0;
24661 }
24662 _ACEOF
24663 rm -f conftest.$ac_objext conftest$ac_exeext
24664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24665   (eval $ac_link) 2>conftest.er1
24666   ac_status=$?
24667   grep -v '^ *+' conftest.er1 >conftest.err
24668   rm -f conftest.er1
24669   cat conftest.err >&5
24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671   (exit $ac_status); } &&
24672          { ac_try='test -z "$ac_c_werror_flag"
24673                          || test ! -s conftest.err'
24674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675   (eval $ac_try) 2>&5
24676   ac_status=$?
24677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678   (exit $ac_status); }; } &&
24679          { ac_try='test -s conftest$ac_exeext'
24680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681   (eval $ac_try) 2>&5
24682   ac_status=$?
24683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); }; }; then
24685   ac_cv_lib_svld_dlopen=yes
24686 else
24687   echo "$as_me: failed program was:" >&5
24688 sed 's/^/| /' conftest.$ac_ext >&5
24689
24690 ac_cv_lib_svld_dlopen=no
24691 fi
24692 rm -f conftest.err conftest.$ac_objext \
24693       conftest$ac_exeext conftest.$ac_ext
24694 LIBS=$ac_check_lib_save_LIBS
24695 fi
24696 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24697 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24698 if test $ac_cv_lib_svld_dlopen = yes; then
24699   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24700 else
24701   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24702 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24703 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24704   echo $ECHO_N "(cached) $ECHO_C" >&6
24705 else
24706   ac_check_lib_save_LIBS=$LIBS
24707 LIBS="-ldld  $LIBS"
24708 cat >conftest.$ac_ext <<_ACEOF
24709 /* confdefs.h.  */
24710 _ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h.  */
24714
24715 /* Override any gcc2 internal prototype to avoid an error.  */
24716 #ifdef __cplusplus
24717 extern "C"
24718 #endif
24719 /* We use char because int might match the return type of a gcc2
24720    builtin and then its argument prototype would still apply.  */
24721 char dld_link ();
24722 int
24723 main ()
24724 {
24725 dld_link ();
24726   ;
24727   return 0;
24728 }
24729 _ACEOF
24730 rm -f conftest.$ac_objext conftest$ac_exeext
24731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24732   (eval $ac_link) 2>conftest.er1
24733   ac_status=$?
24734   grep -v '^ *+' conftest.er1 >conftest.err
24735   rm -f conftest.er1
24736   cat conftest.err >&5
24737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738   (exit $ac_status); } &&
24739          { ac_try='test -z "$ac_c_werror_flag"
24740                          || test ! -s conftest.err'
24741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24742   (eval $ac_try) 2>&5
24743   ac_status=$?
24744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745   (exit $ac_status); }; } &&
24746          { ac_try='test -s conftest$ac_exeext'
24747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24748   (eval $ac_try) 2>&5
24749   ac_status=$?
24750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751   (exit $ac_status); }; }; then
24752   ac_cv_lib_dld_dld_link=yes
24753 else
24754   echo "$as_me: failed program was:" >&5
24755 sed 's/^/| /' conftest.$ac_ext >&5
24756
24757 ac_cv_lib_dld_dld_link=no
24758 fi
24759 rm -f conftest.err conftest.$ac_objext \
24760       conftest$ac_exeext conftest.$ac_ext
24761 LIBS=$ac_check_lib_save_LIBS
24762 fi
24763 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24764 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24765 if test $ac_cv_lib_dld_dld_link = yes; then
24766   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24767 fi
24768
24769
24770 fi
24771
24772
24773 fi
24774
24775
24776 fi
24777
24778
24779 fi
24780
24781
24782 fi
24783
24784     ;;
24785   esac
24786
24787   if test "x$lt_cv_dlopen" != xno; then
24788     enable_dlopen=yes
24789   else
24790     enable_dlopen=no
24791   fi
24792
24793   case $lt_cv_dlopen in
24794   dlopen)
24795     save_CPPFLAGS="$CPPFLAGS"
24796     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
24797
24798     save_LDFLAGS="$LDFLAGS"
24799     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
24800
24801     save_LIBS="$LIBS"
24802     LIBS="$lt_cv_dlopen_libs $LIBS"
24803
24804     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
24805 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24806 if test "${lt_cv_dlopen_self+set}" = set; then
24807   echo $ECHO_N "(cached) $ECHO_C" >&6
24808 else
24809           if test "$cross_compiling" = yes; then :
24810   lt_cv_dlopen_self=cross
24811 else
24812   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24813   lt_status=$lt_dlunknown
24814   cat > conftest.$ac_ext <<EOF
24815 #line 24815 "configure"
24816 #include "confdefs.h"
24817
24818 #if HAVE_DLFCN_H
24819 #include <dlfcn.h>
24820 #endif
24821
24822 #include <stdio.h>
24823
24824 #ifdef RTLD_GLOBAL
24825 #  define LT_DLGLOBAL           RTLD_GLOBAL
24826 #else
24827 #  ifdef DL_GLOBAL
24828 #    define LT_DLGLOBAL         DL_GLOBAL
24829 #  else
24830 #    define LT_DLGLOBAL         0
24831 #  endif
24832 #endif
24833
24834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24835    find out it does not work in some platform. */
24836 #ifndef LT_DLLAZY_OR_NOW
24837 #  ifdef RTLD_LAZY
24838 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
24839 #  else
24840 #    ifdef DL_LAZY
24841 #      define LT_DLLAZY_OR_NOW          DL_LAZY
24842 #    else
24843 #      ifdef RTLD_NOW
24844 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
24845 #      else
24846 #        ifdef DL_NOW
24847 #          define LT_DLLAZY_OR_NOW      DL_NOW
24848 #        else
24849 #          define LT_DLLAZY_OR_NOW      0
24850 #        endif
24851 #      endif
24852 #    endif
24853 #  endif
24854 #endif
24855
24856 #ifdef __cplusplus
24857 extern "C" void exit (int);
24858 #endif
24859
24860 void fnord() { int i=42;}
24861 int main ()
24862 {
24863   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24864   int status = $lt_dlunknown;
24865
24866   if (self)
24867     {
24868       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24869       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24870       /* dlclose (self); */
24871     }
24872
24873     exit (status);
24874 }
24875 EOF
24876   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24877   (eval $ac_link) 2>&5
24878   ac_status=$?
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24881     (./conftest; exit; ) 2>/dev/null
24882     lt_status=$?
24883     case x$lt_status in
24884       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24885       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24886       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24887     esac
24888   else :
24889     # compilation failed
24890     lt_cv_dlopen_self=no
24891   fi
24892 fi
24893 rm -fr conftest*
24894
24895
24896 fi
24897 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24898 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24899
24900     if test "x$lt_cv_dlopen_self" = xyes; then
24901       LDFLAGS="$LDFLAGS $link_static_flag"
24902       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24903 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24904 if test "${lt_cv_dlopen_self_static+set}" = set; then
24905   echo $ECHO_N "(cached) $ECHO_C" >&6
24906 else
24907           if test "$cross_compiling" = yes; then :
24908   lt_cv_dlopen_self_static=cross
24909 else
24910   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24911   lt_status=$lt_dlunknown
24912   cat > conftest.$ac_ext <<EOF
24913 #line 24913 "configure"
24914 #include "confdefs.h"
24915
24916 #if HAVE_DLFCN_H
24917 #include <dlfcn.h>
24918 #endif
24919
24920 #include <stdio.h>
24921
24922 #ifdef RTLD_GLOBAL
24923 #  define LT_DLGLOBAL           RTLD_GLOBAL
24924 #else
24925 #  ifdef DL_GLOBAL
24926 #    define LT_DLGLOBAL         DL_GLOBAL
24927 #  else
24928 #    define LT_DLGLOBAL         0
24929 #  endif
24930 #endif
24931
24932 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24933    find out it does not work in some platform. */
24934 #ifndef LT_DLLAZY_OR_NOW
24935 #  ifdef RTLD_LAZY
24936 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
24937 #  else
24938 #    ifdef DL_LAZY
24939 #      define LT_DLLAZY_OR_NOW          DL_LAZY
24940 #    else
24941 #      ifdef RTLD_NOW
24942 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
24943 #      else
24944 #        ifdef DL_NOW
24945 #          define LT_DLLAZY_OR_NOW      DL_NOW
24946 #        else
24947 #          define LT_DLLAZY_OR_NOW      0
24948 #        endif
24949 #      endif
24950 #    endif
24951 #  endif
24952 #endif
24953
24954 #ifdef __cplusplus
24955 extern "C" void exit (int);
24956 #endif
24957
24958 void fnord() { int i=42;}
24959 int main ()
24960 {
24961   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24962   int status = $lt_dlunknown;
24963
24964   if (self)
24965     {
24966       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24967       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24968       /* dlclose (self); */
24969     }
24970
24971     exit (status);
24972 }
24973 EOF
24974   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24975   (eval $ac_link) 2>&5
24976   ac_status=$?
24977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24979     (./conftest; exit; ) 2>/dev/null
24980     lt_status=$?
24981     case x$lt_status in
24982       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24983       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24984       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24985     esac
24986   else :
24987     # compilation failed
24988     lt_cv_dlopen_self_static=no
24989   fi
24990 fi
24991 rm -fr conftest*
24992
24993
24994 fi
24995 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24996 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24997     fi
24998
24999     CPPFLAGS="$save_CPPFLAGS"
25000     LDFLAGS="$save_LDFLAGS"
25001     LIBS="$save_LIBS"
25002     ;;
25003   esac
25004
25005   case $lt_cv_dlopen_self in
25006   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
25007   *) enable_dlopen_self=unknown ;;
25008   esac
25009
25010   case $lt_cv_dlopen_self_static in
25011   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
25012   *) enable_dlopen_self_static=unknown ;;
25013   esac
25014 fi
25015
25016
25017 # The else clause should only fire when bootstrapping the
25018 # libtool distribution, otherwise you forgot to ship ltmain.sh
25019 # with your package, and you will get complaints that there are
25020 # no rules to generate ltmain.sh.
25021 if test -f "$ltmain"; then
25022   # See if we are running on zsh, and set the options which allow our commands through
25023   # without removal of \ escapes.
25024   if test -n "${ZSH_VERSION+set}" ; then
25025     setopt NO_GLOB_SUBST
25026   fi
25027   # Now quote all the things that may contain metacharacters while being
25028   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25029   # variables and quote the copies for generation of the libtool script.
25030   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25031     SED SHELL STRIP \
25032     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25033     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25034     deplibs_check_method reload_flag reload_cmds need_locks \
25035     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25036     lt_cv_sys_global_symbol_to_c_name_address \
25037     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25038     old_postinstall_cmds old_postuninstall_cmds \
25039     compiler_GCJ \
25040     CC_GCJ \
25041     LD_GCJ \
25042     lt_prog_compiler_wl_GCJ \
25043     lt_prog_compiler_pic_GCJ \
25044     lt_prog_compiler_static_GCJ \
25045     lt_prog_compiler_no_builtin_flag_GCJ \
25046     export_dynamic_flag_spec_GCJ \
25047     thread_safe_flag_spec_GCJ \
25048     whole_archive_flag_spec_GCJ \
25049     enable_shared_with_static_runtimes_GCJ \
25050     old_archive_cmds_GCJ \
25051     old_archive_from_new_cmds_GCJ \
25052     predep_objects_GCJ \
25053     postdep_objects_GCJ \
25054     predeps_GCJ \
25055     postdeps_GCJ \
25056     compiler_lib_search_path_GCJ \
25057     archive_cmds_GCJ \
25058     archive_expsym_cmds_GCJ \
25059     postinstall_cmds_GCJ \
25060     postuninstall_cmds_GCJ \
25061     old_archive_from_expsyms_cmds_GCJ \
25062     allow_undefined_flag_GCJ \
25063     no_undefined_flag_GCJ \
25064     export_symbols_cmds_GCJ \
25065     hardcode_libdir_flag_spec_GCJ \
25066     hardcode_libdir_flag_spec_ld_GCJ \
25067     hardcode_libdir_separator_GCJ \
25068     hardcode_automatic_GCJ \
25069     module_cmds_GCJ \
25070     module_expsym_cmds_GCJ \
25071     lt_cv_prog_compiler_c_o_GCJ \
25072     exclude_expsyms_GCJ \
25073     include_expsyms_GCJ; do
25074
25075     case $var in
25076     old_archive_cmds_GCJ | \
25077     old_archive_from_new_cmds_GCJ | \
25078     archive_cmds_GCJ | \
25079     archive_expsym_cmds_GCJ | \
25080     module_cmds_GCJ | \
25081     module_expsym_cmds_GCJ | \
25082     old_archive_from_expsyms_cmds_GCJ | \
25083     export_symbols_cmds_GCJ | \
25084     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25085     postinstall_cmds | postuninstall_cmds | \
25086     old_postinstall_cmds | old_postuninstall_cmds | \
25087     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25088       # Double-quote double-evaled strings.
25089       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25090       ;;
25091     *)
25092       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25093       ;;
25094     esac
25095   done
25096
25097   case $lt_echo in
25098   *'\$0 --fallback-echo"')
25099     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25100     ;;
25101   esac
25102
25103 cfgfile="$ofile"
25104
25105   cat <<__EOF__ >> "$cfgfile"
25106 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25107
25108 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25109
25110 # Shell to use when invoking shell scripts.
25111 SHELL=$lt_SHELL
25112
25113 # Whether or not to build shared libraries.
25114 build_libtool_libs=$enable_shared
25115
25116 # Whether or not to build static libraries.
25117 build_old_libs=$enable_static
25118
25119 # Whether or not to add -lc for building shared libraries.
25120 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25121
25122 # Whether or not to disallow shared libs when runtime libs are static
25123 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25124
25125 # Whether or not to optimize for fast installation.
25126 fast_install=$enable_fast_install
25127
25128 # The host system.
25129 host_alias=$host_alias
25130 host=$host
25131 host_os=$host_os
25132
25133 # The build system.
25134 build_alias=$build_alias
25135 build=$build
25136 build_os=$build_os
25137
25138 # An echo program that does not interpret backslashes.
25139 echo=$lt_echo
25140
25141 # The archiver.
25142 AR=$lt_AR
25143 AR_FLAGS=$lt_AR_FLAGS
25144
25145 # A C compiler.
25146 LTCC=$lt_LTCC
25147
25148 # A language-specific compiler.
25149 CC=$lt_compiler_GCJ
25150
25151 # Is the compiler the GNU C compiler?
25152 with_gcc=$GCC_GCJ
25153
25154 # An ERE matcher.
25155 EGREP=$lt_EGREP
25156
25157 # The linker used to build libraries.
25158 LD=$lt_LD_GCJ
25159
25160 # Whether we need hard or soft links.
25161 LN_S=$lt_LN_S
25162
25163 # A BSD-compatible nm program.
25164 NM=$lt_NM
25165
25166 # A symbol stripping program
25167 STRIP=$lt_STRIP
25168
25169 # Used to examine libraries when file_magic_cmd begins "file"
25170 MAGIC_CMD=$MAGIC_CMD
25171
25172 # Used on cygwin: DLL creation program.
25173 DLLTOOL="$DLLTOOL"
25174
25175 # Used on cygwin: object dumper.
25176 OBJDUMP="$OBJDUMP"
25177
25178 # Used on cygwin: assembler.
25179 AS="$AS"
25180
25181 # The name of the directory that contains temporary libtool files.
25182 objdir=$objdir
25183
25184 # How to create reloadable object files.
25185 reload_flag=$lt_reload_flag
25186 reload_cmds=$lt_reload_cmds
25187
25188 # How to pass a linker flag through the compiler.
25189 wl=$lt_lt_prog_compiler_wl_GCJ
25190
25191 # Object file suffix (normally "o").
25192 objext="$ac_objext"
25193
25194 # Old archive suffix (normally "a").
25195 libext="$libext"
25196
25197 # Shared library suffix (normally ".so").
25198 shrext_cmds='$shrext_cmds'
25199
25200 # Executable file suffix (normally "").
25201 exeext="$exeext"
25202
25203 # Additional compiler flags for building library objects.
25204 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25205 pic_mode=$pic_mode
25206
25207 # What is the maximum length of a command?
25208 max_cmd_len=$lt_cv_sys_max_cmd_len
25209
25210 # Does compiler simultaneously support -c and -o options?
25211 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25212
25213 # Must we lock files when doing compilation?
25214 need_locks=$lt_need_locks
25215
25216 # Do we need the lib prefix for modules?
25217 need_lib_prefix=$need_lib_prefix
25218
25219 # Do we need a version for libraries?
25220 need_version=$need_version
25221
25222 # Whether dlopen is supported.
25223 dlopen_support=$enable_dlopen
25224
25225 # Whether dlopen of programs is supported.
25226 dlopen_self=$enable_dlopen_self
25227
25228 # Whether dlopen of statically linked programs is supported.
25229 dlopen_self_static=$enable_dlopen_self_static
25230
25231 # Compiler flag to prevent dynamic linking.
25232 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25233
25234 # Compiler flag to turn off builtin functions.
25235 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25236
25237 # Compiler flag to allow reflexive dlopens.
25238 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25239
25240 # Compiler flag to generate shared objects directly from archives.
25241 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25242
25243 # Compiler flag to generate thread-safe objects.
25244 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25245
25246 # Library versioning type.
25247 version_type=$version_type
25248
25249 # Format of library name prefix.
25250 libname_spec=$lt_libname_spec
25251
25252 # List of archive names.  First name is the real one, the rest are links.
25253 # The last name is the one that the linker finds with -lNAME.
25254 library_names_spec=$lt_library_names_spec
25255
25256 # The coded name of the library, if different from the real name.
25257 soname_spec=$lt_soname_spec
25258
25259 # Commands used to build and install an old-style archive.
25260 RANLIB=$lt_RANLIB
25261 old_archive_cmds=$lt_old_archive_cmds_GCJ
25262 old_postinstall_cmds=$lt_old_postinstall_cmds
25263 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25264
25265 # Create an old-style archive from a shared archive.
25266 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25267
25268 # Create a temporary old-style archive to link instead of a shared archive.
25269 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25270
25271 # Commands used to build and install a shared archive.
25272 archive_cmds=$lt_archive_cmds_GCJ
25273 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25274 postinstall_cmds=$lt_postinstall_cmds
25275 postuninstall_cmds=$lt_postuninstall_cmds
25276
25277 # Commands used to build a loadable module (assumed same as above if empty)
25278 module_cmds=$lt_module_cmds_GCJ
25279 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25280
25281 # Commands to strip libraries.
25282 old_striplib=$lt_old_striplib
25283 striplib=$lt_striplib
25284
25285 # Dependencies to place before the objects being linked to create a
25286 # shared library.
25287 predep_objects=$lt_predep_objects_GCJ
25288
25289 # Dependencies to place after the objects being linked to create a
25290 # shared library.
25291 postdep_objects=$lt_postdep_objects_GCJ
25292
25293 # Dependencies to place before the objects being linked to create a
25294 # shared library.
25295 predeps=$lt_predeps_GCJ
25296
25297 # Dependencies to place after the objects being linked to create a
25298 # shared library.
25299 postdeps=$lt_postdeps_GCJ
25300
25301 # The library search path used internally by the compiler when linking
25302 # a shared library.
25303 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25304
25305 # Method to check whether dependent libraries are shared objects.
25306 deplibs_check_method=$lt_deplibs_check_method
25307
25308 # Command to use when deplibs_check_method == file_magic.
25309 file_magic_cmd=$lt_file_magic_cmd
25310
25311 # Flag that allows shared libraries with undefined symbols to be built.
25312 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25313
25314 # Flag that forces no undefined symbols.
25315 no_undefined_flag=$lt_no_undefined_flag_GCJ
25316
25317 # Commands used to finish a libtool library installation in a directory.
25318 finish_cmds=$lt_finish_cmds
25319
25320 # Same as above, but a single script fragment to be evaled but not shown.
25321 finish_eval=$lt_finish_eval
25322
25323 # Take the output of nm and produce a listing of raw symbols and C names.
25324 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25325
25326 # Transform the output of nm in a proper C declaration
25327 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25328
25329 # Transform the output of nm in a C name address pair
25330 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25331
25332 # This is the shared library runtime path variable.
25333 runpath_var=$runpath_var
25334
25335 # This is the shared library path variable.
25336 shlibpath_var=$shlibpath_var
25337
25338 # Is shlibpath searched before the hard-coded library search path?
25339 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25340
25341 # How to hardcode a shared library path into an executable.
25342 hardcode_action=$hardcode_action_GCJ
25343
25344 # Whether we should hardcode library paths into libraries.
25345 hardcode_into_libs=$hardcode_into_libs
25346
25347 # Flag to hardcode \$libdir into a binary during linking.
25348 # This must work even if \$libdir does not exist.
25349 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25350
25351 # If ld is used when linking, flag to hardcode \$libdir into
25352 # a binary during linking. This must work even if \$libdir does
25353 # not exist.
25354 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25355
25356 # Whether we need a single -rpath flag with a separated argument.
25357 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25358
25359 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25360 # resulting binary.
25361 hardcode_direct=$hardcode_direct_GCJ
25362
25363 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25364 # resulting binary.
25365 hardcode_minus_L=$hardcode_minus_L_GCJ
25366
25367 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25368 # the resulting binary.
25369 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25370
25371 # Set to yes if building a shared library automatically hardcodes DIR into the library
25372 # and all subsequent libraries and executables linked against it.
25373 hardcode_automatic=$hardcode_automatic_GCJ
25374
25375 # Variables whose values should be saved in libtool wrapper scripts and
25376 # restored at relink time.
25377 variables_saved_for_relink="$variables_saved_for_relink"
25378
25379 # Whether libtool must link a program against all its dependency libraries.
25380 link_all_deplibs=$link_all_deplibs_GCJ
25381
25382 # Compile-time system search path for libraries
25383 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25384
25385 # Run-time system search path for libraries
25386 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25387
25388 # Fix the shell variable \$srcfile for the compiler.
25389 fix_srcfile_path="$fix_srcfile_path_GCJ"
25390
25391 # Set to yes if exported symbols are required.
25392 always_export_symbols=$always_export_symbols_GCJ
25393
25394 # The commands to list exported symbols.
25395 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25396
25397 # The commands to extract the exported symbol list from a shared archive.
25398 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25399
25400 # Symbols that should not be listed in the preloaded symbols.
25401 exclude_expsyms=$lt_exclude_expsyms_GCJ
25402
25403 # Symbols that must always be exported.
25404 include_expsyms=$lt_include_expsyms_GCJ
25405
25406 # ### END LIBTOOL TAG CONFIG: $tagname
25407
25408 __EOF__
25409
25410
25411 else
25412   # If there is no Makefile yet, we rely on a make rule to execute
25413   # `config.status --recheck' to rerun these tests and create the
25414   # libtool script then.
25415   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25416   if test -f "$ltmain_in"; then
25417     test -f Makefile && make "$ltmain"
25418   fi
25419 fi
25420
25421
25422 ac_ext=c
25423 ac_cpp='$CPP $CPPFLAGS'
25424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25427
25428 CC="$lt_save_CC"
25429
25430         else
25431           tagname=""
25432         fi
25433         ;;
25434
25435       RC)
25436
25437
25438
25439 # Source file extension for RC test sources.
25440 ac_ext=rc
25441
25442 # Object file extension for compiled RC test sources.
25443 objext=o
25444 objext_RC=$objext
25445
25446 # Code to be used in simple compile tests
25447 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25448
25449 # Code to be used in simple link tests
25450 lt_simple_link_test_code="$lt_simple_compile_test_code"
25451
25452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25453
25454 # If no C compiler was specified, use CC.
25455 LTCC=${LTCC-"$CC"}
25456
25457 # Allow CC to be a program name with arguments.
25458 compiler=$CC
25459
25460
25461 # save warnings/boilerplate of simple test code
25462 ac_outfile=conftest.$ac_objext
25463 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25464 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25465 _lt_compiler_boilerplate=`cat conftest.err`
25466 $rm conftest*
25467
25468 ac_outfile=conftest.$ac_objext
25469 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25470 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25471 _lt_linker_boilerplate=`cat conftest.err`
25472 $rm conftest*
25473
25474
25475 # Allow CC to be a program name with arguments.
25476 lt_save_CC="$CC"
25477 CC=${RC-"windres"}
25478 compiler=$CC
25479 compiler_RC=$CC
25480 for cc_temp in $compiler""; do
25481   case $cc_temp in
25482     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25483     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25484     \-*) ;;
25485     *) break;;
25486   esac
25487 done
25488 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25489
25490 lt_cv_prog_compiler_c_o_RC=yes
25491
25492 # The else clause should only fire when bootstrapping the
25493 # libtool distribution, otherwise you forgot to ship ltmain.sh
25494 # with your package, and you will get complaints that there are
25495 # no rules to generate ltmain.sh.
25496 if test -f "$ltmain"; then
25497   # See if we are running on zsh, and set the options which allow our commands through
25498   # without removal of \ escapes.
25499   if test -n "${ZSH_VERSION+set}" ; then
25500     setopt NO_GLOB_SUBST
25501   fi
25502   # Now quote all the things that may contain metacharacters while being
25503   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25504   # variables and quote the copies for generation of the libtool script.
25505   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25506     SED SHELL STRIP \
25507     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25508     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25509     deplibs_check_method reload_flag reload_cmds need_locks \
25510     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25511     lt_cv_sys_global_symbol_to_c_name_address \
25512     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25513     old_postinstall_cmds old_postuninstall_cmds \
25514     compiler_RC \
25515     CC_RC \
25516     LD_RC \
25517     lt_prog_compiler_wl_RC \
25518     lt_prog_compiler_pic_RC \
25519     lt_prog_compiler_static_RC \
25520     lt_prog_compiler_no_builtin_flag_RC \
25521     export_dynamic_flag_spec_RC \
25522     thread_safe_flag_spec_RC \
25523     whole_archive_flag_spec_RC \
25524     enable_shared_with_static_runtimes_RC \
25525     old_archive_cmds_RC \
25526     old_archive_from_new_cmds_RC \
25527     predep_objects_RC \
25528     postdep_objects_RC \
25529     predeps_RC \
25530     postdeps_RC \
25531     compiler_lib_search_path_RC \
25532     archive_cmds_RC \
25533     archive_expsym_cmds_RC \
25534     postinstall_cmds_RC \
25535     postuninstall_cmds_RC \
25536     old_archive_from_expsyms_cmds_RC \
25537     allow_undefined_flag_RC \
25538     no_undefined_flag_RC \
25539     export_symbols_cmds_RC \
25540     hardcode_libdir_flag_spec_RC \
25541     hardcode_libdir_flag_spec_ld_RC \
25542     hardcode_libdir_separator_RC \
25543     hardcode_automatic_RC \
25544     module_cmds_RC \
25545     module_expsym_cmds_RC \
25546     lt_cv_prog_compiler_c_o_RC \
25547     exclude_expsyms_RC \
25548     include_expsyms_RC; do
25549
25550     case $var in
25551     old_archive_cmds_RC | \
25552     old_archive_from_new_cmds_RC | \
25553     archive_cmds_RC | \
25554     archive_expsym_cmds_RC | \
25555     module_cmds_RC | \
25556     module_expsym_cmds_RC | \
25557     old_archive_from_expsyms_cmds_RC | \
25558     export_symbols_cmds_RC | \
25559     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25560     postinstall_cmds | postuninstall_cmds | \
25561     old_postinstall_cmds | old_postuninstall_cmds | \
25562     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25563       # Double-quote double-evaled strings.
25564       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25565       ;;
25566     *)
25567       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25568       ;;
25569     esac
25570   done
25571
25572   case $lt_echo in
25573   *'\$0 --fallback-echo"')
25574     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25575     ;;
25576   esac
25577
25578 cfgfile="$ofile"
25579
25580   cat <<__EOF__ >> "$cfgfile"
25581 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25582
25583 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25584
25585 # Shell to use when invoking shell scripts.
25586 SHELL=$lt_SHELL
25587
25588 # Whether or not to build shared libraries.
25589 build_libtool_libs=$enable_shared
25590
25591 # Whether or not to build static libraries.
25592 build_old_libs=$enable_static
25593
25594 # Whether or not to add -lc for building shared libraries.
25595 build_libtool_need_lc=$archive_cmds_need_lc_RC
25596
25597 # Whether or not to disallow shared libs when runtime libs are static
25598 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25599
25600 # Whether or not to optimize for fast installation.
25601 fast_install=$enable_fast_install
25602
25603 # The host system.
25604 host_alias=$host_alias
25605 host=$host
25606 host_os=$host_os
25607
25608 # The build system.
25609 build_alias=$build_alias
25610 build=$build
25611 build_os=$build_os
25612
25613 # An echo program that does not interpret backslashes.
25614 echo=$lt_echo
25615
25616 # The archiver.
25617 AR=$lt_AR
25618 AR_FLAGS=$lt_AR_FLAGS
25619
25620 # A C compiler.
25621 LTCC=$lt_LTCC
25622
25623 # A language-specific compiler.
25624 CC=$lt_compiler_RC
25625
25626 # Is the compiler the GNU C compiler?
25627 with_gcc=$GCC_RC
25628
25629 # An ERE matcher.
25630 EGREP=$lt_EGREP
25631
25632 # The linker used to build libraries.
25633 LD=$lt_LD_RC
25634
25635 # Whether we need hard or soft links.
25636 LN_S=$lt_LN_S
25637
25638 # A BSD-compatible nm program.
25639 NM=$lt_NM
25640
25641 # A symbol stripping program
25642 STRIP=$lt_STRIP
25643
25644 # Used to examine libraries when file_magic_cmd begins "file"
25645 MAGIC_CMD=$MAGIC_CMD
25646
25647 # Used on cygwin: DLL creation program.
25648 DLLTOOL="$DLLTOOL"
25649
25650 # Used on cygwin: object dumper.
25651 OBJDUMP="$OBJDUMP"
25652
25653 # Used on cygwin: assembler.
25654 AS="$AS"
25655
25656 # The name of the directory that contains temporary libtool files.
25657 objdir=$objdir
25658
25659 # How to create reloadable object files.
25660 reload_flag=$lt_reload_flag
25661 reload_cmds=$lt_reload_cmds
25662
25663 # How to pass a linker flag through the compiler.
25664 wl=$lt_lt_prog_compiler_wl_RC
25665
25666 # Object file suffix (normally "o").
25667 objext="$ac_objext"
25668
25669 # Old archive suffix (normally "a").
25670 libext="$libext"
25671
25672 # Shared library suffix (normally ".so").
25673 shrext_cmds='$shrext_cmds'
25674
25675 # Executable file suffix (normally "").
25676 exeext="$exeext"
25677
25678 # Additional compiler flags for building library objects.
25679 pic_flag=$lt_lt_prog_compiler_pic_RC
25680 pic_mode=$pic_mode
25681
25682 # What is the maximum length of a command?
25683 max_cmd_len=$lt_cv_sys_max_cmd_len
25684
25685 # Does compiler simultaneously support -c and -o options?
25686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25687
25688 # Must we lock files when doing compilation?
25689 need_locks=$lt_need_locks
25690
25691 # Do we need the lib prefix for modules?
25692 need_lib_prefix=$need_lib_prefix
25693
25694 # Do we need a version for libraries?
25695 need_version=$need_version
25696
25697 # Whether dlopen is supported.
25698 dlopen_support=$enable_dlopen
25699
25700 # Whether dlopen of programs is supported.
25701 dlopen_self=$enable_dlopen_self
25702
25703 # Whether dlopen of statically linked programs is supported.
25704 dlopen_self_static=$enable_dlopen_self_static
25705
25706 # Compiler flag to prevent dynamic linking.
25707 link_static_flag=$lt_lt_prog_compiler_static_RC
25708
25709 # Compiler flag to turn off builtin functions.
25710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25711
25712 # Compiler flag to allow reflexive dlopens.
25713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25714
25715 # Compiler flag to generate shared objects directly from archives.
25716 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25717
25718 # Compiler flag to generate thread-safe objects.
25719 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25720
25721 # Library versioning type.
25722 version_type=$version_type
25723
25724 # Format of library name prefix.
25725 libname_spec=$lt_libname_spec
25726
25727 # List of archive names.  First name is the real one, the rest are links.
25728 # The last name is the one that the linker finds with -lNAME.
25729 library_names_spec=$lt_library_names_spec
25730
25731 # The coded name of the library, if different from the real name.
25732 soname_spec=$lt_soname_spec
25733
25734 # Commands used to build and install an old-style archive.
25735 RANLIB=$lt_RANLIB
25736 old_archive_cmds=$lt_old_archive_cmds_RC
25737 old_postinstall_cmds=$lt_old_postinstall_cmds
25738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25739
25740 # Create an old-style archive from a shared archive.
25741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25742
25743 # Create a temporary old-style archive to link instead of a shared archive.
25744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25745
25746 # Commands used to build and install a shared archive.
25747 archive_cmds=$lt_archive_cmds_RC
25748 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25749 postinstall_cmds=$lt_postinstall_cmds
25750 postuninstall_cmds=$lt_postuninstall_cmds
25751
25752 # Commands used to build a loadable module (assumed same as above if empty)
25753 module_cmds=$lt_module_cmds_RC
25754 module_expsym_cmds=$lt_module_expsym_cmds_RC
25755
25756 # Commands to strip libraries.
25757 old_striplib=$lt_old_striplib
25758 striplib=$lt_striplib
25759
25760 # Dependencies to place before the objects being linked to create a
25761 # shared library.
25762 predep_objects=$lt_predep_objects_RC
25763
25764 # Dependencies to place after the objects being linked to create a
25765 # shared library.
25766 postdep_objects=$lt_postdep_objects_RC
25767
25768 # Dependencies to place before the objects being linked to create a
25769 # shared library.
25770 predeps=$lt_predeps_RC
25771
25772 # Dependencies to place after the objects being linked to create a
25773 # shared library.
25774 postdeps=$lt_postdeps_RC
25775
25776 # The library search path used internally by the compiler when linking
25777 # a shared library.
25778 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25779
25780 # Method to check whether dependent libraries are shared objects.
25781 deplibs_check_method=$lt_deplibs_check_method
25782
25783 # Command to use when deplibs_check_method == file_magic.
25784 file_magic_cmd=$lt_file_magic_cmd
25785
25786 # Flag that allows shared libraries with undefined symbols to be built.
25787 allow_undefined_flag=$lt_allow_undefined_flag_RC
25788
25789 # Flag that forces no undefined symbols.
25790 no_undefined_flag=$lt_no_undefined_flag_RC
25791
25792 # Commands used to finish a libtool library installation in a directory.
25793 finish_cmds=$lt_finish_cmds
25794
25795 # Same as above, but a single script fragment to be evaled but not shown.
25796 finish_eval=$lt_finish_eval
25797
25798 # Take the output of nm and produce a listing of raw symbols and C names.
25799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25800
25801 # Transform the output of nm in a proper C declaration
25802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25803
25804 # Transform the output of nm in a C name address pair
25805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25806
25807 # This is the shared library runtime path variable.
25808 runpath_var=$runpath_var
25809
25810 # This is the shared library path variable.
25811 shlibpath_var=$shlibpath_var
25812
25813 # Is shlibpath searched before the hard-coded library search path?
25814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25815
25816 # How to hardcode a shared library path into an executable.
25817 hardcode_action=$hardcode_action_RC
25818
25819 # Whether we should hardcode library paths into libraries.
25820 hardcode_into_libs=$hardcode_into_libs
25821
25822 # Flag to hardcode \$libdir into a binary during linking.
25823 # This must work even if \$libdir does not exist.
25824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25825
25826 # If ld is used when linking, flag to hardcode \$libdir into
25827 # a binary during linking. This must work even if \$libdir does
25828 # not exist.
25829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25830
25831 # Whether we need a single -rpath flag with a separated argument.
25832 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25833
25834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25835 # resulting binary.
25836 hardcode_direct=$hardcode_direct_RC
25837
25838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25839 # resulting binary.
25840 hardcode_minus_L=$hardcode_minus_L_RC
25841
25842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25843 # the resulting binary.
25844 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25845
25846 # Set to yes if building a shared library automatically hardcodes DIR into the library
25847 # and all subsequent libraries and executables linked against it.
25848 hardcode_automatic=$hardcode_automatic_RC
25849
25850 # Variables whose values should be saved in libtool wrapper scripts and
25851 # restored at relink time.
25852 variables_saved_for_relink="$variables_saved_for_relink"
25853
25854 # Whether libtool must link a program against all its dependency libraries.
25855 link_all_deplibs=$link_all_deplibs_RC
25856
25857 # Compile-time system search path for libraries
25858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25859
25860 # Run-time system search path for libraries
25861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25862
25863 # Fix the shell variable \$srcfile for the compiler.
25864 fix_srcfile_path="$fix_srcfile_path_RC"
25865
25866 # Set to yes if exported symbols are required.
25867 always_export_symbols=$always_export_symbols_RC
25868
25869 # The commands to list exported symbols.
25870 export_symbols_cmds=$lt_export_symbols_cmds_RC
25871
25872 # The commands to extract the exported symbol list from a shared archive.
25873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25874
25875 # Symbols that should not be listed in the preloaded symbols.
25876 exclude_expsyms=$lt_exclude_expsyms_RC
25877
25878 # Symbols that must always be exported.
25879 include_expsyms=$lt_include_expsyms_RC
25880
25881 # ### END LIBTOOL TAG CONFIG: $tagname
25882
25883 __EOF__
25884
25885
25886 else
25887   # If there is no Makefile yet, we rely on a make rule to execute
25888   # `config.status --recheck' to rerun these tests and create the
25889   # libtool script then.
25890   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25891   if test -f "$ltmain_in"; then
25892     test -f Makefile && make "$ltmain"
25893   fi
25894 fi
25895
25896
25897 ac_ext=c
25898 ac_cpp='$CPP $CPPFLAGS'
25899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25902
25903 CC="$lt_save_CC"
25904
25905         ;;
25906
25907       *)
25908         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25909 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25910    { (exit 1); exit 1; }; }
25911         ;;
25912       esac
25913
25914       # Append the new tag name to the list of available tags.
25915       if test -n "$tagname" ; then
25916       available_tags="$available_tags $tagname"
25917     fi
25918     fi
25919   done
25920   IFS="$lt_save_ifs"
25921
25922   # Now substitute the updated list of available tags.
25923   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25924     mv "${ofile}T" "$ofile"
25925     chmod +x "$ofile"
25926   else
25927     rm -f "${ofile}T"
25928     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25929 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25930    { (exit 1); exit 1; }; }
25931   fi
25932 fi
25933
25934
25935
25936 # This can be used to rebuild libtool when needed
25937 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25938
25939 # Always use our own libtool.
25940 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
25941
25942 # Prevent multiple expansion
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966         echo "$as_me:$LINENO: checking for linux kernel dir" >&5
25967 echo $ECHO_N "checking for linux kernel dir... $ECHO_C" >&6
25968 if test "${ensc_cv_path_kerneldir+set}" = set; then
25969   echo $ECHO_N "(cached) $ECHO_C" >&6
25970 else
25971
25972
25973 # Check whether --with-kerneldir or --without-kerneldir was given.
25974 if test "${with_kerneldir+set}" = set; then
25975   withval="$with_kerneldir"
25976   case "$withval" in
25977                 yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for kerneldir" >&5
25978 echo "$as_me: error: '$withval' is not a valid value for kerneldir" >&2;}
25979    { (exit 1); exit 1; }; };;
25980                 *)      ensc_cv_path_kerneldir=$withval;;
25981              esac
25982 else
25983   ensc_cv_path_kerneldir=
25984              for i in /lib/modules/$(uname -r)/build /usr/src/linux /usr; do
25985                 test -e $i/include/linux/version.h && { ensc_cv_path_kerneldir=$i; break; }
25986              done
25987 fi;
25988
25989 fi
25990 echo "$as_me:$LINENO: result: $ensc_cv_path_kerneldir" >&5
25991 echo "${ECHO_T}$ensc_cv_path_kerneldir" >&6
25992
25993         test "$ensc_cv_path_kerneldir" -a -e "$ensc_cv_path_kerneldir"/include/linux/version.h || {
25994                 { { echo "$as_me:$LINENO: error: Can not find kernelsources" >&5
25995 echo "$as_me: error: Can not find kernelsources" >&2;}
25996    { (exit 1); exit 1; }; }
25997         }
25998
25999
26000
26001
26002         echo "$as_me:$LINENO: checking for linux kernel headers" >&5
26003 echo $ECHO_N "checking for linux kernel headers... $ECHO_C" >&6
26004 if test "${ensc_cv_path_kernelheaders+set}" = set; then
26005   echo $ECHO_N "(cached) $ECHO_C" >&6
26006 else
26007
26008                 ensc_cv_path_kernelheaders=$ensc_cv_path_kerneldir/include
26009
26010 fi
26011 echo "$as_me:$LINENO: result: $ensc_cv_path_kernelheaders" >&5
26012 echo "${ECHO_T}$ensc_cv_path_kernelheaders" >&6
26013
26014         if test x"kernelincludedir" != x; then
26015                 kernelincludedir=$ensc_cv_path_kernelheaders
26016
26017         fi
26018
26019
26020         echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
26021 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6
26022
26023 # Check whether --with-vrootdir or --without-vrootdir was given.
26024 if test "${with_vrootdir+set}" = set; then
26025   withval="$with_vrootdir"
26026   case "$withval" in
26027                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
26028 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
26029    { (exit 1); exit 1; }; };;
26030                         *)      ensc_uv_path_vrootdir=$withval;;
26031                      esac
26032 else
26033   ensc_uv_path_vrootdir=/vservers
26034 fi;
26035         echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
26036 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6
26037
26038         if test x"vserverdir" != x; then
26039                 vserverdir=$ensc_uv_path_vrootdir
26040
26041         fi
26042
26043
26044         if test x"trunk" != x; then
26045                 CVS2CL_TAG='-F trunk'
26046
26047         fi
26048
26049         for ac_prog in cvs2cl
26050 do
26051   # Extract the first word of "$ac_prog", so it can be a program name with args.
26052 set dummy $ac_prog; ac_word=$2
26053 echo "$as_me:$LINENO: checking for $ac_word" >&5
26054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26055 if test "${ac_cv_prog_CVS2CL+set}" = set; then
26056   echo $ECHO_N "(cached) $ECHO_C" >&6
26057 else
26058   if test -n "$CVS2CL"; then
26059   ac_cv_prog_CVS2CL="$CVS2CL" # Let the user override the test.
26060 else
26061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26062 for as_dir in $PATH
26063 do
26064   IFS=$as_save_IFS
26065   test -z "$as_dir" && as_dir=.
26066   for ac_exec_ext in '' $ac_executable_extensions; do
26067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26068     ac_cv_prog_CVS2CL="$ac_prog"
26069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26070     break 2
26071   fi
26072 done
26073 done
26074
26075 fi
26076 fi
26077 CVS2CL=$ac_cv_prog_CVS2CL
26078 if test -n "$CVS2CL"; then
26079   echo "$as_me:$LINENO: result: $CVS2CL" >&5
26080 echo "${ECHO_T}$CVS2CL" >&6
26081 else
26082   echo "$as_me:$LINENO: result: no" >&5
26083 echo "${ECHO_T}no" >&6
26084 fi
26085
26086   test -n "$CVS2CL" && break
26087 done
26088
26089
26090
26091 if test x"$CVS2CL" != x; then
26092   HAVE_CVS2CL_TRUE=
26093   HAVE_CVS2CL_FALSE='#'
26094 else
26095   HAVE_CVS2CL_TRUE='#'
26096   HAVE_CVS2CL_FALSE=
26097 fi
26098
26099
26100         for ac_prog in rcs2log
26101 do
26102   # Extract the first word of "$ac_prog", so it can be a program name with args.
26103 set dummy $ac_prog; ac_word=$2
26104 echo "$as_me:$LINENO: checking for $ac_word" >&5
26105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26106 if test "${ac_cv_prog_RCS2LOG+set}" = set; then
26107   echo $ECHO_N "(cached) $ECHO_C" >&6
26108 else
26109   if test -n "$RCS2LOG"; then
26110   ac_cv_prog_RCS2LOG="$RCS2LOG" # Let the user override the test.
26111 else
26112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26113 for as_dir in $PATH
26114 do
26115   IFS=$as_save_IFS
26116   test -z "$as_dir" && as_dir=.
26117   for ac_exec_ext in '' $ac_executable_extensions; do
26118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26119     ac_cv_prog_RCS2LOG="$ac_prog"
26120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26121     break 2
26122   fi
26123 done
26124 done
26125
26126 fi
26127 fi
26128 RCS2LOG=$ac_cv_prog_RCS2LOG
26129 if test -n "$RCS2LOG"; then
26130   echo "$as_me:$LINENO: result: $RCS2LOG" >&5
26131 echo "${ECHO_T}$RCS2LOG" >&6
26132 else
26133   echo "$as_me:$LINENO: result: no" >&5
26134 echo "${ECHO_T}no" >&6
26135 fi
26136
26137   test -n "$RCS2LOG" && break
26138 done
26139
26140
26141
26142 if test x"$RCS2LOG" != x; then
26143   HAVE_RCS2LOG_TRUE=
26144   HAVE_RCS2LOG_FALSE='#'
26145 else
26146   HAVE_RCS2LOG_TRUE='#'
26147   HAVE_RCS2LOG_FALSE=
26148 fi
26149
26150
26151
26152
26153 echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
26154 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6
26155 # Check whether --enable-internal-headers or --disable-internal-headers was given.
26156 if test "${enable_internal_headers+set}" = set; then
26157   enableval="$enable_internal_headers"
26158   case "$enableval" in
26159                   (yes|no) ;;
26160                   (*)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
26161 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
26162    { (exit 1); exit 1; }; };;
26163                esac
26164 else
26165   enable_internal_headers=yes
26166 fi;
26167
26168
26169
26170 if test x"$enable_internal_headers" = xyes; then
26171   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
26172   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
26173 else
26174   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
26175   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
26176 fi
26177
26178 echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
26179 echo "${ECHO_T}$enable_internal_headers" >&6
26180
26181 echo "$as_me:$LINENO: checking for supported APIs" >&5
26182 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6
26183 # Check whether --enable-apis or --disable-apis was given.
26184 if test "${enable_apis+set}" = set; then
26185   enableval="$enable_apis"
26186
26187 else
26188   enable_apis=compat,v11,v13,fscompat,net
26189 fi;
26190
26191 test x"$enable_apis" != xALL || enable_apis='legacy,compat,v11,v13,fscompat,net'
26192 enable_api_oldproc=
26193 enable_api_olduts=
26194 old_IFS=$IFS
26195 IFS=,;
26196 for i in $enable_apis; do
26197         case "$i" in
26198                 (compat)
26199 cat >>confdefs.h <<\_ACEOF
26200 #define VC_ENABLE_API_COMPAT 1
26201 _ACEOF
26202
26203                                 enable_api_oldproc=1
26204                                 enable_api_olduts=1
26205                                 ;;
26206                 (legacy)
26207 cat >>confdefs.h <<\_ACEOF
26208 #define VC_ENABLE_API_LEGACY 1
26209 _ACEOF
26210
26211                                 enable_api_old_proc=1
26212                                 enable_api_olduts=1
26213                                 ;;
26214                 (v11)
26215 cat >>confdefs.h <<\_ACEOF
26216 #define VC_ENABLE_API_V11 1
26217 _ACEOF
26218
26219                                 enable_api_oldproc=1
26220                                 enable_api_olduts=1
26221                                 ;;
26222                 (v13)
26223 cat >>confdefs.h <<\_ACEOF
26224 #define VC_ENABLE_API_V13 1
26225 _ACEOF
26226 ;;
26227                 (net)
26228 cat >>confdefs.h <<\_ACEOF
26229 #define VC_ENABLE_API_NET 1
26230 _ACEOF
26231 ;;
26232                 (fscompat)
26233 cat >>confdefs.h <<\_ACEOF
26234 #define VC_ENABLE_API_FSCOMPAT 1
26235 _ACEOF
26236 ;;
26237                 (*)             { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
26238 echo "$as_me: error: '$i' is not a supported API" >&2;}
26239    { (exit 1); exit 1; }; };;
26240         esac
26241 done
26242 IFS=$old_IFS
26243 if test x"$enable_api_oldproc" != x; then
26244
26245 cat >>confdefs.h <<\_ACEOF
26246 #define VC_ENABLE_API_OLDPROC 1
26247 _ACEOF
26248
26249         enable_apis="$enable_apis,oldproc"
26250 fi
26251 if test x"$enable_api_olduts" != x; then
26252
26253 cat >>confdefs.h <<\_ACEOF
26254 #define VC_ENABLE_API_OLDUTS 1
26255 _ACEOF
26256
26257         enable_apis="$enable_apis,olduts"
26258 fi
26259 echo "$as_me:$LINENO: result: $enable_apis" >&5
26260 echo "${ECHO_T}$enable_apis" >&6
26261
26262
26263
26264
26265
26266
26267
26268         echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
26269 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6
26270 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
26271   echo $ECHO_N "(cached) $ECHO_C" >&6
26272 else
26273
26274                 ac_ext=c
26275 ac_cpp='$CPP $CPPFLAGS'
26276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26279
26280                 cat >conftest.$ac_ext <<_ACEOF
26281
26282 #include <asm/unistd.h>
26283 #ifdef __NR_vserver
26284 ensc_syscall_tmp_nr=__NR_vserver;
26285 ensc_syscall_tmp_src=ENSC_MARK
26286 #endif
26287
26288 _ACEOF
26289                 ensc_syscall_tmp_nr=
26290                 ensc_syscall_tmp_src=
26291                 test "$ensc_syscall_tmp_nr" || \
26292                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                 conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
26293                 test "$ensc_syscall_tmp_nr" || \
26294                         eval $($CPP $CPPFLAGS -D ENSC_MARK='kernel' -I $ensc_cv_path_kernelheaders conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
26295                 test "$ensc_syscall_tmp_nr" || {
26296                         ensc_syscall_tmp_nr=273
26297                         ensc_syscall_tmp_src=default
26298                 }
26299
26300                 if test x"$ensc_syscall_tmp_nr" = x; then
26301                         { { 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
26302 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;}
26303    { (exit 1); exit 1; }; }
26304                 fi
26305                 ac_ext=c
26306 ac_cpp='$CPP $CPPFLAGS'
26307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26310
26311
26312                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
26313
26314 fi
26315 echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
26316 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6
26317
26318         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
26319         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
26320
26321         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
26322
26323 cat >>confdefs.h <<_ACEOF
26324 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
26325 _ACEOF
26326
26327         fi
26328
26329
26330
26331
26332
26333         echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
26334 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6
26335
26336 # Check whether --with-syscall or --without-syscall was given.
26337 if test "${with_syscall+set}" = set; then
26338   withval="$with_syscall"
26339
26340 else
26341   with_syscall=auto
26342 fi;
26343         echo "$as_me:$LINENO: result: $with_syscall" >&5
26344 echo "${ECHO_T}$with_syscall" >&6
26345
26346         case x"$with_syscall" in
26347             (xauto)
26348                 echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
26349 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6
26350 if test "${ensc_cv_test_syscall+set}" = set; then
26351   echo $ECHO_N "(cached) $ECHO_C" >&6
26352 else
26353
26354                                 ac_ext=c
26355 ac_cpp='$CPP $CPPFLAGS'
26356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26359
26360                                 cat >conftest.$ac_ext <<_ACEOF
26361 /* confdefs.h.  */
26362 _ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h.  */
26366
26367 #include "$srcdir/lib/syscall-wrap.h"
26368 #include <errno.h>
26369
26370 #define __NR_foo0       300
26371 #define __NR_foo1       301
26372 #define __NR_foo2       302
26373 #define __NR_foo3       303
26374 #define __NR_foo4       304
26375 #define __NR_foo5       305
26376 inline static _syscall0(int, foo0)
26377 inline static _syscall1(int, foo1, int, a)
26378 inline static _syscall2(int, foo2, int, a, int, b)
26379 inline static _syscall3(int, foo3, int, a, int, b, int, c)
26380 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
26381 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
26382
26383 int main() {
26384   return foo0() || \
26385          foo1(1) || \
26386          foo2(1,2) || \
26387          foo3(1,2,3) || \
26388          foo4(1,2,3,4) || \
26389          foo5(1,2,3,4,5);
26390 }
26391
26392 _ACEOF
26393 rm -f conftest.$ac_objext
26394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26395   (eval $ac_compile) 2>conftest.er1
26396   ac_status=$?
26397   grep -v '^ *+' conftest.er1 >conftest.err
26398   rm -f conftest.er1
26399   cat conftest.err >&5
26400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401   (exit $ac_status); } &&
26402          { ac_try='test -z "$ac_c_werror_flag"
26403                          || test ! -s conftest.err'
26404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26405   (eval $ac_try) 2>&5
26406   ac_status=$?
26407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408   (exit $ac_status); }; } &&
26409          { ac_try='test -s conftest.$ac_objext'
26410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26411   (eval $ac_try) 2>&5
26412   ac_status=$?
26413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414   (exit $ac_status); }; }; then
26415   ensc_cv_test_syscall=fast
26416 else
26417   echo "$as_me: failed program was:" >&5
26418 sed 's/^/| /' conftest.$ac_ext >&5
26419
26420 ensc_cv_test_syscall=traditional
26421 fi
26422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26423
26424                                 ac_ext=c
26425 ac_cpp='$CPP $CPPFLAGS'
26426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26429
26430
26431 fi
26432 echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
26433 echo "${ECHO_T}$ensc_cv_test_syscall" >&6
26434                 with_syscall=$ensc_cv_test_syscall
26435                 ;;
26436             (xfast|xtraditional)
26437                 ;;
26438             *)
26439                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
26440 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
26441    { (exit 1); exit 1; }; }
26442                 ;;
26443         esac
26444
26445         if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
26446             with_syscall='alternative'
26447         fi
26448
26449         if test x"$with_syscall" = xtraditional; then
26450
26451 cat >>confdefs.h <<\_ACEOF
26452 #define ENSC_SYSCALL_TRADITIONAL 1
26453 _ACEOF
26454
26455         fi
26456
26457
26458
26459
26460
26461
26462     ac_ext=cc
26463 ac_cpp='$CXXCPP $CPPFLAGS'
26464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26467
26468     echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
26469 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6
26470 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
26471   echo $ECHO_N "(cached) $ECHO_C" >&6
26472 else
26473
26474         cat >conftest.$ac_ext <<_ACEOF
26475 /* confdefs.h.  */
26476 _ACEOF
26477 cat confdefs.h >>conftest.$ac_ext
26478 cat >>conftest.$ac_ext <<_ACEOF
26479 /* end confdefs.h.  */
26480 #include <ext2fs/ext2_fs.h>
26481                                           int main() { return 0; }
26482 _ACEOF
26483 rm -f conftest.$ac_objext
26484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26485   (eval $ac_compile) 2>conftest.er1
26486   ac_status=$?
26487   grep -v '^ *+' conftest.er1 >conftest.err
26488   rm -f conftest.er1
26489   cat conftest.err >&5
26490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491   (exit $ac_status); } &&
26492          { ac_try='test -z "$ac_cxx_werror_flag"
26493                          || test ! -s conftest.err'
26494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495   (eval $ac_try) 2>&5
26496   ac_status=$?
26497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498   (exit $ac_status); }; } &&
26499          { ac_try='test -s conftest.$ac_objext'
26500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501   (eval $ac_try) 2>&5
26502   ac_status=$?
26503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504   (exit $ac_status); }; }; then
26505   ensc_cv_test_ext2fs_header=e2fsprogs
26506 else
26507   echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26509
26510
26511         cat >conftest.$ac_ext <<_ACEOF
26512 /* confdefs.h.  */
26513 _ACEOF
26514 cat confdefs.h >>conftest.$ac_ext
26515 cat >>conftest.$ac_ext <<_ACEOF
26516 /* end confdefs.h.  */
26517 #include <linux/ext2_fs.h>
26518                                           int main() { return 0; }
26519 _ACEOF
26520 rm -f conftest.$ac_objext
26521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26522   (eval $ac_compile) 2>conftest.er1
26523   ac_status=$?
26524   grep -v '^ *+' conftest.er1 >conftest.err
26525   rm -f conftest.er1
26526   cat conftest.err >&5
26527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528   (exit $ac_status); } &&
26529          { ac_try='test -z "$ac_cxx_werror_flag"
26530                          || test ! -s conftest.err'
26531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26532   (eval $ac_try) 2>&5
26533   ac_status=$?
26534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535   (exit $ac_status); }; } &&
26536          { ac_try='test -s conftest.$ac_objext'
26537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26538   (eval $ac_try) 2>&5
26539   ac_status=$?
26540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541   (exit $ac_status); }; }; then
26542   ensc_cv_test_ext2fs_header=kernel
26543 else
26544   echo "$as_me: failed program was:" >&5
26545 sed 's/^/| /' conftest.$ac_ext >&5
26546
26547
26548         ensc_cv_test_ext2fs_header=none
26549 fi
26550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26551 fi
26552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26553 fi
26554 echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
26555 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6
26556
26557     case x"$ensc_cv_test_ext2fs_header" in
26558         (xe2fsprogs)
26559                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26560   echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26561 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26562 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26563   echo $ECHO_N "(cached) $ECHO_C" >&6
26564 fi
26565 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26566 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26567 else
26568   # Is the header compilable?
26569 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
26570 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6
26571 cat >conftest.$ac_ext <<_ACEOF
26572 /* confdefs.h.  */
26573 _ACEOF
26574 cat confdefs.h >>conftest.$ac_ext
26575 cat >>conftest.$ac_ext <<_ACEOF
26576 /* end confdefs.h.  */
26577 $ac_includes_default
26578 #include <ext2fs/ext2_fs.h>
26579 _ACEOF
26580 rm -f conftest.$ac_objext
26581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26582   (eval $ac_compile) 2>conftest.er1
26583   ac_status=$?
26584   grep -v '^ *+' conftest.er1 >conftest.err
26585   rm -f conftest.er1
26586   cat conftest.err >&5
26587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588   (exit $ac_status); } &&
26589          { ac_try='test -z "$ac_cxx_werror_flag"
26590                          || test ! -s conftest.err'
26591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592   (eval $ac_try) 2>&5
26593   ac_status=$?
26594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595   (exit $ac_status); }; } &&
26596          { ac_try='test -s conftest.$ac_objext'
26597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598   (eval $ac_try) 2>&5
26599   ac_status=$?
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); }; }; then
26602   ac_header_compiler=yes
26603 else
26604   echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26606
26607 ac_header_compiler=no
26608 fi
26609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26611 echo "${ECHO_T}$ac_header_compiler" >&6
26612
26613 # Is the header present?
26614 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
26615 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6
26616 cat >conftest.$ac_ext <<_ACEOF
26617 /* confdefs.h.  */
26618 _ACEOF
26619 cat confdefs.h >>conftest.$ac_ext
26620 cat >>conftest.$ac_ext <<_ACEOF
26621 /* end confdefs.h.  */
26622 #include <ext2fs/ext2_fs.h>
26623 _ACEOF
26624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26625   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26626   ac_status=$?
26627   grep -v '^ *+' conftest.er1 >conftest.err
26628   rm -f conftest.er1
26629   cat conftest.err >&5
26630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631   (exit $ac_status); } >/dev/null; then
26632   if test -s conftest.err; then
26633     ac_cpp_err=$ac_cxx_preproc_warn_flag
26634     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26635   else
26636     ac_cpp_err=
26637   fi
26638 else
26639   ac_cpp_err=yes
26640 fi
26641 if test -z "$ac_cpp_err"; then
26642   ac_header_preproc=yes
26643 else
26644   echo "$as_me: failed program was:" >&5
26645 sed 's/^/| /' conftest.$ac_ext >&5
26646
26647   ac_header_preproc=no
26648 fi
26649 rm -f conftest.err conftest.$ac_ext
26650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26651 echo "${ECHO_T}$ac_header_preproc" >&6
26652
26653 # So?  What about this header?
26654 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26655   yes:no: )
26656     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26657 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26658     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
26659 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
26660     ac_header_preproc=yes
26661     ;;
26662   no:yes:* )
26663     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
26664 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
26665     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
26666 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26667     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
26668 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
26669     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26670 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26671     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
26672 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26673     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
26674 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26675     (
26676       cat <<\_ASBOX
26677 ## ------------------------------------------------------ ##
26678 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
26679 ## ------------------------------------------------------ ##
26680 _ASBOX
26681     ) |
26682       sed "s/^/$as_me: WARNING:     /" >&2
26683     ;;
26684 esac
26685 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26686 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26687 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26688   echo $ECHO_N "(cached) $ECHO_C" >&6
26689 else
26690   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
26691 fi
26692 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26693 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26694
26695 fi
26696 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
26697
26698 cat >>confdefs.h <<\_ACEOF
26699 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
26700 _ACEOF
26701
26702 else
26703   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26704 See \`config.log' for more details." >&5
26705 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26706 See \`config.log' for more details." >&2;}
26707    { (exit 1); exit 1; }; }
26708 fi
26709
26710
26711                 ;;
26712         (xkernel)
26713                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26714   echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26715 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26716 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26717   echo $ECHO_N "(cached) $ECHO_C" >&6
26718 fi
26719 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26720 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26721 else
26722   # Is the header compilable?
26723 echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
26724 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6
26725 cat >conftest.$ac_ext <<_ACEOF
26726 /* confdefs.h.  */
26727 _ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h.  */
26731 $ac_includes_default
26732 #include <linux/ext2_fs.h>
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_cxx_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_header_compiler=yes
26757 else
26758   echo "$as_me: failed program was:" >&5
26759 sed 's/^/| /' conftest.$ac_ext >&5
26760
26761 ac_header_compiler=no
26762 fi
26763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26765 echo "${ECHO_T}$ac_header_compiler" >&6
26766
26767 # Is the header present?
26768 echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
26769 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6
26770 cat >conftest.$ac_ext <<_ACEOF
26771 /* confdefs.h.  */
26772 _ACEOF
26773 cat confdefs.h >>conftest.$ac_ext
26774 cat >>conftest.$ac_ext <<_ACEOF
26775 /* end confdefs.h.  */
26776 #include <linux/ext2_fs.h>
26777 _ACEOF
26778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26780   ac_status=$?
26781   grep -v '^ *+' conftest.er1 >conftest.err
26782   rm -f conftest.er1
26783   cat conftest.err >&5
26784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785   (exit $ac_status); } >/dev/null; then
26786   if test -s conftest.err; then
26787     ac_cpp_err=$ac_cxx_preproc_warn_flag
26788     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26789   else
26790     ac_cpp_err=
26791   fi
26792 else
26793   ac_cpp_err=yes
26794 fi
26795 if test -z "$ac_cpp_err"; then
26796   ac_header_preproc=yes
26797 else
26798   echo "$as_me: failed program was:" >&5
26799 sed 's/^/| /' conftest.$ac_ext >&5
26800
26801   ac_header_preproc=no
26802 fi
26803 rm -f conftest.err conftest.$ac_ext
26804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26805 echo "${ECHO_T}$ac_header_preproc" >&6
26806
26807 # So?  What about this header?
26808 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26809   yes:no: )
26810     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26811 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26812     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
26813 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
26814     ac_header_preproc=yes
26815     ;;
26816   no:yes:* )
26817     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
26818 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
26819     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
26820 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26821     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
26822 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
26823     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26824 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26825     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
26826 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26827     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
26828 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26829     (
26830       cat <<\_ASBOX
26831 ## ------------------------------------------------------ ##
26832 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
26833 ## ------------------------------------------------------ ##
26834 _ASBOX
26835     ) |
26836       sed "s/^/$as_me: WARNING:     /" >&2
26837     ;;
26838 esac
26839 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26840 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26841 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26842   echo $ECHO_N "(cached) $ECHO_C" >&6
26843 else
26844   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
26845 fi
26846 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26847 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26848
26849 fi
26850 if test $ac_cv_header_linux_ext2_fs_h = yes; then
26851
26852 cat >>confdefs.h <<\_ACEOF
26853 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
26854 _ACEOF
26855
26856 else
26857   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
26858 See \`config.log' for more details." >&5
26859 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
26860 See \`config.log' for more details." >&2;}
26861    { (exit 1); exit 1; }; }
26862 fi
26863
26864
26865                 ;;
26866         (*)
26867                 { { echo "$as_me:$LINENO: error:
26868 ext2fs headers were not found, or they are not usable. This can have
26869 the following reasons:
26870
26871 * you have neither the e2fsprogs nor the kernel headers installed
26872
26873 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26874   and you do not have e2fsprogs headers installed; please try to install
26875   - e2fsprogs-devel (for Red Hat), or
26876   - libext2fs2-devel (for Mandrake), or
26877   - e2fslibs-dev (for Debian)
26878   in this case.
26879
26880 * kernel headers are broken and your e2fsprogs headers are too old;
26881   until version 1.27 (inclusive), they are using reserved C++ keywords
26882
26883 * kernel headers are broken and your e2fsprogs headers are too new;
26884   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26885   C++, for details and a solution see
26886   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26887
26888
26889 In the latter two cases you have the following options:
26890 * fix the headers manually, or
26891 * install a stable version of e2fsprogs (e.g. 1.34), or
26892 * use good kernel headers (from linux 2.4.x)
26893
26894 See \`config.log' for more details." >&5
26895 echo "$as_me: error:
26896 ext2fs headers were not found, or they are not usable. This can have
26897 the following reasons:
26898
26899 * you have neither the e2fsprogs nor the kernel headers installed
26900
26901 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26902   and you do not have e2fsprogs headers installed; please try to install
26903   - e2fsprogs-devel (for Red Hat), or
26904   - libext2fs2-devel (for Mandrake), or
26905   - e2fslibs-dev (for Debian)
26906   in this case.
26907
26908 * kernel headers are broken and your e2fsprogs headers are too old;
26909   until version 1.27 (inclusive), they are using reserved C++ keywords
26910
26911 * kernel headers are broken and your e2fsprogs headers are too new;
26912   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26913   C++, for details and a solution see
26914   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26915
26916
26917 In the latter two cases you have the following options:
26918 * fix the headers manually, or
26919 * install a stable version of e2fsprogs (e.g. 1.34), or
26920 * use good kernel headers (from linux 2.4.x)
26921
26922 See \`config.log' for more details." >&2;}
26923    { (exit 1); exit 1; }; }
26924                 ;;
26925     esac
26926     ac_ext=c
26927 ac_cpp='$CPP $CPPFLAGS'
26928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26931
26932
26933
26934 for ac_func in vserver
26935 do
26936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26937 echo "$as_me:$LINENO: checking for $ac_func" >&5
26938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26939 if eval "test \"\${$as_ac_var+set}\" = set"; then
26940   echo $ECHO_N "(cached) $ECHO_C" >&6
26941 else
26942   cat >conftest.$ac_ext <<_ACEOF
26943 /* confdefs.h.  */
26944 _ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h.  */
26948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26950 #define $ac_func innocuous_$ac_func
26951
26952 /* System header to define __stub macros and hopefully few prototypes,
26953     which can conflict with char $ac_func (); below.
26954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26955     <limits.h> exists even on freestanding compilers.  */
26956
26957 #ifdef __STDC__
26958 # include <limits.h>
26959 #else
26960 # include <assert.h>
26961 #endif
26962
26963 #undef $ac_func
26964
26965 /* Override any gcc2 internal prototype to avoid an error.  */
26966 #ifdef __cplusplus
26967 extern "C"
26968 {
26969 #endif
26970 /* We use char because int might match the return type of a gcc2
26971    builtin and then its argument prototype would still apply.  */
26972 char $ac_func ();
26973 /* The GNU C library defines this for functions which it implements
26974     to always fail with ENOSYS.  Some functions are actually named
26975     something starting with __ and the normal name is an alias.  */
26976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26977 choke me
26978 #else
26979 char (*f) () = $ac_func;
26980 #endif
26981 #ifdef __cplusplus
26982 }
26983 #endif
26984
26985 int
26986 main ()
26987 {
26988 return f != $ac_func;
26989   ;
26990   return 0;
26991 }
26992 _ACEOF
26993 rm -f conftest.$ac_objext conftest$ac_exeext
26994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26995   (eval $ac_link) 2>conftest.er1
26996   ac_status=$?
26997   grep -v '^ *+' conftest.er1 >conftest.err
26998   rm -f conftest.er1
26999   cat conftest.err >&5
27000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001   (exit $ac_status); } &&
27002          { ac_try='test -z "$ac_c_werror_flag"
27003                          || test ! -s conftest.err'
27004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27005   (eval $ac_try) 2>&5
27006   ac_status=$?
27007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008   (exit $ac_status); }; } &&
27009          { ac_try='test -s conftest$ac_exeext'
27010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27011   (eval $ac_try) 2>&5
27012   ac_status=$?
27013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); }; }; then
27015   eval "$as_ac_var=yes"
27016 else
27017   echo "$as_me: failed program was:" >&5
27018 sed 's/^/| /' conftest.$ac_ext >&5
27019
27020 eval "$as_ac_var=no"
27021 fi
27022 rm -f conftest.err conftest.$ac_objext \
27023       conftest$ac_exeext conftest.$ac_ext
27024 fi
27025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27027 if test `eval echo '${'$as_ac_var'}'` = yes; then
27028   cat >>confdefs.h <<_ACEOF
27029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27030 _ACEOF
27031
27032 fi
27033 done
27034
27035 echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
27036 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6
27037 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
27038   echo $ECHO_N "(cached) $ECHO_C" >&6
27039 else
27040   cat >conftest.$ac_ext <<_ACEOF
27041 /* confdefs.h.  */
27042 _ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h.  */
27046 #include <linux/fs.h>
27047
27048 int
27049 main ()
27050 {
27051 #ifndef MS_MOVE
27052   char *p = (char *) MS_MOVE;
27053 #endif
27054
27055   ;
27056   return 0;
27057 }
27058 _ACEOF
27059 rm -f conftest.$ac_objext
27060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27061   (eval $ac_compile) 2>conftest.er1
27062   ac_status=$?
27063   grep -v '^ *+' conftest.er1 >conftest.err
27064   rm -f conftest.er1
27065   cat conftest.err >&5
27066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067   (exit $ac_status); } &&
27068          { ac_try='test -z "$ac_c_werror_flag"
27069                          || test ! -s conftest.err'
27070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071   (eval $ac_try) 2>&5
27072   ac_status=$?
27073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074   (exit $ac_status); }; } &&
27075          { ac_try='test -s conftest.$ac_objext'
27076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27077   (eval $ac_try) 2>&5
27078   ac_status=$?
27079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080   (exit $ac_status); }; }; then
27081   ac_cv_have_decl_MS_MOVE=yes
27082 else
27083   echo "$as_me: failed program was:" >&5
27084 sed 's/^/| /' conftest.$ac_ext >&5
27085
27086 ac_cv_have_decl_MS_MOVE=no
27087 fi
27088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27089 fi
27090 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
27091 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6
27092 if test $ac_cv_have_decl_MS_MOVE = yes; then
27093
27094 cat >>confdefs.h <<_ACEOF
27095 #define HAVE_DECL_MS_MOVE 1
27096 _ACEOF
27097
27098
27099 else
27100   cat >>confdefs.h <<_ACEOF
27101 #define HAVE_DECL_MS_MOVE 0
27102 _ACEOF
27103
27104
27105 fi
27106
27107
27108 echo "$as_me:$LINENO: checking for xid_t" >&5
27109 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6
27110 if test "${ac_cv_type_xid_t+set}" = set; then
27111   echo $ECHO_N "(cached) $ECHO_C" >&6
27112 else
27113   cat >conftest.$ac_ext <<_ACEOF
27114 /* confdefs.h.  */
27115 _ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h.  */
27119 #include <sys/types.h>
27120
27121 int
27122 main ()
27123 {
27124 if ((xid_t *) 0)
27125   return 0;
27126 if (sizeof (xid_t))
27127   return 0;
27128   ;
27129   return 0;
27130 }
27131 _ACEOF
27132 rm -f conftest.$ac_objext
27133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27134   (eval $ac_compile) 2>conftest.er1
27135   ac_status=$?
27136   grep -v '^ *+' conftest.er1 >conftest.err
27137   rm -f conftest.er1
27138   cat conftest.err >&5
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); } &&
27141          { ac_try='test -z "$ac_c_werror_flag"
27142                          || test ! -s conftest.err'
27143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27144   (eval $ac_try) 2>&5
27145   ac_status=$?
27146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147   (exit $ac_status); }; } &&
27148          { ac_try='test -s conftest.$ac_objext'
27149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150   (eval $ac_try) 2>&5
27151   ac_status=$?
27152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153   (exit $ac_status); }; }; then
27154   ac_cv_type_xid_t=yes
27155 else
27156   echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27158
27159 ac_cv_type_xid_t=no
27160 fi
27161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27162 fi
27163 echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
27164 echo "${ECHO_T}$ac_cv_type_xid_t" >&6
27165 if test $ac_cv_type_xid_t = yes; then
27166
27167 cat >>confdefs.h <<_ACEOF
27168 #define HAVE_XID_T 1
27169 _ACEOF
27170
27171
27172 fi
27173
27174 echo "$as_me:$LINENO: checking for nid_t" >&5
27175 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6
27176 if test "${ac_cv_type_nid_t+set}" = set; then
27177   echo $ECHO_N "(cached) $ECHO_C" >&6
27178 else
27179   cat >conftest.$ac_ext <<_ACEOF
27180 /* confdefs.h.  */
27181 _ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h.  */
27185 #include <sys/types.h>
27186
27187 int
27188 main ()
27189 {
27190 if ((nid_t *) 0)
27191   return 0;
27192 if (sizeof (nid_t))
27193   return 0;
27194   ;
27195   return 0;
27196 }
27197 _ACEOF
27198 rm -f conftest.$ac_objext
27199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27200   (eval $ac_compile) 2>conftest.er1
27201   ac_status=$?
27202   grep -v '^ *+' conftest.er1 >conftest.err
27203   rm -f conftest.er1
27204   cat conftest.err >&5
27205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206   (exit $ac_status); } &&
27207          { ac_try='test -z "$ac_c_werror_flag"
27208                          || test ! -s conftest.err'
27209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27210   (eval $ac_try) 2>&5
27211   ac_status=$?
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); }; } &&
27214          { ac_try='test -s conftest.$ac_objext'
27215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27216   (eval $ac_try) 2>&5
27217   ac_status=$?
27218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219   (exit $ac_status); }; }; then
27220   ac_cv_type_nid_t=yes
27221 else
27222   echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27224
27225 ac_cv_type_nid_t=no
27226 fi
27227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27228 fi
27229 echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
27230 echo "${ECHO_T}$ac_cv_type_nid_t" >&6
27231 if test $ac_cv_type_nid_t = yes; then
27232
27233 cat >>confdefs.h <<_ACEOF
27234 #define HAVE_NID_T 1
27235 _ACEOF
27236
27237
27238 fi
27239
27240
27241
27242 for ac_header in sys/capability.h
27243 do
27244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27246   echo "$as_me:$LINENO: checking for $ac_header" >&5
27247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27249   echo $ECHO_N "(cached) $ECHO_C" >&6
27250 fi
27251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27253 else
27254   # Is the header compilable?
27255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27257 cat >conftest.$ac_ext <<_ACEOF
27258 /* confdefs.h.  */
27259 _ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h.  */
27263 $ac_includes_default
27264 #include <$ac_header>
27265 _ACEOF
27266 rm -f conftest.$ac_objext
27267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27268   (eval $ac_compile) 2>conftest.er1
27269   ac_status=$?
27270   grep -v '^ *+' conftest.er1 >conftest.err
27271   rm -f conftest.er1
27272   cat conftest.err >&5
27273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274   (exit $ac_status); } &&
27275          { ac_try='test -z "$ac_c_werror_flag"
27276                          || test ! -s conftest.err'
27277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27278   (eval $ac_try) 2>&5
27279   ac_status=$?
27280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281   (exit $ac_status); }; } &&
27282          { ac_try='test -s conftest.$ac_objext'
27283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27284   (eval $ac_try) 2>&5
27285   ac_status=$?
27286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287   (exit $ac_status); }; }; then
27288   ac_header_compiler=yes
27289 else
27290   echo "$as_me: failed program was:" >&5
27291 sed 's/^/| /' conftest.$ac_ext >&5
27292
27293 ac_header_compiler=no
27294 fi
27295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27297 echo "${ECHO_T}$ac_header_compiler" >&6
27298
27299 # Is the header present?
27300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27302 cat >conftest.$ac_ext <<_ACEOF
27303 /* confdefs.h.  */
27304 _ACEOF
27305 cat confdefs.h >>conftest.$ac_ext
27306 cat >>conftest.$ac_ext <<_ACEOF
27307 /* end confdefs.h.  */
27308 #include <$ac_header>
27309 _ACEOF
27310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27312   ac_status=$?
27313   grep -v '^ *+' conftest.er1 >conftest.err
27314   rm -f conftest.er1
27315   cat conftest.err >&5
27316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317   (exit $ac_status); } >/dev/null; then
27318   if test -s conftest.err; then
27319     ac_cpp_err=$ac_c_preproc_warn_flag
27320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27321   else
27322     ac_cpp_err=
27323   fi
27324 else
27325   ac_cpp_err=yes
27326 fi
27327 if test -z "$ac_cpp_err"; then
27328   ac_header_preproc=yes
27329 else
27330   echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27332
27333   ac_header_preproc=no
27334 fi
27335 rm -f conftest.err conftest.$ac_ext
27336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27337 echo "${ECHO_T}$ac_header_preproc" >&6
27338
27339 # So?  What about this header?
27340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27341   yes:no: )
27342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27346     ac_header_preproc=yes
27347     ;;
27348   no:yes:* )
27349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27361     (
27362       cat <<\_ASBOX
27363 ## ------------------------------------------------------ ##
27364 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
27365 ## ------------------------------------------------------ ##
27366 _ASBOX
27367     ) |
27368       sed "s/^/$as_me: WARNING:     /" >&2
27369     ;;
27370 esac
27371 echo "$as_me:$LINENO: checking for $ac_header" >&5
27372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27374   echo $ECHO_N "(cached) $ECHO_C" >&6
27375 else
27376   eval "$as_ac_Header=\$ac_header_preproc"
27377 fi
27378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27380
27381 fi
27382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27383   cat >>confdefs.h <<_ACEOF
27384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27385 _ACEOF
27386
27387 fi
27388
27389 done
27390
27391
27392
27393 if test x"$ensc_cv_c99_c99compiler" = xyes; then
27394         ensc_have_beecrypt=yes
27395
27396         if test x"$ensc_have_beecrypt" = xyes; then
27397                 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27398   echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27399 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27400 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27401   echo $ECHO_N "(cached) $ECHO_C" >&6
27402 fi
27403 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27404 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27405 else
27406   # Is the header compilable?
27407 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
27408 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6
27409 cat >conftest.$ac_ext <<_ACEOF
27410 /* confdefs.h.  */
27411 _ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h.  */
27415 $ac_includes_default
27416 #include <beecrypt/beecrypt.h>
27417 _ACEOF
27418 rm -f conftest.$ac_objext
27419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27420   (eval $ac_compile) 2>conftest.er1
27421   ac_status=$?
27422   grep -v '^ *+' conftest.er1 >conftest.err
27423   rm -f conftest.er1
27424   cat conftest.err >&5
27425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426   (exit $ac_status); } &&
27427          { ac_try='test -z "$ac_c_werror_flag"
27428                          || test ! -s conftest.err'
27429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430   (eval $ac_try) 2>&5
27431   ac_status=$?
27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433   (exit $ac_status); }; } &&
27434          { ac_try='test -s conftest.$ac_objext'
27435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436   (eval $ac_try) 2>&5
27437   ac_status=$?
27438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439   (exit $ac_status); }; }; then
27440   ac_header_compiler=yes
27441 else
27442   echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27444
27445 ac_header_compiler=no
27446 fi
27447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27449 echo "${ECHO_T}$ac_header_compiler" >&6
27450
27451 # Is the header present?
27452 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
27453 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6
27454 cat >conftest.$ac_ext <<_ACEOF
27455 /* confdefs.h.  */
27456 _ACEOF
27457 cat confdefs.h >>conftest.$ac_ext
27458 cat >>conftest.$ac_ext <<_ACEOF
27459 /* end confdefs.h.  */
27460 #include <beecrypt/beecrypt.h>
27461 _ACEOF
27462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27464   ac_status=$?
27465   grep -v '^ *+' conftest.er1 >conftest.err
27466   rm -f conftest.er1
27467   cat conftest.err >&5
27468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469   (exit $ac_status); } >/dev/null; then
27470   if test -s conftest.err; then
27471     ac_cpp_err=$ac_c_preproc_warn_flag
27472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27473   else
27474     ac_cpp_err=
27475   fi
27476 else
27477   ac_cpp_err=yes
27478 fi
27479 if test -z "$ac_cpp_err"; then
27480   ac_header_preproc=yes
27481 else
27482   echo "$as_me: failed program was:" >&5
27483 sed 's/^/| /' conftest.$ac_ext >&5
27484
27485   ac_header_preproc=no
27486 fi
27487 rm -f conftest.err conftest.$ac_ext
27488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27489 echo "${ECHO_T}$ac_header_preproc" >&6
27490
27491 # So?  What about this header?
27492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27493   yes:no: )
27494     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27495 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27496     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
27497 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
27498     ac_header_preproc=yes
27499     ;;
27500   no:yes:* )
27501     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
27502 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
27503     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&5
27504 echo "$as_me: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&2;}
27505     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
27506 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
27507     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
27508 echo "$as_me: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27509     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
27510 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
27511     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
27512 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
27513     (
27514       cat <<\_ASBOX
27515 ## ------------------------------------------------------ ##
27516 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
27517 ## ------------------------------------------------------ ##
27518 _ASBOX
27519     ) |
27520       sed "s/^/$as_me: WARNING:     /" >&2
27521     ;;
27522 esac
27523 echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27524 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27525 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27526   echo $ECHO_N "(cached) $ECHO_C" >&6
27527 else
27528   ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
27529 fi
27530 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27531 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27532
27533 fi
27534 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
27535    :
27536 else
27537    ensc_have_beecrypt=no
27538 fi
27539
27540
27541         fi
27542
27543         if test x"$ensc_have_beecrypt" = xyes; then
27544                 echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
27545 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6
27546 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
27547   echo $ECHO_N "(cached) $ECHO_C" >&6
27548 else
27549   ac_check_lib_save_LIBS=$LIBS
27550 LIBS="-lbeecrypt  $LIBS"
27551 cat >conftest.$ac_ext <<_ACEOF
27552 /* confdefs.h.  */
27553 _ACEOF
27554 cat confdefs.h >>conftest.$ac_ext
27555 cat >>conftest.$ac_ext <<_ACEOF
27556 /* end confdefs.h.  */
27557
27558 /* Override any gcc2 internal prototype to avoid an error.  */
27559 #ifdef __cplusplus
27560 extern "C"
27561 #endif
27562 /* We use char because int might match the return type of a gcc2
27563    builtin and then its argument prototype would still apply.  */
27564 char hashFunctionContextInit ();
27565 int
27566 main ()
27567 {
27568 hashFunctionContextInit ();
27569   ;
27570   return 0;
27571 }
27572 _ACEOF
27573 rm -f conftest.$ac_objext conftest$ac_exeext
27574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27575   (eval $ac_link) 2>conftest.er1
27576   ac_status=$?
27577   grep -v '^ *+' conftest.er1 >conftest.err
27578   rm -f conftest.er1
27579   cat conftest.err >&5
27580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581   (exit $ac_status); } &&
27582          { ac_try='test -z "$ac_c_werror_flag"
27583                          || test ! -s conftest.err'
27584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585   (eval $ac_try) 2>&5
27586   ac_status=$?
27587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588   (exit $ac_status); }; } &&
27589          { ac_try='test -s conftest$ac_exeext'
27590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27591   (eval $ac_try) 2>&5
27592   ac_status=$?
27593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594   (exit $ac_status); }; }; then
27595   ac_cv_lib_beecrypt_hashFunctionContextInit=yes
27596 else
27597   echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27599
27600 ac_cv_lib_beecrypt_hashFunctionContextInit=no
27601 fi
27602 rm -f conftest.err conftest.$ac_objext \
27603       conftest$ac_exeext conftest.$ac_ext
27604 LIBS=$ac_check_lib_save_LIBS
27605 fi
27606 echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
27607 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6
27608 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
27609    :
27610 else
27611    ensc_have_beecrypt=no
27612 fi
27613
27614         fi
27615
27616         if test x"$ensc_have_beecrypt" != xyes; then
27617                 { echo "$as_me:$LINENO: WARNING:
27618 ****
27619 **** 'beecrypt' could not be found;
27620 **** this will disable the build of 'vhashify'
27621 ****" >&5
27622 echo "$as_me: WARNING:
27623 ****
27624 **** 'beecrypt' could not be found;
27625 **** this will disable the build of 'vhashify'
27626 ****" >&2;}
27627         fi
27628 else
27629         ensc_have_beecrypt=no
27630 fi
27631
27632
27633
27634 if test x"$ensc_have_beecrypt" = xyes; then
27635   ENSC_HAVE_BEECRYPT_TRUE=
27636   ENSC_HAVE_BEECRYPT_FALSE='#'
27637 else
27638   ENSC_HAVE_BEECRYPT_TRUE='#'
27639   ENSC_HAVE_BEECRYPT_FALSE=
27640 fi
27641
27642
27643
27644 if false; then
27645   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
27646   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
27647 else
27648   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
27649   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
27650 fi
27651
27652
27653
27654
27655 cat >>confdefs.h <<\_ACEOF
27656 #define UTMP_GID 22
27657 _ACEOF
27658
27659
27660 if false; then
27661
27662 cat >>confdefs.h <<\_ACEOF
27663 #define HAVE_GROWING_STACK 1
27664 _ACEOF
27665
27666 fi
27667
27668
27669 cat >>confdefs.h <<\_ACEOF
27670 #define _FILE_OFFSET_BITS 64
27671 _ACEOF
27672
27673
27674 ensc_cxx_affected=" (affected: vbuild, vcheck)"
27675 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
27676 ensc_diet_msg=" (you have been warned)"
27677 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
27678 ensc_diet_compat_msg=" (using -lcompat)"
27679 test x"$ensc_cv_cxx_cxxcompiler"    = xno || ensc_cxx_affected=
27680 test x"$ensc_cv_c99_c99compiler"    = xno || ensc_c99_affected=
27681 test x"$ensc_have_dietlibc"         = xno || ensc_diet_msg=
27682 test x"$ensc_version_dietlibc"     != x   || ensc_diet_version_msg=
27683 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
27684
27685
27686
27687
27688
27689                                         ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile"
27690
27691 cat >confcache <<\_ACEOF
27692 # This file is a shell script that caches the results of configure
27693 # tests run on this system so they can be shared between configure
27694 # scripts and configure runs, see configure's option --config-cache.
27695 # It is not useful on other systems.  If it contains results you don't
27696 # want to keep, you may remove or edit it.
27697 #
27698 # config.status only pays attention to the cache file if you give it
27699 # the --recheck option to rerun configure.
27700 #
27701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27703 # following values.
27704
27705 _ACEOF
27706
27707 # The following way of writing the cache mishandles newlines in values,
27708 # but we know of no workaround that is simple, portable, and efficient.
27709 # So, don't put newlines in cache variables' values.
27710 # Ultrix sh set writes to stderr and can't be redirected directly,
27711 # and sets the high bit in the cache file unless we assign to the vars.
27712 {
27713   (set) 2>&1 |
27714     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27715     *ac_space=\ *)
27716       # `set' does not quote correctly, so add quotes (double-quote
27717       # substitution turns \\\\ into \\, and sed turns \\ into \).
27718       sed -n \
27719         "s/'/'\\\\''/g;
27720           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27721       ;;
27722     *)
27723       # `set' quotes correctly as required by POSIX, so do not add quotes.
27724       sed -n \
27725         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27726       ;;
27727     esac;
27728 } |
27729   sed '
27730      t clear
27731      : clear
27732      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27733      t end
27734      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27735      : end' >>confcache
27736 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27737   if test -w $cache_file; then
27738     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27739     cat confcache >$cache_file
27740   else
27741     echo "not updating unwritable cache $cache_file"
27742   fi
27743 fi
27744 rm -f confcache
27745
27746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27747 # Let make expand exec_prefix.
27748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27749
27750 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27751 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27752 # trailing colons and then remove the whole line if VPATH becomes empty
27753 # (actually we leave an empty line to preserve line numbers).
27754 if test "x$srcdir" = x.; then
27755   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27756 s/:*\$(srcdir):*/:/;
27757 s/:*\${srcdir}:*/:/;
27758 s/:*@srcdir@:*/:/;
27759 s/^\([^=]*=[     ]*\):*/\1/;
27760 s/:*$//;
27761 s/^[^=]*=[       ]*$//;
27762 }'
27763 fi
27764
27765 DEFS=-DHAVE_CONFIG_H
27766
27767 ac_libobjs=
27768 ac_ltlibobjs=
27769 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27770   # 1. Remove the extension, and $U if already installed.
27771   ac_i=`echo "$ac_i" |
27772          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27773   # 2. Add them.
27774   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27775   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27776 done
27777 LIBOBJS=$ac_libobjs
27778
27779 LTLIBOBJS=$ac_ltlibobjs
27780
27781
27782 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27783   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27784 Usually this means the macro was only invoked conditionally." >&5
27785 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27786 Usually this means the macro was only invoked conditionally." >&2;}
27787    { (exit 1); exit 1; }; }
27788 fi
27789 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27790   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27791 Usually this means the macro was only invoked conditionally." >&5
27792 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27793 Usually this means the macro was only invoked conditionally." >&2;}
27794    { (exit 1); exit 1; }; }
27795 fi
27796 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27797   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27798 Usually this means the macro was only invoked conditionally." >&5
27799 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27800 Usually this means the macro was only invoked conditionally." >&2;}
27801    { (exit 1); exit 1; }; }
27802 fi
27803 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27804   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27805 Usually this means the macro was only invoked conditionally." >&5
27806 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27807 Usually this means the macro was only invoked conditionally." >&2;}
27808    { (exit 1); exit 1; }; }
27809 fi
27810 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
27811   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27812 Usually this means the macro was only invoked conditionally." >&5
27813 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27814 Usually this means the macro was only invoked conditionally." >&2;}
27815    { (exit 1); exit 1; }; }
27816 fi
27817 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
27818   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27819 Usually this means the macro was only invoked conditionally." >&5
27820 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27821 Usually this means the macro was only invoked conditionally." >&2;}
27822    { (exit 1); exit 1; }; }
27823 fi
27824 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
27825   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
27826 Usually this means the macro was only invoked conditionally." >&5
27827 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
27828 Usually this means the macro was only invoked conditionally." >&2;}
27829    { (exit 1); exit 1; }; }
27830 fi
27831 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
27832   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
27833 Usually this means the macro was only invoked conditionally." >&5
27834 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
27835 Usually this means the macro was only invoked conditionally." >&2;}
27836    { (exit 1); exit 1; }; }
27837 fi
27838 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27839   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27840 Usually this means the macro was only invoked conditionally." >&5
27841 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27842 Usually this means the macro was only invoked conditionally." >&2;}
27843    { (exit 1); exit 1; }; }
27844 fi
27845 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27846   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27847 Usually this means the macro was only invoked conditionally." >&5
27848 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27849 Usually this means the macro was only invoked conditionally." >&2;}
27850    { (exit 1); exit 1; }; }
27851 fi
27852 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27853   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27854 Usually this means the macro was only invoked conditionally." >&5
27855 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27856 Usually this means the macro was only invoked conditionally." >&2;}
27857    { (exit 1); exit 1; }; }
27858 fi
27859 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27860   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27861 Usually this means the macro was only invoked conditionally." >&5
27862 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27863 Usually this means the macro was only invoked conditionally." >&2;}
27864    { (exit 1); exit 1; }; }
27865 fi
27866 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27867   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27868 Usually this means the macro was only invoked conditionally." >&5
27869 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27870 Usually this means the macro was only invoked conditionally." >&2;}
27871    { (exit 1); exit 1; }; }
27872 fi
27873 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27874   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27875 Usually this means the macro was only invoked conditionally." >&5
27876 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27877 Usually this means the macro was only invoked conditionally." >&2;}
27878    { (exit 1); exit 1; }; }
27879 fi
27880 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27881   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27882 Usually this means the macro was only invoked conditionally." >&5
27883 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27884 Usually this means the macro was only invoked conditionally." >&2;}
27885    { (exit 1); exit 1; }; }
27886 fi
27887 if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
27888   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27889 Usually this means the macro was only invoked conditionally." >&5
27890 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27891 Usually this means the macro was only invoked conditionally." >&2;}
27892    { (exit 1); exit 1; }; }
27893 fi
27894 if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
27895   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27896 Usually this means the macro was only invoked conditionally." >&5
27897 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27898 Usually this means the macro was only invoked conditionally." >&2;}
27899    { (exit 1); exit 1; }; }
27900 fi
27901 if test -z "${HAVE_CVS2CL_TRUE}" && test -z "${HAVE_CVS2CL_FALSE}"; then
27902   { { echo "$as_me:$LINENO: error: conditional \"HAVE_CVS2CL\" was never defined.
27903 Usually this means the macro was only invoked conditionally." >&5
27904 echo "$as_me: error: conditional \"HAVE_CVS2CL\" was never defined.
27905 Usually this means the macro was only invoked conditionally." >&2;}
27906    { (exit 1); exit 1; }; }
27907 fi
27908 if test -z "${HAVE_RCS2LOG_TRUE}" && test -z "${HAVE_RCS2LOG_FALSE}"; then
27909   { { echo "$as_me:$LINENO: error: conditional \"HAVE_RCS2LOG\" was never defined.
27910 Usually this means the macro was only invoked conditionally." >&5
27911 echo "$as_me: error: conditional \"HAVE_RCS2LOG\" was never defined.
27912 Usually this means the macro was only invoked conditionally." >&2;}
27913    { (exit 1); exit 1; }; }
27914 fi
27915 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
27916   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27917 Usually this means the macro was only invoked conditionally." >&5
27918 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27919 Usually this means the macro was only invoked conditionally." >&2;}
27920    { (exit 1); exit 1; }; }
27921 fi
27922 if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
27923   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27924 Usually this means the macro was only invoked conditionally." >&5
27925 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27926 Usually this means the macro was only invoked conditionally." >&2;}
27927    { (exit 1); exit 1; }; }
27928 fi
27929 if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
27930   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27931 Usually this means the macro was only invoked conditionally." >&5
27932 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27933 Usually this means the macro was only invoked conditionally." >&2;}
27934    { (exit 1); exit 1; }; }
27935 fi
27936
27937                         FEATURES_TXT="\
27938 Features:
27939                        CC: $CC, $($CC   --version | sed -e '1p;d')
27940                       CXX: $CXX, $($CXX --version | sed -e '1p;d')
27941                  CPPFLAGS: '$CPPFLAGS'
27942                    CFLAGS: '$CFLAGS'
27943                  CXXFLAGS: '$CXXFLAGS'
27944                build/host: $build/$host
27945              Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
27946        Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
27947        Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
27948            Available APIs: $enable_apis
27949             ext2fs Source: $ensc_cv_test_ext2fs_header
27950     syscall(2) invocation: $with_syscall
27951       vserver(2) syscall#: $ensc_cv_value_syscall_vserver
27952
27953 Paths:
27954                    prefix: $prefix
27955         sysconf-Directory: $sysconfdir
27956             cfg-Directory: $sysconfdir/vservers
27957          initrd-Directory: $initrddir
27958        pkgstate-Directory: $localstatedir/run/vservers
27959             Kernelheaders: $kernelincludedir
27960           vserver-Rootdir: $vserverdir
27961 "
27962                         echo "$FEATURES_TXT" >FEATURES.txt
27963
27964
27965 : ${CONFIG_STATUS=./config.status}
27966 ac_clean_files_save=$ac_clean_files
27967 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27968 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27969 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27970 cat >$CONFIG_STATUS <<_ACEOF
27971 #! $SHELL
27972 # Generated by $as_me.
27973 # Run this file to recreate the current configuration.
27974 # Compiler output produced by configure, useful for debugging
27975 # configure, is in config.log if it exists.
27976
27977 debug=false
27978 ac_cs_recheck=false
27979 ac_cs_silent=false
27980 SHELL=\${CONFIG_SHELL-$SHELL}
27981 _ACEOF
27982
27983 cat >>$CONFIG_STATUS <<\_ACEOF
27984 ## --------------------- ##
27985 ## M4sh Initialization.  ##
27986 ## --------------------- ##
27987
27988 # Be Bourne compatible
27989 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27990   emulate sh
27991   NULLCMD=:
27992   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27993   # is contrary to our usage.  Disable this feature.
27994   alias -g '${1+"$@"}'='"$@"'
27995 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27996   set -o posix
27997 fi
27998 DUALCASE=1; export DUALCASE # for MKS sh
27999
28000 # Support unset when possible.
28001 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28002   as_unset=unset
28003 else
28004   as_unset=false
28005 fi
28006
28007
28008 # Work around bugs in pre-3.0 UWIN ksh.
28009 $as_unset ENV MAIL MAILPATH
28010 PS1='$ '
28011 PS2='> '
28012 PS4='+ '
28013
28014 # NLS nuisances.
28015 for as_var in \
28016   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28017   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28018   LC_TELEPHONE LC_TIME
28019 do
28020   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28021     eval $as_var=C; export $as_var
28022   else
28023     $as_unset $as_var
28024   fi
28025 done
28026
28027 # Required to use basename.
28028 if expr a : '\(a\)' >/dev/null 2>&1; then
28029   as_expr=expr
28030 else
28031   as_expr=false
28032 fi
28033
28034 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28035   as_basename=basename
28036 else
28037   as_basename=false
28038 fi
28039
28040
28041 # Name of the executable.
28042 as_me=`$as_basename "$0" ||
28043 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28044          X"$0" : 'X\(//\)$' \| \
28045          X"$0" : 'X\(/\)$' \| \
28046          .     : '\(.\)' 2>/dev/null ||
28047 echo X/"$0" |
28048     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28049           /^X\/\(\/\/\)$/{ s//\1/; q; }
28050           /^X\/\(\/\).*/{ s//\1/; q; }
28051           s/.*/./; q'`
28052
28053
28054 # PATH needs CR, and LINENO needs CR and PATH.
28055 # Avoid depending upon Character Ranges.
28056 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28057 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28058 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28059 as_cr_digits='0123456789'
28060 as_cr_alnum=$as_cr_Letters$as_cr_digits
28061
28062 # The user is always right.
28063 if test "${PATH_SEPARATOR+set}" != set; then
28064   echo "#! /bin/sh" >conf$$.sh
28065   echo  "exit 0"   >>conf$$.sh
28066   chmod +x conf$$.sh
28067   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28068     PATH_SEPARATOR=';'
28069   else
28070     PATH_SEPARATOR=:
28071   fi
28072   rm -f conf$$.sh
28073 fi
28074
28075
28076   as_lineno_1=$LINENO
28077   as_lineno_2=$LINENO
28078   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28079   test "x$as_lineno_1" != "x$as_lineno_2" &&
28080   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28081   # Find who we are.  Look in the path if we contain no path at all
28082   # relative or not.
28083   case $0 in
28084     *[\\/]* ) as_myself=$0 ;;
28085     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28086 for as_dir in $PATH
28087 do
28088   IFS=$as_save_IFS
28089   test -z "$as_dir" && as_dir=.
28090   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28091 done
28092
28093        ;;
28094   esac
28095   # We did not find ourselves, most probably we were run as `sh COMMAND'
28096   # in which case we are not to be found in the path.
28097   if test "x$as_myself" = x; then
28098     as_myself=$0
28099   fi
28100   if test ! -f "$as_myself"; then
28101     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28102 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28103    { (exit 1); exit 1; }; }
28104   fi
28105   case $CONFIG_SHELL in
28106   '')
28107     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28108 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28109 do
28110   IFS=$as_save_IFS
28111   test -z "$as_dir" && as_dir=.
28112   for as_base in sh bash ksh sh5; do
28113          case $as_dir in
28114          /*)
28115            if ("$as_dir/$as_base" -c '
28116   as_lineno_1=$LINENO
28117   as_lineno_2=$LINENO
28118   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28119   test "x$as_lineno_1" != "x$as_lineno_2" &&
28120   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28121              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28122              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28123              CONFIG_SHELL=$as_dir/$as_base
28124              export CONFIG_SHELL
28125              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28126            fi;;
28127          esac
28128        done
28129 done
28130 ;;
28131   esac
28132
28133   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28134   # uniformly replaced by the line number.  The first 'sed' inserts a
28135   # line-number line before each line; the second 'sed' does the real
28136   # work.  The second script uses 'N' to pair each line-number line
28137   # with the numbered line, and appends trailing '-' during
28138   # substitution so that $LINENO is not a special case at line end.
28139   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28140   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28141   sed '=' <$as_myself |
28142     sed '
28143       N
28144       s,$,-,
28145       : loop
28146       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28147       t loop
28148       s,-$,,
28149       s,^['$as_cr_digits']*\n,,
28150     ' >$as_me.lineno &&
28151   chmod +x $as_me.lineno ||
28152     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28153 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28154    { (exit 1); exit 1; }; }
28155
28156   # Don't try to exec as it changes $[0], causing all sort of problems
28157   # (the dirname of $[0] is not the place where we might find the
28158   # original and so on.  Autoconf is especially sensible to this).
28159   . ./$as_me.lineno
28160   # Exit status is that of the last command.
28161   exit
28162 }
28163
28164
28165 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28166   *c*,-n*) ECHO_N= ECHO_C='
28167 ' ECHO_T='      ' ;;
28168   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28169   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28170 esac
28171
28172 if expr a : '\(a\)' >/dev/null 2>&1; then
28173   as_expr=expr
28174 else
28175   as_expr=false
28176 fi
28177
28178 rm -f conf$$ conf$$.exe conf$$.file
28179 echo >conf$$.file
28180 if ln -s conf$$.file conf$$ 2>/dev/null; then
28181   # We could just check for DJGPP; but this test a) works b) is more generic
28182   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28183   if test -f conf$$.exe; then
28184     # Don't use ln at all; we don't have any links
28185     as_ln_s='cp -p'
28186   else
28187     as_ln_s='ln -s'
28188   fi
28189 elif ln conf$$.file conf$$ 2>/dev/null; then
28190   as_ln_s=ln
28191 else
28192   as_ln_s='cp -p'
28193 fi
28194 rm -f conf$$ conf$$.exe conf$$.file
28195
28196 if mkdir -p . 2>/dev/null; then
28197   as_mkdir_p=:
28198 else
28199   test -d ./-p && rmdir ./-p
28200   as_mkdir_p=false
28201 fi
28202
28203 as_executable_p="test -f"
28204
28205 # Sed expression to map a string onto a valid CPP name.
28206 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28207
28208 # Sed expression to map a string onto a valid variable name.
28209 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28210
28211
28212 # IFS
28213 # We need space, tab and new line, in precisely that order.
28214 as_nl='
28215 '
28216 IFS="   $as_nl"
28217
28218 # CDPATH.
28219 $as_unset CDPATH
28220
28221 exec 6>&1
28222
28223 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28224 # report actual input values of CONFIG_FILES etc. instead of their
28225 # values after options handling.  Logging --version etc. is OK.
28226 exec 5>>config.log
28227 {
28228   echo
28229   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28230 ## Running $as_me. ##
28231 _ASBOX
28232 } >&5
28233 cat >&5 <<_CSEOF
28234
28235 This file was extended by util-vserver $as_me 0.30.208, which was
28236 generated by GNU Autoconf 2.59.  Invocation command line was
28237
28238   CONFIG_FILES    = $CONFIG_FILES
28239   CONFIG_HEADERS  = $CONFIG_HEADERS
28240   CONFIG_LINKS    = $CONFIG_LINKS
28241   CONFIG_COMMANDS = $CONFIG_COMMANDS
28242   $ $0 $@
28243
28244 _CSEOF
28245 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28246 echo >&5
28247 _ACEOF
28248
28249 # Files that config.status was made for.
28250 if test -n "$ac_config_files"; then
28251   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28252 fi
28253
28254 if test -n "$ac_config_headers"; then
28255   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28256 fi
28257
28258 if test -n "$ac_config_links"; then
28259   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28260 fi
28261
28262 if test -n "$ac_config_commands"; then
28263   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28264 fi
28265
28266 cat >>$CONFIG_STATUS <<\_ACEOF
28267
28268 ac_cs_usage="\
28269 \`$as_me' instantiates files from templates according to the
28270 current configuration.
28271
28272 Usage: $0 [OPTIONS] [FILE]...
28273
28274   -h, --help       print this help, then exit
28275   -V, --version    print version number, then exit
28276   -q, --quiet      do not print progress messages
28277   -d, --debug      don't remove temporary files
28278       --recheck    update $as_me by reconfiguring in the same conditions
28279   --file=FILE[:TEMPLATE]
28280                    instantiate the configuration file FILE
28281   --header=FILE[:TEMPLATE]
28282                    instantiate the configuration header FILE
28283
28284 Configuration files:
28285 $config_files
28286
28287 Configuration headers:
28288 $config_headers
28289
28290 Configuration commands:
28291 $config_commands
28292
28293 Report bugs to <bug-autoconf@gnu.org>."
28294 _ACEOF
28295
28296 cat >>$CONFIG_STATUS <<_ACEOF
28297 ac_cs_version="\\
28298 util-vserver config.status 0.30.208
28299 configured by $0, generated by GNU Autoconf 2.59,
28300   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28301
28302 Copyright (C) 2003 Free Software Foundation, Inc.
28303 This config.status script is free software; the Free Software Foundation
28304 gives unlimited permission to copy, distribute and modify it."
28305 srcdir=$srcdir
28306 INSTALL="$INSTALL"
28307 _ACEOF
28308
28309 cat >>$CONFIG_STATUS <<\_ACEOF
28310 # If no file are specified by the user, then we need to provide default
28311 # value.  By we need to know if files were specified by the user.
28312 ac_need_defaults=:
28313 while test $# != 0
28314 do
28315   case $1 in
28316   --*=*)
28317     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28318     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28319     ac_shift=:
28320     ;;
28321   -*)
28322     ac_option=$1
28323     ac_optarg=$2
28324     ac_shift=shift
28325     ;;
28326   *) # This is not an option, so the user has probably given explicit
28327      # arguments.
28328      ac_option=$1
28329      ac_need_defaults=false;;
28330   esac
28331
28332   case $ac_option in
28333   # Handling of the options.
28334 _ACEOF
28335 cat >>$CONFIG_STATUS <<\_ACEOF
28336   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28337     ac_cs_recheck=: ;;
28338   --version | --vers* | -V )
28339     echo "$ac_cs_version"; exit 0 ;;
28340   --he | --h)
28341     # Conflict between --help and --header
28342     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28343 Try \`$0 --help' for more information." >&5
28344 echo "$as_me: error: ambiguous option: $1
28345 Try \`$0 --help' for more information." >&2;}
28346    { (exit 1); exit 1; }; };;
28347   --help | --hel | -h )
28348     echo "$ac_cs_usage"; exit 0 ;;
28349   --debug | --d* | -d )
28350     debug=: ;;
28351   --file | --fil | --fi | --f )
28352     $ac_shift
28353     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28354     ac_need_defaults=false;;
28355   --header | --heade | --head | --hea )
28356     $ac_shift
28357     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28358     ac_need_defaults=false;;
28359   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28360   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28361     ac_cs_silent=: ;;
28362
28363   # This is an error.
28364   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28365 Try \`$0 --help' for more information." >&5
28366 echo "$as_me: error: unrecognized option: $1
28367 Try \`$0 --help' for more information." >&2;}
28368    { (exit 1); exit 1; }; } ;;
28369
28370   *) ac_config_targets="$ac_config_targets $1" ;;
28371
28372   esac
28373   shift
28374 done
28375
28376 ac_configure_extra_args=
28377
28378 if $ac_cs_silent; then
28379   exec 6>/dev/null
28380   ac_configure_extra_args="$ac_configure_extra_args --silent"
28381 fi
28382
28383 _ACEOF
28384 cat >>$CONFIG_STATUS <<_ACEOF
28385 if \$ac_cs_recheck; then
28386   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28387   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28388 fi
28389
28390 _ACEOF
28391
28392 cat >>$CONFIG_STATUS <<_ACEOF
28393 #
28394 # INIT-COMMANDS section.
28395 #
28396
28397 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28398
28399 _ACEOF
28400
28401
28402
28403 cat >>$CONFIG_STATUS <<\_ACEOF
28404 for ac_config_target in $ac_config_targets
28405 do
28406   case "$ac_config_target" in
28407   # Handling of arguments.
28408   "util-vserver.spec" ) CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
28409   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28410   "distrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
28411   "lib/apidoc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
28412   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28413   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28414   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28415 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28416    { (exit 1); exit 1; }; };;
28417   esac
28418 done
28419
28420 # If the user did not use the arguments to specify the items to instantiate,
28421 # then the envvar interface is used.  Set only those that are not.
28422 # We use the long form for the default assignment because of an extremely
28423 # bizarre bug on SunOS 4.1.3.
28424 if $ac_need_defaults; then
28425   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28426   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28427   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28428 fi
28429
28430 # Have a temporary directory for convenience.  Make it in the build tree
28431 # simply because there is no reason to put it here, and in addition,
28432 # creating and moving files from /tmp can sometimes cause problems.
28433 # Create a temporary directory, and hook for its removal unless debugging.
28434 $debug ||
28435 {
28436   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28437   trap '{ (exit 1); exit 1; }' 1 2 13 15
28438 }
28439
28440 # Create a (secure) tmp directory for tmp files.
28441
28442 {
28443   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28444   test -n "$tmp" && test -d "$tmp"
28445 }  ||
28446 {
28447   tmp=./confstat$$-$RANDOM
28448   (umask 077 && mkdir $tmp)
28449 } ||
28450 {
28451    echo "$me: cannot create a temporary directory in ." >&2
28452    { (exit 1); exit 1; }
28453 }
28454
28455 _ACEOF
28456
28457 cat >>$CONFIG_STATUS <<_ACEOF
28458
28459 #
28460 # CONFIG_FILES section.
28461 #
28462
28463 # No need to generate the scripts if there are no CONFIG_FILES.
28464 # This happens for instance when ./config.status config.h
28465 if test -n "\$CONFIG_FILES"; then
28466   # Protect against being on the right side of a sed subst in config.status.
28467   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28468    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28469 s,@SHELL@,$SHELL,;t t
28470 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28471 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28472 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28473 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28474 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28475 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28476 s,@exec_prefix@,$exec_prefix,;t t
28477 s,@prefix@,$prefix,;t t
28478 s,@program_transform_name@,$program_transform_name,;t t
28479 s,@bindir@,$bindir,;t t
28480 s,@sbindir@,$sbindir,;t t
28481 s,@libexecdir@,$libexecdir,;t t
28482 s,@datadir@,$datadir,;t t
28483 s,@sysconfdir@,$sysconfdir,;t t
28484 s,@sharedstatedir@,$sharedstatedir,;t t
28485 s,@localstatedir@,$localstatedir,;t t
28486 s,@libdir@,$libdir,;t t
28487 s,@includedir@,$includedir,;t t
28488 s,@oldincludedir@,$oldincludedir,;t t
28489 s,@infodir@,$infodir,;t t
28490 s,@mandir@,$mandir,;t t
28491 s,@build_alias@,$build_alias,;t t
28492 s,@host_alias@,$host_alias,;t t
28493 s,@target_alias@,$target_alias,;t t
28494 s,@DEFS@,$DEFS,;t t
28495 s,@ECHO_C@,$ECHO_C,;t t
28496 s,@ECHO_N@,$ECHO_N,;t t
28497 s,@ECHO_T@,$ECHO_T,;t t
28498 s,@LIBS@,$LIBS,;t t
28499 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28500 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28501 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28502 s,@CYGPATH_W@,$CYGPATH_W,;t t
28503 s,@PACKAGE@,$PACKAGE,;t t
28504 s,@VERSION@,$VERSION,;t t
28505 s,@ACLOCAL@,$ACLOCAL,;t t
28506 s,@AUTOCONF@,$AUTOCONF,;t t
28507 s,@AUTOMAKE@,$AUTOMAKE,;t t
28508 s,@AUTOHEADER@,$AUTOHEADER,;t t
28509 s,@MAKEINFO@,$MAKEINFO,;t t
28510 s,@install_sh@,$install_sh,;t t
28511 s,@STRIP@,$STRIP,;t t
28512 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28513 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28514 s,@mkdir_p@,$mkdir_p,;t t
28515 s,@AWK@,$AWK,;t t
28516 s,@SET_MAKE@,$SET_MAKE,;t t
28517 s,@am__leading_dot@,$am__leading_dot,;t t
28518 s,@AMTAR@,$AMTAR,;t t
28519 s,@am__tar@,$am__tar,;t t
28520 s,@am__untar@,$am__untar,;t t
28521 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28522 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28523 s,@MAINT@,$MAINT,;t t
28524 s,@build@,$build,;t t
28525 s,@build_cpu@,$build_cpu,;t t
28526 s,@build_vendor@,$build_vendor,;t t
28527 s,@build_os@,$build_os,;t t
28528 s,@host@,$host,;t t
28529 s,@host_cpu@,$host_cpu,;t t
28530 s,@host_vendor@,$host_vendor,;t t
28531 s,@host_os@,$host_os,;t t
28532 s,@GPG_KEY@,$GPG_KEY,;t t
28533 s,@CXX@,$CXX,;t t
28534 s,@CXXFLAGS@,$CXXFLAGS,;t t
28535 s,@LDFLAGS@,$LDFLAGS,;t t
28536 s,@CPPFLAGS@,$CPPFLAGS,;t t
28537 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28538 s,@EXEEXT@,$EXEEXT,;t t
28539 s,@OBJEXT@,$OBJEXT,;t t
28540 s,@DEPDIR@,$DEPDIR,;t t
28541 s,@am__include@,$am__include,;t t
28542 s,@am__quote@,$am__quote,;t t
28543 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28544 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28545 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28546 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28547 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28548 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28549 s,@CC@,$CC,;t t
28550 s,@CFLAGS@,$CFLAGS,;t t
28551 s,@ac_ct_CC@,$ac_ct_CC,;t t
28552 s,@CCDEPMODE@,$CCDEPMODE,;t t
28553 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28554 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28555 s,@LN_S@,$LN_S,;t t
28556 s,@ENSC_HAVE_CXX_COMPILER_TRUE@,$ENSC_HAVE_CXX_COMPILER_TRUE,;t t
28557 s,@ENSC_HAVE_CXX_COMPILER_FALSE@,$ENSC_HAVE_CXX_COMPILER_FALSE,;t t
28558 s,@ENSC_HAVE_C99_COMPILER_TRUE@,$ENSC_HAVE_C99_COMPILER_TRUE,;t t
28559 s,@ENSC_HAVE_C99_COMPILER_FALSE@,$ENSC_HAVE_C99_COMPILER_FALSE,;t t
28560 s,@ENSC_PATHPROG_SED@,$ENSC_PATHPROG_SED,;t t
28561 s,@CAT@,$CAT,;t t
28562 s,@CHOWN@,$CHOWN,;t t
28563 s,@CMP@,$CMP,;t t
28564 s,@CP@,$CP,;t t
28565 s,@DIRNAME@,$DIRNAME,;t t
28566 s,@EGREP@,$EGREP,;t t
28567 s,@ENV@,$ENV,;t t
28568 s,@GREP@,$GREP,;t t
28569 s,@LN@,$LN,;t t
28570 s,@MKDIR@,$MKDIR,;t t
28571 s,@MKFIFO@,$MKFIFO,;t t
28572 s,@MKTEMP@,$MKTEMP,;t t
28573 s,@MOUNT@,$MOUNT,;t t
28574 s,@MV@,$MV,;t t
28575 s,@NICE@,$NICE,;t t
28576 s,@PS@,$PS,;t t
28577 s,@RM@,$RM,;t t
28578 s,@RMDIR@,$RMDIR,;t t
28579 s,@SED@,$SED,;t t
28580 s,@SH@,$SH,;t t
28581 s,@TAC@,$TAC,;t t
28582 s,@TAR@,$TAR,;t t
28583 s,@TOUCH@,$TOUCH,;t t
28584 s,@TTY@,$TTY,;t t
28585 s,@UMOUNT@,$UMOUNT,;t t
28586 s,@WC@,$WC,;t t
28587 s,@IP@,$IP,;t t
28588 s,@IPTABLES@,$IPTABLES,;t t
28589 s,@MODPROBE@,$MODPROBE,;t t
28590 s,@NAMEIF@,$NAMEIF,;t t
28591 s,@NOHUP@,$NOHUP,;t t
28592 s,@RMMOD@,$RMMOD,;t t
28593 s,@VCONFIG@,$VCONFIG,;t t
28594 s,@WGET@,$WGET,;t t
28595 s,@DOXYGEN@,$DOXYGEN,;t t
28596 s,@XSLTP@,$XSLTP,;t t
28597 s,@XSLTPROC@,$XSLTPROC,;t t
28598 s,@HAVE_XSLTP_TRUE@,$HAVE_XSLTP_TRUE,;t t
28599 s,@HAVE_XSLTP_FALSE@,$HAVE_XSLTP_FALSE,;t t
28600 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
28601 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
28602 s,@LIB_DEBUG_CPPFLAGS@,$LIB_DEBUG_CPPFLAGS,;t t
28603 s,@ENSC_USE_EXPENSIVE_TESTS@,$ENSC_USE_EXPENSIVE_TESTS,;t t
28604 s,@initrddir@,$initrddir,;t t
28605 s,@RELEASE_CPPFLAGS@,$RELEASE_CPPFLAGS,;t t
28606 s,@DIET@,$DIET,;t t
28607 s,@DIETFLAGS@,$DIETFLAGS,;t t
28608 s,@USE_DIETLIBC_TRUE@,$USE_DIETLIBC_TRUE,;t t
28609 s,@USE_DIETLIBC_FALSE@,$USE_DIETLIBC_FALSE,;t t
28610 s,@USE_DIETLIBC_COMPAT_TRUE@,$USE_DIETLIBC_COMPAT_TRUE,;t t
28611 s,@USE_DIETLIBC_COMPAT_FALSE@,$USE_DIETLIBC_COMPAT_FALSE,;t t
28612 s,@ENSC_USE_DIETLIBC_TRUE@,$ENSC_USE_DIETLIBC_TRUE,;t t
28613 s,@ENSC_USE_DIETLIBC_FALSE@,$ENSC_USE_DIETLIBC_FALSE,;t t
28614 s,@ENSC_USE_GLIBC_TRUE@,$ENSC_USE_GLIBC_TRUE,;t t
28615 s,@ENSC_USE_GLIBC_FALSE@,$ENSC_USE_GLIBC_FALSE,;t t
28616 s,@ECHO@,$ECHO,;t t
28617 s,@AR@,$AR,;t t
28618 s,@ac_ct_AR@,$ac_ct_AR,;t t
28619 s,@RANLIB@,$RANLIB,;t t
28620 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28621 s,@CPP@,$CPP,;t t
28622 s,@CXXCPP@,$CXXCPP,;t t
28623 s,@F77@,$F77,;t t
28624 s,@FFLAGS@,$FFLAGS,;t t
28625 s,@ac_ct_F77@,$ac_ct_F77,;t t
28626 s,@LIBTOOL@,$LIBTOOL,;t t
28627 s,@kernelincludedir@,$kernelincludedir,;t t
28628 s,@vserverdir@,$vserverdir,;t t
28629 s,@CVS2CL_TAG@,$CVS2CL_TAG,;t t
28630 s,@CVS2CL@,$CVS2CL,;t t
28631 s,@HAVE_CVS2CL_TRUE@,$HAVE_CVS2CL_TRUE,;t t
28632 s,@HAVE_CVS2CL_FALSE@,$HAVE_CVS2CL_FALSE,;t t
28633 s,@RCS2LOG@,$RCS2LOG,;t t
28634 s,@HAVE_RCS2LOG_TRUE@,$HAVE_RCS2LOG_TRUE,;t t
28635 s,@HAVE_RCS2LOG_FALSE@,$HAVE_RCS2LOG_FALSE,;t t
28636 s,@ENSC_ENABLE_INTERNAL_HEADERS_TRUE@,$ENSC_ENABLE_INTERNAL_HEADERS_TRUE,;t t
28637 s,@ENSC_ENABLE_INTERNAL_HEADERS_FALSE@,$ENSC_ENABLE_INTERNAL_HEADERS_FALSE,;t t
28638 s,@ENSC_HAVE_BEECRYPT_TRUE@,$ENSC_HAVE_BEECRYPT_TRUE,;t t
28639 s,@ENSC_HAVE_BEECRYPT_FALSE@,$ENSC_HAVE_BEECRYPT_FALSE,;t t
28640 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE,;t t
28641 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE,;t t
28642 s,@LIBOBJS@,$LIBOBJS,;t t
28643 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28644 CEOF
28645
28646 _ACEOF
28647
28648   cat >>$CONFIG_STATUS <<\_ACEOF
28649   # Split the substitutions into bite-sized pieces for seds with
28650   # small command number limits, like on Digital OSF/1 and HP-UX.
28651   ac_max_sed_lines=48
28652   ac_sed_frag=1 # Number of current file.
28653   ac_beg=1 # First line for current file.
28654   ac_end=$ac_max_sed_lines # Line after last line for current file.
28655   ac_more_lines=:
28656   ac_sed_cmds=
28657   while $ac_more_lines; do
28658     if test $ac_beg -gt 1; then
28659       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28660     else
28661       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28662     fi
28663     if test ! -s $tmp/subs.frag; then
28664       ac_more_lines=false
28665     else
28666       # The purpose of the label and of the branching condition is to
28667       # speed up the sed processing (if there are no `@' at all, there
28668       # is no need to browse any of the substitutions).
28669       # These are the two extra sed commands mentioned above.
28670       (echo ':t
28671   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28672       if test -z "$ac_sed_cmds"; then
28673         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28674       else
28675         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28676       fi
28677       ac_sed_frag=`expr $ac_sed_frag + 1`
28678       ac_beg=$ac_end
28679       ac_end=`expr $ac_end + $ac_max_sed_lines`
28680     fi
28681   done
28682   if test -z "$ac_sed_cmds"; then
28683     ac_sed_cmds=cat
28684   fi
28685 fi # test -n "$CONFIG_FILES"
28686
28687 _ACEOF
28688 cat >>$CONFIG_STATUS <<\_ACEOF
28689 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28690   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28691   case $ac_file in
28692   - | *:- | *:-:* ) # input from stdin
28693         cat >$tmp/stdin
28694         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28695         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28696   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28697         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28698   * )   ac_file_in=$ac_file.in ;;
28699   esac
28700
28701   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28702   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28704          X"$ac_file" : 'X\(//\)[^/]' \| \
28705          X"$ac_file" : 'X\(//\)$' \| \
28706          X"$ac_file" : 'X\(/\)' \| \
28707          .     : '\(.\)' 2>/dev/null ||
28708 echo X"$ac_file" |
28709     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28710           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28711           /^X\(\/\/\)$/{ s//\1/; q; }
28712           /^X\(\/\).*/{ s//\1/; q; }
28713           s/.*/./; q'`
28714   { if $as_mkdir_p; then
28715     mkdir -p "$ac_dir"
28716   else
28717     as_dir="$ac_dir"
28718     as_dirs=
28719     while test ! -d "$as_dir"; do
28720       as_dirs="$as_dir $as_dirs"
28721       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28723          X"$as_dir" : 'X\(//\)[^/]' \| \
28724          X"$as_dir" : 'X\(//\)$' \| \
28725          X"$as_dir" : 'X\(/\)' \| \
28726          .     : '\(.\)' 2>/dev/null ||
28727 echo X"$as_dir" |
28728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28729           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28730           /^X\(\/\/\)$/{ s//\1/; q; }
28731           /^X\(\/\).*/{ s//\1/; q; }
28732           s/.*/./; q'`
28733     done
28734     test ! -n "$as_dirs" || mkdir $as_dirs
28735   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28736 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28737    { (exit 1); exit 1; }; }; }
28738
28739   ac_builddir=.
28740
28741 if test "$ac_dir" != .; then
28742   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28743   # A "../" for each directory in $ac_dir_suffix.
28744   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28745 else
28746   ac_dir_suffix= ac_top_builddir=
28747 fi
28748
28749 case $srcdir in
28750   .)  # No --srcdir option.  We are building in place.
28751     ac_srcdir=.
28752     if test -z "$ac_top_builddir"; then
28753        ac_top_srcdir=.
28754     else
28755        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28756     fi ;;
28757   [\\/]* | ?:[\\/]* )  # Absolute path.
28758     ac_srcdir=$srcdir$ac_dir_suffix;
28759     ac_top_srcdir=$srcdir ;;
28760   *) # Relative path.
28761     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28762     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28763 esac
28764
28765 # Do not use `cd foo && pwd` to compute absolute paths, because
28766 # the directories may not exist.
28767 case `pwd` in
28768 .) ac_abs_builddir="$ac_dir";;
28769 *)
28770   case "$ac_dir" in
28771   .) ac_abs_builddir=`pwd`;;
28772   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28773   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28774   esac;;
28775 esac
28776 case $ac_abs_builddir in
28777 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28778 *)
28779   case ${ac_top_builddir}. in
28780   .) ac_abs_top_builddir=$ac_abs_builddir;;
28781   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28782   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28783   esac;;
28784 esac
28785 case $ac_abs_builddir in
28786 .) ac_abs_srcdir=$ac_srcdir;;
28787 *)
28788   case $ac_srcdir in
28789   .) ac_abs_srcdir=$ac_abs_builddir;;
28790   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28791   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28792   esac;;
28793 esac
28794 case $ac_abs_builddir in
28795 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28796 *)
28797   case $ac_top_srcdir in
28798   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28799   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28800   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28801   esac;;
28802 esac
28803
28804
28805   case $INSTALL in
28806   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28807   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28808   esac
28809
28810   if test x"$ac_file" != x-; then
28811     { echo "$as_me:$LINENO: creating $ac_file" >&5
28812 echo "$as_me: creating $ac_file" >&6;}
28813     rm -f "$ac_file"
28814   fi
28815   # Let's still pretend it is `configure' which instantiates (i.e., don't
28816   # use $as_me), people would be surprised to read:
28817   #    /* config.h.  Generated by config.status.  */
28818   if test x"$ac_file" = x-; then
28819     configure_input=
28820   else
28821     configure_input="$ac_file.  "
28822   fi
28823   configure_input=$configure_input"Generated from `echo $ac_file_in |
28824                                      sed 's,.*/,,'` by configure."
28825
28826   # First look for the input files in the build tree, otherwise in the
28827   # src tree.
28828   ac_file_inputs=`IFS=:
28829     for f in $ac_file_in; do
28830       case $f in
28831       -) echo $tmp/stdin ;;
28832       [\\/$]*)
28833          # Absolute (can't be DOS-style, as IFS=:)
28834          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28835 echo "$as_me: error: cannot find input file: $f" >&2;}
28836    { (exit 1); exit 1; }; }
28837          echo "$f";;
28838       *) # Relative
28839          if test -f "$f"; then
28840            # Build tree
28841            echo "$f"
28842          elif test -f "$srcdir/$f"; then
28843            # Source tree
28844            echo "$srcdir/$f"
28845          else
28846            # /dev/null tree
28847            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28848 echo "$as_me: error: cannot find input file: $f" >&2;}
28849    { (exit 1); exit 1; }; }
28850          fi;;
28851       esac
28852     done` || { (exit 1); exit 1; }
28853 _ACEOF
28854 cat >>$CONFIG_STATUS <<_ACEOF
28855   sed "$ac_vpsub
28856 $extrasub
28857 _ACEOF
28858 cat >>$CONFIG_STATUS <<\_ACEOF
28859 :t
28860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28861 s,@configure_input@,$configure_input,;t t
28862 s,@srcdir@,$ac_srcdir,;t t
28863 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28864 s,@top_srcdir@,$ac_top_srcdir,;t t
28865 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28866 s,@builddir@,$ac_builddir,;t t
28867 s,@abs_builddir@,$ac_abs_builddir,;t t
28868 s,@top_builddir@,$ac_top_builddir,;t t
28869 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28870 s,@INSTALL@,$ac_INSTALL,;t t
28871 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28872   rm -f $tmp/stdin
28873   if test x"$ac_file" != x-; then
28874     mv $tmp/out $ac_file
28875   else
28876     cat $tmp/out
28877     rm -f $tmp/out
28878   fi
28879
28880 done
28881 _ACEOF
28882 cat >>$CONFIG_STATUS <<\_ACEOF
28883
28884 #
28885 # CONFIG_HEADER section.
28886 #
28887
28888 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28889 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28890 #
28891 # ac_d sets the value in "#define NAME VALUE" lines.
28892 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
28893 ac_dB='[         ].*$,\1#\2'
28894 ac_dC=' '
28895 ac_dD=',;t'
28896 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28897 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
28898 ac_uB='$,\1#\2define\3'
28899 ac_uC=' '
28900 ac_uD=',;t'
28901
28902 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28903   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28904   case $ac_file in
28905   - | *:- | *:-:* ) # input from stdin
28906         cat >$tmp/stdin
28907         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28908         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28909   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28910         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28911   * )   ac_file_in=$ac_file.in ;;
28912   esac
28913
28914   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28915 echo "$as_me: creating $ac_file" >&6;}
28916
28917   # First look for the input files in the build tree, otherwise in the
28918   # src tree.
28919   ac_file_inputs=`IFS=:
28920     for f in $ac_file_in; do
28921       case $f in
28922       -) echo $tmp/stdin ;;
28923       [\\/$]*)
28924          # Absolute (can't be DOS-style, as IFS=:)
28925          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28926 echo "$as_me: error: cannot find input file: $f" >&2;}
28927    { (exit 1); exit 1; }; }
28928          # Do quote $f, to prevent DOS paths from being IFS'd.
28929          echo "$f";;
28930       *) # Relative
28931          if test -f "$f"; then
28932            # Build tree
28933            echo "$f"
28934          elif test -f "$srcdir/$f"; then
28935            # Source tree
28936            echo "$srcdir/$f"
28937          else
28938            # /dev/null tree
28939            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28940 echo "$as_me: error: cannot find input file: $f" >&2;}
28941    { (exit 1); exit 1; }; }
28942          fi;;
28943       esac
28944     done` || { (exit 1); exit 1; }
28945   # Remove the trailing spaces.
28946   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
28947
28948 _ACEOF
28949
28950 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28951 # `conftest.undefs', that substitutes the proper values into
28952 # config.h.in to produce config.h.  The first handles `#define'
28953 # templates, and the second `#undef' templates.
28954 # And first: Protect against being on the right side of a sed subst in
28955 # config.status.  Protect against being in an unquoted here document
28956 # in config.status.
28957 rm -f conftest.defines conftest.undefs
28958 # Using a here document instead of a string reduces the quoting nightmare.
28959 # Putting comments in sed scripts is not portable.
28960 #
28961 # `end' is used to avoid that the second main sed command (meant for
28962 # 0-ary CPP macros) applies to n-ary macro definitions.
28963 # See the Autoconf documentation for `clear'.
28964 cat >confdef2sed.sed <<\_ACEOF
28965 s/[\\&,]/\\&/g
28966 s,[\\$`],\\&,g
28967 t clear
28968 : clear
28969 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28970 t end
28971 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28972 : end
28973 _ACEOF
28974 # If some macros were called several times there might be several times
28975 # the same #defines, which is useless.  Nevertheless, we may not want to
28976 # sort them, since we want the *last* AC-DEFINE to be honored.
28977 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28978 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28979 rm -f confdef2sed.sed
28980
28981 # This sed command replaces #undef with comments.  This is necessary, for
28982 # example, in the case of _POSIX_SOURCE, which is predefined and required
28983 # on some systems where configure will not decide to define it.
28984 cat >>conftest.undefs <<\_ACEOF
28985 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28986 _ACEOF
28987
28988 # Break up conftest.defines because some shells have a limit on the size
28989 # of here documents, and old seds have small limits too (100 cmds).
28990 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28991 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28992 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28993 echo '  :' >>$CONFIG_STATUS
28994 rm -f conftest.tail
28995 while grep . conftest.defines >/dev/null
28996 do
28997   # Write a limited-size here document to $tmp/defines.sed.
28998   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28999   # Speed up: don't consider the non `#define' lines.
29000   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
29001   # Work around the forget-to-reset-the-flag bug.
29002   echo 't clr' >>$CONFIG_STATUS
29003   echo ': clr' >>$CONFIG_STATUS
29004   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29005   echo 'CEOF
29006   sed -f $tmp/defines.sed $tmp/in >$tmp/out
29007   rm -f $tmp/in
29008   mv $tmp/out $tmp/in
29009 ' >>$CONFIG_STATUS
29010   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29011   rm -f conftest.defines
29012   mv conftest.tail conftest.defines
29013 done
29014 rm -f conftest.defines
29015 echo '  fi # grep' >>$CONFIG_STATUS
29016 echo >>$CONFIG_STATUS
29017
29018 # Break up conftest.undefs because some shells have a limit on the size
29019 # of here documents, and old seds have small limits too (100 cmds).
29020 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
29021 rm -f conftest.tail
29022 while grep . conftest.undefs >/dev/null
29023 do
29024   # Write a limited-size here document to $tmp/undefs.sed.
29025   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29026   # Speed up: don't consider the non `#undef'
29027   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
29028   # Work around the forget-to-reset-the-flag bug.
29029   echo 't clr' >>$CONFIG_STATUS
29030   echo ': clr' >>$CONFIG_STATUS
29031   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29032   echo 'CEOF
29033   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29034   rm -f $tmp/in
29035   mv $tmp/out $tmp/in
29036 ' >>$CONFIG_STATUS
29037   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29038   rm -f conftest.undefs
29039   mv conftest.tail conftest.undefs
29040 done
29041 rm -f conftest.undefs
29042
29043 cat >>$CONFIG_STATUS <<\_ACEOF
29044   # Let's still pretend it is `configure' which instantiates (i.e., don't
29045   # use $as_me), people would be surprised to read:
29046   #    /* config.h.  Generated by config.status.  */
29047   if test x"$ac_file" = x-; then
29048     echo "/* Generated by configure.  */" >$tmp/config.h
29049   else
29050     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
29051   fi
29052   cat $tmp/in >>$tmp/config.h
29053   rm -f $tmp/in
29054   if test x"$ac_file" != x-; then
29055     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29056       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29057 echo "$as_me: $ac_file is unchanged" >&6;}
29058     else
29059       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29061          X"$ac_file" : 'X\(//\)[^/]' \| \
29062          X"$ac_file" : 'X\(//\)$' \| \
29063          X"$ac_file" : 'X\(/\)' \| \
29064          .     : '\(.\)' 2>/dev/null ||
29065 echo X"$ac_file" |
29066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29067           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29068           /^X\(\/\/\)$/{ s//\1/; q; }
29069           /^X\(\/\).*/{ s//\1/; q; }
29070           s/.*/./; q'`
29071       { if $as_mkdir_p; then
29072     mkdir -p "$ac_dir"
29073   else
29074     as_dir="$ac_dir"
29075     as_dirs=
29076     while test ! -d "$as_dir"; do
29077       as_dirs="$as_dir $as_dirs"
29078       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29080          X"$as_dir" : 'X\(//\)[^/]' \| \
29081          X"$as_dir" : 'X\(//\)$' \| \
29082          X"$as_dir" : 'X\(/\)' \| \
29083          .     : '\(.\)' 2>/dev/null ||
29084 echo X"$as_dir" |
29085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29087           /^X\(\/\/\)$/{ s//\1/; q; }
29088           /^X\(\/\).*/{ s//\1/; q; }
29089           s/.*/./; q'`
29090     done
29091     test ! -n "$as_dirs" || mkdir $as_dirs
29092   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29093 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29094    { (exit 1); exit 1; }; }; }
29095
29096       rm -f $ac_file
29097       mv $tmp/config.h $ac_file
29098     fi
29099   else
29100     cat $tmp/config.h
29101     rm -f $tmp/config.h
29102   fi
29103 # Compute $ac_file's index in $config_headers.
29104 _am_stamp_count=1
29105 for _am_header in $config_headers :; do
29106   case $_am_header in
29107     $ac_file | $ac_file:* )
29108       break ;;
29109     * )
29110       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29111   esac
29112 done
29113 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29114 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29115          X$ac_file : 'X\(//\)[^/]' \| \
29116          X$ac_file : 'X\(//\)$' \| \
29117          X$ac_file : 'X\(/\)' \| \
29118          .     : '\(.\)' 2>/dev/null ||
29119 echo X$ac_file |
29120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29121           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29122           /^X\(\/\/\)$/{ s//\1/; q; }
29123           /^X\(\/\).*/{ s//\1/; q; }
29124           s/.*/./; q'`/stamp-h$_am_stamp_count
29125 done
29126 _ACEOF
29127 cat >>$CONFIG_STATUS <<\_ACEOF
29128
29129 #
29130 # CONFIG_COMMANDS section.
29131 #
29132 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29133   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29134   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29135   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29136 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29137          X"$ac_dest" : 'X\(//\)[^/]' \| \
29138          X"$ac_dest" : 'X\(//\)$' \| \
29139          X"$ac_dest" : 'X\(/\)' \| \
29140          .     : '\(.\)' 2>/dev/null ||
29141 echo X"$ac_dest" |
29142     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29143           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29144           /^X\(\/\/\)$/{ s//\1/; q; }
29145           /^X\(\/\).*/{ s//\1/; q; }
29146           s/.*/./; q'`
29147   { if $as_mkdir_p; then
29148     mkdir -p "$ac_dir"
29149   else
29150     as_dir="$ac_dir"
29151     as_dirs=
29152     while test ! -d "$as_dir"; do
29153       as_dirs="$as_dir $as_dirs"
29154       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29156          X"$as_dir" : 'X\(//\)[^/]' \| \
29157          X"$as_dir" : 'X\(//\)$' \| \
29158          X"$as_dir" : 'X\(/\)' \| \
29159          .     : '\(.\)' 2>/dev/null ||
29160 echo X"$as_dir" |
29161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29162           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29163           /^X\(\/\/\)$/{ s//\1/; q; }
29164           /^X\(\/\).*/{ s//\1/; q; }
29165           s/.*/./; q'`
29166     done
29167     test ! -n "$as_dirs" || mkdir $as_dirs
29168   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29169 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29170    { (exit 1); exit 1; }; }; }
29171
29172   ac_builddir=.
29173
29174 if test "$ac_dir" != .; then
29175   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29176   # A "../" for each directory in $ac_dir_suffix.
29177   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29178 else
29179   ac_dir_suffix= ac_top_builddir=
29180 fi
29181
29182 case $srcdir in
29183   .)  # No --srcdir option.  We are building in place.
29184     ac_srcdir=.
29185     if test -z "$ac_top_builddir"; then
29186        ac_top_srcdir=.
29187     else
29188        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29189     fi ;;
29190   [\\/]* | ?:[\\/]* )  # Absolute path.
29191     ac_srcdir=$srcdir$ac_dir_suffix;
29192     ac_top_srcdir=$srcdir ;;
29193   *) # Relative path.
29194     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29195     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29196 esac
29197
29198 # Do not use `cd foo && pwd` to compute absolute paths, because
29199 # the directories may not exist.
29200 case `pwd` in
29201 .) ac_abs_builddir="$ac_dir";;
29202 *)
29203   case "$ac_dir" in
29204   .) ac_abs_builddir=`pwd`;;
29205   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29206   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29207   esac;;
29208 esac
29209 case $ac_abs_builddir in
29210 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29211 *)
29212   case ${ac_top_builddir}. in
29213   .) ac_abs_top_builddir=$ac_abs_builddir;;
29214   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29215   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29216   esac;;
29217 esac
29218 case $ac_abs_builddir in
29219 .) ac_abs_srcdir=$ac_srcdir;;
29220 *)
29221   case $ac_srcdir in
29222   .) ac_abs_srcdir=$ac_abs_builddir;;
29223   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29224   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29225   esac;;
29226 esac
29227 case $ac_abs_builddir in
29228 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29229 *)
29230   case $ac_top_srcdir in
29231   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29232   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29233   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29234   esac;;
29235 esac
29236
29237
29238   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29239 echo "$as_me: executing $ac_dest commands" >&6;}
29240   case $ac_dest in
29241     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29242   # Strip MF so we end up with the name of the file.
29243   mf=`echo "$mf" | sed -e 's/:.*$//'`
29244   # Check whether this is an Automake generated Makefile or not.
29245   # We used to match only the files named `Makefile.in', but
29246   # some people rename them; so instead we look at the file content.
29247   # Grep'ing the first line is not enough: some people post-process
29248   # each Makefile.in and add a new line on top of each file to say so.
29249   # So let's grep whole file.
29250   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29251     dirpart=`(dirname "$mf") 2>/dev/null ||
29252 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29253          X"$mf" : 'X\(//\)[^/]' \| \
29254          X"$mf" : 'X\(//\)$' \| \
29255          X"$mf" : 'X\(/\)' \| \
29256          .     : '\(.\)' 2>/dev/null ||
29257 echo X"$mf" |
29258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29259           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29260           /^X\(\/\/\)$/{ s//\1/; q; }
29261           /^X\(\/\).*/{ s//\1/; q; }
29262           s/.*/./; q'`
29263   else
29264     continue
29265   fi
29266   # Extract the definition of DEPDIR, am__include, and am__quote
29267   # from the Makefile without running `make'.
29268   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29269   test -z "$DEPDIR" && continue
29270   am__include=`sed -n 's/^am__include = //p' < "$mf"`
29271   test -z "am__include" && continue
29272   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29273   # When using ansi2knr, U may be empty or an underscore; expand it
29274   U=`sed -n 's/^U = //p' < "$mf"`
29275   # Find all dependency output files, they are included files with
29276   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29277   # simplest approach to changing $(DEPDIR) to its actual value in the
29278   # expansion.
29279   for file in `sed -n "
29280     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29281        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29282     # Make sure the directory exists.
29283     test -f "$dirpart/$file" && continue
29284     fdir=`(dirname "$file") 2>/dev/null ||
29285 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29286          X"$file" : 'X\(//\)[^/]' \| \
29287          X"$file" : 'X\(//\)$' \| \
29288          X"$file" : 'X\(/\)' \| \
29289          .     : '\(.\)' 2>/dev/null ||
29290 echo X"$file" |
29291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29292           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29293           /^X\(\/\/\)$/{ s//\1/; q; }
29294           /^X\(\/\).*/{ s//\1/; q; }
29295           s/.*/./; q'`
29296     { if $as_mkdir_p; then
29297     mkdir -p $dirpart/$fdir
29298   else
29299     as_dir=$dirpart/$fdir
29300     as_dirs=
29301     while test ! -d "$as_dir"; do
29302       as_dirs="$as_dir $as_dirs"
29303       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29305          X"$as_dir" : 'X\(//\)[^/]' \| \
29306          X"$as_dir" : 'X\(//\)$' \| \
29307          X"$as_dir" : 'X\(/\)' \| \
29308          .     : '\(.\)' 2>/dev/null ||
29309 echo X"$as_dir" |
29310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29311           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29312           /^X\(\/\/\)$/{ s//\1/; q; }
29313           /^X\(\/\).*/{ s//\1/; q; }
29314           s/.*/./; q'`
29315     done
29316     test ! -n "$as_dirs" || mkdir $as_dirs
29317   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29318 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29319    { (exit 1); exit 1; }; }; }
29320
29321     # echo "creating $dirpart/$file"
29322     echo '# dummy' > "$dirpart/$file"
29323   done
29324 done
29325  ;;
29326   esac
29327 done
29328 _ACEOF
29329
29330 cat >>$CONFIG_STATUS <<\_ACEOF
29331
29332 { (exit 0); exit 0; }
29333 _ACEOF
29334 chmod +x $CONFIG_STATUS
29335 ac_clean_files=$ac_clean_files_save
29336
29337
29338 # configure is writing to config.log, and then calls config.status.
29339 # config.status does its own redirection, appending to config.log.
29340 # Unfortunately, on DOS this fails, as config.log is still kept open
29341 # by configure, so config.status won't be able to write to it; its
29342 # output is simply discarded.  So we exec the FD to /dev/null,
29343 # effectively closing config.log, so it can be properly (re)opened and
29344 # appended to by config.status.  When coming back to configure, we
29345 # need to make the FD available again.
29346 if test "$no_create" != yes; then
29347   ac_cs_success=:
29348   ac_config_status_args=
29349   test "$silent" = yes &&
29350     ac_config_status_args="$ac_config_status_args --quiet"
29351   exec 5>/dev/null
29352   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29353   exec 5>>config.log
29354   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29355   # would make configure fail if this is the last instruction.
29356   $ac_cs_success || { (exit 1); exit 1; }
29357 fi
29358
29359
29360 { echo "$as_me:$LINENO:
29361
29362 $PACKAGE_STRING
29363
29364 $FEATURES_TXT" >&5
29365 echo "$as_me:
29366
29367 $PACKAGE_STRING
29368
29369 $FEATURES_TXT" >&6;}