- sync to 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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='util-vserver'
425 PACKAGE_TARNAME='util-vserver'
426 PACKAGE_VERSION='0.30.208'
427 PACKAGE_STRING='util-vserver 0.30.208'
428 PACKAGE_BUGREPORT='enrico.scholz@informatik.tu-chemnitz.de'
429
430 ac_unique_file="src/capchroot.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO 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 && break
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 SED=$lt_cv_path_SED
10049
10050 fi
10051
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
10193 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10194 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10195 if test "${lt_cv_path_NM+set}" = set; then
10196   echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198   if test -n "$NM"; then
10199   # Let the user override the test.
10200   lt_cv_path_NM="$NM"
10201 else
10202   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10203   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
10204     IFS="$lt_save_ifs"
10205     test -z "$ac_dir" && ac_dir=.
10206     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
10207     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10208       # Check to see if the nm accepts a BSD-compat flag.
10209       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10210       #   nm: unknown option "B" ignored
10211       # Tru64's nm complains that /dev/null is an invalid object file
10212       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10213       */dev/null* | *'Invalid file or object type'*)
10214         lt_cv_path_NM="$tmp_nm -B"
10215         break
10216         ;;
10217       *)
10218         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10219         */dev/null*)
10220           lt_cv_path_NM="$tmp_nm -p"
10221           break
10222           ;;
10223         *)
10224           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10225           continue # so that we can try to find one that supports BSD flags
10226           ;;
10227         esac
10228       esac
10229     fi
10230   done
10231   IFS="$lt_save_ifs"
10232   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10233 fi
10234 fi
10235 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10236 echo "${ECHO_T}$lt_cv_path_NM" >&6
10237 NM="$lt_cv_path_NM"
10238
10239 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10240 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10241 if test "${lt_cv_deplibs_check_method+set}" = set; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244   lt_cv_file_magic_cmd='$MAGIC_CMD'
10245 lt_cv_file_magic_test_file=
10246 lt_cv_deplibs_check_method='unknown'
10247 # Need to set the preceding variable on all platforms that support
10248 # interlibrary dependencies.
10249 # 'none' -- dependencies not supported.
10250 # `unknown' -- same as none, but documents that we really don't know.
10251 # 'pass_all' -- all dependencies passed with no checks.
10252 # 'test_compile' -- check by making test program.
10253 # 'file_magic [[regex]]' -- check by looking for files in library path
10254 # which responds to the $file_magic_cmd with a given extended regex.
10255 # If you have `file' or equivalent on your system and you're not sure
10256 # whether `pass_all' will *always* work, you probably want this one.
10257
10258 case $host_os in
10259 aix4* | aix5*)
10260   lt_cv_deplibs_check_method=pass_all
10261   ;;
10262
10263 beos*)
10264   lt_cv_deplibs_check_method=pass_all
10265   ;;
10266
10267 bsdi4*)
10268   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10269   lt_cv_file_magic_cmd='/usr/bin/file -L'
10270   lt_cv_file_magic_test_file=/shlib/libc.so
10271   ;;
10272
10273 cygwin*)
10274   # func_win32_libid is a shell function defined in ltmain.sh
10275   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10276   lt_cv_file_magic_cmd='func_win32_libid'
10277   ;;
10278
10279 mingw* | pw32*)
10280   # Base MSYS/MinGW do not provide the 'file' command needed by
10281   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10282   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10283   lt_cv_file_magic_cmd='$OBJDUMP -f'
10284   ;;
10285
10286 darwin* | rhapsody*)
10287   lt_cv_deplibs_check_method=pass_all
10288   ;;
10289
10290 freebsd* | kfreebsd*-gnu)
10291   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10292     case $host_cpu in
10293     i*86 )
10294       # Not sure whether the presence of OpenBSD here was a mistake.
10295       # Let's accept both of them until this is cleared up.
10296       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10297       lt_cv_file_magic_cmd=/usr/bin/file
10298       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10299       ;;
10300     esac
10301   else
10302     lt_cv_deplibs_check_method=pass_all
10303   fi
10304   ;;
10305
10306 gnu*)
10307   lt_cv_deplibs_check_method=pass_all
10308   ;;
10309
10310 hpux10.20* | hpux11*)
10311   lt_cv_file_magic_cmd=/usr/bin/file
10312   case "$host_cpu" in
10313   ia64*)
10314     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10315     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10316     ;;
10317   hppa*64*)
10318     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]'
10319     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10320     ;;
10321   *)
10322     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10323     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10324     ;;
10325   esac
10326   ;;
10327
10328 irix5* | irix6* | nonstopux*)
10329   case $LD in
10330   *-32|*"-32 ") libmagic=32-bit;;
10331   *-n32|*"-n32 ") libmagic=N32;;
10332   *-64|*"-64 ") libmagic=64-bit;;
10333   *) libmagic=never-match;;
10334   esac
10335   lt_cv_deplibs_check_method=pass_all
10336   ;;
10337
10338 # This must be Linux ELF.
10339 linux*)
10340   case $host_cpu in
10341   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
10342     lt_cv_deplibs_check_method=pass_all ;;
10343   *)
10344     # glibc up to 2.1.1 does not perform some relocations on ARM
10345     # this will be overridden with pass_all, but let us keep it just in case
10346     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
10347   esac
10348   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
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   lt_cv_file_magic_cmd=/usr/bin/file
10372   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10373   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10374     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
10375   else
10376     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
10377   fi
10378   ;;
10379
10380 osf3* | osf4* | osf5*)
10381   lt_cv_deplibs_check_method=pass_all
10382   ;;
10383
10384 sco3.2v5*)
10385   lt_cv_deplibs_check_method=pass_all
10386   ;;
10387
10388 solaris*)
10389   lt_cv_deplibs_check_method=pass_all
10390   ;;
10391
10392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10393   case $host_vendor in
10394   motorola)
10395     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]'
10396     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10397     ;;
10398   ncr)
10399     lt_cv_deplibs_check_method=pass_all
10400     ;;
10401   sequent)
10402     lt_cv_file_magic_cmd='/bin/file'
10403     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10404     ;;
10405   sni)
10406     lt_cv_file_magic_cmd='/bin/file'
10407     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10408     lt_cv_file_magic_test_file=/lib/libc.so
10409     ;;
10410   siemens)
10411     lt_cv_deplibs_check_method=pass_all
10412     ;;
10413   esac
10414   ;;
10415
10416 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10417   lt_cv_deplibs_check_method=pass_all
10418   ;;
10419 esac
10420
10421 fi
10422 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10423 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10424 file_magic_cmd=$lt_cv_file_magic_cmd
10425 deplibs_check_method=$lt_cv_deplibs_check_method
10426 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10427
10428
10429
10430
10431 # If no C compiler was specified, use CC.
10432 LTCC=${LTCC-"$CC"}
10433
10434 # Allow CC to be a program name with arguments.
10435 compiler=$CC
10436
10437 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10438 if test "${enable_libtool_lock+set}" = set; then
10439   enableval="$enable_libtool_lock"
10440
10441 fi;
10442 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10443
10444 # Some flags need to be propagated to the compiler or linker for good
10445 # libtool support.
10446 case $host in
10447 ia64-*-hpux*)
10448   # Find out which ABI we are using.
10449   echo 'int i;' > conftest.$ac_ext
10450   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10451   (eval $ac_compile) 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); }; then
10455     case `/usr/bin/file conftest.$ac_objext` in
10456     *ELF-32*)
10457       HPUX_IA64_MODE="32"
10458       ;;
10459     *ELF-64*)
10460       HPUX_IA64_MODE="64"
10461       ;;
10462     esac
10463   fi
10464   rm -rf conftest*
10465   ;;
10466 *-*-irix6*)
10467   # Find out which ABI we are using.
10468   echo '#line 10468 "configure"' > conftest.$ac_ext
10469   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10470   (eval $ac_compile) 2>&5
10471   ac_status=$?
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); }; then
10474    if test "$lt_cv_prog_gnu_ld" = yes; then
10475     case `/usr/bin/file conftest.$ac_objext` in
10476     *32-bit*)
10477       LD="${LD-ld} -melf32bsmip"
10478       ;;
10479     *N32*)
10480       LD="${LD-ld} -melf32bmipn32"
10481       ;;
10482     *64-bit*)
10483       LD="${LD-ld} -melf64bmip"
10484       ;;
10485     esac
10486    else
10487     case `/usr/bin/file conftest.$ac_objext` in
10488     *32-bit*)
10489       LD="${LD-ld} -32"
10490       ;;
10491     *N32*)
10492       LD="${LD-ld} -n32"
10493       ;;
10494     *64-bit*)
10495       LD="${LD-ld} -64"
10496       ;;
10497     esac
10498    fi
10499   fi
10500   rm -rf conftest*
10501   ;;
10502
10503 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10504   # Find out which ABI we are using.
10505   echo 'int i;' > conftest.$ac_ext
10506   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10507   (eval $ac_compile) 2>&5
10508   ac_status=$?
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); }; then
10511     case "`/usr/bin/file conftest.o`" in
10512     *32-bit*)
10513       case $host in
10514         x86_64-*linux*)
10515           LD="${LD-ld} -m elf_i386"
10516           ;;
10517         ppc64-*linux*|powerpc64-*linux*)
10518           LD="${LD-ld} -m elf32ppclinux"
10519           ;;
10520         s390x-*linux*)
10521           LD="${LD-ld} -m elf_s390"
10522           ;;
10523         sparc64-*linux*)
10524           LD="${LD-ld} -m elf32_sparc"
10525           ;;
10526       esac
10527       ;;
10528     *64-bit*)
10529       case $host in
10530         x86_64-*linux*)
10531           LD="${LD-ld} -m elf_x86_64"
10532           ;;
10533         ppc*-*linux*|powerpc*-*linux*)
10534           LD="${LD-ld} -m elf64ppc"
10535           ;;
10536         s390*-*linux*)
10537           LD="${LD-ld} -m elf64_s390"
10538           ;;
10539         sparc*-*linux*)
10540           LD="${LD-ld} -m elf64_sparc"
10541           ;;
10542       esac
10543       ;;
10544     esac
10545   fi
10546   rm -rf conftest*
10547   ;;
10548
10549 *-*-sco3.2v5*)
10550   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10551   SAVE_CFLAGS="$CFLAGS"
10552   CFLAGS="$CFLAGS -belf"
10553   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10554 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10555 if test "${lt_cv_cc_needs_belf+set}" = set; then
10556   echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10558   ac_ext=c
10559 ac_cpp='$CPP $CPPFLAGS'
10560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10563
10564      cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h.  */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h.  */
10570
10571 int
10572 main ()
10573 {
10574
10575   ;
10576   return 0;
10577 }
10578 _ACEOF
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581   (eval $ac_link) 2>conftest.er1
10582   ac_status=$?
10583   grep -v '^ *+' conftest.er1 >conftest.err
10584   rm -f conftest.er1
10585   cat conftest.err >&5
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); } &&
10588          { ac_try='test -z "$ac_c_werror_flag"
10589                          || test ! -s conftest.err'
10590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591   (eval $ac_try) 2>&5
10592   ac_status=$?
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); }; } &&
10595          { ac_try='test -s conftest$ac_exeext'
10596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597   (eval $ac_try) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); }; }; then
10601   lt_cv_cc_needs_belf=yes
10602 else
10603   echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10605
10606 lt_cv_cc_needs_belf=no
10607 fi
10608 rm -f conftest.err conftest.$ac_objext \
10609       conftest$ac_exeext conftest.$ac_ext
10610      ac_ext=c
10611 ac_cpp='$CPP $CPPFLAGS'
10612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10615
10616 fi
10617 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10618 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10619   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10620     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10621     CFLAGS="$SAVE_CFLAGS"
10622   fi
10623   ;;
10624
10625 esac
10626
10627 need_locks="$enable_libtool_lock"
10628
10629
10630 ac_ext=c
10631 ac_cpp='$CPP $CPPFLAGS'
10632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10635 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10636 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10637 # On Suns, sometimes $CPP names a directory.
10638 if test -n "$CPP" && test -d "$CPP"; then
10639   CPP=
10640 fi
10641 if test -z "$CPP"; then
10642   if test "${ac_cv_prog_CPP+set}" = set; then
10643   echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645       # Double quotes because CPP needs to be expanded
10646     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10647     do
10648       ac_preproc_ok=false
10649 for ac_c_preproc_warn_flag in '' yes
10650 do
10651   # Use a header file that comes with gcc, so configuring glibc
10652   # with a fresh cross-compiler works.
10653   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10654   # <limits.h> exists even on freestanding compilers.
10655   # On the NeXT, cc -E runs the code through the compiler's parser,
10656   # not just through cpp. "Syntax error" is here to catch this case.
10657   cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h.  */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h.  */
10663 #ifdef __STDC__
10664 # include <limits.h>
10665 #else
10666 # include <assert.h>
10667 #endif
10668                      Syntax error
10669 _ACEOF
10670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10671   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10672   ac_status=$?
10673   grep -v '^ *+' conftest.er1 >conftest.err
10674   rm -f conftest.er1
10675   cat conftest.err >&5
10676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   (exit $ac_status); } >/dev/null; then
10678   if test -s conftest.err; then
10679     ac_cpp_err=$ac_c_preproc_warn_flag
10680     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10681   else
10682     ac_cpp_err=
10683   fi
10684 else
10685   ac_cpp_err=yes
10686 fi
10687 if test -z "$ac_cpp_err"; then
10688   :
10689 else
10690   echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693   # Broken: fails on valid input.
10694 continue
10695 fi
10696 rm -f conftest.err conftest.$ac_ext
10697
10698   # OK, works on sane cases.  Now check whether non-existent headers
10699   # can be detected and how.
10700   cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h.  */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h.  */
10706 #include <ac_nonexistent.h>
10707 _ACEOF
10708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10710   ac_status=$?
10711   grep -v '^ *+' conftest.er1 >conftest.err
10712   rm -f conftest.er1
10713   cat conftest.err >&5
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); } >/dev/null; then
10716   if test -s conftest.err; then
10717     ac_cpp_err=$ac_c_preproc_warn_flag
10718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10719   else
10720     ac_cpp_err=
10721   fi
10722 else
10723   ac_cpp_err=yes
10724 fi
10725 if test -z "$ac_cpp_err"; then
10726   # Broken: success on invalid input.
10727 continue
10728 else
10729   echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10731
10732   # Passes both tests.
10733 ac_preproc_ok=:
10734 break
10735 fi
10736 rm -f conftest.err conftest.$ac_ext
10737
10738 done
10739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10740 rm -f conftest.err conftest.$ac_ext
10741 if $ac_preproc_ok; then
10742   break
10743 fi
10744
10745     done
10746     ac_cv_prog_CPP=$CPP
10747
10748 fi
10749   CPP=$ac_cv_prog_CPP
10750 else
10751   ac_cv_prog_CPP=$CPP
10752 fi
10753 echo "$as_me:$LINENO: result: $CPP" >&5
10754 echo "${ECHO_T}$CPP" >&6
10755 ac_preproc_ok=false
10756 for ac_c_preproc_warn_flag in '' yes
10757 do
10758   # Use a header file that comes with gcc, so configuring glibc
10759   # with a fresh cross-compiler works.
10760   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10761   # <limits.h> exists even on freestanding compilers.
10762   # On the NeXT, cc -E runs the code through the compiler's parser,
10763   # not just through cpp. "Syntax error" is here to catch this case.
10764   cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h.  */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h.  */
10770 #ifdef __STDC__
10771 # include <limits.h>
10772 #else
10773 # include <assert.h>
10774 #endif
10775                      Syntax error
10776 _ACEOF
10777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10779   ac_status=$?
10780   grep -v '^ *+' conftest.er1 >conftest.err
10781   rm -f conftest.er1
10782   cat conftest.err >&5
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); } >/dev/null; then
10785   if test -s conftest.err; then
10786     ac_cpp_err=$ac_c_preproc_warn_flag
10787     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10788   else
10789     ac_cpp_err=
10790   fi
10791 else
10792   ac_cpp_err=yes
10793 fi
10794 if test -z "$ac_cpp_err"; then
10795   :
10796 else
10797   echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800   # Broken: fails on valid input.
10801 continue
10802 fi
10803 rm -f conftest.err conftest.$ac_ext
10804
10805   # OK, works on sane cases.  Now check whether non-existent headers
10806   # can be detected and how.
10807   cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h.  */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h.  */
10813 #include <ac_nonexistent.h>
10814 _ACEOF
10815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10817   ac_status=$?
10818   grep -v '^ *+' conftest.er1 >conftest.err
10819   rm -f conftest.er1
10820   cat conftest.err >&5
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); } >/dev/null; then
10823   if test -s conftest.err; then
10824     ac_cpp_err=$ac_c_preproc_warn_flag
10825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10826   else
10827     ac_cpp_err=
10828   fi
10829 else
10830   ac_cpp_err=yes
10831 fi
10832 if test -z "$ac_cpp_err"; then
10833   # Broken: success on invalid input.
10834 continue
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839   # Passes both tests.
10840 ac_preproc_ok=:
10841 break
10842 fi
10843 rm -f conftest.err conftest.$ac_ext
10844
10845 done
10846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10847 rm -f conftest.err conftest.$ac_ext
10848 if $ac_preproc_ok; then
10849   :
10850 else
10851   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10852 See \`config.log' for more details." >&5
10853 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10854 See \`config.log' for more details." >&2;}
10855    { (exit 1); exit 1; }; }
10856 fi
10857
10858 ac_ext=c
10859 ac_cpp='$CPP $CPPFLAGS'
10860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10863
10864
10865 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10866 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10867 if test "${ac_cv_header_stdc+set}" = set; then
10868   echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870   cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h.  */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h.  */
10876 #include <stdlib.h>
10877 #include <stdarg.h>
10878 #include <string.h>
10879 #include <float.h>
10880
10881 int
10882 main ()
10883 {
10884
10885   ;
10886   return 0;
10887 }
10888 _ACEOF
10889 rm -f conftest.$ac_objext
10890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10891   (eval $ac_compile) 2>conftest.er1
10892   ac_status=$?
10893   grep -v '^ *+' conftest.er1 >conftest.err
10894   rm -f conftest.er1
10895   cat conftest.err >&5
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); } &&
10898          { ac_try='test -z "$ac_c_werror_flag"
10899                          || test ! -s conftest.err'
10900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901   (eval $ac_try) 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); }; } &&
10905          { ac_try='test -s conftest.$ac_objext'
10906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907   (eval $ac_try) 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); }; }; then
10911   ac_cv_header_stdc=yes
10912 else
10913   echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10915
10916 ac_cv_header_stdc=no
10917 fi
10918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10919
10920 if test $ac_cv_header_stdc = yes; then
10921   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10922   cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h.  */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h.  */
10928 #include <string.h>
10929
10930 _ACEOF
10931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10932   $EGREP "memchr" >/dev/null 2>&1; then
10933   :
10934 else
10935   ac_cv_header_stdc=no
10936 fi
10937 rm -f conftest*
10938
10939 fi
10940
10941 if test $ac_cv_header_stdc = yes; then
10942   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10943   cat >conftest.$ac_ext <<_ACEOF
10944 /* confdefs.h.  */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h.  */
10949 #include <stdlib.h>
10950
10951 _ACEOF
10952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10953   $EGREP "free" >/dev/null 2>&1; then
10954   :
10955 else
10956   ac_cv_header_stdc=no
10957 fi
10958 rm -f conftest*
10959
10960 fi
10961
10962 if test $ac_cv_header_stdc = yes; then
10963   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10964   if test "$cross_compiling" = yes; then
10965   :
10966 else
10967   cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h.  */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h.  */
10973 #include <ctype.h>
10974 #if ((' ' & 0x0FF) == 0x020)
10975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10977 #else
10978 # define ISLOWER(c) \
10979                    (('a' <= (c) && (c) <= 'i') \
10980                      || ('j' <= (c) && (c) <= 'r') \
10981                      || ('s' <= (c) && (c) <= 'z'))
10982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10983 #endif
10984
10985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10986 int
10987 main ()
10988 {
10989   int i;
10990   for (i = 0; i < 256; i++)
10991     if (XOR (islower (i), ISLOWER (i))
10992         || toupper (i) != TOUPPER (i))
10993       exit(2);
10994   exit (0);
10995 }
10996 _ACEOF
10997 rm -f conftest$ac_exeext
10998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10999   (eval $ac_link) 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004   (eval $ac_try) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; }; then
11008   :
11009 else
11010   echo "$as_me: program exited with status $ac_status" >&5
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11013
11014 ( exit $ac_status )
11015 ac_cv_header_stdc=no
11016 fi
11017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11018 fi
11019 fi
11020 fi
11021 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11022 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11023 if test $ac_cv_header_stdc = yes; then
11024
11025 cat >>confdefs.h <<\_ACEOF
11026 #define STDC_HEADERS 1
11027 _ACEOF
11028
11029 fi
11030
11031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11042                   inttypes.h stdint.h unistd.h
11043 do
11044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11045 echo "$as_me:$LINENO: checking for $ac_header" >&5
11046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11048   echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050   cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h.  */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h.  */
11056 $ac_includes_default
11057
11058 #include <$ac_header>
11059 _ACEOF
11060 rm -f conftest.$ac_objext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062   (eval $ac_compile) 2>conftest.er1
11063   ac_status=$?
11064   grep -v '^ *+' conftest.er1 >conftest.err
11065   rm -f conftest.er1
11066   cat conftest.err >&5
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } &&
11069          { ac_try='test -z "$ac_c_werror_flag"
11070                          || test ! -s conftest.err'
11071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072   (eval $ac_try) 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }; } &&
11076          { ac_try='test -s conftest.$ac_objext'
11077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078   (eval $ac_try) 2>&5
11079   ac_status=$?
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); }; }; then
11082   eval "$as_ac_Header=yes"
11083 else
11084   echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087 eval "$as_ac_Header=no"
11088 fi
11089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11090 fi
11091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11094   cat >>confdefs.h <<_ACEOF
11095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11096 _ACEOF
11097
11098 fi
11099
11100 done
11101
11102
11103
11104 for ac_header in dlfcn.h
11105 do
11106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11108   echo "$as_me:$LINENO: checking for $ac_header" >&5
11109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11111   echo $ECHO_N "(cached) $ECHO_C" >&6
11112 fi
11113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11115 else
11116   # Is the header compilable?
11117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h.  */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h.  */
11125 $ac_includes_default
11126 #include <$ac_header>
11127 _ACEOF
11128 rm -f conftest.$ac_objext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11130   (eval $ac_compile) 2>conftest.er1
11131   ac_status=$?
11132   grep -v '^ *+' conftest.er1 >conftest.err
11133   rm -f conftest.er1
11134   cat conftest.err >&5
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } &&
11137          { ac_try='test -z "$ac_c_werror_flag"
11138                          || test ! -s conftest.err'
11139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140   (eval $ac_try) 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }; } &&
11144          { ac_try='test -s conftest.$ac_objext'
11145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146   (eval $ac_try) 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); }; }; then
11150   ac_header_compiler=yes
11151 else
11152   echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155 ac_header_compiler=no
11156 fi
11157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11158 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11159 echo "${ECHO_T}$ac_header_compiler" >&6
11160
11161 # Is the header present?
11162 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11164 cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h.  */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h.  */
11170 #include <$ac_header>
11171 _ACEOF
11172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11174   ac_status=$?
11175   grep -v '^ *+' conftest.er1 >conftest.err
11176   rm -f conftest.er1
11177   cat conftest.err >&5
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); } >/dev/null; then
11180   if test -s conftest.err; then
11181     ac_cpp_err=$ac_c_preproc_warn_flag
11182     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11183   else
11184     ac_cpp_err=
11185   fi
11186 else
11187   ac_cpp_err=yes
11188 fi
11189 if test -z "$ac_cpp_err"; then
11190   ac_header_preproc=yes
11191 else
11192   echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195   ac_header_preproc=no
11196 fi
11197 rm -f conftest.err conftest.$ac_ext
11198 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11199 echo "${ECHO_T}$ac_header_preproc" >&6
11200
11201 # So?  What about this header?
11202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11203   yes:no: )
11204     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11208     ac_header_preproc=yes
11209     ;;
11210   no:yes:* )
11211     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11214 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11215     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11217     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11218 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11221     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11223     (
11224       cat <<\_ASBOX
11225 ## ------------------------------------------------------ ##
11226 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
11227 ## ------------------------------------------------------ ##
11228 _ASBOX
11229     ) |
11230       sed "s/^/$as_me: WARNING:     /" >&2
11231     ;;
11232 esac
11233 echo "$as_me:$LINENO: checking for $ac_header" >&5
11234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11236   echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238   eval "$as_ac_Header=\$ac_header_preproc"
11239 fi
11240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11242
11243 fi
11244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11245   cat >>confdefs.h <<_ACEOF
11246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11247 _ACEOF
11248
11249 fi
11250
11251 done
11252
11253 ac_ext=cc
11254 ac_cpp='$CXXCPP $CPPFLAGS'
11255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11258 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11259 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11260 if test -z "$CXXCPP"; then
11261   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11262   echo $ECHO_N "(cached) $ECHO_C" >&6
11263 else
11264       # Double quotes because CXXCPP needs to be expanded
11265     for CXXCPP in "$CXX -E" "/lib/cpp"
11266     do
11267       ac_preproc_ok=false
11268 for ac_cxx_preproc_warn_flag in '' yes
11269 do
11270   # Use a header file that comes with gcc, so configuring glibc
11271   # with a fresh cross-compiler works.
11272   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11273   # <limits.h> exists even on freestanding compilers.
11274   # On the NeXT, cc -E runs the code through the compiler's parser,
11275   # not just through cpp. "Syntax error" is here to catch this case.
11276   cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h.  */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h.  */
11282 #ifdef __STDC__
11283 # include <limits.h>
11284 #else
11285 # include <assert.h>
11286 #endif
11287                      Syntax error
11288 _ACEOF
11289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11291   ac_status=$?
11292   grep -v '^ *+' conftest.er1 >conftest.err
11293   rm -f conftest.er1
11294   cat conftest.err >&5
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); } >/dev/null; then
11297   if test -s conftest.err; then
11298     ac_cpp_err=$ac_cxx_preproc_warn_flag
11299     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11300   else
11301     ac_cpp_err=
11302   fi
11303 else
11304   ac_cpp_err=yes
11305 fi
11306 if test -z "$ac_cpp_err"; then
11307   :
11308 else
11309   echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11311
11312   # Broken: fails on valid input.
11313 continue
11314 fi
11315 rm -f conftest.err conftest.$ac_ext
11316
11317   # OK, works on sane cases.  Now check whether non-existent headers
11318   # can be detected and how.
11319   cat >conftest.$ac_ext <<_ACEOF
11320 /* confdefs.h.  */
11321 _ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h.  */
11325 #include <ac_nonexistent.h>
11326 _ACEOF
11327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11329   ac_status=$?
11330   grep -v '^ *+' conftest.er1 >conftest.err
11331   rm -f conftest.er1
11332   cat conftest.err >&5
11333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334   (exit $ac_status); } >/dev/null; then
11335   if test -s conftest.err; then
11336     ac_cpp_err=$ac_cxx_preproc_warn_flag
11337     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11338   else
11339     ac_cpp_err=
11340   fi
11341 else
11342   ac_cpp_err=yes
11343 fi
11344 if test -z "$ac_cpp_err"; then
11345   # Broken: success on invalid input.
11346 continue
11347 else
11348   echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11350
11351   # Passes both tests.
11352 ac_preproc_ok=:
11353 break
11354 fi
11355 rm -f conftest.err conftest.$ac_ext
11356
11357 done
11358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11359 rm -f conftest.err conftest.$ac_ext
11360 if $ac_preproc_ok; then
11361   break
11362 fi
11363
11364     done
11365     ac_cv_prog_CXXCPP=$CXXCPP
11366
11367 fi
11368   CXXCPP=$ac_cv_prog_CXXCPP
11369 else
11370   ac_cv_prog_CXXCPP=$CXXCPP
11371 fi
11372 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11373 echo "${ECHO_T}$CXXCPP" >&6
11374 ac_preproc_ok=false
11375 for ac_cxx_preproc_warn_flag in '' yes
11376 do
11377   # Use a header file that comes with gcc, so configuring glibc
11378   # with a fresh cross-compiler works.
11379   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380   # <limits.h> exists even on freestanding compilers.
11381   # On the NeXT, cc -E runs the code through the compiler's parser,
11382   # not just through cpp. "Syntax error" is here to catch this case.
11383   cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h.  */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h.  */
11389 #ifdef __STDC__
11390 # include <limits.h>
11391 #else
11392 # include <assert.h>
11393 #endif
11394                      Syntax error
11395 _ACEOF
11396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11398   ac_status=$?
11399   grep -v '^ *+' conftest.er1 >conftest.err
11400   rm -f conftest.er1
11401   cat conftest.err >&5
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); } >/dev/null; then
11404   if test -s conftest.err; then
11405     ac_cpp_err=$ac_cxx_preproc_warn_flag
11406     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11407   else
11408     ac_cpp_err=
11409   fi
11410 else
11411   ac_cpp_err=yes
11412 fi
11413 if test -z "$ac_cpp_err"; then
11414   :
11415 else
11416   echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11418
11419   # Broken: fails on valid input.
11420 continue
11421 fi
11422 rm -f conftest.err conftest.$ac_ext
11423
11424   # OK, works on sane cases.  Now check whether non-existent headers
11425   # can be detected and how.
11426   cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h.  */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h.  */
11432 #include <ac_nonexistent.h>
11433 _ACEOF
11434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11436   ac_status=$?
11437   grep -v '^ *+' conftest.er1 >conftest.err
11438   rm -f conftest.er1
11439   cat conftest.err >&5
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); } >/dev/null; then
11442   if test -s conftest.err; then
11443     ac_cpp_err=$ac_cxx_preproc_warn_flag
11444     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11445   else
11446     ac_cpp_err=
11447   fi
11448 else
11449   ac_cpp_err=yes
11450 fi
11451 if test -z "$ac_cpp_err"; then
11452   # Broken: success on invalid input.
11453 continue
11454 else
11455   echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11457
11458   # Passes both tests.
11459 ac_preproc_ok=:
11460 break
11461 fi
11462 rm -f conftest.err conftest.$ac_ext
11463
11464 done
11465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11466 rm -f conftest.err conftest.$ac_ext
11467 if $ac_preproc_ok; then
11468   :
11469 else
11470   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11471 See \`config.log' for more details." >&5
11472 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11473 See \`config.log' for more details." >&2;}
11474    { (exit 1); exit 1; }; }
11475 fi
11476
11477 ac_ext=cc
11478 ac_cpp='$CXXCPP $CPPFLAGS'
11479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11482
11483 ac_ext=f
11484 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11485 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11486 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11487 if test -n "$ac_tool_prefix"; then
11488   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11489   do
11490     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11492 echo "$as_me:$LINENO: checking for $ac_word" >&5
11493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11494 if test "${ac_cv_prog_F77+set}" = set; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   if test -n "$F77"; then
11498   ac_cv_prog_F77="$F77" # Let the user override the test.
11499 else
11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11502 do
11503   IFS=$as_save_IFS
11504   test -z "$as_dir" && as_dir=.
11505   for ac_exec_ext in '' $ac_executable_extensions; do
11506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11507     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11509     break 2
11510   fi
11511 done
11512 done
11513
11514 fi
11515 fi
11516 F77=$ac_cv_prog_F77
11517 if test -n "$F77"; then
11518   echo "$as_me:$LINENO: result: $F77" >&5
11519 echo "${ECHO_T}$F77" >&6
11520 else
11521   echo "$as_me:$LINENO: result: no" >&5
11522 echo "${ECHO_T}no" >&6
11523 fi
11524
11525     test -n "$F77" && break
11526   done
11527 fi
11528 if test -z "$F77"; then
11529   ac_ct_F77=$F77
11530   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11531 do
11532   # Extract the first word of "$ac_prog", so it can be a program name with args.
11533 set dummy $ac_prog; ac_word=$2
11534 echo "$as_me:$LINENO: checking for $ac_word" >&5
11535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11536 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11537   echo $ECHO_N "(cached) $ECHO_C" >&6
11538 else
11539   if test -n "$ac_ct_F77"; then
11540   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11541 else
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in $PATH
11544 do
11545   IFS=$as_save_IFS
11546   test -z "$as_dir" && as_dir=.
11547   for ac_exec_ext in '' $ac_executable_extensions; do
11548   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11549     ac_cv_prog_ac_ct_F77="$ac_prog"
11550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11551     break 2
11552   fi
11553 done
11554 done
11555
11556 fi
11557 fi
11558 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11559 if test -n "$ac_ct_F77"; then
11560   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11561 echo "${ECHO_T}$ac_ct_F77" >&6
11562 else
11563   echo "$as_me:$LINENO: result: no" >&5
11564 echo "${ECHO_T}no" >&6
11565 fi
11566
11567   test -n "$ac_ct_F77" && break
11568 done
11569
11570   F77=$ac_ct_F77
11571 fi
11572
11573
11574 # Provide some information about the compiler.
11575 echo "$as_me:11575:" \
11576      "checking for Fortran 77 compiler version" >&5
11577 ac_compiler=`set X $ac_compile; echo $2`
11578 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11579   (eval $ac_compiler --version </dev/null >&5) 2>&5
11580   ac_status=$?
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); }
11583 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11584   (eval $ac_compiler -v </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 rm -f a.out
11594
11595 # If we don't use `.F' as extension, the preprocessor is not run on the
11596 # input file.  (Note that this only needs to work for GNU compilers.)
11597 ac_save_ext=$ac_ext
11598 ac_ext=F
11599 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11600 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11601 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604   cat >conftest.$ac_ext <<_ACEOF
11605       program main
11606 #ifndef __GNUC__
11607        choke me
11608 #endif
11609
11610       end
11611 _ACEOF
11612 rm -f conftest.$ac_objext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11614   (eval $ac_compile) 2>conftest.er1
11615   ac_status=$?
11616   grep -v '^ *+' conftest.er1 >conftest.err
11617   rm -f conftest.er1
11618   cat conftest.err >&5
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); } &&
11621          { ac_try='test -z "$ac_f77_werror_flag"
11622                          || test ! -s conftest.err'
11623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624   (eval $ac_try) 2>&5
11625   ac_status=$?
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); }; } &&
11628          { ac_try='test -s conftest.$ac_objext'
11629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630   (eval $ac_try) 2>&5
11631   ac_status=$?
11632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); }; }; then
11634   ac_compiler_gnu=yes
11635 else
11636   echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11638
11639 ac_compiler_gnu=no
11640 fi
11641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11642 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11643
11644 fi
11645 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11646 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11647 ac_ext=$ac_save_ext
11648 ac_test_FFLAGS=${FFLAGS+set}
11649 ac_save_FFLAGS=$FFLAGS
11650 FFLAGS=
11651 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11652 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11653 if test "${ac_cv_prog_f77_g+set}" = set; then
11654   echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656   FFLAGS=-g
11657 cat >conftest.$ac_ext <<_ACEOF
11658       program main
11659
11660       end
11661 _ACEOF
11662 rm -f conftest.$ac_objext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11664   (eval $ac_compile) 2>conftest.er1
11665   ac_status=$?
11666   grep -v '^ *+' conftest.er1 >conftest.err
11667   rm -f conftest.er1
11668   cat conftest.err >&5
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); } &&
11671          { ac_try='test -z "$ac_f77_werror_flag"
11672                          || test ! -s conftest.err'
11673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674   (eval $ac_try) 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); }; } &&
11678          { ac_try='test -s conftest.$ac_objext'
11679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680   (eval $ac_try) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; }; then
11684   ac_cv_prog_f77_g=yes
11685 else
11686   echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689 ac_cv_prog_f77_g=no
11690 fi
11691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11692
11693 fi
11694 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11695 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11696 if test "$ac_test_FFLAGS" = set; then
11697   FFLAGS=$ac_save_FFLAGS
11698 elif test $ac_cv_prog_f77_g = yes; then
11699   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11700     FFLAGS="-g -O2"
11701   else
11702     FFLAGS="-g"
11703   fi
11704 else
11705   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11706     FFLAGS="-O2"
11707   else
11708     FFLAGS=
11709   fi
11710 fi
11711
11712 G77=`test $ac_compiler_gnu = yes && echo yes`
11713 ac_ext=c
11714 ac_cpp='$CPP $CPPFLAGS'
11715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11718
11719
11720
11721 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11722
11723 # find the maximum length of command line arguments
11724 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11725 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11726 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11727   echo $ECHO_N "(cached) $ECHO_C" >&6
11728 else
11729     i=0
11730   teststring="ABCD"
11731
11732   case $build_os in
11733   msdosdjgpp*)
11734     # On DJGPP, this test can blow up pretty badly due to problems in libc
11735     # (any single argument exceeding 2000 bytes causes a buffer overrun
11736     # during glob expansion).  Even if it were fixed, the result of this
11737     # check would be larger than it should be.
11738     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11739     ;;
11740
11741   gnu*)
11742     # Under GNU Hurd, this test is not required because there is
11743     # no limit to the length of command line arguments.
11744     # Libtool will interpret -1 as no limit whatsoever
11745     lt_cv_sys_max_cmd_len=-1;
11746     ;;
11747
11748   cygwin* | mingw*)
11749     # On Win9x/ME, this test blows up -- it succeeds, but takes
11750     # about 5 minutes as the teststring grows exponentially.
11751     # Worse, since 9x/ME are not pre-emptively multitasking,
11752     # you end up with a "frozen" computer, even though with patience
11753     # the test eventually succeeds (with a max line length of 256k).
11754     # Instead, let's just punt: use the minimum linelength reported by
11755     # all of the supported platforms: 8192 (on NT/2K/XP).
11756     lt_cv_sys_max_cmd_len=8192;
11757     ;;
11758
11759   amigaos*)
11760     # On AmigaOS with pdksh, this test takes hours, literally.
11761     # So we just punt and use a minimum line length of 8192.
11762     lt_cv_sys_max_cmd_len=8192;
11763     ;;
11764
11765  *)
11766     # If test is not a shell built-in, we'll probably end up computing a
11767     # maximum length that is only half of the actual maximum length, but
11768     # we can't tell.
11769     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11770                = "XX$teststring") >/dev/null 2>&1 &&
11771             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11772             lt_cv_sys_max_cmd_len=$new_result &&
11773             test $i != 17 # 1/2 MB should be enough
11774     do
11775       i=`expr $i + 1`
11776       teststring=$teststring$teststring
11777     done
11778     teststring=
11779     # Add a significant safety factor because C++ compilers can tack on massive
11780     # amounts of additional arguments before passing them to the linker.
11781     # It appears as though 1/2 is a usable value.
11782     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11783     ;;
11784   esac
11785
11786 fi
11787
11788 if test -n $lt_cv_sys_max_cmd_len ; then
11789   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11790 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11791 else
11792   echo "$as_me:$LINENO: result: none" >&5
11793 echo "${ECHO_T}none" >&6
11794 fi
11795
11796
11797
11798
11799 # Check for command to grab the raw symbol name followed by C symbol from nm.
11800 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11801 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11802 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11803   echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805
11806 # These are sane defaults that work on at least a few old systems.
11807 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11808
11809 # Character class describing NM global symbol codes.
11810 symcode='[BCDEGRST]'
11811
11812 # Regexp to match symbols that can be accessed directly from C.
11813 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11814
11815 # Transform the above into a raw symbol and a C symbol.
11816 symxfrm='\1 \2\3 \3'
11817
11818 # Transform an extracted symbol line into a proper C declaration
11819 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11820
11821 # Transform an extracted symbol line into symbol name and symbol address
11822 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'"
11823
11824 # Define system-specific variables.
11825 case $host_os in
11826 aix*)
11827   symcode='[BCDT]'
11828   ;;
11829 cygwin* | mingw* | pw32*)
11830   symcode='[ABCDGISTW]'
11831   ;;
11832 hpux*) # Its linker distinguishes data from code symbols
11833   if test "$host_cpu" = ia64; then
11834     symcode='[ABCDEGRST]'
11835   fi
11836   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11837   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'"
11838   ;;
11839 irix* | nonstopux*)
11840   symcode='[BCDEGRST]'
11841   ;;
11842 osf*)
11843   symcode='[BCDEGQRST]'
11844   ;;
11845 solaris* | sysv5*)
11846   symcode='[BDRT]'
11847   ;;
11848 sysv4)
11849   symcode='[DFNSTU]'
11850   ;;
11851 esac
11852
11853 # Handle CRLF in mingw tool chain
11854 opt_cr=
11855 case $build_os in
11856 mingw*)
11857   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11858   ;;
11859 esac
11860
11861 # If we're using GNU nm, then use its standard symbol codes.
11862 case `$NM -V 2>&1` in
11863 *GNU* | *'with BFD'*)
11864   symcode='[ABCDGIRSTW]' ;;
11865 esac
11866
11867 # Try without a prefix undercore, then with it.
11868 for ac_symprfx in "" "_"; do
11869
11870   # Write the raw and C identifiers.
11871   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11872
11873   # Check to see that the pipe works correctly.
11874   pipe_works=no
11875
11876   rm -f conftest*
11877   cat > conftest.$ac_ext <<EOF
11878 #ifdef __cplusplus
11879 extern "C" {
11880 #endif
11881 char nm_test_var;
11882 void nm_test_func(){}
11883 #ifdef __cplusplus
11884 }
11885 #endif
11886 int main(){nm_test_var='a';nm_test_func();return(0);}
11887 EOF
11888
11889   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11890   (eval $ac_compile) 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; then
11894     # Now try to grab the symbols.
11895     nlist=conftest.nm
11896     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11897   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); } && test -s "$nlist"; then
11901       # Try sorting and uniquifying the output.
11902       if sort "$nlist" | uniq > "$nlist"T; then
11903         mv -f "$nlist"T "$nlist"
11904       else
11905         rm -f "$nlist"T
11906       fi
11907
11908       # Make sure that we snagged all the symbols we need.
11909       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11910         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11911           cat <<EOF > conftest.$ac_ext
11912 #ifdef __cplusplus
11913 extern "C" {
11914 #endif
11915
11916 EOF
11917           # Now generate the symbol file.
11918           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11919
11920           cat <<EOF >> conftest.$ac_ext
11921 #if defined (__STDC__) && __STDC__
11922 # define lt_ptr_t void *
11923 #else
11924 # define lt_ptr_t char *
11925 # define const
11926 #endif
11927
11928 /* The mapping between symbol names and symbols. */
11929 const struct {
11930   const char *name;
11931   lt_ptr_t address;
11932 }
11933 lt_preloaded_symbols[] =
11934 {
11935 EOF
11936           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11937           cat <<\EOF >> conftest.$ac_ext
11938   {0, (lt_ptr_t) 0}
11939 };
11940
11941 #ifdef __cplusplus
11942 }
11943 #endif
11944 EOF
11945           # Now try linking the two files.
11946           mv conftest.$ac_objext conftstm.$ac_objext
11947           lt_save_LIBS="$LIBS"
11948           lt_save_CFLAGS="$CFLAGS"
11949           LIBS="conftstm.$ac_objext"
11950           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11951           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11952   (eval $ac_link) 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11956             pipe_works=yes
11957           fi
11958           LIBS="$lt_save_LIBS"
11959           CFLAGS="$lt_save_CFLAGS"
11960         else
11961           echo "cannot find nm_test_func in $nlist" >&5
11962         fi
11963       else
11964         echo "cannot find nm_test_var in $nlist" >&5
11965       fi
11966     else
11967       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11968     fi
11969   else
11970     echo "$progname: failed program was:" >&5
11971     cat conftest.$ac_ext >&5
11972   fi
11973   rm -f conftest* conftst*
11974
11975   # Do not use the global_symbol_pipe unless it works.
11976   if test "$pipe_works" = yes; then
11977     break
11978   else
11979     lt_cv_sys_global_symbol_pipe=
11980   fi
11981 done
11982
11983 fi
11984
11985 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11986   lt_cv_sys_global_symbol_to_cdecl=
11987 fi
11988 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11989   echo "$as_me:$LINENO: result: failed" >&5
11990 echo "${ECHO_T}failed" >&6
11991 else
11992   echo "$as_me:$LINENO: result: ok" >&5
11993 echo "${ECHO_T}ok" >&6
11994 fi
11995
11996 echo "$as_me:$LINENO: checking for objdir" >&5
11997 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11998 if test "${lt_cv_objdir+set}" = set; then
11999   echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001   rm -f .libs 2>/dev/null
12002 mkdir .libs 2>/dev/null
12003 if test -d .libs; then
12004   lt_cv_objdir=.libs
12005 else
12006   # MS-DOS does not allow filenames that begin with a dot.
12007   lt_cv_objdir=_libs
12008 fi
12009 rmdir .libs 2>/dev/null
12010 fi
12011 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12012 echo "${ECHO_T}$lt_cv_objdir" >&6
12013 objdir=$lt_cv_objdir
12014
12015
12016
12017
12018
12019 case $host_os in
12020 aix3*)
12021   # AIX sometimes has problems with the GCC collect2 program.  For some
12022   # reason, if we set the COLLECT_NAMES environment variable, the problems
12023   # vanish in a puff of smoke.
12024   if test "X${COLLECT_NAMES+set}" != Xset; then
12025     COLLECT_NAMES=
12026     export COLLECT_NAMES
12027   fi
12028   ;;
12029 esac
12030
12031 # Sed substitution that helps us do robust quoting.  It backslashifies
12032 # metacharacters that are still active within double-quoted strings.
12033 Xsed='sed -e s/^X//'
12034 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12035
12036 # Same as above, but do not quote variable references.
12037 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12038
12039 # Sed substitution to delay expansion of an escaped shell variable in a
12040 # double_quote_subst'ed string.
12041 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12042
12043 # Sed substitution to avoid accidental globbing in evaled expressions
12044 no_glob_subst='s/\*/\\\*/g'
12045
12046 # Constants:
12047 rm="rm -f"
12048
12049 # Global variables:
12050 default_ofile=libtool
12051 can_build_shared=yes
12052
12053 # All known linkers require a `.a' archive for static linking (except M$VC,
12054 # which needs '.lib').
12055 libext=a
12056 ltmain="$ac_aux_dir/ltmain.sh"
12057 ofile="$default_ofile"
12058 with_gnu_ld="$lt_cv_prog_gnu_ld"
12059
12060 if test -n "$ac_tool_prefix"; then
12061   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12062 set dummy ${ac_tool_prefix}ar; ac_word=$2
12063 echo "$as_me:$LINENO: checking for $ac_word" >&5
12064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12065 if test "${ac_cv_prog_AR+set}" = set; then
12066   echo $ECHO_N "(cached) $ECHO_C" >&6
12067 else
12068   if test -n "$AR"; then
12069   ac_cv_prog_AR="$AR" # Let the user override the test.
12070 else
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072 for as_dir in $PATH
12073 do
12074   IFS=$as_save_IFS
12075   test -z "$as_dir" && as_dir=.
12076   for ac_exec_ext in '' $ac_executable_extensions; do
12077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12078     ac_cv_prog_AR="${ac_tool_prefix}ar"
12079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12080     break 2
12081   fi
12082 done
12083 done
12084
12085 fi
12086 fi
12087 AR=$ac_cv_prog_AR
12088 if test -n "$AR"; then
12089   echo "$as_me:$LINENO: result: $AR" >&5
12090 echo "${ECHO_T}$AR" >&6
12091 else
12092   echo "$as_me:$LINENO: result: no" >&5
12093 echo "${ECHO_T}no" >&6
12094 fi
12095
12096 fi
12097 if test -z "$ac_cv_prog_AR"; then
12098   ac_ct_AR=$AR
12099   # Extract the first word of "ar", so it can be a program name with args.
12100 set dummy ar; ac_word=$2
12101 echo "$as_me:$LINENO: checking for $ac_word" >&5
12102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12103 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12104   echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106   if test -n "$ac_ct_AR"; then
12107   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12108 else
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12111 do
12112   IFS=$as_save_IFS
12113   test -z "$as_dir" && as_dir=.
12114   for ac_exec_ext in '' $ac_executable_extensions; do
12115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12116     ac_cv_prog_ac_ct_AR="ar"
12117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12118     break 2
12119   fi
12120 done
12121 done
12122
12123   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
12124 fi
12125 fi
12126 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12127 if test -n "$ac_ct_AR"; then
12128   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12129 echo "${ECHO_T}$ac_ct_AR" >&6
12130 else
12131   echo "$as_me:$LINENO: result: no" >&5
12132 echo "${ECHO_T}no" >&6
12133 fi
12134
12135   AR=$ac_ct_AR
12136 else
12137   AR="$ac_cv_prog_AR"
12138 fi
12139
12140 if test -n "$ac_tool_prefix"; then
12141   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12143 echo "$as_me:$LINENO: checking for $ac_word" >&5
12144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12145 if test "${ac_cv_prog_RANLIB+set}" = set; then
12146   echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148   if test -n "$RANLIB"; then
12149   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12150 else
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12153 do
12154   IFS=$as_save_IFS
12155   test -z "$as_dir" && as_dir=.
12156   for ac_exec_ext in '' $ac_executable_extensions; do
12157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12158     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12160     break 2
12161   fi
12162 done
12163 done
12164
12165 fi
12166 fi
12167 RANLIB=$ac_cv_prog_RANLIB
12168 if test -n "$RANLIB"; then
12169   echo "$as_me:$LINENO: result: $RANLIB" >&5
12170 echo "${ECHO_T}$RANLIB" >&6
12171 else
12172   echo "$as_me:$LINENO: result: no" >&5
12173 echo "${ECHO_T}no" >&6
12174 fi
12175
12176 fi
12177 if test -z "$ac_cv_prog_RANLIB"; then
12178   ac_ct_RANLIB=$RANLIB
12179   # Extract the first word of "ranlib", so it can be a program name with args.
12180 set dummy ranlib; ac_word=$2
12181 echo "$as_me:$LINENO: checking for $ac_word" >&5
12182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12184   echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186   if test -n "$ac_ct_RANLIB"; then
12187   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12188 else
12189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190 for as_dir in $PATH
12191 do
12192   IFS=$as_save_IFS
12193   test -z "$as_dir" && as_dir=.
12194   for ac_exec_ext in '' $ac_executable_extensions; do
12195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12196     ac_cv_prog_ac_ct_RANLIB="ranlib"
12197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12198     break 2
12199   fi
12200 done
12201 done
12202
12203   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12204 fi
12205 fi
12206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12207 if test -n "$ac_ct_RANLIB"; then
12208   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12209 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12210 else
12211   echo "$as_me:$LINENO: result: no" >&5
12212 echo "${ECHO_T}no" >&6
12213 fi
12214
12215   RANLIB=$ac_ct_RANLIB
12216 else
12217   RANLIB="$ac_cv_prog_RANLIB"
12218 fi
12219
12220 if test -n "$ac_tool_prefix"; then
12221   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12222 set dummy ${ac_tool_prefix}strip; ac_word=$2
12223 echo "$as_me:$LINENO: checking for $ac_word" >&5
12224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12225 if test "${ac_cv_prog_STRIP+set}" = set; then
12226   echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228   if test -n "$STRIP"; then
12229   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12230 else
12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232 for as_dir in $PATH
12233 do
12234   IFS=$as_save_IFS
12235   test -z "$as_dir" && as_dir=.
12236   for ac_exec_ext in '' $ac_executable_extensions; do
12237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12238     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12240     break 2
12241   fi
12242 done
12243 done
12244
12245 fi
12246 fi
12247 STRIP=$ac_cv_prog_STRIP
12248 if test -n "$STRIP"; then
12249   echo "$as_me:$LINENO: result: $STRIP" >&5
12250 echo "${ECHO_T}$STRIP" >&6
12251 else
12252   echo "$as_me:$LINENO: result: no" >&5
12253 echo "${ECHO_T}no" >&6
12254 fi
12255
12256 fi
12257 if test -z "$ac_cv_prog_STRIP"; then
12258   ac_ct_STRIP=$STRIP
12259   # Extract the first word of "strip", so it can be a program name with args.
12260 set dummy strip; ac_word=$2
12261 echo "$as_me:$LINENO: checking for $ac_word" >&5
12262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12263 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12264   echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266   if test -n "$ac_ct_STRIP"; then
12267   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12268 else
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12271 do
12272   IFS=$as_save_IFS
12273   test -z "$as_dir" && as_dir=.
12274   for ac_exec_ext in '' $ac_executable_extensions; do
12275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12276     ac_cv_prog_ac_ct_STRIP="strip"
12277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12278     break 2
12279   fi
12280 done
12281 done
12282
12283   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12284 fi
12285 fi
12286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12287 if test -n "$ac_ct_STRIP"; then
12288   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12289 echo "${ECHO_T}$ac_ct_STRIP" >&6
12290 else
12291   echo "$as_me:$LINENO: result: no" >&5
12292 echo "${ECHO_T}no" >&6
12293 fi
12294
12295   STRIP=$ac_ct_STRIP
12296 else
12297   STRIP="$ac_cv_prog_STRIP"
12298 fi
12299
12300
12301 old_CC="$CC"
12302 old_CFLAGS="$CFLAGS"
12303
12304 # Set sane defaults for various variables
12305 test -z "$AR" && AR=ar
12306 test -z "$AR_FLAGS" && AR_FLAGS=cru
12307 test -z "$AS" && AS=as
12308 test -z "$CC" && CC=cc
12309 test -z "$LTCC" && LTCC=$CC
12310 test -z "$DLLTOOL" && DLLTOOL=dlltool
12311 test -z "$LD" && LD=ld
12312 test -z "$LN_S" && LN_S="ln -s"
12313 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12314 test -z "$NM" && NM=nm
12315 test -z "$SED" && SED=sed
12316 test -z "$OBJDUMP" && OBJDUMP=objdump
12317 test -z "$RANLIB" && RANLIB=:
12318 test -z "$STRIP" && STRIP=:
12319 test -z "$ac_objext" && ac_objext=o
12320
12321 # Determine commands to create old-style static archives.
12322 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12323 old_postinstall_cmds='chmod 644 $oldlib'
12324 old_postuninstall_cmds=
12325
12326 if test -n "$RANLIB"; then
12327   case $host_os in
12328   openbsd*)
12329     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12330     ;;
12331   *)
12332     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12333     ;;
12334   esac
12335   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12336 fi
12337
12338 # Only perform the check for file, if the check method requires it
12339 case $deplibs_check_method in
12340 file_magic*)
12341   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12342     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12343 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12344 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12345   echo $ECHO_N "(cached) $ECHO_C" >&6
12346 else
12347   case $MAGIC_CMD in
12348 [\\/*] |  ?:[\\/]*)
12349   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12350   ;;
12351 *)
12352   lt_save_MAGIC_CMD="$MAGIC_CMD"
12353   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12354   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12355   for ac_dir in $ac_dummy; do
12356     IFS="$lt_save_ifs"
12357     test -z "$ac_dir" && ac_dir=.
12358     if test -f $ac_dir/${ac_tool_prefix}file; then
12359       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12360       if test -n "$file_magic_test_file"; then
12361         case $deplibs_check_method in
12362         "file_magic "*)
12363           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12364           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12365           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12366             $EGREP "$file_magic_regex" > /dev/null; then
12367             :
12368           else
12369             cat <<EOF 1>&2
12370
12371 *** Warning: the command libtool uses to detect shared libraries,
12372 *** $file_magic_cmd, produces output that libtool cannot recognize.
12373 *** The result is that libtool may fail to recognize shared libraries
12374 *** as such.  This will affect the creation of libtool libraries that
12375 *** depend on shared libraries, but programs linked with such libtool
12376 *** libraries will work regardless of this problem.  Nevertheless, you
12377 *** may want to report the problem to your system manager and/or to
12378 *** bug-libtool@gnu.org
12379
12380 EOF
12381           fi ;;
12382         esac
12383       fi
12384       break
12385     fi
12386   done
12387   IFS="$lt_save_ifs"
12388   MAGIC_CMD="$lt_save_MAGIC_CMD"
12389   ;;
12390 esac
12391 fi
12392
12393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12394 if test -n "$MAGIC_CMD"; then
12395   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12396 echo "${ECHO_T}$MAGIC_CMD" >&6
12397 else
12398   echo "$as_me:$LINENO: result: no" >&5
12399 echo "${ECHO_T}no" >&6
12400 fi
12401
12402 if test -z "$lt_cv_path_MAGIC_CMD"; then
12403   if test -n "$ac_tool_prefix"; then
12404     echo "$as_me:$LINENO: checking for file" >&5
12405 echo $ECHO_N "checking for file... $ECHO_C" >&6
12406 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12407   echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409   case $MAGIC_CMD in
12410 [\\/*] |  ?:[\\/]*)
12411   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12412   ;;
12413 *)
12414   lt_save_MAGIC_CMD="$MAGIC_CMD"
12415   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12416   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12417   for ac_dir in $ac_dummy; do
12418     IFS="$lt_save_ifs"
12419     test -z "$ac_dir" && ac_dir=.
12420     if test -f $ac_dir/file; then
12421       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12422       if test -n "$file_magic_test_file"; then
12423         case $deplibs_check_method in
12424         "file_magic "*)
12425           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12426           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12427           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12428             $EGREP "$file_magic_regex" > /dev/null; then
12429             :
12430           else
12431             cat <<EOF 1>&2
12432
12433 *** Warning: the command libtool uses to detect shared libraries,
12434 *** $file_magic_cmd, produces output that libtool cannot recognize.
12435 *** The result is that libtool may fail to recognize shared libraries
12436 *** as such.  This will affect the creation of libtool libraries that
12437 *** depend on shared libraries, but programs linked with such libtool
12438 *** libraries will work regardless of this problem.  Nevertheless, you
12439 *** may want to report the problem to your system manager and/or to
12440 *** bug-libtool@gnu.org
12441
12442 EOF
12443           fi ;;
12444         esac
12445       fi
12446       break
12447     fi
12448   done
12449   IFS="$lt_save_ifs"
12450   MAGIC_CMD="$lt_save_MAGIC_CMD"
12451   ;;
12452 esac
12453 fi
12454
12455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12456 if test -n "$MAGIC_CMD"; then
12457   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12458 echo "${ECHO_T}$MAGIC_CMD" >&6
12459 else
12460   echo "$as_me:$LINENO: result: no" >&5
12461 echo "${ECHO_T}no" >&6
12462 fi
12463
12464   else
12465     MAGIC_CMD=:
12466   fi
12467 fi
12468
12469   fi
12470   ;;
12471 esac
12472
12473 enable_dlopen=no
12474 enable_win32_dll=no
12475
12476 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12477 if test "${enable_libtool_lock+set}" = set; then
12478   enableval="$enable_libtool_lock"
12479
12480 fi;
12481 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12482
12483
12484 # Check whether --with-pic or --without-pic was given.
12485 if test "${with_pic+set}" = set; then
12486   withval="$with_pic"
12487   pic_mode="$withval"
12488 else
12489   pic_mode=default
12490 fi;
12491 test -z "$pic_mode" && pic_mode=default
12492
12493 # Use C for the default configuration in the libtool script
12494 tagname=
12495 lt_save_CC="$CC"
12496 ac_ext=c
12497 ac_cpp='$CPP $CPPFLAGS'
12498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12501
12502
12503 # Source file extension for C test sources.
12504 ac_ext=c
12505
12506 # Object file extension for compiled C test sources.
12507 objext=o
12508 objext=$objext
12509
12510 # Code to be used in simple compile tests
12511 lt_simple_compile_test_code="int some_variable = 0;\n"
12512
12513 # Code to be used in simple link tests
12514 lt_simple_link_test_code='int main(){return(0);}\n'
12515
12516
12517 # If no C compiler was specified, use CC.
12518 LTCC=${LTCC-"$CC"}
12519
12520 # Allow CC to be a program name with arguments.
12521 compiler=$CC
12522
12523
12524 #
12525 # Check for any special shared library compilation flags.
12526 #
12527 lt_prog_cc_shlib=
12528 if test "$GCC" = no; then
12529   case $host_os in
12530   sco3.2v5*)
12531     lt_prog_cc_shlib='-belf'
12532     ;;
12533   esac
12534 fi
12535 if test -n "$lt_prog_cc_shlib"; then
12536   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12537 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12538   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
12539   else
12540     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12541 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12542     lt_cv_prog_cc_can_build_shared=no
12543   fi
12544 fi
12545
12546
12547 #
12548 # Check to make sure the static flag actually works.
12549 #
12550 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12551 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12552 if test "${lt_prog_compiler_static_works+set}" = set; then
12553   echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555   lt_prog_compiler_static_works=no
12556    save_LDFLAGS="$LDFLAGS"
12557    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12558    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12559    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12560      # The compiler can only warn and ignore the option if not recognized
12561      # So say no if there are warnings
12562      if test -s conftest.err; then
12563        # Append any errors to the config.log.
12564        cat conftest.err 1>&5
12565      else
12566        lt_prog_compiler_static_works=yes
12567      fi
12568    fi
12569    $rm conftest*
12570    LDFLAGS="$save_LDFLAGS"
12571
12572 fi
12573 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12574 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12575
12576 if test x"$lt_prog_compiler_static_works" = xyes; then
12577     :
12578 else
12579     lt_prog_compiler_static=
12580 fi
12581
12582
12583
12584
12585 lt_prog_compiler_no_builtin_flag=
12586
12587 if test "$GCC" = yes; then
12588   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12589
12590
12591 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12592 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12593 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12594   echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596   lt_cv_prog_compiler_rtti_exceptions=no
12597   ac_outfile=conftest.$ac_objext
12598    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12599    lt_compiler_flag="-fno-rtti -fno-exceptions"
12600    # Insert the option either (1) after the last *FLAGS variable, or
12601    # (2) before a word containing "conftest.", or (3) at the end.
12602    # Note that $ac_compile itself does not contain backslashes and begins
12603    # with a dollar sign (not a hyphen), so the echo should work correctly.
12604    # The option is referenced via a variable to avoid confusing sed.
12605    lt_compile=`echo "$ac_compile" | $SED \
12606    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12607    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12608    -e 's:$: $lt_compiler_flag:'`
12609    (eval echo "\"\$as_me:12609: $lt_compile\"" >&5)
12610    (eval "$lt_compile" 2>conftest.err)
12611    ac_status=$?
12612    cat conftest.err >&5
12613    echo "$as_me:12613: \$? = $ac_status" >&5
12614    if (exit $ac_status) && test -s "$ac_outfile"; then
12615      # The compiler can only warn and ignore the option if not recognized
12616      # So say no if there are warnings
12617      if test ! -s conftest.err; then
12618        lt_cv_prog_compiler_rtti_exceptions=yes
12619      fi
12620    fi
12621    $rm conftest*
12622
12623 fi
12624 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12625 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12626
12627 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12628     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12629 else
12630     :
12631 fi
12632
12633 fi
12634
12635 lt_prog_compiler_wl=
12636 lt_prog_compiler_pic=
12637 lt_prog_compiler_static=
12638
12639 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12640 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12641
12642   if test "$GCC" = yes; then
12643     lt_prog_compiler_wl='-Wl,'
12644     lt_prog_compiler_static='-static'
12645
12646     case $host_os in
12647       aix*)
12648       # All AIX code is PIC.
12649       if test "$host_cpu" = ia64; then
12650         # AIX 5 now supports IA64 processor
12651         lt_prog_compiler_static='-Bstatic'
12652       fi
12653       ;;
12654
12655     amigaos*)
12656       # FIXME: we need at least 68020 code to build shared libraries, but
12657       # adding the `-m68020' flag to GCC prevents building anything better,
12658       # like `-m68040'.
12659       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12660       ;;
12661
12662     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12663       # PIC is the default for these OSes.
12664       ;;
12665
12666     mingw* | pw32* | os2*)
12667       # This hack is so that the source file can tell whether it is being
12668       # built for inclusion in a dll (and should export symbols for example).
12669       lt_prog_compiler_pic='-DDLL_EXPORT'
12670       ;;
12671
12672     darwin* | rhapsody*)
12673       # PIC is the default on this platform
12674       # Common symbols not allowed in MH_DYLIB files
12675       lt_prog_compiler_pic='-fno-common'
12676       ;;
12677
12678     msdosdjgpp*)
12679       # Just because we use GCC doesn't mean we suddenly get shared libraries
12680       # on systems that don't support them.
12681       lt_prog_compiler_can_build_shared=no
12682       enable_shared=no
12683       ;;
12684
12685     sysv4*MP*)
12686       if test -d /usr/nec; then
12687         lt_prog_compiler_pic=-Kconform_pic
12688       fi
12689       ;;
12690
12691     hpux*)
12692       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12693       # not for PA HP-UX.
12694       case "$host_cpu" in
12695       hppa*64*|ia64*)
12696         # +Z the default
12697         ;;
12698       *)
12699         lt_prog_compiler_pic='-fPIC'
12700         ;;
12701       esac
12702       ;;
12703
12704     *)
12705       lt_prog_compiler_pic='-fPIC'
12706       ;;
12707     esac
12708   else
12709     # PORTME Check for flag to pass linker flags through the system compiler.
12710     case $host_os in
12711     aix*)
12712       lt_prog_compiler_wl='-Wl,'
12713       if test "$host_cpu" = ia64; then
12714         # AIX 5 now supports IA64 processor
12715         lt_prog_compiler_static='-Bstatic'
12716       else
12717         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12718       fi
12719       ;;
12720
12721     mingw* | pw32* | os2*)
12722       # This hack is so that the source file can tell whether it is being
12723       # built for inclusion in a dll (and should export symbols for example).
12724       lt_prog_compiler_pic='-DDLL_EXPORT'
12725       ;;
12726
12727     hpux9* | hpux10* | hpux11*)
12728       lt_prog_compiler_wl='-Wl,'
12729       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12730       # not for PA HP-UX.
12731       case "$host_cpu" in
12732       hppa*64*|ia64*)
12733         # +Z the default
12734         ;;
12735       *)
12736         lt_prog_compiler_pic='+Z'
12737         ;;
12738       esac
12739       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12740       lt_prog_compiler_static='${wl}-a ${wl}archive'
12741       ;;
12742
12743     irix5* | irix6* | nonstopux*)
12744       lt_prog_compiler_wl='-Wl,'
12745       # PIC (with -KPIC) is the default.
12746       lt_prog_compiler_static='-non_shared'
12747       ;;
12748
12749     newsos6)
12750       lt_prog_compiler_pic='-KPIC'
12751       lt_prog_compiler_static='-Bstatic'
12752       ;;
12753
12754     linux*)
12755       case $CC in
12756       icc* | ecc*)
12757         lt_prog_compiler_wl='-Wl,'
12758         lt_prog_compiler_pic='-KPIC'
12759         lt_prog_compiler_static='-static'
12760         ;;
12761       ccc*)
12762         lt_prog_compiler_wl='-Wl,'
12763         # All Alpha code is PIC.
12764         lt_prog_compiler_static='-non_shared'
12765         ;;
12766       esac
12767       ;;
12768
12769     osf3* | osf4* | osf5*)
12770       lt_prog_compiler_wl='-Wl,'
12771       # All OSF/1 code is PIC.
12772       lt_prog_compiler_static='-non_shared'
12773       ;;
12774
12775     sco3.2v5*)
12776       lt_prog_compiler_pic='-Kpic'
12777       lt_prog_compiler_static='-dn'
12778       ;;
12779
12780     solaris*)
12781       lt_prog_compiler_wl='-Wl,'
12782       lt_prog_compiler_pic='-KPIC'
12783       lt_prog_compiler_static='-Bstatic'
12784       ;;
12785
12786     sunos4*)
12787       lt_prog_compiler_wl='-Qoption ld '
12788       lt_prog_compiler_pic='-PIC'
12789       lt_prog_compiler_static='-Bstatic'
12790       ;;
12791
12792     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12793       lt_prog_compiler_wl='-Wl,'
12794       lt_prog_compiler_pic='-KPIC'
12795       lt_prog_compiler_static='-Bstatic'
12796       ;;
12797
12798     sysv4*MP*)
12799       if test -d /usr/nec ;then
12800         lt_prog_compiler_pic='-Kconform_pic'
12801         lt_prog_compiler_static='-Bstatic'
12802       fi
12803       ;;
12804
12805     uts4*)
12806       lt_prog_compiler_pic='-pic'
12807       lt_prog_compiler_static='-Bstatic'
12808       ;;
12809
12810     *)
12811       lt_prog_compiler_can_build_shared=no
12812       ;;
12813     esac
12814   fi
12815
12816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12817 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12818
12819 #
12820 # Check to make sure the PIC flag actually works.
12821 #
12822 if test -n "$lt_prog_compiler_pic"; then
12823
12824 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12825 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12826 if test "${lt_prog_compiler_pic_works+set}" = set; then
12827   echo $ECHO_N "(cached) $ECHO_C" >&6
12828 else
12829   lt_prog_compiler_pic_works=no
12830   ac_outfile=conftest.$ac_objext
12831    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12832    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12833    # Insert the option either (1) after the last *FLAGS variable, or
12834    # (2) before a word containing "conftest.", or (3) at the end.
12835    # Note that $ac_compile itself does not contain backslashes and begins
12836    # with a dollar sign (not a hyphen), so the echo should work correctly.
12837    # The option is referenced via a variable to avoid confusing sed.
12838    lt_compile=`echo "$ac_compile" | $SED \
12839    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12840    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12841    -e 's:$: $lt_compiler_flag:'`
12842    (eval echo "\"\$as_me:12842: $lt_compile\"" >&5)
12843    (eval "$lt_compile" 2>conftest.err)
12844    ac_status=$?
12845    cat conftest.err >&5
12846    echo "$as_me:12846: \$? = $ac_status" >&5
12847    if (exit $ac_status) && test -s "$ac_outfile"; then
12848      # The compiler can only warn and ignore the option if not recognized
12849      # So say no if there are warnings
12850      if test ! -s conftest.err; then
12851        lt_prog_compiler_pic_works=yes
12852      fi
12853    fi
12854    $rm conftest*
12855
12856 fi
12857 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12858 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12859
12860 if test x"$lt_prog_compiler_pic_works" = xyes; then
12861     case $lt_prog_compiler_pic in
12862      "" | " "*) ;;
12863      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12864      esac
12865 else
12866     lt_prog_compiler_pic=
12867      lt_prog_compiler_can_build_shared=no
12868 fi
12869
12870 fi
12871 case "$host_os" in
12872   # For platforms which do not support PIC, -DPIC is meaningless:
12873   *djgpp*)
12874     lt_prog_compiler_pic=
12875     ;;
12876   *)
12877     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12878     ;;
12879 esac
12880
12881 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12882 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12883 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12884   echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886   lt_cv_prog_compiler_c_o=no
12887    $rm -r conftest 2>/dev/null
12888    mkdir conftest
12889    cd conftest
12890    mkdir out
12891    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12892
12893    lt_compiler_flag="-o out/conftest2.$ac_objext"
12894    # Insert the option either (1) after the last *FLAGS variable, or
12895    # (2) before a word containing "conftest.", or (3) at the end.
12896    # Note that $ac_compile itself does not contain backslashes and begins
12897    # with a dollar sign (not a hyphen), so the echo should work correctly.
12898    lt_compile=`echo "$ac_compile" | $SED \
12899    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12900    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12901    -e 's:$: $lt_compiler_flag:'`
12902    (eval echo "\"\$as_me:12902: $lt_compile\"" >&5)
12903    (eval "$lt_compile" 2>out/conftest.err)
12904    ac_status=$?
12905    cat out/conftest.err >&5
12906    echo "$as_me:12906: \$? = $ac_status" >&5
12907    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12908    then
12909      # The compiler can only warn and ignore the option if not recognized
12910      # So say no if there are warnings
12911      if test ! -s out/conftest.err; then
12912        lt_cv_prog_compiler_c_o=yes
12913      fi
12914    fi
12915    chmod u+w .
12916    $rm conftest*
12917    # SGI C++ compiler will create directory out/ii_files/ for
12918    # template instantiation
12919    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12920    $rm out/* && rmdir out
12921    cd ..
12922    rmdir conftest
12923    $rm conftest*
12924
12925 fi
12926 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12927 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12928
12929
12930 hard_links="nottested"
12931 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12932   # do not overwrite the value of need_locks provided by the user
12933   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12934 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12935   hard_links=yes
12936   $rm conftest*
12937   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12938   touch conftest.a
12939   ln conftest.a conftest.b 2>&5 || hard_links=no
12940   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12941   echo "$as_me:$LINENO: result: $hard_links" >&5
12942 echo "${ECHO_T}$hard_links" >&6
12943   if test "$hard_links" = no; then
12944     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12945 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12946     need_locks=warn
12947   fi
12948 else
12949   need_locks=no
12950 fi
12951
12952 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12953 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12954
12955   runpath_var=
12956   allow_undefined_flag=
12957   enable_shared_with_static_runtimes=no
12958   archive_cmds=
12959   archive_expsym_cmds=
12960   old_archive_From_new_cmds=
12961   old_archive_from_expsyms_cmds=
12962   export_dynamic_flag_spec=
12963   whole_archive_flag_spec=
12964   thread_safe_flag_spec=
12965   hardcode_libdir_flag_spec=
12966   hardcode_libdir_flag_spec_ld=
12967   hardcode_libdir_separator=
12968   hardcode_direct=no
12969   hardcode_minus_L=no
12970   hardcode_shlibpath_var=unsupported
12971   link_all_deplibs=unknown
12972   hardcode_automatic=no
12973   module_cmds=
12974   module_expsym_cmds=
12975   always_export_symbols=no
12976   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12977   # include_expsyms should be a list of space-separated symbols to be *always*
12978   # included in the symbol list
12979   include_expsyms=
12980   # exclude_expsyms can be an extended regexp of symbols to exclude
12981   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12982   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12983   # as well as any symbol that contains `d'.
12984   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12985   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12986   # platforms (ab)use it in PIC code, but their linkers get confused if
12987   # the symbol is explicitly referenced.  Since portable code cannot
12988   # rely on this symbol name, it's probably fine to never include it in
12989   # preloaded symbol tables.
12990   extract_expsyms_cmds=
12991
12992   case $host_os in
12993   cygwin* | mingw* | pw32*)
12994     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12995     # When not using gcc, we currently assume that we are using
12996     # Microsoft Visual C++.
12997     if test "$GCC" != yes; then
12998       with_gnu_ld=no
12999     fi
13000     ;;
13001   openbsd*)
13002     with_gnu_ld=no
13003     ;;
13004   esac
13005
13006   ld_shlibs=yes
13007   if test "$with_gnu_ld" = yes; then
13008     # If archive_cmds runs LD, not CC, wlarc should be empty
13009     wlarc='${wl}'
13010
13011     # See if GNU ld supports shared libraries.
13012     case $host_os in
13013     aix3* | aix4* | aix5*)
13014       # On AIX/PPC, the GNU linker is very broken
13015       if test "$host_cpu" != ia64; then
13016         ld_shlibs=no
13017         cat <<EOF 1>&2
13018
13019 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13020 *** to be unable to reliably create shared libraries on AIX.
13021 *** Therefore, libtool is disabling shared libraries support.  If you
13022 *** really care for shared libraries, you may want to modify your PATH
13023 *** so that a non-GNU linker is found, and then restart.
13024
13025 EOF
13026       fi
13027       ;;
13028
13029     amigaos*)
13030       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)'
13031       hardcode_libdir_flag_spec='-L$libdir'
13032       hardcode_minus_L=yes
13033
13034       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13035       # that the semantics of dynamic libraries on AmigaOS, at least up
13036       # to version 4, is to share data among multiple programs linked
13037       # with the same dynamic library.  Since this doesn't match the
13038       # behavior of shared libraries on other platforms, we can't use
13039       # them.
13040       ld_shlibs=no
13041       ;;
13042
13043     beos*)
13044       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13045         allow_undefined_flag=unsupported
13046         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13047         # support --undefined.  This deserves some investigation.  FIXME
13048         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13049       else
13050         ld_shlibs=no
13051       fi
13052       ;;
13053
13054     cygwin* | mingw* | pw32*)
13055       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13056       # as there is no search path for DLLs.
13057       hardcode_libdir_flag_spec='-L$libdir'
13058       allow_undefined_flag=unsupported
13059       always_export_symbols=no
13060       enable_shared_with_static_runtimes=yes
13061       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13062
13063       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13064         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13065         # If the export-symbols file already is a .def file (1st line
13066         # is EXPORTS), use it as is; otherwise, prepend...
13067         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13068           cp $export_symbols $output_objdir/$soname.def;
13069         else
13070           echo EXPORTS > $output_objdir/$soname.def;
13071           cat $export_symbols >> $output_objdir/$soname.def;
13072         fi~
13073         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13074       else
13075         ld_shlibs=no
13076       fi
13077       ;;
13078
13079     netbsd*)
13080       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13081         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13082         wlarc=
13083       else
13084         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13085         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13086       fi
13087       ;;
13088
13089     solaris* | sysv5*)
13090       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13091         ld_shlibs=no
13092         cat <<EOF 1>&2
13093
13094 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13095 *** create shared libraries on Solaris systems.  Therefore, libtool
13096 *** is disabling shared libraries support.  We urge you to upgrade GNU
13097 *** binutils to release 2.9.1 or newer.  Another option is to modify
13098 *** your PATH or compiler configuration so that the native linker is
13099 *** used, and then restart.
13100
13101 EOF
13102       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13103         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13104         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13105       else
13106         ld_shlibs=no
13107       fi
13108       ;;
13109
13110     sunos4*)
13111       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13112       wlarc=
13113       hardcode_direct=yes
13114       hardcode_shlibpath_var=no
13115       ;;
13116
13117   linux*)
13118     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13119         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13120         archive_cmds="$tmp_archive_cmds"
13121       supports_anon_versioning=no
13122       case `$LD -v 2>/dev/null` in
13123         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13124         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13125         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13126         *\ 2.11.*) ;; # other 2.11 versions
13127         *) supports_anon_versioning=yes ;;
13128       esac
13129       if test $supports_anon_versioning = yes; then
13130         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13131 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13132 $echo "local: *; };" >> $output_objdir/$libname.ver~
13133         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13134       else
13135         archive_expsym_cmds="$tmp_archive_cmds"
13136       fi
13137     else
13138       ld_shlibs=no
13139     fi
13140     ;;
13141
13142     *)
13143       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13144         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13145         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13146       else
13147         ld_shlibs=no
13148       fi
13149       ;;
13150     esac
13151
13152     if test "$ld_shlibs" = yes; then
13153       runpath_var=LD_RUN_PATH
13154       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13155       export_dynamic_flag_spec='${wl}--export-dynamic'
13156       # ancient GNU ld didn't support --whole-archive et. al.
13157       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13158         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13159       else
13160         whole_archive_flag_spec=
13161       fi
13162     fi
13163   else
13164     # PORTME fill in a description of your system's linker (not GNU ld)
13165     case $host_os in
13166     aix3*)
13167       allow_undefined_flag=unsupported
13168       always_export_symbols=yes
13169       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'
13170       # Note: this linker hardcodes the directories in LIBPATH if there
13171       # are no directories specified by -L.
13172       hardcode_minus_L=yes
13173       if test "$GCC" = yes && test -z "$link_static_flag"; then
13174         # Neither direct hardcoding nor static linking is supported with a
13175         # broken collect2.
13176         hardcode_direct=unsupported
13177       fi
13178       ;;
13179
13180     aix4* | aix5*)
13181       if test "$host_cpu" = ia64; then
13182         # On IA64, the linker does run time linking by default, so we don't
13183         # have to do anything special.
13184         aix_use_runtimelinking=no
13185         exp_sym_flag='-Bexport'
13186         no_entry_flag=""
13187       else
13188         # If we're using GNU nm, then we don't want the "-C" option.
13189         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13190         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13191           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'
13192         else
13193           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'
13194         fi
13195         aix_use_runtimelinking=no
13196
13197         # Test if we are trying to use run time linking or normal
13198         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13199         # need to do runtime linking.
13200         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13201           for ld_flag in $LDFLAGS; do
13202           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13203             aix_use_runtimelinking=yes
13204             break
13205           fi
13206           done
13207         esac
13208
13209         exp_sym_flag='-bexport'
13210         no_entry_flag='-bnoentry'
13211       fi
13212
13213       # When large executables or shared objects are built, AIX ld can
13214       # have problems creating the table of contents.  If linking a library
13215       # or program results in "error TOC overflow" add -mminimal-toc to
13216       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13217       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13218
13219       archive_cmds=''
13220       hardcode_direct=yes
13221       hardcode_libdir_separator=':'
13222       link_all_deplibs=yes
13223
13224       if test "$GCC" = yes; then
13225         case $host_os in aix4.012|aix4.012.*)
13226         # We only want to do this on AIX 4.2 and lower, the check
13227         # below for broken collect2 doesn't work under 4.3+
13228           collect2name=`${CC} -print-prog-name=collect2`
13229           if test -f "$collect2name" && \
13230            strings "$collect2name" | grep resolve_lib_name >/dev/null
13231           then
13232           # We have reworked collect2
13233           hardcode_direct=yes
13234           else
13235           # We have old collect2
13236           hardcode_direct=unsupported
13237           # It fails to find uninstalled libraries when the uninstalled
13238           # path is not listed in the libpath.  Setting hardcode_minus_L
13239           # to unsupported forces relinking
13240           hardcode_minus_L=yes
13241           hardcode_libdir_flag_spec='-L$libdir'
13242           hardcode_libdir_separator=
13243           fi
13244         esac
13245         shared_flag='-shared'
13246       else
13247         # not using gcc
13248         if test "$host_cpu" = ia64; then
13249         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13250         # chokes on -Wl,-G. The following line is correct:
13251           shared_flag='-G'
13252         else
13253         if test "$aix_use_runtimelinking" = yes; then
13254             shared_flag='${wl}-G'
13255           else
13256             shared_flag='${wl}-bM:SRE'
13257         fi
13258         fi
13259       fi
13260
13261       # It seems that -bexpall does not export symbols beginning with
13262       # underscore (_), so it is better to generate a list of symbols to export.
13263       always_export_symbols=yes
13264       if test "$aix_use_runtimelinking" = yes; then
13265         # Warning - without using the other runtime loading flags (-brtl),
13266         # -berok will link without error, but may produce a broken library.
13267         allow_undefined_flag='-berok'
13268        # Determine the default libpath from the value encoded in an empty executable.
13269        cat >conftest.$ac_ext <<_ACEOF
13270 /* confdefs.h.  */
13271 _ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h.  */
13275
13276 int
13277 main ()
13278 {
13279
13280   ;
13281   return 0;
13282 }
13283 _ACEOF
13284 rm -f conftest.$ac_objext conftest$ac_exeext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13286   (eval $ac_link) 2>conftest.er1
13287   ac_status=$?
13288   grep -v '^ *+' conftest.er1 >conftest.err
13289   rm -f conftest.er1
13290   cat conftest.err >&5
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); } &&
13293          { ac_try='test -z "$ac_c_werror_flag"
13294                          || test ! -s conftest.err'
13295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296   (eval $ac_try) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; } &&
13300          { ac_try='test -s conftest$ac_exeext'
13301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302   (eval $ac_try) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }; }; then
13306
13307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13308 }'`
13309 # Check for a 64-bit object if we didn't find anything.
13310 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; }
13311 }'`; fi
13312 else
13313   echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13315
13316 fi
13317 rm -f conftest.err conftest.$ac_objext \
13318       conftest$ac_exeext conftest.$ac_ext
13319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13320
13321        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13322         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"
13323        else
13324         if test "$host_cpu" = ia64; then
13325           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13326           allow_undefined_flag="-z nodefs"
13327           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"
13328         else
13329          # Determine the default libpath from the value encoded in an empty executable.
13330          cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h.  */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h.  */
13336
13337 int
13338 main ()
13339 {
13340
13341   ;
13342   return 0;
13343 }
13344 _ACEOF
13345 rm -f conftest.$ac_objext conftest$ac_exeext
13346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13347   (eval $ac_link) 2>conftest.er1
13348   ac_status=$?
13349   grep -v '^ *+' conftest.er1 >conftest.err
13350   rm -f conftest.er1
13351   cat conftest.err >&5
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); } &&
13354          { ac_try='test -z "$ac_c_werror_flag"
13355                          || test ! -s conftest.err'
13356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357   (eval $ac_try) 2>&5
13358   ac_status=$?
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); }; } &&
13361          { ac_try='test -s conftest$ac_exeext'
13362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363   (eval $ac_try) 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); }; }; then
13367
13368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13369 }'`
13370 # Check for a 64-bit object if we didn't find anything.
13371 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; }
13372 }'`; fi
13373 else
13374   echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13376
13377 fi
13378 rm -f conftest.err conftest.$ac_objext \
13379       conftest$ac_exeext conftest.$ac_ext
13380 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13381
13382          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13383           # Warning - without using the other run time loading flags,
13384           # -berok will link without error, but may produce a broken library.
13385           no_undefined_flag=' ${wl}-bernotok'
13386           allow_undefined_flag=' ${wl}-berok'
13387           # -bexpall does not export symbols beginning with underscore (_)
13388           always_export_symbols=yes
13389           # Exported symbols can be pulled into shared objects from archives
13390           whole_archive_flag_spec=' '
13391           archive_cmds_need_lc=yes
13392           # This is similar to how AIX traditionally builds it's shared libraries.
13393           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'
13394         fi
13395       fi
13396       ;;
13397
13398     amigaos*)
13399       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)'
13400       hardcode_libdir_flag_spec='-L$libdir'
13401       hardcode_minus_L=yes
13402       # see comment about different semantics on the GNU ld section
13403       ld_shlibs=no
13404       ;;
13405
13406     bsdi4*)
13407       export_dynamic_flag_spec=-rdynamic
13408       ;;
13409
13410     cygwin* | mingw* | pw32*)
13411       # When not using gcc, we currently assume that we are using
13412       # Microsoft Visual C++.
13413       # hardcode_libdir_flag_spec is actually meaningless, as there is
13414       # no search path for DLLs.
13415       hardcode_libdir_flag_spec=' '
13416       allow_undefined_flag=unsupported
13417       # Tell ltmain to make .lib files, not .a files.
13418       libext=lib
13419       # Tell ltmain to make .dll files, not .so files.
13420       shrext_cmds=".dll"
13421       # FIXME: Setting linknames here is a bad hack.
13422       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13423       # The linker will automatically build a .lib file if we build a DLL.
13424       old_archive_From_new_cmds='true'
13425       # FIXME: Should let the user specify the lib program.
13426       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13427       fix_srcfile_path='`cygpath -w "$srcfile"`'
13428       enable_shared_with_static_runtimes=yes
13429       ;;
13430
13431     darwin* | rhapsody*)
13432     if test "$GXX" = yes ; then
13433       archive_cmds_need_lc=no
13434       case "$host_os" in
13435       rhapsody* | darwin1.[012])
13436         allow_undefined_flag='-undefined suppress'
13437         ;;
13438       *) # Darwin 1.3 on
13439       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13440         allow_undefined_flag='-flat_namespace -undefined suppress'
13441       else
13442         case ${MACOSX_DEPLOYMENT_TARGET} in
13443           10.[012])
13444             allow_undefined_flag='-flat_namespace -undefined suppress'
13445             ;;
13446           10.*)
13447             allow_undefined_flag='-undefined dynamic_lookup'
13448             ;;
13449         esac
13450       fi
13451         ;;
13452       esac
13453         lt_int_apple_cc_single_mod=no
13454         output_verbose_link_cmd='echo'
13455         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13456           lt_int_apple_cc_single_mod=yes
13457         fi
13458         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13459           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13460         else
13461         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13462       fi
13463       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13464       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13465         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13466           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13467         else
13468           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13469         fi
13470           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}'
13471       hardcode_direct=no
13472       hardcode_automatic=yes
13473       hardcode_shlibpath_var=unsupported
13474       whole_archive_flag_spec='-all_load $convenience'
13475       link_all_deplibs=yes
13476     else
13477       ld_shlibs=no
13478     fi
13479       ;;
13480
13481     dgux*)
13482       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13483       hardcode_libdir_flag_spec='-L$libdir'
13484       hardcode_shlibpath_var=no
13485       ;;
13486
13487     freebsd1*)
13488       ld_shlibs=no
13489       ;;
13490
13491     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13492     # support.  Future versions do this automatically, but an explicit c++rt0.o
13493     # does not break anything, and helps significantly (at the cost of a little
13494     # extra space).
13495     freebsd2.2*)
13496       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13497       hardcode_libdir_flag_spec='-R$libdir'
13498       hardcode_direct=yes
13499       hardcode_shlibpath_var=no
13500       ;;
13501
13502     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13503     freebsd2*)
13504       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13505       hardcode_direct=yes
13506       hardcode_minus_L=yes
13507       hardcode_shlibpath_var=no
13508       ;;
13509
13510     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13511     freebsd* | kfreebsd*-gnu)
13512       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13513       hardcode_libdir_flag_spec='-R$libdir'
13514       hardcode_direct=yes
13515       hardcode_shlibpath_var=no
13516       ;;
13517
13518     hpux9*)
13519       if test "$GCC" = yes; then
13520         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'
13521       else
13522         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'
13523       fi
13524       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13525       hardcode_libdir_separator=:
13526       hardcode_direct=yes
13527
13528       # hardcode_minus_L: Not really in the search PATH,
13529       # but as the default location of the library.
13530       hardcode_minus_L=yes
13531       export_dynamic_flag_spec='${wl}-E'
13532       ;;
13533
13534     hpux10* | hpux11*)
13535       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13536         case "$host_cpu" in
13537         hppa*64*|ia64*)
13538           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13539           ;;
13540         *)
13541           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13542           ;;
13543         esac
13544       else
13545         case "$host_cpu" in
13546         hppa*64*|ia64*)
13547           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13548           ;;
13549         *)
13550           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13551           ;;
13552         esac
13553       fi
13554       if test "$with_gnu_ld" = no; then
13555         case "$host_cpu" in
13556         hppa*64*)
13557           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13558           hardcode_libdir_flag_spec_ld='+b $libdir'
13559           hardcode_libdir_separator=:
13560           hardcode_direct=no
13561           hardcode_shlibpath_var=no
13562           ;;
13563         ia64*)
13564           hardcode_libdir_flag_spec='-L$libdir'
13565           hardcode_direct=no
13566           hardcode_shlibpath_var=no
13567
13568           # hardcode_minus_L: Not really in the search PATH,
13569           # but as the default location of the library.
13570           hardcode_minus_L=yes
13571           ;;
13572         *)
13573           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13574           hardcode_libdir_separator=:
13575           hardcode_direct=yes
13576           export_dynamic_flag_spec='${wl}-E'
13577
13578           # hardcode_minus_L: Not really in the search PATH,
13579           # but as the default location of the library.
13580           hardcode_minus_L=yes
13581           ;;
13582         esac
13583       fi
13584       ;;
13585
13586     irix5* | irix6* | nonstopux*)
13587       if test "$GCC" = yes; then
13588         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'
13589       else
13590         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'
13591         hardcode_libdir_flag_spec_ld='-rpath $libdir'
13592       fi
13593       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13594       hardcode_libdir_separator=:
13595       link_all_deplibs=yes
13596       ;;
13597
13598     netbsd*)
13599       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13600         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13601       else
13602         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13603       fi
13604       hardcode_libdir_flag_spec='-R$libdir'
13605       hardcode_direct=yes
13606       hardcode_shlibpath_var=no
13607       ;;
13608
13609     newsos6)
13610       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13611       hardcode_direct=yes
13612       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13613       hardcode_libdir_separator=:
13614       hardcode_shlibpath_var=no
13615       ;;
13616
13617     openbsd*)
13618       hardcode_direct=yes
13619       hardcode_shlibpath_var=no
13620       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13621         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13622         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13623         export_dynamic_flag_spec='${wl}-E'
13624       else
13625        case $host_os in
13626          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13627            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13628            hardcode_libdir_flag_spec='-R$libdir'
13629            ;;
13630          *)
13631            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13632            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13633            ;;
13634        esac
13635       fi
13636       ;;
13637
13638     os2*)
13639       hardcode_libdir_flag_spec='-L$libdir'
13640       hardcode_minus_L=yes
13641       allow_undefined_flag=unsupported
13642       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'
13643       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13644       ;;
13645
13646     osf3*)
13647       if test "$GCC" = yes; then
13648         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13649         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'
13650       else
13651         allow_undefined_flag=' -expect_unresolved \*'
13652         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'
13653       fi
13654       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13655       hardcode_libdir_separator=:
13656       ;;
13657
13658     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13659       if test "$GCC" = yes; then
13660         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13661         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'
13662         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13663       else
13664         allow_undefined_flag=' -expect_unresolved \*'
13665         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'
13666         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13667         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13668
13669         # Both c and cxx compiler support -rpath directly
13670         hardcode_libdir_flag_spec='-rpath $libdir'
13671       fi
13672       hardcode_libdir_separator=:
13673       ;;
13674
13675     sco3.2v5*)
13676       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13677       hardcode_shlibpath_var=no
13678       export_dynamic_flag_spec='${wl}-Bexport'
13679       runpath_var=LD_RUN_PATH
13680       hardcode_runpath_var=yes
13681       ;;
13682
13683     solaris*)
13684       no_undefined_flag=' -z text'
13685       if test "$GCC" = yes; then
13686         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13687         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13688           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13689       else
13690         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13691         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13692         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13693       fi
13694       hardcode_libdir_flag_spec='-R$libdir'
13695       hardcode_shlibpath_var=no
13696       case $host_os in
13697       solaris2.[0-5] | solaris2.[0-5].*) ;;
13698       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13699         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13700       esac
13701       link_all_deplibs=yes
13702       ;;
13703
13704     sunos4*)
13705       if test "x$host_vendor" = xsequent; then
13706         # Use $CC to link under sequent, because it throws in some extra .o
13707         # files that make .init and .fini sections work.
13708         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13709       else
13710         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13711       fi
13712       hardcode_libdir_flag_spec='-L$libdir'
13713       hardcode_direct=yes
13714       hardcode_minus_L=yes
13715       hardcode_shlibpath_var=no
13716       ;;
13717
13718     sysv4)
13719       case $host_vendor in
13720         sni)
13721           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13722           hardcode_direct=yes # is this really true???
13723         ;;
13724         siemens)
13725           ## LD is ld it makes a PLAMLIB
13726           ## CC just makes a GrossModule.
13727           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13728           reload_cmds='$CC -r -o $output$reload_objs'
13729           hardcode_direct=no
13730         ;;
13731         motorola)
13732           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13733           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13734         ;;
13735       esac
13736       runpath_var='LD_RUN_PATH'
13737       hardcode_shlibpath_var=no
13738       ;;
13739
13740     sysv4.3*)
13741       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13742       hardcode_shlibpath_var=no
13743       export_dynamic_flag_spec='-Bexport'
13744       ;;
13745
13746     sysv4*MP*)
13747       if test -d /usr/nec; then
13748         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13749         hardcode_shlibpath_var=no
13750         runpath_var=LD_RUN_PATH
13751         hardcode_runpath_var=yes
13752         ld_shlibs=yes
13753       fi
13754       ;;
13755
13756     sysv4.2uw2*)
13757       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13758       hardcode_direct=yes
13759       hardcode_minus_L=no
13760       hardcode_shlibpath_var=no
13761       hardcode_runpath_var=yes
13762       runpath_var=LD_RUN_PATH
13763       ;;
13764
13765    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13766       no_undefined_flag='${wl}-z ${wl}text'
13767       if test "$GCC" = yes; then
13768         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13769       else
13770         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13771       fi
13772       runpath_var='LD_RUN_PATH'
13773       hardcode_shlibpath_var=no
13774       ;;
13775
13776     sysv5*)
13777       no_undefined_flag=' -z text'
13778       # $CC -shared without GNU ld will not create a library from C++
13779       # object files and a static libstdc++, better avoid it by now
13780       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13781       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13782                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13783       hardcode_libdir_flag_spec=
13784       hardcode_shlibpath_var=no
13785       runpath_var='LD_RUN_PATH'
13786       ;;
13787
13788     uts4*)
13789       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13790       hardcode_libdir_flag_spec='-L$libdir'
13791       hardcode_shlibpath_var=no
13792       ;;
13793
13794     *)
13795       ld_shlibs=no
13796       ;;
13797     esac
13798   fi
13799
13800 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13801 echo "${ECHO_T}$ld_shlibs" >&6
13802 test "$ld_shlibs" = no && can_build_shared=no
13803
13804 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13805 if test "$GCC" = yes; then
13806   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13807 fi
13808
13809 #
13810 # Do we need to explicitly link libc?
13811 #
13812 case "x$archive_cmds_need_lc" in
13813 x|xyes)
13814   # Assume -lc should be added
13815   archive_cmds_need_lc=yes
13816
13817   if test "$enable_shared" = yes && test "$GCC" = yes; then
13818     case $archive_cmds in
13819     *'~'*)
13820       # FIXME: we may have to deal with multi-command sequences.
13821       ;;
13822     '$CC '*)
13823       # Test whether the compiler implicitly links with -lc since on some
13824       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13825       # to ld, don't add -lc before -lgcc.
13826       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13827 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13828       $rm conftest*
13829       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13830
13831       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832   (eval $ac_compile) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); } 2>conftest.err; then
13836         soname=conftest
13837         lib=conftest
13838         libobjs=conftest.$ac_objext
13839         deplibs=
13840         wl=$lt_prog_compiler_wl
13841         compiler_flags=-v
13842         linker_flags=-v
13843         verstring=
13844         output_objdir=.
13845         libname=conftest
13846         lt_save_allow_undefined_flag=$allow_undefined_flag
13847         allow_undefined_flag=
13848         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13849   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); }
13853         then
13854           archive_cmds_need_lc=no
13855         else
13856           archive_cmds_need_lc=yes
13857         fi
13858         allow_undefined_flag=$lt_save_allow_undefined_flag
13859       else
13860         cat conftest.err 1>&5
13861       fi
13862       $rm conftest*
13863       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13864 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13865       ;;
13866     esac
13867   fi
13868   ;;
13869 esac
13870
13871 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13872 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13873 library_names_spec=
13874 libname_spec='lib$name'
13875 soname_spec=
13876 shrext_cmds=".so"
13877 postinstall_cmds=
13878 postuninstall_cmds=
13879 finish_cmds=
13880 finish_eval=
13881 shlibpath_var=
13882 shlibpath_overrides_runpath=unknown
13883 version_type=none
13884 dynamic_linker="$host_os ld.so"
13885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13886 if test "$GCC" = yes; then
13887   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13888   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13889     # if the path contains ";" then we assume it to be the separator
13890     # otherwise default to the standard path separator (i.e. ":") - it is
13891     # assumed that no part of a normal pathname contains ";" but that should
13892     # okay in the real world where ";" in dirpaths is itself problematic.
13893     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13894   else
13895     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13896   fi
13897 else
13898   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13899 fi
13900 need_lib_prefix=unknown
13901 hardcode_into_libs=no
13902
13903 # when you set need_version to no, make sure it does not cause -set_version
13904 # flags to be left without arguments
13905 need_version=unknown
13906
13907 case $host_os in
13908 aix3*)
13909   version_type=linux
13910   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13911   shlibpath_var=LIBPATH
13912
13913   # AIX 3 has no versioning support, so we append a major version to the name.
13914   soname_spec='${libname}${release}${shared_ext}$major'
13915   ;;
13916
13917 aix4* | aix5*)
13918   version_type=linux
13919   need_lib_prefix=no
13920   need_version=no
13921   hardcode_into_libs=yes
13922   if test "$host_cpu" = ia64; then
13923     # AIX 5 supports IA64
13924     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13925     shlibpath_var=LD_LIBRARY_PATH
13926   else
13927     # With GCC up to 2.95.x, collect2 would create an import file
13928     # for dependence libraries.  The import file would start with
13929     # the line `#! .'.  This would cause the generated library to
13930     # depend on `.', always an invalid library.  This was fixed in
13931     # development snapshots of GCC prior to 3.0.
13932     case $host_os in
13933       aix4 | aix4.[01] | aix4.[01].*)
13934       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13935            echo ' yes '
13936            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13937         :
13938       else
13939         can_build_shared=no
13940       fi
13941       ;;
13942     esac
13943     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13944     # soname into executable. Probably we can add versioning support to
13945     # collect2, so additional links can be useful in future.
13946     if test "$aix_use_runtimelinking" = yes; then
13947       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13948       # instead of lib<name>.a to let people know that these are not
13949       # typical AIX shared libraries.
13950       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13951     else
13952       # We preserve .a as extension for shared libraries through AIX4.2
13953       # and later when we are not doing run time linking.
13954       library_names_spec='${libname}${release}.a $libname.a'
13955       soname_spec='${libname}${release}${shared_ext}$major'
13956     fi
13957     shlibpath_var=LIBPATH
13958   fi
13959   ;;
13960
13961 amigaos*)
13962   library_names_spec='$libname.ixlibrary $libname.a'
13963   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13964   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'
13965   ;;
13966
13967 beos*)
13968   library_names_spec='${libname}${shared_ext}'
13969   dynamic_linker="$host_os ld.so"
13970   shlibpath_var=LIBRARY_PATH
13971   ;;
13972
13973 bsdi4*)
13974   version_type=linux
13975   need_version=no
13976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13977   soname_spec='${libname}${release}${shared_ext}$major'
13978   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13979   shlibpath_var=LD_LIBRARY_PATH
13980   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13981   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13982   # the default ld.so.conf also contains /usr/contrib/lib and
13983   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13984   # libtool to hard-code these into programs
13985   ;;
13986
13987 cygwin* | mingw* | pw32*)
13988   version_type=windows
13989   shrext_cmds=".dll"
13990   need_version=no
13991   need_lib_prefix=no
13992
13993   case $GCC,$host_os in
13994   yes,cygwin* | yes,mingw* | yes,pw32*)
13995     library_names_spec='$libname.dll.a'
13996     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13997     postinstall_cmds='base_file=`basename \${file}`~
13998       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13999       dldir=$destdir/`dirname \$dlpath`~
14000       test -d \$dldir || mkdir -p \$dldir~
14001       $install_prog $dir/$dlname \$dldir/$dlname'
14002     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14003       dlpath=$dir/\$dldll~
14004        $rm \$dlpath'
14005     shlibpath_overrides_runpath=yes
14006
14007     case $host_os in
14008     cygwin*)
14009       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14010       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14011       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14012       ;;
14013     mingw*)
14014       # MinGW DLLs use traditional 'lib' prefix
14015       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14016       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14017       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14018         # It is most probably a Windows format PATH printed by
14019         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14020         # path with ; separators, and with drive letters. We can handle the
14021         # drive letters (cygwin fileutils understands them), so leave them,
14022         # especially as we might pass files found there to a mingw objdump,
14023         # which wouldn't understand a cygwinified path. Ahh.
14024         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14025       else
14026         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14027       fi
14028       ;;
14029     pw32*)
14030       # pw32 DLLs use 'pw' prefix rather than 'lib'
14031       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14032       ;;
14033     esac
14034     ;;
14035
14036   *)
14037     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14038     ;;
14039   esac
14040   dynamic_linker='Win32 ld.exe'
14041   # FIXME: first we should search . and the directory the executable is in
14042   shlibpath_var=PATH
14043   ;;
14044
14045 darwin* | rhapsody*)
14046   dynamic_linker="$host_os dyld"
14047   version_type=darwin
14048   need_lib_prefix=no
14049   need_version=no
14050   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14051   soname_spec='${libname}${release}${major}$shared_ext'
14052   shlibpath_overrides_runpath=yes
14053   shlibpath_var=DYLD_LIBRARY_PATH
14054   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14055   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14056   if test "$GCC" = yes; then
14057     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"`
14058   else
14059     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14060   fi
14061   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14062   ;;
14063
14064 dgux*)
14065   version_type=linux
14066   need_lib_prefix=no
14067   need_version=no
14068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14069   soname_spec='${libname}${release}${shared_ext}$major'
14070   shlibpath_var=LD_LIBRARY_PATH
14071   ;;
14072
14073 freebsd1*)
14074   dynamic_linker=no
14075   ;;
14076
14077 kfreebsd*-gnu)
14078   version_type=linux
14079   need_lib_prefix=no
14080   need_version=no
14081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14082   soname_spec='${libname}${release}${shared_ext}$major'
14083   shlibpath_var=LD_LIBRARY_PATH
14084   shlibpath_overrides_runpath=no
14085   hardcode_into_libs=yes
14086   dynamic_linker='GNU ld.so'
14087   ;;
14088
14089 freebsd*)
14090   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14091   version_type=freebsd-$objformat
14092   case $version_type in
14093     freebsd-elf*)
14094       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14095       need_version=no
14096       need_lib_prefix=no
14097       ;;
14098     freebsd-*)
14099       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14100       need_version=yes
14101       ;;
14102   esac
14103   shlibpath_var=LD_LIBRARY_PATH
14104   case $host_os in
14105   freebsd2*)
14106     shlibpath_overrides_runpath=yes
14107     ;;
14108   freebsd3.01* | freebsdelf3.01*)
14109     shlibpath_overrides_runpath=yes
14110     hardcode_into_libs=yes
14111     ;;
14112   *) # from 3.2 on
14113     shlibpath_overrides_runpath=no
14114     hardcode_into_libs=yes
14115     ;;
14116   esac
14117   ;;
14118
14119 gnu*)
14120   version_type=linux
14121   need_lib_prefix=no
14122   need_version=no
14123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14124   soname_spec='${libname}${release}${shared_ext}$major'
14125   shlibpath_var=LD_LIBRARY_PATH
14126   hardcode_into_libs=yes
14127   ;;
14128
14129 hpux9* | hpux10* | hpux11*)
14130   # Give a soname corresponding to the major version so that dld.sl refuses to
14131   # link against other versions.
14132   version_type=sunos
14133   need_lib_prefix=no
14134   need_version=no
14135   case "$host_cpu" in
14136   ia64*)
14137     shrext_cmds='.so'
14138     hardcode_into_libs=yes
14139     dynamic_linker="$host_os dld.so"
14140     shlibpath_var=LD_LIBRARY_PATH
14141     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14143     soname_spec='${libname}${release}${shared_ext}$major'
14144     if test "X$HPUX_IA64_MODE" = X32; then
14145       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14146     else
14147       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14148     fi
14149     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14150     ;;
14151    hppa*64*)
14152      shrext_cmds='.sl'
14153      hardcode_into_libs=yes
14154      dynamic_linker="$host_os dld.sl"
14155      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14156      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14157      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14158      soname_spec='${libname}${release}${shared_ext}$major'
14159      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14160      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14161      ;;
14162    *)
14163     shrext_cmds='.sl'
14164     dynamic_linker="$host_os dld.sl"
14165     shlibpath_var=SHLIB_PATH
14166     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168     soname_spec='${libname}${release}${shared_ext}$major'
14169     ;;
14170   esac
14171   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14172   postinstall_cmds='chmod 555 $lib'
14173   ;;
14174
14175 irix5* | irix6* | nonstopux*)
14176   case $host_os in
14177     nonstopux*) version_type=nonstopux ;;
14178     *)
14179         if test "$lt_cv_prog_gnu_ld" = yes; then
14180                 version_type=linux
14181         else
14182                 version_type=irix
14183         fi ;;
14184   esac
14185   need_lib_prefix=no
14186   need_version=no
14187   soname_spec='${libname}${release}${shared_ext}$major'
14188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14189   case $host_os in
14190   irix5* | nonstopux*)
14191     libsuff= shlibsuff=
14192     ;;
14193   *)
14194     case $LD in # libtool.m4 will add one of these switches to LD
14195     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14196       libsuff= shlibsuff= libmagic=32-bit;;
14197     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14198       libsuff=32 shlibsuff=N32 libmagic=N32;;
14199     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14200       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14201     *) libsuff= shlibsuff= libmagic=never-match;;
14202     esac
14203     ;;
14204   esac
14205   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14206   shlibpath_overrides_runpath=no
14207   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14208   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14209   hardcode_into_libs=yes
14210   ;;
14211
14212 # No shared lib support for Linux oldld, aout, or coff.
14213 linux*oldld* | linux*aout* | linux*coff*)
14214   dynamic_linker=no
14215   ;;
14216
14217 # This must be Linux ELF.
14218 linux*)
14219   version_type=linux
14220   need_lib_prefix=no
14221   need_version=no
14222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14223   soname_spec='${libname}${release}${shared_ext}$major'
14224   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14225   shlibpath_var=LD_LIBRARY_PATH
14226   shlibpath_overrides_runpath=no
14227   # This implies no fast_install, which is unacceptable.
14228   # Some rework will be needed to allow for fast_install
14229   # before this can be enabled.
14230   hardcode_into_libs=yes
14231
14232   # find out which ABI we are using
14233   libsuff=
14234   case "$host_cpu" in
14235   x86_64*|s390x*|powerpc64*)
14236     echo '#line 14236 "configure"' > conftest.$ac_ext
14237     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238   (eval $ac_compile) 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); }; then
14242       case `/usr/bin/file conftest.$ac_objext` in
14243       *64-bit*)
14244         libsuff=64
14245         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14246         ;;
14247       esac
14248     fi
14249     rm -rf conftest*
14250     ;;
14251   esac
14252
14253   # Append ld.so.conf contents to the search path
14254   if test -f /etc/ld.so.conf; then
14255     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14256     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14257   fi
14258
14259   # We used to test for /lib/ld.so.1 and disable shared libraries on
14260   # powerpc, because MkLinux only supported shared libraries with the
14261   # GNU dynamic linker.  Since this was broken with cross compilers,
14262   # most powerpc-linux boxes support dynamic linking these days and
14263   # people can always --disable-shared, the test was removed, and we
14264   # assume the GNU/Linux dynamic linker is in use.
14265   dynamic_linker='GNU/Linux ld.so'
14266   ;;
14267
14268 knetbsd*-gnu)
14269   version_type=linux
14270   need_lib_prefix=no
14271   need_version=no
14272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14273   soname_spec='${libname}${release}${shared_ext}$major'
14274   shlibpath_var=LD_LIBRARY_PATH
14275   shlibpath_overrides_runpath=no
14276   hardcode_into_libs=yes
14277   dynamic_linker='GNU ld.so'
14278   ;;
14279
14280 netbsd*)
14281   version_type=sunos
14282   need_lib_prefix=no
14283   need_version=no
14284   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14286     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14287     dynamic_linker='NetBSD (a.out) ld.so'
14288   else
14289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14290     soname_spec='${libname}${release}${shared_ext}$major'
14291     dynamic_linker='NetBSD ld.elf_so'
14292   fi
14293   shlibpath_var=LD_LIBRARY_PATH
14294   shlibpath_overrides_runpath=yes
14295   hardcode_into_libs=yes
14296   ;;
14297
14298 newsos6)
14299   version_type=linux
14300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14301   shlibpath_var=LD_LIBRARY_PATH
14302   shlibpath_overrides_runpath=yes
14303   ;;
14304
14305 nto-qnx*)
14306   version_type=linux
14307   need_lib_prefix=no
14308   need_version=no
14309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14310   soname_spec='${libname}${release}${shared_ext}$major'
14311   shlibpath_var=LD_LIBRARY_PATH
14312   shlibpath_overrides_runpath=yes
14313   ;;
14314
14315 openbsd*)
14316   version_type=sunos
14317   need_lib_prefix=no
14318   need_version=yes
14319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14320   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14321   shlibpath_var=LD_LIBRARY_PATH
14322   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14323     case $host_os in
14324       openbsd2.[89] | openbsd2.[89].*)
14325         shlibpath_overrides_runpath=no
14326         ;;
14327       *)
14328         shlibpath_overrides_runpath=yes
14329         ;;
14330       esac
14331   else
14332     shlibpath_overrides_runpath=yes
14333   fi
14334   ;;
14335
14336 os2*)
14337   libname_spec='$name'
14338   shrext_cmds=".dll"
14339   need_lib_prefix=no
14340   library_names_spec='$libname${shared_ext} $libname.a'
14341   dynamic_linker='OS/2 ld.exe'
14342   shlibpath_var=LIBPATH
14343   ;;
14344
14345 osf3* | osf4* | osf5*)
14346   version_type=osf
14347   need_lib_prefix=no
14348   need_version=no
14349   soname_spec='${libname}${release}${shared_ext}$major'
14350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14351   shlibpath_var=LD_LIBRARY_PATH
14352   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14353   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14354   ;;
14355
14356 sco3.2v5*)
14357   version_type=osf
14358   soname_spec='${libname}${release}${shared_ext}$major'
14359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14360   shlibpath_var=LD_LIBRARY_PATH
14361   ;;
14362
14363 solaris*)
14364   version_type=linux
14365   need_lib_prefix=no
14366   need_version=no
14367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368   soname_spec='${libname}${release}${shared_ext}$major'
14369   shlibpath_var=LD_LIBRARY_PATH
14370   shlibpath_overrides_runpath=yes
14371   hardcode_into_libs=yes
14372   # ldd complains unless libraries are executable
14373   postinstall_cmds='chmod +x $lib'
14374   ;;
14375
14376 sunos4*)
14377   version_type=sunos
14378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14379   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14380   shlibpath_var=LD_LIBRARY_PATH
14381   shlibpath_overrides_runpath=yes
14382   if test "$with_gnu_ld" = yes; then
14383     need_lib_prefix=no
14384   fi
14385   need_version=yes
14386   ;;
14387
14388 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14389   version_type=linux
14390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391   soname_spec='${libname}${release}${shared_ext}$major'
14392   shlibpath_var=LD_LIBRARY_PATH
14393   case $host_vendor in
14394     sni)
14395       shlibpath_overrides_runpath=no
14396       need_lib_prefix=no
14397       export_dynamic_flag_spec='${wl}-Blargedynsym'
14398       runpath_var=LD_RUN_PATH
14399       ;;
14400     siemens)
14401       need_lib_prefix=no
14402       ;;
14403     motorola)
14404       need_lib_prefix=no
14405       need_version=no
14406       shlibpath_overrides_runpath=no
14407       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14408       ;;
14409   esac
14410   ;;
14411
14412 sysv4*MP*)
14413   if test -d /usr/nec ;then
14414     version_type=linux
14415     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14416     soname_spec='$libname${shared_ext}.$major'
14417     shlibpath_var=LD_LIBRARY_PATH
14418   fi
14419   ;;
14420
14421 uts4*)
14422   version_type=linux
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   ;;
14427
14428 *)
14429   dynamic_linker=no
14430   ;;
14431 esac
14432 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14433 echo "${ECHO_T}$dynamic_linker" >&6
14434 test "$dynamic_linker" = no && can_build_shared=no
14435
14436 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14437 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14438 hardcode_action=
14439 if test -n "$hardcode_libdir_flag_spec" || \
14440    test -n "$runpath_var " || \
14441    test "X$hardcode_automatic"="Xyes" ; then
14442
14443   # We can hardcode non-existant directories.
14444   if test "$hardcode_direct" != no &&
14445      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14446      # have to relink, otherwise we might link with an installed library
14447      # when we should be linking with a yet-to-be-installed one
14448      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14449      test "$hardcode_minus_L" != no; then
14450     # Linking always hardcodes the temporary library directory.
14451     hardcode_action=relink
14452   else
14453     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14454     hardcode_action=immediate
14455   fi
14456 else
14457   # We cannot hardcode anything, or else we can only hardcode existing
14458   # directories.
14459   hardcode_action=unsupported
14460 fi
14461 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14462 echo "${ECHO_T}$hardcode_action" >&6
14463
14464 if test "$hardcode_action" = relink; then
14465   # Fast installation is not supported
14466   enable_fast_install=no
14467 elif test "$shlibpath_overrides_runpath" = yes ||
14468      test "$enable_shared" = no; then
14469   # Fast installation is not necessary
14470   enable_fast_install=needless
14471 fi
14472
14473 striplib=
14474 old_striplib=
14475 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14476 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14477 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14478   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14479   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14480   echo "$as_me:$LINENO: result: yes" >&5
14481 echo "${ECHO_T}yes" >&6
14482 else
14483 # FIXME - insert some real tests, host_os isn't really good enough
14484   case $host_os in
14485    darwin*)
14486        if test -n "$STRIP" ; then
14487          striplib="$STRIP -x"
14488          echo "$as_me:$LINENO: result: yes" >&5
14489 echo "${ECHO_T}yes" >&6
14490        else
14491   echo "$as_me:$LINENO: result: no" >&5
14492 echo "${ECHO_T}no" >&6
14493 fi
14494        ;;
14495    *)
14496   echo "$as_me:$LINENO: result: no" >&5
14497 echo "${ECHO_T}no" >&6
14498     ;;
14499   esac
14500 fi
14501
14502 if test "x$enable_dlopen" != xyes; then
14503   enable_dlopen=unknown
14504   enable_dlopen_self=unknown
14505   enable_dlopen_self_static=unknown
14506 else
14507   lt_cv_dlopen=no
14508   lt_cv_dlopen_libs=
14509
14510   case $host_os in
14511   beos*)
14512     lt_cv_dlopen="load_add_on"
14513     lt_cv_dlopen_libs=
14514     lt_cv_dlopen_self=yes
14515     ;;
14516
14517   mingw* | pw32*)
14518     lt_cv_dlopen="LoadLibrary"
14519     lt_cv_dlopen_libs=
14520    ;;
14521
14522   cygwin*)
14523     lt_cv_dlopen="dlopen"
14524     lt_cv_dlopen_libs=
14525    ;;
14526
14527   darwin*)
14528   # if libdl is installed we need to link against it
14529     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14530 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14531 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14532   echo $ECHO_N "(cached) $ECHO_C" >&6
14533 else
14534   ac_check_lib_save_LIBS=$LIBS
14535 LIBS="-ldl  $LIBS"
14536 cat >conftest.$ac_ext <<_ACEOF
14537 /* confdefs.h.  */
14538 _ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h.  */
14542
14543 /* Override any gcc2 internal prototype to avoid an error.  */
14544 #ifdef __cplusplus
14545 extern "C"
14546 #endif
14547 /* We use char because int might match the return type of a gcc2
14548    builtin and then its argument prototype would still apply.  */
14549 char dlopen ();
14550 int
14551 main ()
14552 {
14553 dlopen ();
14554   ;
14555   return 0;
14556 }
14557 _ACEOF
14558 rm -f conftest.$ac_objext conftest$ac_exeext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14560   (eval $ac_link) 2>conftest.er1
14561   ac_status=$?
14562   grep -v '^ *+' conftest.er1 >conftest.err
14563   rm -f conftest.er1
14564   cat conftest.err >&5
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } &&
14567          { ac_try='test -z "$ac_c_werror_flag"
14568                          || test ! -s conftest.err'
14569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570   (eval $ac_try) 2>&5
14571   ac_status=$?
14572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); }; } &&
14574          { ac_try='test -s conftest$ac_exeext'
14575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576   (eval $ac_try) 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; }; then
14580   ac_cv_lib_dl_dlopen=yes
14581 else
14582   echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14584
14585 ac_cv_lib_dl_dlopen=no
14586 fi
14587 rm -f conftest.err conftest.$ac_objext \
14588       conftest$ac_exeext conftest.$ac_ext
14589 LIBS=$ac_check_lib_save_LIBS
14590 fi
14591 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14592 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14593 if test $ac_cv_lib_dl_dlopen = yes; then
14594   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14595 else
14596
14597     lt_cv_dlopen="dyld"
14598     lt_cv_dlopen_libs=
14599     lt_cv_dlopen_self=yes
14600
14601 fi
14602
14603    ;;
14604
14605   *)
14606     echo "$as_me:$LINENO: checking for shl_load" >&5
14607 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14608 if test "${ac_cv_func_shl_load+set}" = set; then
14609   echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611   cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14619 #define shl_load innocuous_shl_load
14620
14621 /* System header to define __stub macros and hopefully few prototypes,
14622     which can conflict with char shl_load (); below.
14623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14624     <limits.h> exists even on freestanding compilers.  */
14625
14626 #ifdef __STDC__
14627 # include <limits.h>
14628 #else
14629 # include <assert.h>
14630 #endif
14631
14632 #undef shl_load
14633
14634 /* Override any gcc2 internal prototype to avoid an error.  */
14635 #ifdef __cplusplus
14636 extern "C"
14637 {
14638 #endif
14639 /* We use char because int might match the return type of a gcc2
14640    builtin and then its argument prototype would still apply.  */
14641 char shl_load ();
14642 /* The GNU C library defines this for functions which it implements
14643     to always fail with ENOSYS.  Some functions are actually named
14644     something starting with __ and the normal name is an alias.  */
14645 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14646 choke me
14647 #else
14648 char (*f) () = shl_load;
14649 #endif
14650 #ifdef __cplusplus
14651 }
14652 #endif
14653
14654 int
14655 main ()
14656 {
14657 return f != shl_load;
14658   ;
14659   return 0;
14660 }
14661 _ACEOF
14662 rm -f conftest.$ac_objext conftest$ac_exeext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14664   (eval $ac_link) 2>conftest.er1
14665   ac_status=$?
14666   grep -v '^ *+' conftest.er1 >conftest.err
14667   rm -f conftest.er1
14668   cat conftest.err >&5
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); } &&
14671          { ac_try='test -z "$ac_c_werror_flag"
14672                          || test ! -s conftest.err'
14673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674   (eval $ac_try) 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); }; } &&
14678          { ac_try='test -s conftest$ac_exeext'
14679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680   (eval $ac_try) 2>&5
14681   ac_status=$?
14682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); }; }; then
14684   ac_cv_func_shl_load=yes
14685 else
14686   echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 ac_cv_func_shl_load=no
14690 fi
14691 rm -f conftest.err conftest.$ac_objext \
14692       conftest$ac_exeext conftest.$ac_ext
14693 fi
14694 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14695 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14696 if test $ac_cv_func_shl_load = yes; then
14697   lt_cv_dlopen="shl_load"
14698 else
14699   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14700 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14701 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14702   echo $ECHO_N "(cached) $ECHO_C" >&6
14703 else
14704   ac_check_lib_save_LIBS=$LIBS
14705 LIBS="-ldld  $LIBS"
14706 cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h.  */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h.  */
14712
14713 /* Override any gcc2 internal prototype to avoid an error.  */
14714 #ifdef __cplusplus
14715 extern "C"
14716 #endif
14717 /* We use char because int might match the return type of a gcc2
14718    builtin and then its argument prototype would still apply.  */
14719 char shl_load ();
14720 int
14721 main ()
14722 {
14723 shl_load ();
14724   ;
14725   return 0;
14726 }
14727 _ACEOF
14728 rm -f conftest.$ac_objext conftest$ac_exeext
14729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14730   (eval $ac_link) 2>conftest.er1
14731   ac_status=$?
14732   grep -v '^ *+' conftest.er1 >conftest.err
14733   rm -f conftest.er1
14734   cat conftest.err >&5
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); } &&
14737          { ac_try='test -z "$ac_c_werror_flag"
14738                          || test ! -s conftest.err'
14739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740   (eval $ac_try) 2>&5
14741   ac_status=$?
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); }; } &&
14744          { ac_try='test -s conftest$ac_exeext'
14745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746   (eval $ac_try) 2>&5
14747   ac_status=$?
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); }; }; then
14750   ac_cv_lib_dld_shl_load=yes
14751 else
14752   echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14754
14755 ac_cv_lib_dld_shl_load=no
14756 fi
14757 rm -f conftest.err conftest.$ac_objext \
14758       conftest$ac_exeext conftest.$ac_ext
14759 LIBS=$ac_check_lib_save_LIBS
14760 fi
14761 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14762 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14763 if test $ac_cv_lib_dld_shl_load = yes; then
14764   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14765 else
14766   echo "$as_me:$LINENO: checking for dlopen" >&5
14767 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14768 if test "${ac_cv_func_dlopen+set}" = set; then
14769   echo $ECHO_N "(cached) $ECHO_C" >&6
14770 else
14771   cat >conftest.$ac_ext <<_ACEOF
14772 /* confdefs.h.  */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h.  */
14777 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14779 #define dlopen innocuous_dlopen
14780
14781 /* System header to define __stub macros and hopefully few prototypes,
14782     which can conflict with char dlopen (); below.
14783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14784     <limits.h> exists even on freestanding compilers.  */
14785
14786 #ifdef __STDC__
14787 # include <limits.h>
14788 #else
14789 # include <assert.h>
14790 #endif
14791
14792 #undef dlopen
14793
14794 /* Override any gcc2 internal prototype to avoid an error.  */
14795 #ifdef __cplusplus
14796 extern "C"
14797 {
14798 #endif
14799 /* We use char because int might match the return type of a gcc2
14800    builtin and then its argument prototype would still apply.  */
14801 char dlopen ();
14802 /* The GNU C library defines this for functions which it implements
14803     to always fail with ENOSYS.  Some functions are actually named
14804     something starting with __ and the normal name is an alias.  */
14805 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14806 choke me
14807 #else
14808 char (*f) () = dlopen;
14809 #endif
14810 #ifdef __cplusplus
14811 }
14812 #endif
14813
14814 int
14815 main ()
14816 {
14817 return f != dlopen;
14818   ;
14819   return 0;
14820 }
14821 _ACEOF
14822 rm -f conftest.$ac_objext conftest$ac_exeext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824   (eval $ac_link) 2>conftest.er1
14825   ac_status=$?
14826   grep -v '^ *+' conftest.er1 >conftest.err
14827   rm -f conftest.er1
14828   cat conftest.err >&5
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   (exit $ac_status); } &&
14831          { ac_try='test -z "$ac_c_werror_flag"
14832                          || test ! -s conftest.err'
14833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834   (eval $ac_try) 2>&5
14835   ac_status=$?
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); }; } &&
14838          { ac_try='test -s conftest$ac_exeext'
14839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840   (eval $ac_try) 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); }; }; then
14844   ac_cv_func_dlopen=yes
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 ac_cv_func_dlopen=no
14850 fi
14851 rm -f conftest.err conftest.$ac_objext \
14852       conftest$ac_exeext conftest.$ac_ext
14853 fi
14854 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14855 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14856 if test $ac_cv_func_dlopen = yes; then
14857   lt_cv_dlopen="dlopen"
14858 else
14859   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14860 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14861 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14862   echo $ECHO_N "(cached) $ECHO_C" >&6
14863 else
14864   ac_check_lib_save_LIBS=$LIBS
14865 LIBS="-ldl  $LIBS"
14866 cat >conftest.$ac_ext <<_ACEOF
14867 /* confdefs.h.  */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h.  */
14872
14873 /* Override any gcc2 internal prototype to avoid an error.  */
14874 #ifdef __cplusplus
14875 extern "C"
14876 #endif
14877 /* We use char because int might match the return type of a gcc2
14878    builtin and then its argument prototype would still apply.  */
14879 char dlopen ();
14880 int
14881 main ()
14882 {
14883 dlopen ();
14884   ;
14885   return 0;
14886 }
14887 _ACEOF
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890   (eval $ac_link) 2>conftest.er1
14891   ac_status=$?
14892   grep -v '^ *+' conftest.er1 >conftest.err
14893   rm -f conftest.er1
14894   cat conftest.err >&5
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); } &&
14897          { ac_try='test -z "$ac_c_werror_flag"
14898                          || test ! -s conftest.err'
14899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900   (eval $ac_try) 2>&5
14901   ac_status=$?
14902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); }; } &&
14904          { ac_try='test -s conftest$ac_exeext'
14905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906   (eval $ac_try) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; }; then
14910   ac_cv_lib_dl_dlopen=yes
14911 else
14912   echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14914
14915 ac_cv_lib_dl_dlopen=no
14916 fi
14917 rm -f conftest.err conftest.$ac_objext \
14918       conftest$ac_exeext conftest.$ac_ext
14919 LIBS=$ac_check_lib_save_LIBS
14920 fi
14921 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14922 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14923 if test $ac_cv_lib_dl_dlopen = yes; then
14924   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14925 else
14926   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14927 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14928 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14929   echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931   ac_check_lib_save_LIBS=$LIBS
14932 LIBS="-lsvld  $LIBS"
14933 cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h.  */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h.  */
14939
14940 /* Override any gcc2 internal prototype to avoid an error.  */
14941 #ifdef __cplusplus
14942 extern "C"
14943 #endif
14944 /* We use char because int might match the return type of a gcc2
14945    builtin and then its argument prototype would still apply.  */
14946 char dlopen ();
14947 int
14948 main ()
14949 {
14950 dlopen ();
14951   ;
14952   return 0;
14953 }
14954 _ACEOF
14955 rm -f conftest.$ac_objext conftest$ac_exeext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14957   (eval $ac_link) 2>conftest.er1
14958   ac_status=$?
14959   grep -v '^ *+' conftest.er1 >conftest.err
14960   rm -f conftest.er1
14961   cat conftest.err >&5
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); } &&
14964          { ac_try='test -z "$ac_c_werror_flag"
14965                          || test ! -s conftest.err'
14966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967   (eval $ac_try) 2>&5
14968   ac_status=$?
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); }; } &&
14971          { ac_try='test -s conftest$ac_exeext'
14972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973   (eval $ac_try) 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); }; }; then
14977   ac_cv_lib_svld_dlopen=yes
14978 else
14979   echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14981
14982 ac_cv_lib_svld_dlopen=no
14983 fi
14984 rm -f conftest.err conftest.$ac_objext \
14985       conftest$ac_exeext conftest.$ac_ext
14986 LIBS=$ac_check_lib_save_LIBS
14987 fi
14988 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14989 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14990 if test $ac_cv_lib_svld_dlopen = yes; then
14991   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14992 else
14993   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14994 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14995 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14996   echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998   ac_check_lib_save_LIBS=$LIBS
14999 LIBS="-ldld  $LIBS"
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h.  */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h.  */
15006
15007 /* Override any gcc2 internal prototype to avoid an error.  */
15008 #ifdef __cplusplus
15009 extern "C"
15010 #endif
15011 /* We use char because int might match the return type of a gcc2
15012    builtin and then its argument prototype would still apply.  */
15013 char dld_link ();
15014 int
15015 main ()
15016 {
15017 dld_link ();
15018   ;
15019   return 0;
15020 }
15021 _ACEOF
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15024   (eval $ac_link) 2>conftest.er1
15025   ac_status=$?
15026   grep -v '^ *+' conftest.er1 >conftest.err
15027   rm -f conftest.er1
15028   cat conftest.err >&5
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); } &&
15031          { ac_try='test -z "$ac_c_werror_flag"
15032                          || test ! -s conftest.err'
15033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034   (eval $ac_try) 2>&5
15035   ac_status=$?
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); }; } &&
15038          { ac_try='test -s conftest$ac_exeext'
15039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040   (eval $ac_try) 2>&5
15041   ac_status=$?
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); }; }; then
15044   ac_cv_lib_dld_dld_link=yes
15045 else
15046   echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15048
15049 ac_cv_lib_dld_dld_link=no
15050 fi
15051 rm -f conftest.err conftest.$ac_objext \
15052       conftest$ac_exeext conftest.$ac_ext
15053 LIBS=$ac_check_lib_save_LIBS
15054 fi
15055 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15056 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15057 if test $ac_cv_lib_dld_dld_link = yes; then
15058   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15059 fi
15060
15061
15062 fi
15063
15064
15065 fi
15066
15067
15068 fi
15069
15070
15071 fi
15072
15073
15074 fi
15075
15076     ;;
15077   esac
15078
15079   if test "x$lt_cv_dlopen" != xno; then
15080     enable_dlopen=yes
15081   else
15082     enable_dlopen=no
15083   fi
15084
15085   case $lt_cv_dlopen in
15086   dlopen)
15087     save_CPPFLAGS="$CPPFLAGS"
15088     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15089
15090     save_LDFLAGS="$LDFLAGS"
15091     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15092
15093     save_LIBS="$LIBS"
15094     LIBS="$lt_cv_dlopen_libs $LIBS"
15095
15096     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15097 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15098 if test "${lt_cv_dlopen_self+set}" = set; then
15099   echo $ECHO_N "(cached) $ECHO_C" >&6
15100 else
15101           if test "$cross_compiling" = yes; then :
15102   lt_cv_dlopen_self=cross
15103 else
15104   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15105   lt_status=$lt_dlunknown
15106   cat > conftest.$ac_ext <<EOF
15107 #line 15107 "configure"
15108 #include "confdefs.h"
15109
15110 #if HAVE_DLFCN_H
15111 #include <dlfcn.h>
15112 #endif
15113
15114 #include <stdio.h>
15115
15116 #ifdef RTLD_GLOBAL
15117 #  define LT_DLGLOBAL           RTLD_GLOBAL
15118 #else
15119 #  ifdef DL_GLOBAL
15120 #    define LT_DLGLOBAL         DL_GLOBAL
15121 #  else
15122 #    define LT_DLGLOBAL         0
15123 #  endif
15124 #endif
15125
15126 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15127    find out it does not work in some platform. */
15128 #ifndef LT_DLLAZY_OR_NOW
15129 #  ifdef RTLD_LAZY
15130 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15131 #  else
15132 #    ifdef DL_LAZY
15133 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15134 #    else
15135 #      ifdef RTLD_NOW
15136 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15137 #      else
15138 #        ifdef DL_NOW
15139 #          define LT_DLLAZY_OR_NOW      DL_NOW
15140 #        else
15141 #          define LT_DLLAZY_OR_NOW      0
15142 #        endif
15143 #      endif
15144 #    endif
15145 #  endif
15146 #endif
15147
15148 #ifdef __cplusplus
15149 extern "C" void exit (int);
15150 #endif
15151
15152 void fnord() { int i=42;}
15153 int main ()
15154 {
15155   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15156   int status = $lt_dlunknown;
15157
15158   if (self)
15159     {
15160       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15161       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15162       /* dlclose (self); */
15163     }
15164
15165     exit (status);
15166 }
15167 EOF
15168   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15169   (eval $ac_link) 2>&5
15170   ac_status=$?
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15173     (./conftest; exit; ) 2>/dev/null
15174     lt_status=$?
15175     case x$lt_status in
15176       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15177       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15178       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15179     esac
15180   else :
15181     # compilation failed
15182     lt_cv_dlopen_self=no
15183   fi
15184 fi
15185 rm -fr conftest*
15186
15187
15188 fi
15189 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15190 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15191
15192     if test "x$lt_cv_dlopen_self" = xyes; then
15193       LDFLAGS="$LDFLAGS $link_static_flag"
15194       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15195 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15196 if test "${lt_cv_dlopen_self_static+set}" = set; then
15197   echo $ECHO_N "(cached) $ECHO_C" >&6
15198 else
15199           if test "$cross_compiling" = yes; then :
15200   lt_cv_dlopen_self_static=cross
15201 else
15202   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15203   lt_status=$lt_dlunknown
15204   cat > conftest.$ac_ext <<EOF
15205 #line 15205 "configure"
15206 #include "confdefs.h"
15207
15208 #if HAVE_DLFCN_H
15209 #include <dlfcn.h>
15210 #endif
15211
15212 #include <stdio.h>
15213
15214 #ifdef RTLD_GLOBAL
15215 #  define LT_DLGLOBAL           RTLD_GLOBAL
15216 #else
15217 #  ifdef DL_GLOBAL
15218 #    define LT_DLGLOBAL         DL_GLOBAL
15219 #  else
15220 #    define LT_DLGLOBAL         0
15221 #  endif
15222 #endif
15223
15224 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15225    find out it does not work in some platform. */
15226 #ifndef LT_DLLAZY_OR_NOW
15227 #  ifdef RTLD_LAZY
15228 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15229 #  else
15230 #    ifdef DL_LAZY
15231 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15232 #    else
15233 #      ifdef RTLD_NOW
15234 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15235 #      else
15236 #        ifdef DL_NOW
15237 #          define LT_DLLAZY_OR_NOW      DL_NOW
15238 #        else
15239 #          define LT_DLLAZY_OR_NOW      0
15240 #        endif
15241 #      endif
15242 #    endif
15243 #  endif
15244 #endif
15245
15246 #ifdef __cplusplus
15247 extern "C" void exit (int);
15248 #endif
15249
15250 void fnord() { int i=42;}
15251 int main ()
15252 {
15253   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15254   int status = $lt_dlunknown;
15255
15256   if (self)
15257     {
15258       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15259       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15260       /* dlclose (self); */
15261     }
15262
15263     exit (status);
15264 }
15265 EOF
15266   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15267   (eval $ac_link) 2>&5
15268   ac_status=$?
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15271     (./conftest; exit; ) 2>/dev/null
15272     lt_status=$?
15273     case x$lt_status in
15274       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15275       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15276       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15277     esac
15278   else :
15279     # compilation failed
15280     lt_cv_dlopen_self_static=no
15281   fi
15282 fi
15283 rm -fr conftest*
15284
15285
15286 fi
15287 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15288 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15289     fi
15290
15291     CPPFLAGS="$save_CPPFLAGS"
15292     LDFLAGS="$save_LDFLAGS"
15293     LIBS="$save_LIBS"
15294     ;;
15295   esac
15296
15297   case $lt_cv_dlopen_self in
15298   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15299   *) enable_dlopen_self=unknown ;;
15300   esac
15301
15302   case $lt_cv_dlopen_self_static in
15303   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15304   *) enable_dlopen_self_static=unknown ;;
15305   esac
15306 fi
15307
15308
15309 # Report which librarie types wil actually be built
15310 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15311 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15312 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15313 echo "${ECHO_T}$can_build_shared" >&6
15314
15315 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15316 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15317 test "$can_build_shared" = "no" && enable_shared=no
15318
15319 # On AIX, shared libraries and static libraries use the same namespace, and
15320 # are all built from PIC.
15321 case "$host_os" in
15322 aix3*)
15323   test "$enable_shared" = yes && enable_static=no
15324   if test -n "$RANLIB"; then
15325     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15326     postinstall_cmds='$RANLIB $lib'
15327   fi
15328   ;;
15329
15330 aix4* | aix5*)
15331   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15332     test "$enable_shared" = yes && enable_static=no
15333   fi
15334   ;;
15335   darwin* | rhapsody*)
15336   if test "$GCC" = yes; then
15337     archive_cmds_need_lc=no
15338     case "$host_os" in
15339     rhapsody* | darwin1.[012])
15340       allow_undefined_flag='-undefined suppress'
15341       ;;
15342     *) # Darwin 1.3 on
15343       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15344         allow_undefined_flag='-flat_namespace -undefined suppress'
15345       else
15346         case ${MACOSX_DEPLOYMENT_TARGET} in
15347           10.[012])
15348             allow_undefined_flag='-flat_namespace -undefined suppress'
15349             ;;
15350           10.*)
15351             allow_undefined_flag='-undefined dynamic_lookup'
15352             ;;
15353         esac
15354       fi
15355       ;;
15356     esac
15357     output_verbose_link_cmd='echo'
15358     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
15359     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15360     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15361     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}'
15362     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}'
15363     hardcode_direct=no
15364     hardcode_automatic=yes
15365     hardcode_shlibpath_var=unsupported
15366     whole_archive_flag_spec='-all_load $convenience'
15367     link_all_deplibs=yes
15368   else
15369     ld_shlibs=no
15370   fi
15371     ;;
15372 esac
15373 echo "$as_me:$LINENO: result: $enable_shared" >&5
15374 echo "${ECHO_T}$enable_shared" >&6
15375
15376 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15377 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15378 # Make sure either enable_shared or enable_static is yes.
15379 test "$enable_shared" = yes || enable_static=yes
15380 echo "$as_me:$LINENO: result: $enable_static" >&5
15381 echo "${ECHO_T}$enable_static" >&6
15382
15383 # The else clause should only fire when bootstrapping the
15384 # libtool distribution, otherwise you forgot to ship ltmain.sh
15385 # with your package, and you will get complaints that there are
15386 # no rules to generate ltmain.sh.
15387 if test -f "$ltmain"; then
15388   # See if we are running on zsh, and set the options which allow our commands through
15389   # without removal of \ escapes.
15390   if test -n "${ZSH_VERSION+set}" ; then
15391     setopt NO_GLOB_SUBST
15392   fi
15393   # Now quote all the things that may contain metacharacters while being
15394   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15395   # variables and quote the copies for generation of the libtool script.
15396   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15397     SED SHELL STRIP \
15398     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15399     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15400     deplibs_check_method reload_flag reload_cmds need_locks \
15401     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15402     lt_cv_sys_global_symbol_to_c_name_address \
15403     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15404     old_postinstall_cmds old_postuninstall_cmds \
15405     compiler \
15406     CC \
15407     LD \
15408     lt_prog_compiler_wl \
15409     lt_prog_compiler_pic \
15410     lt_prog_compiler_static \
15411     lt_prog_compiler_no_builtin_flag \
15412     export_dynamic_flag_spec \
15413     thread_safe_flag_spec \
15414     whole_archive_flag_spec \
15415     enable_shared_with_static_runtimes \
15416     old_archive_cmds \
15417     old_archive_from_new_cmds \
15418     predep_objects \
15419     postdep_objects \
15420     predeps \
15421     postdeps \
15422     compiler_lib_search_path \
15423     archive_cmds \
15424     archive_expsym_cmds \
15425     postinstall_cmds \
15426     postuninstall_cmds \
15427     old_archive_from_expsyms_cmds \
15428     allow_undefined_flag \
15429     no_undefined_flag \
15430     export_symbols_cmds \
15431     hardcode_libdir_flag_spec \
15432     hardcode_libdir_flag_spec_ld \
15433     hardcode_libdir_separator \
15434     hardcode_automatic \
15435     module_cmds \
15436     module_expsym_cmds \
15437     lt_cv_prog_compiler_c_o \
15438     exclude_expsyms \
15439     include_expsyms; do
15440
15441     case $var in
15442     old_archive_cmds | \
15443     old_archive_from_new_cmds | \
15444     archive_cmds | \
15445     archive_expsym_cmds | \
15446     module_cmds | \
15447     module_expsym_cmds | \
15448     old_archive_from_expsyms_cmds | \
15449     export_symbols_cmds | \
15450     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15451     postinstall_cmds | postuninstall_cmds | \
15452     old_postinstall_cmds | old_postuninstall_cmds | \
15453     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15454       # Double-quote double-evaled strings.
15455       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15456       ;;
15457     *)
15458       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15459       ;;
15460     esac
15461   done
15462
15463   case $lt_echo in
15464   *'\$0 --fallback-echo"')
15465     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15466     ;;
15467   esac
15468
15469 cfgfile="${ofile}T"
15470   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15471   $rm -f "$cfgfile"
15472   { echo "$as_me:$LINENO: creating $ofile" >&5
15473 echo "$as_me: creating $ofile" >&6;}
15474
15475   cat <<__EOF__ >> "$cfgfile"
15476 #! $SHELL
15477
15478 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15479 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15480 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15481 #
15482 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15483 # Free Software Foundation, Inc.
15484 #
15485 # This file is part of GNU Libtool:
15486 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15487 #
15488 # This program is free software; you can redistribute it and/or modify
15489 # it under the terms of the GNU General Public License as published by
15490 # the Free Software Foundation; either version 2 of the License, or
15491 # (at your option) any later version.
15492 #
15493 # This program is distributed in the hope that it will be useful, but
15494 # WITHOUT ANY WARRANTY; without even the implied warranty of
15495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15496 # General Public License for more details.
15497 #
15498 # You should have received a copy of the GNU General Public License
15499 # along with this program; if not, write to the Free Software
15500 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15501 #
15502 # As a special exception to the GNU General Public License, if you
15503 # distribute this file as part of a program that contains a
15504 # configuration script generated by Autoconf, you may include it under
15505 # the same distribution terms that you use for the rest of that program.
15506
15507 # A sed program that does not truncate output.
15508 SED=$lt_SED
15509
15510 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15511 Xsed="$SED -e s/^X//"
15512
15513 # The HP-UX ksh and POSIX shell print the target directory to stdout
15514 # if CDPATH is set.
15515 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
15516
15517 # The names of the tagged configurations supported by this script.
15518 available_tags=
15519
15520 # ### BEGIN LIBTOOL CONFIG
15521
15522 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15523
15524 # Shell to use when invoking shell scripts.
15525 SHELL=$lt_SHELL
15526
15527 # Whether or not to build shared libraries.
15528 build_libtool_libs=$enable_shared
15529
15530 # Whether or not to build static libraries.
15531 build_old_libs=$enable_static
15532
15533 # Whether or not to add -lc for building shared libraries.
15534 build_libtool_need_lc=$archive_cmds_need_lc
15535
15536 # Whether or not to disallow shared libs when runtime libs are static
15537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15538
15539 # Whether or not to optimize for fast installation.
15540 fast_install=$enable_fast_install
15541
15542 # The host system.
15543 host_alias=$host_alias
15544 host=$host
15545
15546 # An echo program that does not interpret backslashes.
15547 echo=$lt_echo
15548
15549 # The archiver.
15550 AR=$lt_AR
15551 AR_FLAGS=$lt_AR_FLAGS
15552
15553 # A C compiler.
15554 LTCC=$lt_LTCC
15555
15556 # A language-specific compiler.
15557 CC=$lt_compiler
15558
15559 # Is the compiler the GNU C compiler?
15560 with_gcc=$GCC
15561
15562 # An ERE matcher.
15563 EGREP=$lt_EGREP
15564
15565 # The linker used to build libraries.
15566 LD=$lt_LD
15567
15568 # Whether we need hard or soft links.
15569 LN_S=$lt_LN_S
15570
15571 # A BSD-compatible nm program.
15572 NM=$lt_NM
15573
15574 # A symbol stripping program
15575 STRIP=$lt_STRIP
15576
15577 # Used to examine libraries when file_magic_cmd begins "file"
15578 MAGIC_CMD=$MAGIC_CMD
15579
15580 # Used on cygwin: DLL creation program.
15581 DLLTOOL="$DLLTOOL"
15582
15583 # Used on cygwin: object dumper.
15584 OBJDUMP="$OBJDUMP"
15585
15586 # Used on cygwin: assembler.
15587 AS="$AS"
15588
15589 # The name of the directory that contains temporary libtool files.
15590 objdir=$objdir
15591
15592 # How to create reloadable object files.
15593 reload_flag=$lt_reload_flag
15594 reload_cmds=$lt_reload_cmds
15595
15596 # How to pass a linker flag through the compiler.
15597 wl=$lt_lt_prog_compiler_wl
15598
15599 # Object file suffix (normally "o").
15600 objext="$ac_objext"
15601
15602 # Old archive suffix (normally "a").
15603 libext="$libext"
15604
15605 # Shared library suffix (normally ".so").
15606 shrext_cmds='$shrext_cmds'
15607
15608 # Executable file suffix (normally "").
15609 exeext="$exeext"
15610
15611 # Additional compiler flags for building library objects.
15612 pic_flag=$lt_lt_prog_compiler_pic
15613 pic_mode=$pic_mode
15614
15615 # What is the maximum length of a command?
15616 max_cmd_len=$lt_cv_sys_max_cmd_len
15617
15618 # Does compiler simultaneously support -c and -o options?
15619 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15620
15621 # Must we lock files when doing compilation ?
15622 need_locks=$lt_need_locks
15623
15624 # Do we need the lib prefix for modules?
15625 need_lib_prefix=$need_lib_prefix
15626
15627 # Do we need a version for libraries?
15628 need_version=$need_version
15629
15630 # Whether dlopen is supported.
15631 dlopen_support=$enable_dlopen
15632
15633 # Whether dlopen of programs is supported.
15634 dlopen_self=$enable_dlopen_self
15635
15636 # Whether dlopen of statically linked programs is supported.
15637 dlopen_self_static=$enable_dlopen_self_static
15638
15639 # Compiler flag to prevent dynamic linking.
15640 link_static_flag=$lt_lt_prog_compiler_static
15641
15642 # Compiler flag to turn off builtin functions.
15643 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15644
15645 # Compiler flag to allow reflexive dlopens.
15646 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15647
15648 # Compiler flag to generate shared objects directly from archives.
15649 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15650
15651 # Compiler flag to generate thread-safe objects.
15652 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15653
15654 # Library versioning type.
15655 version_type=$version_type
15656
15657 # Format of library name prefix.
15658 libname_spec=$lt_libname_spec
15659
15660 # List of archive names.  First name is the real one, the rest are links.
15661 # The last name is the one that the linker finds with -lNAME.
15662 library_names_spec=$lt_library_names_spec
15663
15664 # The coded name of the library, if different from the real name.
15665 soname_spec=$lt_soname_spec
15666
15667 # Commands used to build and install an old-style archive.
15668 RANLIB=$lt_RANLIB
15669 old_archive_cmds=$lt_old_archive_cmds
15670 old_postinstall_cmds=$lt_old_postinstall_cmds
15671 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15672
15673 # Create an old-style archive from a shared archive.
15674 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15675
15676 # Create a temporary old-style archive to link instead of a shared archive.
15677 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15678
15679 # Commands used to build and install a shared archive.
15680 archive_cmds=$lt_archive_cmds
15681 archive_expsym_cmds=$lt_archive_expsym_cmds
15682 postinstall_cmds=$lt_postinstall_cmds
15683 postuninstall_cmds=$lt_postuninstall_cmds
15684
15685 # Commands used to build a loadable module (assumed same as above if empty)
15686 module_cmds=$lt_module_cmds
15687 module_expsym_cmds=$lt_module_expsym_cmds
15688
15689 # Commands to strip libraries.
15690 old_striplib=$lt_old_striplib
15691 striplib=$lt_striplib
15692
15693 # Dependencies to place before the objects being linked to create a
15694 # shared library.
15695 predep_objects=$lt_predep_objects
15696
15697 # Dependencies to place after the objects being linked to create a
15698 # shared library.
15699 postdep_objects=$lt_postdep_objects
15700
15701 # Dependencies to place before the objects being linked to create a
15702 # shared library.
15703 predeps=$lt_predeps
15704
15705 # Dependencies to place after the objects being linked to create a
15706 # shared library.
15707 postdeps=$lt_postdeps
15708
15709 # The library search path used internally by the compiler when linking
15710 # a shared library.
15711 compiler_lib_search_path=$lt_compiler_lib_search_path
15712
15713 # Method to check whether dependent libraries are shared objects.
15714 deplibs_check_method=$lt_deplibs_check_method
15715
15716 # Command to use when deplibs_check_method == file_magic.
15717 file_magic_cmd=$lt_file_magic_cmd
15718
15719 # Flag that allows shared libraries with undefined symbols to be built.
15720 allow_undefined_flag=$lt_allow_undefined_flag
15721
15722 # Flag that forces no undefined symbols.
15723 no_undefined_flag=$lt_no_undefined_flag
15724
15725 # Commands used to finish a libtool library installation in a directory.
15726 finish_cmds=$lt_finish_cmds
15727
15728 # Same as above, but a single script fragment to be evaled but not shown.
15729 finish_eval=$lt_finish_eval
15730
15731 # Take the output of nm and produce a listing of raw symbols and C names.
15732 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15733
15734 # Transform the output of nm in a proper C declaration
15735 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15736
15737 # Transform the output of nm in a C name address pair
15738 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15739
15740 # This is the shared library runtime path variable.
15741 runpath_var=$runpath_var
15742
15743 # This is the shared library path variable.
15744 shlibpath_var=$shlibpath_var
15745
15746 # Is shlibpath searched before the hard-coded library search path?
15747 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15748
15749 # How to hardcode a shared library path into an executable.
15750 hardcode_action=$hardcode_action
15751
15752 # Whether we should hardcode library paths into libraries.
15753 hardcode_into_libs=$hardcode_into_libs
15754
15755 # Flag to hardcode \$libdir into a binary during linking.
15756 # This must work even if \$libdir does not exist.
15757 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15758
15759 # If ld is used when linking, flag to hardcode \$libdir into
15760 # a binary during linking. This must work even if \$libdir does
15761 # not exist.
15762 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15763
15764 # Whether we need a single -rpath flag with a separated argument.
15765 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15766
15767 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15768 # resulting binary.
15769 hardcode_direct=$hardcode_direct
15770
15771 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15772 # resulting binary.
15773 hardcode_minus_L=$hardcode_minus_L
15774
15775 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15776 # the resulting binary.
15777 hardcode_shlibpath_var=$hardcode_shlibpath_var
15778
15779 # Set to yes if building a shared library automatically hardcodes DIR into the library
15780 # and all subsequent libraries and executables linked against it.
15781 hardcode_automatic=$hardcode_automatic
15782
15783 # Variables whose values should be saved in libtool wrapper scripts and
15784 # restored at relink time.
15785 variables_saved_for_relink="$variables_saved_for_relink"
15786
15787 # Whether libtool must link a program against all its dependency libraries.
15788 link_all_deplibs=$link_all_deplibs
15789
15790 # Compile-time system search path for libraries
15791 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15792
15793 # Run-time system search path for libraries
15794 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15795
15796 # Fix the shell variable \$srcfile for the compiler.
15797 fix_srcfile_path="$fix_srcfile_path"
15798
15799 # Set to yes if exported symbols are required.
15800 always_export_symbols=$always_export_symbols
15801
15802 # The commands to list exported symbols.
15803 export_symbols_cmds=$lt_export_symbols_cmds
15804
15805 # The commands to extract the exported symbol list from a shared archive.
15806 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15807
15808 # Symbols that should not be listed in the preloaded symbols.
15809 exclude_expsyms=$lt_exclude_expsyms
15810
15811 # Symbols that must always be exported.
15812 include_expsyms=$lt_include_expsyms
15813
15814 # ### END LIBTOOL CONFIG
15815
15816 __EOF__
15817
15818
15819   case $host_os in
15820   aix3*)
15821     cat <<\EOF >> "$cfgfile"
15822
15823 # AIX sometimes has problems with the GCC collect2 program.  For some
15824 # reason, if we set the COLLECT_NAMES environment variable, the problems
15825 # vanish in a puff of smoke.
15826 if test "X${COLLECT_NAMES+set}" != Xset; then
15827   COLLECT_NAMES=
15828   export COLLECT_NAMES
15829 fi
15830 EOF
15831     ;;
15832   esac
15833
15834   # We use sed instead of cat because bash on DJGPP gets confused if
15835   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15836   # text mode, it properly converts lines to CR/LF.  This bash problem
15837   # is reportedly fixed, but why not run on old versions too?
15838   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15839
15840   mv -f "$cfgfile" "$ofile" || \
15841     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15842   chmod +x "$ofile"
15843
15844 else
15845   # If there is no Makefile yet, we rely on a make rule to execute
15846   # `config.status --recheck' to rerun these tests and create the
15847   # libtool script then.
15848   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15849   if test -f "$ltmain_in"; then
15850     test -f Makefile && make "$ltmain"
15851   fi
15852 fi
15853
15854
15855 ac_ext=c
15856 ac_cpp='$CPP $CPPFLAGS'
15857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15860
15861 CC="$lt_save_CC"
15862
15863
15864 # Check whether --with-tags or --without-tags was given.
15865 if test "${with_tags+set}" = set; then
15866   withval="$with_tags"
15867   tagnames="$withval"
15868 fi;
15869
15870 if test -f "$ltmain" && test -n "$tagnames"; then
15871   if test ! -f "${ofile}"; then
15872     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15873 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15874   fi
15875
15876   if test -z "$LTCC"; then
15877     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15878     if test -z "$LTCC"; then
15879       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15880 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15881     else
15882       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15883 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15884     fi
15885   fi
15886
15887   # Extract list of available tagged configurations in $ofile.
15888   # Note that this assumes the entire list is on one line.
15889   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15890
15891   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15892   for tagname in $tagnames; do
15893     IFS="$lt_save_ifs"
15894     # Check whether tagname contains only valid characters
15895     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15896     "") ;;
15897     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15898 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15899    { (exit 1); exit 1; }; }
15900         ;;
15901     esac
15902
15903     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15904     then
15905       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15906 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15907    { (exit 1); exit 1; }; }
15908     fi
15909
15910     # Update the list of available tags.
15911     if test -n "$tagname"; then
15912       echo appending configuration tag \"$tagname\" to $ofile
15913
15914       case $tagname in
15915       CXX)
15916         if test -n "$CXX" && test "X$CXX" != "Xno"; then
15917           ac_ext=cc
15918 ac_cpp='$CXXCPP $CPPFLAGS'
15919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15922
15923
15924
15925
15926 archive_cmds_need_lc_CXX=no
15927 allow_undefined_flag_CXX=
15928 always_export_symbols_CXX=no
15929 archive_expsym_cmds_CXX=
15930 export_dynamic_flag_spec_CXX=
15931 hardcode_direct_CXX=no
15932 hardcode_libdir_flag_spec_CXX=
15933 hardcode_libdir_flag_spec_ld_CXX=
15934 hardcode_libdir_separator_CXX=
15935 hardcode_minus_L_CXX=no
15936 hardcode_automatic_CXX=no
15937 module_cmds_CXX=
15938 module_expsym_cmds_CXX=
15939 link_all_deplibs_CXX=unknown
15940 old_archive_cmds_CXX=$old_archive_cmds
15941 no_undefined_flag_CXX=
15942 whole_archive_flag_spec_CXX=
15943 enable_shared_with_static_runtimes_CXX=no
15944
15945 # Dependencies to place before and after the object being linked:
15946 predep_objects_CXX=
15947 postdep_objects_CXX=
15948 predeps_CXX=
15949 postdeps_CXX=
15950 compiler_lib_search_path_CXX=
15951
15952 # Source file extension for C++ test sources.
15953 ac_ext=cc
15954
15955 # Object file extension for compiled C++ test sources.
15956 objext=o
15957 objext_CXX=$objext
15958
15959 # Code to be used in simple compile tests
15960 lt_simple_compile_test_code="int some_variable = 0;\n"
15961
15962 # Code to be used in simple link tests
15963 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15964
15965 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15966
15967 # If no C compiler was specified, use CC.
15968 LTCC=${LTCC-"$CC"}
15969
15970 # Allow CC to be a program name with arguments.
15971 compiler=$CC
15972
15973
15974 # Allow CC to be a program name with arguments.
15975 lt_save_CC=$CC
15976 lt_save_LD=$LD
15977 lt_save_GCC=$GCC
15978 GCC=$GXX
15979 lt_save_with_gnu_ld=$with_gnu_ld
15980 lt_save_path_LD=$lt_cv_path_LD
15981 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15982   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15983 else
15984   unset lt_cv_prog_gnu_ld
15985 fi
15986 if test -n "${lt_cv_path_LDCXX+set}"; then
15987   lt_cv_path_LD=$lt_cv_path_LDCXX
15988 else
15989   unset lt_cv_path_LD
15990 fi
15991 test -z "${LDCXX+set}" || LD=$LDCXX
15992 CC=${CXX-"c++"}
15993 compiler=$CC
15994 compiler_CXX=$CC
15995 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15996
15997 # We don't want -fno-exception wen compiling C++ code, so set the
15998 # no_builtin_flag separately
15999 if test "$GXX" = yes; then
16000   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16001 else
16002   lt_prog_compiler_no_builtin_flag_CXX=
16003 fi
16004
16005 if test "$GXX" = yes; then
16006   # Set up default GNU C++ configuration
16007
16008
16009 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16010 if test "${with_gnu_ld+set}" = set; then
16011   withval="$with_gnu_ld"
16012   test "$withval" = no || with_gnu_ld=yes
16013 else
16014   with_gnu_ld=no
16015 fi;
16016 ac_prog=ld
16017 if test "$GCC" = yes; then
16018   # Check if gcc -print-prog-name=ld gives a path.
16019   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16020 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16021   case $host in
16022   *-*-mingw*)
16023     # gcc leaves a trailing carriage return which upsets mingw
16024     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16025   *)
16026     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16027   esac
16028   case $ac_prog in
16029     # Accept absolute paths.
16030     [\\/]* | ?:[\\/]*)
16031       re_direlt='/[^/][^/]*/\.\./'
16032       # Canonicalize the pathname of ld
16033       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16034       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16035         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16036       done
16037       test -z "$LD" && LD="$ac_prog"
16038       ;;
16039   "")
16040     # If it fails, then pretend we aren't using GCC.
16041     ac_prog=ld
16042     ;;
16043   *)
16044     # If it is relative, then search for the first ld in PATH.
16045     with_gnu_ld=unknown
16046     ;;
16047   esac
16048 elif test "$with_gnu_ld" = yes; then
16049   echo "$as_me:$LINENO: checking for GNU ld" >&5
16050 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16051 else
16052   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16053 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16054 fi
16055 if test "${lt_cv_path_LD+set}" = set; then
16056   echo $ECHO_N "(cached) $ECHO_C" >&6
16057 else
16058   if test -z "$LD"; then
16059   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16060   for ac_dir in $PATH; do
16061     IFS="$lt_save_ifs"
16062     test -z "$ac_dir" && ac_dir=.
16063     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16064       lt_cv_path_LD="$ac_dir/$ac_prog"
16065       # Check to see if the program is GNU ld.  I'd rather use --version,
16066       # but apparently some GNU ld's only accept -v.
16067       # Break only if it was the GNU/non-GNU ld that we prefer.
16068       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16069       *GNU* | *'with BFD'*)
16070         test "$with_gnu_ld" != no && break
16071         ;;
16072       *)
16073         test "$with_gnu_ld" != yes && break
16074         ;;
16075       esac
16076     fi
16077   done
16078   IFS="$lt_save_ifs"
16079 else
16080   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16081 fi
16082 fi
16083
16084 LD="$lt_cv_path_LD"
16085 if test -n "$LD"; then
16086   echo "$as_me:$LINENO: result: $LD" >&5
16087 echo "${ECHO_T}$LD" >&6
16088 else
16089   echo "$as_me:$LINENO: result: no" >&5
16090 echo "${ECHO_T}no" >&6
16091 fi
16092 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16093 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16094    { (exit 1); exit 1; }; }
16095 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16096 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16097 if test "${lt_cv_prog_gnu_ld+set}" = set; then
16098   echo $ECHO_N "(cached) $ECHO_C" >&6
16099 else
16100   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16101 case `$LD -v 2>&1 </dev/null` in
16102 *GNU* | *'with BFD'*)
16103   lt_cv_prog_gnu_ld=yes
16104   ;;
16105 *)
16106   lt_cv_prog_gnu_ld=no
16107   ;;
16108 esac
16109 fi
16110 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16111 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
16112 with_gnu_ld=$lt_cv_prog_gnu_ld
16113
16114
16115
16116   # Check if GNU C++ uses GNU ld as the underlying linker, since the
16117   # archiving commands below assume that GNU ld is being used.
16118   if test "$with_gnu_ld" = yes; then
16119     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16120     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'
16121
16122     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16123     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16124
16125     # If archive_cmds runs LD, not CC, wlarc should be empty
16126     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16127     #     investigate it a little bit more. (MM)
16128     wlarc='${wl}'
16129
16130     # ancient GNU ld didn't support --whole-archive et. al.
16131     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
16132         grep 'no-whole-archive' > /dev/null; then
16133       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16134     else
16135       whole_archive_flag_spec_CXX=
16136     fi
16137   else
16138     with_gnu_ld=no
16139     wlarc=
16140
16141     # A generic and very simple default shared library creation
16142     # command for GNU C++ for the case where it uses the native
16143     # linker, instead of GNU ld.  If possible, this setting should
16144     # overridden to take advantage of the native linker features on
16145     # the platform it is being used on.
16146     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16147   fi
16148
16149   # Commands to make compiler produce verbose output that lists
16150   # what "hidden" libraries, object files and flags are used when
16151   # linking a shared library.
16152   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16153
16154 else
16155   GXX=no
16156   with_gnu_ld=no
16157   wlarc=
16158 fi
16159
16160 # PORTME: fill in a description of your system's C++ link characteristics
16161 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16162 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16163 ld_shlibs_CXX=yes
16164 case $host_os in
16165   aix3*)
16166     # FIXME: insert proper C++ library support
16167     ld_shlibs_CXX=no
16168     ;;
16169   aix4* | aix5*)
16170     if test "$host_cpu" = ia64; then
16171       # On IA64, the linker does run time linking by default, so we don't
16172       # have to do anything special.
16173       aix_use_runtimelinking=no
16174       exp_sym_flag='-Bexport'
16175       no_entry_flag=""
16176     else
16177       aix_use_runtimelinking=no
16178
16179       # Test if we are trying to use run time linking or normal
16180       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16181       # need to do runtime linking.
16182       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16183         for ld_flag in $LDFLAGS; do
16184           case $ld_flag in
16185           *-brtl*)
16186             aix_use_runtimelinking=yes
16187             break
16188             ;;
16189           esac
16190         done
16191       esac
16192
16193       exp_sym_flag='-bexport'
16194       no_entry_flag='-bnoentry'
16195     fi
16196
16197     # When large executables or shared objects are built, AIX ld can
16198     # have problems creating the table of contents.  If linking a library
16199     # or program results in "error TOC overflow" add -mminimal-toc to
16200     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16201     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16202
16203     archive_cmds_CXX=''
16204     hardcode_direct_CXX=yes
16205     hardcode_libdir_separator_CXX=':'
16206     link_all_deplibs_CXX=yes
16207
16208     if test "$GXX" = yes; then
16209       case $host_os in aix4.012|aix4.012.*)
16210       # We only want to do this on AIX 4.2 and lower, the check
16211       # below for broken collect2 doesn't work under 4.3+
16212         collect2name=`${CC} -print-prog-name=collect2`
16213         if test -f "$collect2name" && \
16214            strings "$collect2name" | grep resolve_lib_name >/dev/null
16215         then
16216           # We have reworked collect2
16217           hardcode_direct_CXX=yes
16218         else
16219           # We have old collect2
16220           hardcode_direct_CXX=unsupported
16221           # It fails to find uninstalled libraries when the uninstalled
16222           # path is not listed in the libpath.  Setting hardcode_minus_L
16223           # to unsupported forces relinking
16224           hardcode_minus_L_CXX=yes
16225           hardcode_libdir_flag_spec_CXX='-L$libdir'
16226           hardcode_libdir_separator_CXX=
16227         fi
16228       esac
16229       shared_flag='-shared'
16230     else
16231       # not using gcc
16232       if test "$host_cpu" = ia64; then
16233         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16234         # chokes on -Wl,-G. The following line is correct:
16235         shared_flag='-G'
16236       else
16237         if test "$aix_use_runtimelinking" = yes; then
16238           shared_flag='${wl}-G'
16239         else
16240           shared_flag='${wl}-bM:SRE'
16241         fi
16242       fi
16243     fi
16244
16245     # It seems that -bexpall does not export symbols beginning with
16246     # underscore (_), so it is better to generate a list of symbols to export.
16247     always_export_symbols_CXX=yes
16248     if test "$aix_use_runtimelinking" = yes; then
16249       # Warning - without using the other runtime loading flags (-brtl),
16250       # -berok will link without error, but may produce a broken library.
16251       allow_undefined_flag_CXX='-berok'
16252       # Determine the default libpath from the value encoded in an empty executable.
16253       cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h.  */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h.  */
16259
16260 int
16261 main ()
16262 {
16263
16264   ;
16265   return 0;
16266 }
16267 _ACEOF
16268 rm -f conftest.$ac_objext conftest$ac_exeext
16269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16270   (eval $ac_link) 2>conftest.er1
16271   ac_status=$?
16272   grep -v '^ *+' conftest.er1 >conftest.err
16273   rm -f conftest.er1
16274   cat conftest.err >&5
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); } &&
16277          { ac_try='test -z "$ac_cxx_werror_flag"
16278                          || test ! -s conftest.err'
16279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280   (eval $ac_try) 2>&5
16281   ac_status=$?
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); }; } &&
16284          { ac_try='test -s conftest$ac_exeext'
16285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286   (eval $ac_try) 2>&5
16287   ac_status=$?
16288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289   (exit $ac_status); }; }; then
16290
16291 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16292 }'`
16293 # Check for a 64-bit object if we didn't find anything.
16294 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; }
16295 }'`; fi
16296 else
16297   echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16299
16300 fi
16301 rm -f conftest.err conftest.$ac_objext \
16302       conftest$ac_exeext conftest.$ac_ext
16303 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16304
16305       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16306
16307       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"
16308      else
16309       if test "$host_cpu" = ia64; then
16310         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16311         allow_undefined_flag_CXX="-z nodefs"
16312         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"
16313       else
16314         # Determine the default libpath from the value encoded in an empty executable.
16315         cat >conftest.$ac_ext <<_ACEOF
16316 /* confdefs.h.  */
16317 _ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h.  */
16321
16322 int
16323 main ()
16324 {
16325
16326   ;
16327   return 0;
16328 }
16329 _ACEOF
16330 rm -f conftest.$ac_objext conftest$ac_exeext
16331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16332   (eval $ac_link) 2>conftest.er1
16333   ac_status=$?
16334   grep -v '^ *+' conftest.er1 >conftest.err
16335   rm -f conftest.er1
16336   cat conftest.err >&5
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); } &&
16339          { ac_try='test -z "$ac_cxx_werror_flag"
16340                          || test ! -s conftest.err'
16341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342   (eval $ac_try) 2>&5
16343   ac_status=$?
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); }; } &&
16346          { ac_try='test -s conftest$ac_exeext'
16347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348   (eval $ac_try) 2>&5
16349   ac_status=$?
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); }; }; then
16352
16353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16354 }'`
16355 # Check for a 64-bit object if we didn't find anything.
16356 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; }
16357 }'`; fi
16358 else
16359   echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16361
16362 fi
16363 rm -f conftest.err conftest.$ac_objext \
16364       conftest$ac_exeext conftest.$ac_ext
16365 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16366
16367         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16368         # Warning - without using the other run time loading flags,
16369         # -berok will link without error, but may produce a broken library.
16370         no_undefined_flag_CXX=' ${wl}-bernotok'
16371         allow_undefined_flag_CXX=' ${wl}-berok'
16372         # -bexpall does not export symbols beginning with underscore (_)
16373         always_export_symbols_CXX=yes
16374         # Exported symbols can be pulled into shared objects from archives
16375         whole_archive_flag_spec_CXX=' '
16376         archive_cmds_need_lc_CXX=yes
16377         # This is similar to how AIX traditionally builds it's shared libraries.
16378         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'
16379       fi
16380     fi
16381     ;;
16382   chorus*)
16383     case $cc_basename in
16384       *)
16385         # FIXME: insert proper C++ library support
16386         ld_shlibs_CXX=no
16387         ;;
16388     esac
16389     ;;
16390
16391   cygwin* | mingw* | pw32*)
16392     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16393     # as there is no search path for DLLs.
16394     hardcode_libdir_flag_spec_CXX='-L$libdir'
16395     allow_undefined_flag_CXX=unsupported
16396     always_export_symbols_CXX=no
16397     enable_shared_with_static_runtimes_CXX=yes
16398
16399     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16400       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'
16401       # If the export-symbols file already is a .def file (1st line
16402       # is EXPORTS), use it as is; otherwise, prepend...
16403       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16404         cp $export_symbols $output_objdir/$soname.def;
16405       else
16406         echo EXPORTS > $output_objdir/$soname.def;
16407         cat $export_symbols >> $output_objdir/$soname.def;
16408       fi~
16409       $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'
16410     else
16411       ld_shlibs_CXX=no
16412     fi
16413   ;;
16414
16415   darwin* | rhapsody*)
16416   if test "$GXX" = yes; then
16417     archive_cmds_need_lc_CXX=no
16418     case "$host_os" in
16419     rhapsody* | darwin1.[012])
16420       allow_undefined_flag_CXX='-undefined suppress'
16421       ;;
16422     *) # Darwin 1.3 on
16423       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16424         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
16425       else
16426         case ${MACOSX_DEPLOYMENT_TARGET} in
16427           10.[012])
16428             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
16429             ;;
16430           10.*)
16431             allow_undefined_flag_CXX='-undefined dynamic_lookup'
16432             ;;
16433         esac
16434       fi
16435       ;;
16436     esac
16437     lt_int_apple_cc_single_mod=no
16438     output_verbose_link_cmd='echo'
16439     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16440       lt_int_apple_cc_single_mod=yes
16441     fi
16442     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16443       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16444     else
16445       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16446     fi
16447     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16448
16449     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16450     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16451       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}'
16452     else
16453       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16454     fi
16455     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}'
16456     hardcode_direct_CXX=no
16457     hardcode_automatic_CXX=yes
16458     hardcode_shlibpath_var_CXX=unsupported
16459     whole_archive_flag_spec_CXX='-all_load $convenience'
16460     link_all_deplibs_CXX=yes
16461   else
16462     ld_shlibs_CXX=no
16463   fi
16464     ;;
16465
16466   dgux*)
16467     case $cc_basename in
16468       ec++)
16469         # FIXME: insert proper C++ library support
16470         ld_shlibs_CXX=no
16471         ;;
16472       ghcx)
16473         # Green Hills C++ Compiler
16474         # FIXME: insert proper C++ library support
16475         ld_shlibs_CXX=no
16476         ;;
16477       *)
16478         # FIXME: insert proper C++ library support
16479         ld_shlibs_CXX=no
16480         ;;
16481     esac
16482     ;;
16483   freebsd12*)
16484     # C++ shared libraries reported to be fairly broken before switch to ELF
16485     ld_shlibs_CXX=no
16486     ;;
16487   freebsd-elf*)
16488     archive_cmds_need_lc_CXX=no
16489     ;;
16490   freebsd* | kfreebsd*-gnu)
16491     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16492     # conventions
16493     ld_shlibs_CXX=yes
16494     ;;
16495   gnu*)
16496     ;;
16497   hpux9*)
16498     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16499     hardcode_libdir_separator_CXX=:
16500     export_dynamic_flag_spec_CXX='${wl}-E'
16501     hardcode_direct_CXX=yes
16502     hardcode_minus_L_CXX=yes # Not in the search PATH,
16503                                 # but as the default
16504                                 # location of the library.
16505
16506     case $cc_basename in
16507     CC)
16508       # FIXME: insert proper C++ library support
16509       ld_shlibs_CXX=no
16510       ;;
16511     aCC)
16512       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'
16513       # Commands to make compiler produce verbose output that lists
16514       # what "hidden" libraries, object files and flags are used when
16515       # linking a shared library.
16516       #
16517       # There doesn't appear to be a way to prevent this compiler from
16518       # explicitly linking system object files so we need to strip them
16519       # from the output so that they don't get included in the library
16520       # dependencies.
16521       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'
16522       ;;
16523     *)
16524       if test "$GXX" = yes; then
16525         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'
16526       else
16527         # FIXME: insert proper C++ library support
16528         ld_shlibs_CXX=no
16529       fi
16530       ;;
16531     esac
16532     ;;
16533   hpux10*|hpux11*)
16534     if test $with_gnu_ld = no; then
16535       case "$host_cpu" in
16536       hppa*64*)
16537         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16538         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16539         hardcode_libdir_separator_CXX=:
16540         ;;
16541       ia64*)
16542         hardcode_libdir_flag_spec_CXX='-L$libdir'
16543         ;;
16544       *)
16545         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16546         hardcode_libdir_separator_CXX=:
16547         export_dynamic_flag_spec_CXX='${wl}-E'
16548         ;;
16549       esac
16550     fi
16551     case "$host_cpu" in
16552     hppa*64*)
16553       hardcode_direct_CXX=no
16554       hardcode_shlibpath_var_CXX=no
16555       ;;
16556     ia64*)
16557       hardcode_direct_CXX=no
16558       hardcode_shlibpath_var_CXX=no
16559       hardcode_minus_L_CXX=yes # Not in the search PATH,
16560                                               # but as the default
16561                                               # location of the library.
16562       ;;
16563     *)
16564       hardcode_direct_CXX=yes
16565       hardcode_minus_L_CXX=yes # Not in the search PATH,
16566                                               # but as the default
16567                                               # location of the library.
16568       ;;
16569     esac
16570
16571     case $cc_basename in
16572       CC)
16573         # FIXME: insert proper C++ library support
16574         ld_shlibs_CXX=no
16575         ;;
16576       aCC)
16577         case "$host_cpu" in
16578         hppa*64*|ia64*)
16579           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16580           ;;
16581         *)
16582           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16583           ;;
16584         esac
16585         # Commands to make compiler produce verbose output that lists
16586         # what "hidden" libraries, object files and flags are used when
16587         # linking a shared library.
16588         #
16589         # There doesn't appear to be a way to prevent this compiler from
16590         # explicitly linking system object files so we need to strip them
16591         # from the output so that they don't get included in the library
16592         # dependencies.
16593         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'
16594         ;;
16595       *)
16596         if test "$GXX" = yes; then
16597           if test $with_gnu_ld = no; then
16598             case "$host_cpu" in
16599             ia64*|hppa*64*)
16600               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16601               ;;
16602             *)
16603               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'
16604               ;;
16605             esac
16606           fi
16607         else
16608           # FIXME: insert proper C++ library support
16609           ld_shlibs_CXX=no
16610         fi
16611         ;;
16612     esac
16613     ;;
16614   irix5* | irix6*)
16615     case $cc_basename in
16616       CC)
16617         # SGI C++
16618         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
16619
16620         # Archives containing C++ object files must be created using
16621         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16622         # necessary to make sure instantiated templates are included
16623         # in the archive.
16624         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16625         ;;
16626       *)
16627         if test "$GXX" = yes; then
16628           if test "$with_gnu_ld" = no; then
16629             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
16630           else
16631             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'
16632           fi
16633         fi
16634         link_all_deplibs_CXX=yes
16635         ;;
16636     esac
16637     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16638     hardcode_libdir_separator_CXX=:
16639     ;;
16640   linux*)
16641     case $cc_basename in
16642       KCC)
16643         # Kuck and Associates, Inc. (KAI) C++ Compiler
16644
16645         # KCC will only create a shared library if the output file
16646         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16647         # to its proper name (with version) after linking.
16648         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'
16649         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'
16650         # Commands to make compiler produce verbose output that lists
16651         # what "hidden" libraries, object files and flags are used when
16652         # linking a shared library.
16653         #
16654         # There doesn't appear to be a way to prevent this compiler from
16655         # explicitly linking system object files so we need to strip them
16656         # from the output so that they don't get included in the library
16657         # dependencies.
16658         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'
16659
16660         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16661         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16662
16663         # Archives containing C++ object files must be created using
16664         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16665         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16666         ;;
16667       icpc)
16668         # Intel C++
16669         with_gnu_ld=yes
16670         archive_cmds_need_lc_CXX=no
16671         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16672         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'
16673         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16674         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16675         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16676         ;;
16677       cxx)
16678         # Compaq C++
16679         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16680         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'
16681
16682         runpath_var=LD_RUN_PATH
16683         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16684         hardcode_libdir_separator_CXX=:
16685
16686         # Commands to make compiler produce verbose output that lists
16687         # what "hidden" libraries, object files and flags are used when
16688         # linking a shared library.
16689         #
16690         # There doesn't appear to be a way to prevent this compiler from
16691         # explicitly linking system object files so we need to strip them
16692         # from the output so that they don't get included in the library
16693         # dependencies.
16694         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'
16695         ;;
16696     esac
16697     ;;
16698   lynxos*)
16699     # FIXME: insert proper C++ library support
16700     ld_shlibs_CXX=no
16701     ;;
16702   m88k*)
16703     # FIXME: insert proper C++ library support
16704     ld_shlibs_CXX=no
16705     ;;
16706   mvs*)
16707     case $cc_basename in
16708       cxx)
16709         # FIXME: insert proper C++ library support
16710         ld_shlibs_CXX=no
16711         ;;
16712       *)
16713         # FIXME: insert proper C++ library support
16714         ld_shlibs_CXX=no
16715         ;;
16716     esac
16717     ;;
16718   netbsd*)
16719     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16720       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16721       wlarc=
16722       hardcode_libdir_flag_spec_CXX='-R$libdir'
16723       hardcode_direct_CXX=yes
16724       hardcode_shlibpath_var_CXX=no
16725     fi
16726     # Workaround some broken pre-1.5 toolchains
16727     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16728     ;;
16729   osf3*)
16730     case $cc_basename in
16731       KCC)
16732         # Kuck and Associates, Inc. (KAI) C++ Compiler
16733
16734         # KCC will only create a shared library if the output file
16735         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16736         # to its proper name (with version) after linking.
16737         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'
16738
16739         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16740         hardcode_libdir_separator_CXX=:
16741
16742         # Archives containing C++ object files must be created using
16743         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16744         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16745
16746         ;;
16747       RCC)
16748         # Rational C++ 2.4.1
16749         # FIXME: insert proper C++ library support
16750         ld_shlibs_CXX=no
16751         ;;
16752       cxx)
16753         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16754         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
16755
16756         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16757         hardcode_libdir_separator_CXX=:
16758
16759         # Commands to make compiler produce verbose output that lists
16760         # what "hidden" libraries, object files and flags are used when
16761         # linking a shared library.
16762         #
16763         # There doesn't appear to be a way to prevent this compiler from
16764         # explicitly linking system object files so we need to strip them
16765         # from the output so that they don't get included in the library
16766         # dependencies.
16767         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'
16768         ;;
16769       *)
16770         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16771           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16772           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
16773
16774           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16775           hardcode_libdir_separator_CXX=:
16776
16777           # Commands to make compiler produce verbose output that lists
16778           # what "hidden" libraries, object files and flags are used when
16779           # linking a shared library.
16780           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16781
16782         else
16783           # FIXME: insert proper C++ library support
16784           ld_shlibs_CXX=no
16785         fi
16786         ;;
16787     esac
16788     ;;
16789   osf4* | osf5*)
16790     case $cc_basename in
16791       KCC)
16792         # Kuck and Associates, Inc. (KAI) C++ Compiler
16793
16794         # KCC will only create a shared library if the output file
16795         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16796         # to its proper name (with version) after linking.
16797         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'
16798
16799         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16800         hardcode_libdir_separator_CXX=:
16801
16802         # Archives containing C++ object files must be created using
16803         # the KAI C++ compiler.
16804         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16805         ;;
16806       RCC)
16807         # Rational C++ 2.4.1
16808         # FIXME: insert proper C++ library support
16809         ld_shlibs_CXX=no
16810         ;;
16811       cxx)
16812         allow_undefined_flag_CXX=' -expect_unresolved \*'
16813         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
16814         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16815           echo "-hidden">> $lib.exp~
16816           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
16817           $rm $lib.exp'
16818
16819         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16820         hardcode_libdir_separator_CXX=:
16821
16822         # Commands to make compiler produce verbose output that lists
16823         # what "hidden" libraries, object files and flags are used when
16824         # linking a shared library.
16825         #
16826         # There doesn't appear to be a way to prevent this compiler from
16827         # explicitly linking system object files so we need to strip them
16828         # from the output so that they don't get included in the library
16829         # dependencies.
16830         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'
16831         ;;
16832       *)
16833         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16834           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16835          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
16836
16837           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16838           hardcode_libdir_separator_CXX=:
16839
16840           # Commands to make compiler produce verbose output that lists
16841           # what "hidden" libraries, object files and flags are used when
16842           # linking a shared library.
16843           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16844
16845         else
16846           # FIXME: insert proper C++ library support
16847           ld_shlibs_CXX=no
16848         fi
16849         ;;
16850     esac
16851     ;;
16852   psos*)
16853     # FIXME: insert proper C++ library support
16854     ld_shlibs_CXX=no
16855     ;;
16856   sco*)
16857     archive_cmds_need_lc_CXX=no
16858     case $cc_basename in
16859       CC)
16860         # FIXME: insert proper C++ library support
16861         ld_shlibs_CXX=no
16862         ;;
16863       *)
16864         # FIXME: insert proper C++ library support
16865         ld_shlibs_CXX=no
16866         ;;
16867     esac
16868     ;;
16869   sunos4*)
16870     case $cc_basename in
16871       CC)
16872         # Sun C++ 4.x
16873         # FIXME: insert proper C++ library support
16874         ld_shlibs_CXX=no
16875         ;;
16876       lcc)
16877         # Lucid
16878         # FIXME: insert proper C++ library support
16879         ld_shlibs_CXX=no
16880         ;;
16881       *)
16882         # FIXME: insert proper C++ library support
16883         ld_shlibs_CXX=no
16884         ;;
16885     esac
16886     ;;
16887   solaris*)
16888     case $cc_basename in
16889       CC)
16890         # Sun C++ 4.2, 5.x and Centerline C++
16891         no_undefined_flag_CXX=' -zdefs'
16892         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16893         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16894         $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'
16895
16896         hardcode_libdir_flag_spec_CXX='-R$libdir'
16897         hardcode_shlibpath_var_CXX=no
16898         case $host_os in
16899           solaris2.0-5 | solaris2.0-5.*) ;;
16900           *)
16901             # The C++ compiler is used as linker so we must use $wl
16902             # flag to pass the commands to the underlying system
16903             # linker.
16904             # Supported since Solaris 2.6 (maybe 2.5.1?)
16905             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16906             ;;
16907         esac
16908         link_all_deplibs_CXX=yes
16909
16910         # Commands to make compiler produce verbose output that lists
16911         # what "hidden" libraries, object files and flags are used when
16912         # linking a shared library.
16913         #
16914         # There doesn't appear to be a way to prevent this compiler from
16915         # explicitly linking system object files so we need to strip them
16916         # from the output so that they don't get included in the library
16917         # dependencies.
16918         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'
16919
16920         # Archives containing C++ object files must be created using
16921         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16922         # necessary to make sure instantiated templates are included
16923         # in the archive.
16924         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16925         ;;
16926       gcx)
16927         # Green Hills C++ Compiler
16928         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16929
16930         # The C++ compiler must be used to create the archive.
16931         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16932         ;;
16933       *)
16934         # GNU C++ compiler with Solaris linker
16935         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16936           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16937           if $CC --version | grep -v '^2\.7' > /dev/null; then
16938             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16939             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16940                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16941
16942             # Commands to make compiler produce verbose output that lists
16943             # what "hidden" libraries, object files and flags are used when
16944             # linking a shared library.
16945             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16946           else
16947             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16948             # platform.
16949             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16950             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16951                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16952
16953             # Commands to make compiler produce verbose output that lists
16954             # what "hidden" libraries, object files and flags are used when
16955             # linking a shared library.
16956             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16957           fi
16958
16959           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16960         fi
16961         ;;
16962     esac
16963     ;;
16964   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16965     archive_cmds_need_lc_CXX=no
16966     ;;
16967   tandem*)
16968     case $cc_basename in
16969       NCC)
16970         # NonStop-UX NCC 3.20
16971         # FIXME: insert proper C++ library support
16972         ld_shlibs_CXX=no
16973         ;;
16974       *)
16975         # FIXME: insert proper C++ library support
16976         ld_shlibs_CXX=no
16977         ;;
16978     esac
16979     ;;
16980   vxworks*)
16981     # FIXME: insert proper C++ library support
16982     ld_shlibs_CXX=no
16983     ;;
16984   *)
16985     # FIXME: insert proper C++ library support
16986     ld_shlibs_CXX=no
16987     ;;
16988 esac
16989 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16990 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16991 test "$ld_shlibs_CXX" = no && can_build_shared=no
16992
16993 GCC_CXX="$GXX"
16994 LD_CXX="$LD"
16995
16996
16997 cat > conftest.$ac_ext <<EOF
16998 class Foo
16999 {
17000 public:
17001   Foo (void) { a = 0; }
17002 private:
17003   int a;
17004 };
17005 EOF
17006
17007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17008   (eval $ac_compile) 2>&5
17009   ac_status=$?
17010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011   (exit $ac_status); }; then
17012   # Parse the compiler output and extract the necessary
17013   # objects, libraries and library flags.
17014
17015   # Sentinel used to keep track of whether or not we are before
17016   # the conftest object file.
17017   pre_test_object_deps_done=no
17018
17019   # The `*' in the case matches for architectures that use `case' in
17020   # $output_verbose_cmd can trigger glob expansion during the loop
17021   # eval without this substitution.
17022   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
17023
17024   for p in `eval $output_verbose_link_cmd`; do
17025     case $p in
17026
17027     -L* | -R* | -l*)
17028        # Some compilers place space between "-{L,R}" and the path.
17029        # Remove the space.
17030        if test $p = "-L" \
17031           || test $p = "-R"; then
17032          prev=$p
17033          continue
17034        else
17035          prev=
17036        fi
17037
17038        if test "$pre_test_object_deps_done" = no; then
17039          case $p in
17040          -L* | -R*)
17041            # Internal compiler library paths should come after those
17042            # provided the user.  The postdeps already come after the
17043            # user supplied libs so there is no need to process them.
17044            if test -z "$compiler_lib_search_path_CXX"; then
17045              compiler_lib_search_path_CXX="${prev}${p}"
17046            else
17047              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17048            fi
17049            ;;
17050          # The "-l" case would never come before the object being
17051          # linked, so don't bother handling this case.
17052          esac
17053        else
17054          if test -z "$postdeps_CXX"; then
17055            postdeps_CXX="${prev}${p}"
17056          else
17057            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17058          fi
17059        fi
17060        ;;
17061
17062     *.$objext)
17063        # This assumes that the test object file only shows up
17064        # once in the compiler output.
17065        if test "$p" = "conftest.$objext"; then
17066          pre_test_object_deps_done=yes
17067          continue
17068        fi
17069
17070        if test "$pre_test_object_deps_done" = no; then
17071          if test -z "$predep_objects_CXX"; then
17072            predep_objects_CXX="$p"
17073          else
17074            predep_objects_CXX="$predep_objects_CXX $p"
17075          fi
17076        else
17077          if test -z "$postdep_objects_CXX"; then
17078            postdep_objects_CXX="$p"
17079          else
17080            postdep_objects_CXX="$postdep_objects_CXX $p"
17081          fi
17082        fi
17083        ;;
17084
17085     *) ;; # Ignore the rest.
17086
17087     esac
17088   done
17089
17090   # Clean up.
17091   rm -f a.out a.exe
17092 else
17093   echo "libtool.m4: error: problem compiling CXX test program"
17094 fi
17095
17096 $rm -f confest.$objext
17097
17098 case " $postdeps_CXX " in
17099 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17100 esac
17101
17102 lt_prog_compiler_wl_CXX=
17103 lt_prog_compiler_pic_CXX=
17104 lt_prog_compiler_static_CXX=
17105
17106 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17107 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17108
17109   # C++ specific cases for pic, static, wl, etc.
17110   if test "$GXX" = yes; then
17111     lt_prog_compiler_wl_CXX='-Wl,'
17112     lt_prog_compiler_static_CXX='-static'
17113
17114     case $host_os in
17115     aix*)
17116       # All AIX code is PIC.
17117       if test "$host_cpu" = ia64; then
17118         # AIX 5 now supports IA64 processor
17119         lt_prog_compiler_static_CXX='-Bstatic'
17120       fi
17121       ;;
17122     amigaos*)
17123       # FIXME: we need at least 68020 code to build shared libraries, but
17124       # adding the `-m68020' flag to GCC prevents building anything better,
17125       # like `-m68040'.
17126       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17127       ;;
17128     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17129       # PIC is the default for these OSes.
17130       ;;
17131     mingw* | os2* | pw32*)
17132       # This hack is so that the source file can tell whether it is being
17133       # built for inclusion in a dll (and should export symbols for example).
17134       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17135       ;;
17136     darwin* | rhapsody*)
17137       # PIC is the default on this platform
17138       # Common symbols not allowed in MH_DYLIB files
17139       lt_prog_compiler_pic_CXX='-fno-common'
17140       ;;
17141     *djgpp*)
17142       # DJGPP does not support shared libraries at all
17143       lt_prog_compiler_pic_CXX=
17144       ;;
17145     sysv4*MP*)
17146       if test -d /usr/nec; then
17147         lt_prog_compiler_pic_CXX=-Kconform_pic
17148       fi
17149       ;;
17150     hpux*)
17151       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17152       # not for PA HP-UX.
17153       case "$host_cpu" in
17154       hppa*64*|ia64*)
17155         ;;
17156       *)
17157         lt_prog_compiler_pic_CXX='-fPIC'
17158         ;;
17159       esac
17160       ;;
17161     *)
17162       lt_prog_compiler_pic_CXX='-fPIC'
17163       ;;
17164     esac
17165   else
17166     case $host_os in
17167       aix4* | aix5*)
17168         # All AIX code is PIC.
17169         if test "$host_cpu" = ia64; then
17170           # AIX 5 now supports IA64 processor
17171           lt_prog_compiler_static_CXX='-Bstatic'
17172         else
17173           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17174         fi
17175         ;;
17176       chorus*)
17177         case $cc_basename in
17178         cxch68)
17179           # Green Hills C++ Compiler
17180           # _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"
17181           ;;
17182         esac
17183         ;;
17184       dgux*)
17185         case $cc_basename in
17186           ec++)
17187             lt_prog_compiler_pic_CXX='-KPIC'
17188             ;;
17189           ghcx)
17190             # Green Hills C++ Compiler
17191             lt_prog_compiler_pic_CXX='-pic'
17192             ;;
17193           *)
17194             ;;
17195         esac
17196         ;;
17197       freebsd* | kfreebsd*-gnu)
17198         # FreeBSD uses GNU C++
17199         ;;
17200       hpux9* | hpux10* | hpux11*)
17201         case $cc_basename in
17202           CC)
17203             lt_prog_compiler_wl_CXX='-Wl,'
17204             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17205             if test "$host_cpu" != ia64; then
17206               lt_prog_compiler_pic_CXX='+Z'
17207             fi
17208             ;;
17209           aCC)
17210             lt_prog_compiler_wl_CXX='-Wl,'
17211             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17212             case "$host_cpu" in
17213             hppa*64*|ia64*)
17214               # +Z the default
17215               ;;
17216             *)
17217               lt_prog_compiler_pic_CXX='+Z'
17218               ;;
17219             esac
17220             ;;
17221           *)
17222             ;;
17223         esac
17224         ;;
17225       irix5* | irix6* | nonstopux*)
17226         case $cc_basename in
17227           CC)
17228             lt_prog_compiler_wl_CXX='-Wl,'
17229             lt_prog_compiler_static_CXX='-non_shared'
17230             # CC pic flag -KPIC is the default.
17231             ;;
17232           *)
17233             ;;
17234         esac
17235         ;;
17236       linux*)
17237         case $cc_basename in
17238           KCC)
17239             # KAI C++ Compiler
17240             lt_prog_compiler_wl_CXX='--backend -Wl,'
17241             lt_prog_compiler_pic_CXX='-fPIC'
17242             ;;
17243           icpc)
17244             # Intel C++
17245             lt_prog_compiler_wl_CXX='-Wl,'
17246             lt_prog_compiler_pic_CXX='-KPIC'
17247             lt_prog_compiler_static_CXX='-static'
17248             ;;
17249           cxx)
17250             # Compaq C++
17251             # Make sure the PIC flag is empty.  It appears that all Alpha
17252             # Linux and Compaq Tru64 Unix objects are PIC.
17253             lt_prog_compiler_pic_CXX=
17254             lt_prog_compiler_static_CXX='-non_shared'
17255             ;;
17256           *)
17257             ;;
17258         esac
17259         ;;
17260       lynxos*)
17261         ;;
17262       m88k*)
17263         ;;
17264       mvs*)
17265         case $cc_basename in
17266           cxx)
17267             lt_prog_compiler_pic_CXX='-W c,exportall'
17268             ;;
17269           *)
17270             ;;
17271         esac
17272         ;;
17273       netbsd*)
17274         ;;
17275       osf3* | osf4* | osf5*)
17276         case $cc_basename in
17277           KCC)
17278             lt_prog_compiler_wl_CXX='--backend -Wl,'
17279             ;;
17280           RCC)
17281             # Rational C++ 2.4.1
17282             lt_prog_compiler_pic_CXX='-pic'
17283             ;;
17284           cxx)
17285             # Digital/Compaq C++
17286             lt_prog_compiler_wl_CXX='-Wl,'
17287             # Make sure the PIC flag is empty.  It appears that all Alpha
17288             # Linux and Compaq Tru64 Unix objects are PIC.
17289             lt_prog_compiler_pic_CXX=
17290             lt_prog_compiler_static_CXX='-non_shared'
17291             ;;
17292           *)
17293             ;;
17294         esac
17295         ;;
17296       psos*)
17297         ;;
17298       sco*)
17299         case $cc_basename in
17300           CC)
17301             lt_prog_compiler_pic_CXX='-fPIC'
17302             ;;
17303           *)
17304             ;;
17305         esac
17306         ;;
17307       solaris*)
17308         case $cc_basename in
17309           CC)
17310             # Sun C++ 4.2, 5.x and Centerline C++
17311             lt_prog_compiler_pic_CXX='-KPIC'
17312             lt_prog_compiler_static_CXX='-Bstatic'
17313             lt_prog_compiler_wl_CXX='-Qoption ld '
17314             ;;
17315           gcx)
17316             # Green Hills C++ Compiler
17317             lt_prog_compiler_pic_CXX='-PIC'
17318             ;;
17319           *)
17320             ;;
17321         esac
17322         ;;
17323       sunos4*)
17324         case $cc_basename in
17325           CC)
17326             # Sun C++ 4.x
17327             lt_prog_compiler_pic_CXX='-pic'
17328             lt_prog_compiler_static_CXX='-Bstatic'
17329             ;;
17330           lcc)
17331             # Lucid
17332             lt_prog_compiler_pic_CXX='-pic'
17333             ;;
17334           *)
17335             ;;
17336         esac
17337         ;;
17338       tandem*)
17339         case $cc_basename in
17340           NCC)
17341             # NonStop-UX NCC 3.20
17342             lt_prog_compiler_pic_CXX='-KPIC'
17343             ;;
17344           *)
17345             ;;
17346         esac
17347         ;;
17348       unixware*)
17349         ;;
17350       vxworks*)
17351         ;;
17352       *)
17353         lt_prog_compiler_can_build_shared_CXX=no
17354         ;;
17355     esac
17356   fi
17357
17358 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17359 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17360
17361 #
17362 # Check to make sure the PIC flag actually works.
17363 #
17364 if test -n "$lt_prog_compiler_pic_CXX"; then
17365
17366 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17367 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17368 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17369   echo $ECHO_N "(cached) $ECHO_C" >&6
17370 else
17371   lt_prog_compiler_pic_works_CXX=no
17372   ac_outfile=conftest.$ac_objext
17373    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17374    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17375    # Insert the option either (1) after the last *FLAGS variable, or
17376    # (2) before a word containing "conftest.", or (3) at the end.
17377    # Note that $ac_compile itself does not contain backslashes and begins
17378    # with a dollar sign (not a hyphen), so the echo should work correctly.
17379    # The option is referenced via a variable to avoid confusing sed.
17380    lt_compile=`echo "$ac_compile" | $SED \
17381    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17382    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17383    -e 's:$: $lt_compiler_flag:'`
17384    (eval echo "\"\$as_me:17384: $lt_compile\"" >&5)
17385    (eval "$lt_compile" 2>conftest.err)
17386    ac_status=$?
17387    cat conftest.err >&5
17388    echo "$as_me:17388: \$? = $ac_status" >&5
17389    if (exit $ac_status) && test -s "$ac_outfile"; then
17390      # The compiler can only warn and ignore the option if not recognized
17391      # So say no if there are warnings
17392      if test ! -s conftest.err; then
17393        lt_prog_compiler_pic_works_CXX=yes
17394      fi
17395    fi
17396    $rm conftest*
17397
17398 fi
17399 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17400 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17401
17402 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17403     case $lt_prog_compiler_pic_CXX in
17404      "" | " "*) ;;
17405      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17406      esac
17407 else
17408     lt_prog_compiler_pic_CXX=
17409      lt_prog_compiler_can_build_shared_CXX=no
17410 fi
17411
17412 fi
17413 case "$host_os" in
17414   # For platforms which do not support PIC, -DPIC is meaningless:
17415   *djgpp*)
17416     lt_prog_compiler_pic_CXX=
17417     ;;
17418   *)
17419     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17420     ;;
17421 esac
17422
17423 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17424 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17425 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428   lt_cv_prog_compiler_c_o_CXX=no
17429    $rm -r conftest 2>/dev/null
17430    mkdir conftest
17431    cd conftest
17432    mkdir out
17433    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17434
17435    lt_compiler_flag="-o out/conftest2.$ac_objext"
17436    # Insert the option either (1) after the last *FLAGS variable, or
17437    # (2) before a word containing "conftest.", or (3) at the end.
17438    # Note that $ac_compile itself does not contain backslashes and begins
17439    # with a dollar sign (not a hyphen), so the echo should work correctly.
17440    lt_compile=`echo "$ac_compile" | $SED \
17441    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17442    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17443    -e 's:$: $lt_compiler_flag:'`
17444    (eval echo "\"\$as_me:17444: $lt_compile\"" >&5)
17445    (eval "$lt_compile" 2>out/conftest.err)
17446    ac_status=$?
17447    cat out/conftest.err >&5
17448    echo "$as_me:17448: \$? = $ac_status" >&5
17449    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17450    then
17451      # The compiler can only warn and ignore the option if not recognized
17452      # So say no if there are warnings
17453      if test ! -s out/conftest.err; then
17454        lt_cv_prog_compiler_c_o_CXX=yes
17455      fi
17456    fi
17457    chmod u+w .
17458    $rm conftest*
17459    # SGI C++ compiler will create directory out/ii_files/ for
17460    # template instantiation
17461    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17462    $rm out/* && rmdir out
17463    cd ..
17464    rmdir conftest
17465    $rm conftest*
17466
17467 fi
17468 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17469 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17470
17471
17472 hard_links="nottested"
17473 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17474   # do not overwrite the value of need_locks provided by the user
17475   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17476 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17477   hard_links=yes
17478   $rm conftest*
17479   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17480   touch conftest.a
17481   ln conftest.a conftest.b 2>&5 || hard_links=no
17482   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17483   echo "$as_me:$LINENO: result: $hard_links" >&5
17484 echo "${ECHO_T}$hard_links" >&6
17485   if test "$hard_links" = no; then
17486     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17487 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17488     need_locks=warn
17489   fi
17490 else
17491   need_locks=no
17492 fi
17493
17494 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17495 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17496
17497   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17498   case $host_os in
17499   aix4* | aix5*)
17500     # If we're using GNU nm, then we don't want the "-C" option.
17501     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17502     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17503       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'
17504     else
17505       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'
17506     fi
17507     ;;
17508   pw32*)
17509     export_symbols_cmds_CXX="$ltdll_cmds"
17510   ;;
17511   cygwin* | mingw*)
17512     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17513   ;;
17514   *)
17515     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17516   ;;
17517   esac
17518
17519 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17520 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17521 test "$ld_shlibs_CXX" = no && can_build_shared=no
17522
17523 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17524 if test "$GCC" = yes; then
17525   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17526 fi
17527
17528 #
17529 # Do we need to explicitly link libc?
17530 #
17531 case "x$archive_cmds_need_lc_CXX" in
17532 x|xyes)
17533   # Assume -lc should be added
17534   archive_cmds_need_lc_CXX=yes
17535
17536   if test "$enable_shared" = yes && test "$GCC" = yes; then
17537     case $archive_cmds_CXX in
17538     *'~'*)
17539       # FIXME: we may have to deal with multi-command sequences.
17540       ;;
17541     '$CC '*)
17542       # Test whether the compiler implicitly links with -lc since on some
17543       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17544       # to ld, don't add -lc before -lgcc.
17545       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17546 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17547       $rm conftest*
17548       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17549
17550       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17551   (eval $ac_compile) 2>&5
17552   ac_status=$?
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); } 2>conftest.err; then
17555         soname=conftest
17556         lib=conftest
17557         libobjs=conftest.$ac_objext
17558         deplibs=
17559         wl=$lt_prog_compiler_wl_CXX
17560         compiler_flags=-v
17561         linker_flags=-v
17562         verstring=
17563         output_objdir=.
17564         libname=conftest
17565         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17566         allow_undefined_flag_CXX=
17567         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17568   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17569   ac_status=$?
17570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); }
17572         then
17573           archive_cmds_need_lc_CXX=no
17574         else
17575           archive_cmds_need_lc_CXX=yes
17576         fi
17577         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17578       else
17579         cat conftest.err 1>&5
17580       fi
17581       $rm conftest*
17582       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17583 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17584       ;;
17585     esac
17586   fi
17587   ;;
17588 esac
17589
17590 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17592 library_names_spec=
17593 libname_spec='lib$name'
17594 soname_spec=
17595 shrext_cmds=".so"
17596 postinstall_cmds=
17597 postuninstall_cmds=
17598 finish_cmds=
17599 finish_eval=
17600 shlibpath_var=
17601 shlibpath_overrides_runpath=unknown
17602 version_type=none
17603 dynamic_linker="$host_os ld.so"
17604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17605 if test "$GCC" = yes; then
17606   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17607   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17608     # if the path contains ";" then we assume it to be the separator
17609     # otherwise default to the standard path separator (i.e. ":") - it is
17610     # assumed that no part of a normal pathname contains ";" but that should
17611     # okay in the real world where ";" in dirpaths is itself problematic.
17612     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17613   else
17614     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17615   fi
17616 else
17617   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17618 fi
17619 need_lib_prefix=unknown
17620 hardcode_into_libs=no
17621
17622 # when you set need_version to no, make sure it does not cause -set_version
17623 # flags to be left without arguments
17624 need_version=unknown
17625
17626 case $host_os in
17627 aix3*)
17628   version_type=linux
17629   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17630   shlibpath_var=LIBPATH
17631
17632   # AIX 3 has no versioning support, so we append a major version to the name.
17633   soname_spec='${libname}${release}${shared_ext}$major'
17634   ;;
17635
17636 aix4* | aix5*)
17637   version_type=linux
17638   need_lib_prefix=no
17639   need_version=no
17640   hardcode_into_libs=yes
17641   if test "$host_cpu" = ia64; then
17642     # AIX 5 supports IA64
17643     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17644     shlibpath_var=LD_LIBRARY_PATH
17645   else
17646     # With GCC up to 2.95.x, collect2 would create an import file
17647     # for dependence libraries.  The import file would start with
17648     # the line `#! .'.  This would cause the generated library to
17649     # depend on `.', always an invalid library.  This was fixed in
17650     # development snapshots of GCC prior to 3.0.
17651     case $host_os in
17652       aix4 | aix4.[01] | aix4.[01].*)
17653       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17654            echo ' yes '
17655            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17656         :
17657       else
17658         can_build_shared=no
17659       fi
17660       ;;
17661     esac
17662     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17663     # soname into executable. Probably we can add versioning support to
17664     # collect2, so additional links can be useful in future.
17665     if test "$aix_use_runtimelinking" = yes; then
17666       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17667       # instead of lib<name>.a to let people know that these are not
17668       # typical AIX shared libraries.
17669       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17670     else
17671       # We preserve .a as extension for shared libraries through AIX4.2
17672       # and later when we are not doing run time linking.
17673       library_names_spec='${libname}${release}.a $libname.a'
17674       soname_spec='${libname}${release}${shared_ext}$major'
17675     fi
17676     shlibpath_var=LIBPATH
17677   fi
17678   ;;
17679
17680 amigaos*)
17681   library_names_spec='$libname.ixlibrary $libname.a'
17682   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17683   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'
17684   ;;
17685
17686 beos*)
17687   library_names_spec='${libname}${shared_ext}'
17688   dynamic_linker="$host_os ld.so"
17689   shlibpath_var=LIBRARY_PATH
17690   ;;
17691
17692 bsdi4*)
17693   version_type=linux
17694   need_version=no
17695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17696   soname_spec='${libname}${release}${shared_ext}$major'
17697   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17698   shlibpath_var=LD_LIBRARY_PATH
17699   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17700   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17701   # the default ld.so.conf also contains /usr/contrib/lib and
17702   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17703   # libtool to hard-code these into programs
17704   ;;
17705
17706 cygwin* | mingw* | pw32*)
17707   version_type=windows
17708   shrext_cmds=".dll"
17709   need_version=no
17710   need_lib_prefix=no
17711
17712   case $GCC,$host_os in
17713   yes,cygwin* | yes,mingw* | yes,pw32*)
17714     library_names_spec='$libname.dll.a'
17715     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17716     postinstall_cmds='base_file=`basename \${file}`~
17717       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17718       dldir=$destdir/`dirname \$dlpath`~
17719       test -d \$dldir || mkdir -p \$dldir~
17720       $install_prog $dir/$dlname \$dldir/$dlname'
17721     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17722       dlpath=$dir/\$dldll~
17723        $rm \$dlpath'
17724     shlibpath_overrides_runpath=yes
17725
17726     case $host_os in
17727     cygwin*)
17728       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17729       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17730       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17731       ;;
17732     mingw*)
17733       # MinGW DLLs use traditional 'lib' prefix
17734       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17735       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17736       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17737         # It is most probably a Windows format PATH printed by
17738         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17739         # path with ; separators, and with drive letters. We can handle the
17740         # drive letters (cygwin fileutils understands them), so leave them,
17741         # especially as we might pass files found there to a mingw objdump,
17742         # which wouldn't understand a cygwinified path. Ahh.
17743         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17744       else
17745         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17746       fi
17747       ;;
17748     pw32*)
17749       # pw32 DLLs use 'pw' prefix rather than 'lib'
17750       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17751       ;;
17752     esac
17753     ;;
17754
17755   *)
17756     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17757     ;;
17758   esac
17759   dynamic_linker='Win32 ld.exe'
17760   # FIXME: first we should search . and the directory the executable is in
17761   shlibpath_var=PATH
17762   ;;
17763
17764 darwin* | rhapsody*)
17765   dynamic_linker="$host_os dyld"
17766   version_type=darwin
17767   need_lib_prefix=no
17768   need_version=no
17769   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17770   soname_spec='${libname}${release}${major}$shared_ext'
17771   shlibpath_overrides_runpath=yes
17772   shlibpath_var=DYLD_LIBRARY_PATH
17773   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17774   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17775   if test "$GCC" = yes; then
17776     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"`
17777   else
17778     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17779   fi
17780   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17781   ;;
17782
17783 dgux*)
17784   version_type=linux
17785   need_lib_prefix=no
17786   need_version=no
17787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17788   soname_spec='${libname}${release}${shared_ext}$major'
17789   shlibpath_var=LD_LIBRARY_PATH
17790   ;;
17791
17792 freebsd1*)
17793   dynamic_linker=no
17794   ;;
17795
17796 kfreebsd*-gnu)
17797   version_type=linux
17798   need_lib_prefix=no
17799   need_version=no
17800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17801   soname_spec='${libname}${release}${shared_ext}$major'
17802   shlibpath_var=LD_LIBRARY_PATH
17803   shlibpath_overrides_runpath=no
17804   hardcode_into_libs=yes
17805   dynamic_linker='GNU ld.so'
17806   ;;
17807
17808 freebsd*)
17809   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17810   version_type=freebsd-$objformat
17811   case $version_type in
17812     freebsd-elf*)
17813       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17814       need_version=no
17815       need_lib_prefix=no
17816       ;;
17817     freebsd-*)
17818       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17819       need_version=yes
17820       ;;
17821   esac
17822   shlibpath_var=LD_LIBRARY_PATH
17823   case $host_os in
17824   freebsd2*)
17825     shlibpath_overrides_runpath=yes
17826     ;;
17827   freebsd3.01* | freebsdelf3.01*)
17828     shlibpath_overrides_runpath=yes
17829     hardcode_into_libs=yes
17830     ;;
17831   *) # from 3.2 on
17832     shlibpath_overrides_runpath=no
17833     hardcode_into_libs=yes
17834     ;;
17835   esac
17836   ;;
17837
17838 gnu*)
17839   version_type=linux
17840   need_lib_prefix=no
17841   need_version=no
17842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17843   soname_spec='${libname}${release}${shared_ext}$major'
17844   shlibpath_var=LD_LIBRARY_PATH
17845   hardcode_into_libs=yes
17846   ;;
17847
17848 hpux9* | hpux10* | hpux11*)
17849   # Give a soname corresponding to the major version so that dld.sl refuses to
17850   # link against other versions.
17851   version_type=sunos
17852   need_lib_prefix=no
17853   need_version=no
17854   case "$host_cpu" in
17855   ia64*)
17856     shrext_cmds='.so'
17857     hardcode_into_libs=yes
17858     dynamic_linker="$host_os dld.so"
17859     shlibpath_var=LD_LIBRARY_PATH
17860     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17862     soname_spec='${libname}${release}${shared_ext}$major'
17863     if test "X$HPUX_IA64_MODE" = X32; then
17864       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17865     else
17866       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17867     fi
17868     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17869     ;;
17870    hppa*64*)
17871      shrext_cmds='.sl'
17872      hardcode_into_libs=yes
17873      dynamic_linker="$host_os dld.sl"
17874      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17875      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17876      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17877      soname_spec='${libname}${release}${shared_ext}$major'
17878      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17879      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17880      ;;
17881    *)
17882     shrext_cmds='.sl'
17883     dynamic_linker="$host_os dld.sl"
17884     shlibpath_var=SHLIB_PATH
17885     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17886     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17887     soname_spec='${libname}${release}${shared_ext}$major'
17888     ;;
17889   esac
17890   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17891   postinstall_cmds='chmod 555 $lib'
17892   ;;
17893
17894 irix5* | irix6* | nonstopux*)
17895   case $host_os in
17896     nonstopux*) version_type=nonstopux ;;
17897     *)
17898         if test "$lt_cv_prog_gnu_ld" = yes; then
17899                 version_type=linux
17900         else
17901                 version_type=irix
17902         fi ;;
17903   esac
17904   need_lib_prefix=no
17905   need_version=no
17906   soname_spec='${libname}${release}${shared_ext}$major'
17907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17908   case $host_os in
17909   irix5* | nonstopux*)
17910     libsuff= shlibsuff=
17911     ;;
17912   *)
17913     case $LD in # libtool.m4 will add one of these switches to LD
17914     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17915       libsuff= shlibsuff= libmagic=32-bit;;
17916     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17917       libsuff=32 shlibsuff=N32 libmagic=N32;;
17918     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17919       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17920     *) libsuff= shlibsuff= libmagic=never-match;;
17921     esac
17922     ;;
17923   esac
17924   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17925   shlibpath_overrides_runpath=no
17926   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17927   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17928   hardcode_into_libs=yes
17929   ;;
17930
17931 # No shared lib support for Linux oldld, aout, or coff.
17932 linux*oldld* | linux*aout* | linux*coff*)
17933   dynamic_linker=no
17934   ;;
17935
17936 # This must be Linux ELF.
17937 linux*)
17938   version_type=linux
17939   need_lib_prefix=no
17940   need_version=no
17941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942   soname_spec='${libname}${release}${shared_ext}$major'
17943   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17944   shlibpath_var=LD_LIBRARY_PATH
17945   shlibpath_overrides_runpath=no
17946   # This implies no fast_install, which is unacceptable.
17947   # Some rework will be needed to allow for fast_install
17948   # before this can be enabled.
17949   hardcode_into_libs=yes
17950
17951   # find out which ABI we are using
17952   libsuff=
17953   case "$host_cpu" in
17954   x86_64*|s390x*|powerpc64*)
17955     echo '#line 17955 "configure"' > conftest.$ac_ext
17956     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17957   (eval $ac_compile) 2>&5
17958   ac_status=$?
17959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960   (exit $ac_status); }; then
17961       case `/usr/bin/file conftest.$ac_objext` in
17962       *64-bit*)
17963         libsuff=64
17964         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17965         ;;
17966       esac
17967     fi
17968     rm -rf conftest*
17969     ;;
17970   esac
17971
17972   # Append ld.so.conf contents to the search path
17973   if test -f /etc/ld.so.conf; then
17974     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17975     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17976   fi
17977
17978   # We used to test for /lib/ld.so.1 and disable shared libraries on
17979   # powerpc, because MkLinux only supported shared libraries with the
17980   # GNU dynamic linker.  Since this was broken with cross compilers,
17981   # most powerpc-linux boxes support dynamic linking these days and
17982   # people can always --disable-shared, the test was removed, and we
17983   # assume the GNU/Linux dynamic linker is in use.
17984   dynamic_linker='GNU/Linux ld.so'
17985   ;;
17986
17987 knetbsd*-gnu)
17988   version_type=linux
17989   need_lib_prefix=no
17990   need_version=no
17991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17992   soname_spec='${libname}${release}${shared_ext}$major'
17993   shlibpath_var=LD_LIBRARY_PATH
17994   shlibpath_overrides_runpath=no
17995   hardcode_into_libs=yes
17996   dynamic_linker='GNU ld.so'
17997   ;;
17998
17999 netbsd*)
18000   version_type=sunos
18001   need_lib_prefix=no
18002   need_version=no
18003   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18005     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18006     dynamic_linker='NetBSD (a.out) ld.so'
18007   else
18008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18009     soname_spec='${libname}${release}${shared_ext}$major'
18010     dynamic_linker='NetBSD ld.elf_so'
18011   fi
18012   shlibpath_var=LD_LIBRARY_PATH
18013   shlibpath_overrides_runpath=yes
18014   hardcode_into_libs=yes
18015   ;;
18016
18017 newsos6)
18018   version_type=linux
18019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18020   shlibpath_var=LD_LIBRARY_PATH
18021   shlibpath_overrides_runpath=yes
18022   ;;
18023
18024 nto-qnx*)
18025   version_type=linux
18026   need_lib_prefix=no
18027   need_version=no
18028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18029   soname_spec='${libname}${release}${shared_ext}$major'
18030   shlibpath_var=LD_LIBRARY_PATH
18031   shlibpath_overrides_runpath=yes
18032   ;;
18033
18034 openbsd*)
18035   version_type=sunos
18036   need_lib_prefix=no
18037   need_version=yes
18038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18039   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18040   shlibpath_var=LD_LIBRARY_PATH
18041   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18042     case $host_os in
18043       openbsd2.[89] | openbsd2.[89].*)
18044         shlibpath_overrides_runpath=no
18045         ;;
18046       *)
18047         shlibpath_overrides_runpath=yes
18048         ;;
18049       esac
18050   else
18051     shlibpath_overrides_runpath=yes
18052   fi
18053   ;;
18054
18055 os2*)
18056   libname_spec='$name'
18057   shrext_cmds=".dll"
18058   need_lib_prefix=no
18059   library_names_spec='$libname${shared_ext} $libname.a'
18060   dynamic_linker='OS/2 ld.exe'
18061   shlibpath_var=LIBPATH
18062   ;;
18063
18064 osf3* | osf4* | osf5*)
18065   version_type=osf
18066   need_lib_prefix=no
18067   need_version=no
18068   soname_spec='${libname}${release}${shared_ext}$major'
18069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18070   shlibpath_var=LD_LIBRARY_PATH
18071   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18072   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18073   ;;
18074
18075 sco3.2v5*)
18076   version_type=osf
18077   soname_spec='${libname}${release}${shared_ext}$major'
18078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079   shlibpath_var=LD_LIBRARY_PATH
18080   ;;
18081
18082 solaris*)
18083   version_type=linux
18084   need_lib_prefix=no
18085   need_version=no
18086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18087   soname_spec='${libname}${release}${shared_ext}$major'
18088   shlibpath_var=LD_LIBRARY_PATH
18089   shlibpath_overrides_runpath=yes
18090   hardcode_into_libs=yes
18091   # ldd complains unless libraries are executable
18092   postinstall_cmds='chmod +x $lib'
18093   ;;
18094
18095 sunos4*)
18096   version_type=sunos
18097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18098   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18099   shlibpath_var=LD_LIBRARY_PATH
18100   shlibpath_overrides_runpath=yes
18101   if test "$with_gnu_ld" = yes; then
18102     need_lib_prefix=no
18103   fi
18104   need_version=yes
18105   ;;
18106
18107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18108   version_type=linux
18109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18110   soname_spec='${libname}${release}${shared_ext}$major'
18111   shlibpath_var=LD_LIBRARY_PATH
18112   case $host_vendor in
18113     sni)
18114       shlibpath_overrides_runpath=no
18115       need_lib_prefix=no
18116       export_dynamic_flag_spec='${wl}-Blargedynsym'
18117       runpath_var=LD_RUN_PATH
18118       ;;
18119     siemens)
18120       need_lib_prefix=no
18121       ;;
18122     motorola)
18123       need_lib_prefix=no
18124       need_version=no
18125       shlibpath_overrides_runpath=no
18126       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18127       ;;
18128   esac
18129   ;;
18130
18131 sysv4*MP*)
18132   if test -d /usr/nec ;then
18133     version_type=linux
18134     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18135     soname_spec='$libname${shared_ext}.$major'
18136     shlibpath_var=LD_LIBRARY_PATH
18137   fi
18138   ;;
18139
18140 uts4*)
18141   version_type=linux
18142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18143   soname_spec='${libname}${release}${shared_ext}$major'
18144   shlibpath_var=LD_LIBRARY_PATH
18145   ;;
18146
18147 *)
18148   dynamic_linker=no
18149   ;;
18150 esac
18151 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18152 echo "${ECHO_T}$dynamic_linker" >&6
18153 test "$dynamic_linker" = no && can_build_shared=no
18154
18155 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18156 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18157 hardcode_action_CXX=
18158 if test -n "$hardcode_libdir_flag_spec_CXX" || \
18159    test -n "$runpath_var CXX" || \
18160    test "X$hardcode_automatic_CXX"="Xyes" ; then
18161
18162   # We can hardcode non-existant directories.
18163   if test "$hardcode_direct_CXX" != no &&
18164      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18165      # have to relink, otherwise we might link with an installed library
18166      # when we should be linking with a yet-to-be-installed one
18167      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18168      test "$hardcode_minus_L_CXX" != no; then
18169     # Linking always hardcodes the temporary library directory.
18170     hardcode_action_CXX=relink
18171   else
18172     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18173     hardcode_action_CXX=immediate
18174   fi
18175 else
18176   # We cannot hardcode anything, or else we can only hardcode existing
18177   # directories.
18178   hardcode_action_CXX=unsupported
18179 fi
18180 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18181 echo "${ECHO_T}$hardcode_action_CXX" >&6
18182
18183 if test "$hardcode_action_CXX" = relink; then
18184   # Fast installation is not supported
18185   enable_fast_install=no
18186 elif test "$shlibpath_overrides_runpath" = yes ||
18187      test "$enable_shared" = no; then
18188   # Fast installation is not necessary
18189   enable_fast_install=needless
18190 fi
18191
18192 striplib=
18193 old_striplib=
18194 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18195 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18196 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18197   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18198   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18199   echo "$as_me:$LINENO: result: yes" >&5
18200 echo "${ECHO_T}yes" >&6
18201 else
18202 # FIXME - insert some real tests, host_os isn't really good enough
18203   case $host_os in
18204    darwin*)
18205        if test -n "$STRIP" ; then
18206          striplib="$STRIP -x"
18207          echo "$as_me:$LINENO: result: yes" >&5
18208 echo "${ECHO_T}yes" >&6
18209        else
18210   echo "$as_me:$LINENO: result: no" >&5
18211 echo "${ECHO_T}no" >&6
18212 fi
18213        ;;
18214    *)
18215   echo "$as_me:$LINENO: result: no" >&5
18216 echo "${ECHO_T}no" >&6
18217     ;;
18218   esac
18219 fi
18220
18221 if test "x$enable_dlopen" != xyes; then
18222   enable_dlopen=unknown
18223   enable_dlopen_self=unknown
18224   enable_dlopen_self_static=unknown
18225 else
18226   lt_cv_dlopen=no
18227   lt_cv_dlopen_libs=
18228
18229   case $host_os in
18230   beos*)
18231     lt_cv_dlopen="load_add_on"
18232     lt_cv_dlopen_libs=
18233     lt_cv_dlopen_self=yes
18234     ;;
18235
18236   mingw* | pw32*)
18237     lt_cv_dlopen="LoadLibrary"
18238     lt_cv_dlopen_libs=
18239    ;;
18240
18241   cygwin*)
18242     lt_cv_dlopen="dlopen"
18243     lt_cv_dlopen_libs=
18244    ;;
18245
18246   darwin*)
18247   # if libdl is installed we need to link against it
18248     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18249 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18251   echo $ECHO_N "(cached) $ECHO_C" >&6
18252 else
18253   ac_check_lib_save_LIBS=$LIBS
18254 LIBS="-ldl  $LIBS"
18255 cat >conftest.$ac_ext <<_ACEOF
18256 /* confdefs.h.  */
18257 _ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h.  */
18261
18262 /* Override any gcc2 internal prototype to avoid an error.  */
18263 #ifdef __cplusplus
18264 extern "C"
18265 #endif
18266 /* We use char because int might match the return type of a gcc2
18267    builtin and then its argument prototype would still apply.  */
18268 char dlopen ();
18269 int
18270 main ()
18271 {
18272 dlopen ();
18273   ;
18274   return 0;
18275 }
18276 _ACEOF
18277 rm -f conftest.$ac_objext conftest$ac_exeext
18278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18279   (eval $ac_link) 2>conftest.er1
18280   ac_status=$?
18281   grep -v '^ *+' conftest.er1 >conftest.err
18282   rm -f conftest.er1
18283   cat conftest.err >&5
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); } &&
18286          { ac_try='test -z "$ac_cxx_werror_flag"
18287                          || test ! -s conftest.err'
18288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289   (eval $ac_try) 2>&5
18290   ac_status=$?
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); }; } &&
18293          { ac_try='test -s conftest$ac_exeext'
18294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295   (eval $ac_try) 2>&5
18296   ac_status=$?
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); }; }; then
18299   ac_cv_lib_dl_dlopen=yes
18300 else
18301   echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18303
18304 ac_cv_lib_dl_dlopen=no
18305 fi
18306 rm -f conftest.err conftest.$ac_objext \
18307       conftest$ac_exeext conftest.$ac_ext
18308 LIBS=$ac_check_lib_save_LIBS
18309 fi
18310 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18312 if test $ac_cv_lib_dl_dlopen = yes; then
18313   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18314 else
18315
18316     lt_cv_dlopen="dyld"
18317     lt_cv_dlopen_libs=
18318     lt_cv_dlopen_self=yes
18319
18320 fi
18321
18322    ;;
18323
18324   *)
18325     echo "$as_me:$LINENO: checking for shl_load" >&5
18326 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18327 if test "${ac_cv_func_shl_load+set}" = set; then
18328   echo $ECHO_N "(cached) $ECHO_C" >&6
18329 else
18330   cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h.  */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h.  */
18336 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18338 #define shl_load innocuous_shl_load
18339
18340 /* System header to define __stub macros and hopefully few prototypes,
18341     which can conflict with char shl_load (); below.
18342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18343     <limits.h> exists even on freestanding compilers.  */
18344
18345 #ifdef __STDC__
18346 # include <limits.h>
18347 #else
18348 # include <assert.h>
18349 #endif
18350
18351 #undef shl_load
18352
18353 /* Override any gcc2 internal prototype to avoid an error.  */
18354 #ifdef __cplusplus
18355 extern "C"
18356 {
18357 #endif
18358 /* We use char because int might match the return type of a gcc2
18359    builtin and then its argument prototype would still apply.  */
18360 char shl_load ();
18361 /* The GNU C library defines this for functions which it implements
18362     to always fail with ENOSYS.  Some functions are actually named
18363     something starting with __ and the normal name is an alias.  */
18364 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18365 choke me
18366 #else
18367 char (*f) () = shl_load;
18368 #endif
18369 #ifdef __cplusplus
18370 }
18371 #endif
18372
18373 int
18374 main ()
18375 {
18376 return f != shl_load;
18377   ;
18378   return 0;
18379 }
18380 _ACEOF
18381 rm -f conftest.$ac_objext conftest$ac_exeext
18382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18383   (eval $ac_link) 2>conftest.er1
18384   ac_status=$?
18385   grep -v '^ *+' conftest.er1 >conftest.err
18386   rm -f conftest.er1
18387   cat conftest.err >&5
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); } &&
18390          { ac_try='test -z "$ac_cxx_werror_flag"
18391                          || test ! -s conftest.err'
18392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393   (eval $ac_try) 2>&5
18394   ac_status=$?
18395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); }; } &&
18397          { ac_try='test -s conftest$ac_exeext'
18398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399   (eval $ac_try) 2>&5
18400   ac_status=$?
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); }; }; then
18403   ac_cv_func_shl_load=yes
18404 else
18405   echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18407
18408 ac_cv_func_shl_load=no
18409 fi
18410 rm -f conftest.err conftest.$ac_objext \
18411       conftest$ac_exeext conftest.$ac_ext
18412 fi
18413 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18414 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18415 if test $ac_cv_func_shl_load = yes; then
18416   lt_cv_dlopen="shl_load"
18417 else
18418   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18419 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18420 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18421   echo $ECHO_N "(cached) $ECHO_C" >&6
18422 else
18423   ac_check_lib_save_LIBS=$LIBS
18424 LIBS="-ldld  $LIBS"
18425 cat >conftest.$ac_ext <<_ACEOF
18426 /* confdefs.h.  */
18427 _ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h.  */
18431
18432 /* Override any gcc2 internal prototype to avoid an error.  */
18433 #ifdef __cplusplus
18434 extern "C"
18435 #endif
18436 /* We use char because int might match the return type of a gcc2
18437    builtin and then its argument prototype would still apply.  */
18438 char shl_load ();
18439 int
18440 main ()
18441 {
18442 shl_load ();
18443   ;
18444   return 0;
18445 }
18446 _ACEOF
18447 rm -f conftest.$ac_objext conftest$ac_exeext
18448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18449   (eval $ac_link) 2>conftest.er1
18450   ac_status=$?
18451   grep -v '^ *+' conftest.er1 >conftest.err
18452   rm -f conftest.er1
18453   cat conftest.err >&5
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); } &&
18456          { ac_try='test -z "$ac_cxx_werror_flag"
18457                          || test ! -s conftest.err'
18458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459   (eval $ac_try) 2>&5
18460   ac_status=$?
18461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); }; } &&
18463          { ac_try='test -s conftest$ac_exeext'
18464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465   (eval $ac_try) 2>&5
18466   ac_status=$?
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); }; }; then
18469   ac_cv_lib_dld_shl_load=yes
18470 else
18471   echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18473
18474 ac_cv_lib_dld_shl_load=no
18475 fi
18476 rm -f conftest.err conftest.$ac_objext \
18477       conftest$ac_exeext conftest.$ac_ext
18478 LIBS=$ac_check_lib_save_LIBS
18479 fi
18480 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18481 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18482 if test $ac_cv_lib_dld_shl_load = yes; then
18483   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18484 else
18485   echo "$as_me:$LINENO: checking for dlopen" >&5
18486 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18487 if test "${ac_cv_func_dlopen+set}" = set; then
18488   echo $ECHO_N "(cached) $ECHO_C" >&6
18489 else
18490   cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h.  */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h.  */
18496 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18498 #define dlopen innocuous_dlopen
18499
18500 /* System header to define __stub macros and hopefully few prototypes,
18501     which can conflict with char dlopen (); below.
18502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18503     <limits.h> exists even on freestanding compilers.  */
18504
18505 #ifdef __STDC__
18506 # include <limits.h>
18507 #else
18508 # include <assert.h>
18509 #endif
18510
18511 #undef dlopen
18512
18513 /* Override any gcc2 internal prototype to avoid an error.  */
18514 #ifdef __cplusplus
18515 extern "C"
18516 {
18517 #endif
18518 /* We use char because int might match the return type of a gcc2
18519    builtin and then its argument prototype would still apply.  */
18520 char dlopen ();
18521 /* The GNU C library defines this for functions which it implements
18522     to always fail with ENOSYS.  Some functions are actually named
18523     something starting with __ and the normal name is an alias.  */
18524 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18525 choke me
18526 #else
18527 char (*f) () = dlopen;
18528 #endif
18529 #ifdef __cplusplus
18530 }
18531 #endif
18532
18533 int
18534 main ()
18535 {
18536 return f != dlopen;
18537   ;
18538   return 0;
18539 }
18540 _ACEOF
18541 rm -f conftest.$ac_objext conftest$ac_exeext
18542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18543   (eval $ac_link) 2>conftest.er1
18544   ac_status=$?
18545   grep -v '^ *+' conftest.er1 >conftest.err
18546   rm -f conftest.er1
18547   cat conftest.err >&5
18548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549   (exit $ac_status); } &&
18550          { ac_try='test -z "$ac_cxx_werror_flag"
18551                          || test ! -s conftest.err'
18552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553   (eval $ac_try) 2>&5
18554   ac_status=$?
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); }; } &&
18557          { ac_try='test -s conftest$ac_exeext'
18558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559   (eval $ac_try) 2>&5
18560   ac_status=$?
18561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562   (exit $ac_status); }; }; then
18563   ac_cv_func_dlopen=yes
18564 else
18565   echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568 ac_cv_func_dlopen=no
18569 fi
18570 rm -f conftest.err conftest.$ac_objext \
18571       conftest$ac_exeext conftest.$ac_ext
18572 fi
18573 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18574 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18575 if test $ac_cv_func_dlopen = yes; then
18576   lt_cv_dlopen="dlopen"
18577 else
18578   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18579 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18580 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18581   echo $ECHO_N "(cached) $ECHO_C" >&6
18582 else
18583   ac_check_lib_save_LIBS=$LIBS
18584 LIBS="-ldl  $LIBS"
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h.  */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h.  */
18591
18592 /* Override any gcc2 internal prototype to avoid an error.  */
18593 #ifdef __cplusplus
18594 extern "C"
18595 #endif
18596 /* We use char because int might match the return type of a gcc2
18597    builtin and then its argument prototype would still apply.  */
18598 char dlopen ();
18599 int
18600 main ()
18601 {
18602 dlopen ();
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_lib_dl_dlopen=yes
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634 ac_cv_lib_dl_dlopen=no
18635 fi
18636 rm -f conftest.err conftest.$ac_objext \
18637       conftest$ac_exeext conftest.$ac_ext
18638 LIBS=$ac_check_lib_save_LIBS
18639 fi
18640 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18641 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18642 if test $ac_cv_lib_dl_dlopen = yes; then
18643   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18644 else
18645   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18646 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18647 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18648   echo $ECHO_N "(cached) $ECHO_C" >&6
18649 else
18650   ac_check_lib_save_LIBS=$LIBS
18651 LIBS="-lsvld  $LIBS"
18652 cat >conftest.$ac_ext <<_ACEOF
18653 /* confdefs.h.  */
18654 _ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h.  */
18658
18659 /* Override any gcc2 internal prototype to avoid an error.  */
18660 #ifdef __cplusplus
18661 extern "C"
18662 #endif
18663 /* We use char because int might match the return type of a gcc2
18664    builtin and then its argument prototype would still apply.  */
18665 char dlopen ();
18666 int
18667 main ()
18668 {
18669 dlopen ();
18670   ;
18671   return 0;
18672 }
18673 _ACEOF
18674 rm -f conftest.$ac_objext conftest$ac_exeext
18675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18676   (eval $ac_link) 2>conftest.er1
18677   ac_status=$?
18678   grep -v '^ *+' conftest.er1 >conftest.err
18679   rm -f conftest.er1
18680   cat conftest.err >&5
18681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682   (exit $ac_status); } &&
18683          { ac_try='test -z "$ac_cxx_werror_flag"
18684                          || test ! -s conftest.err'
18685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686   (eval $ac_try) 2>&5
18687   ac_status=$?
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); }; } &&
18690          { ac_try='test -s conftest$ac_exeext'
18691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692   (eval $ac_try) 2>&5
18693   ac_status=$?
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); }; }; then
18696   ac_cv_lib_svld_dlopen=yes
18697 else
18698   echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18700
18701 ac_cv_lib_svld_dlopen=no
18702 fi
18703 rm -f conftest.err conftest.$ac_objext \
18704       conftest$ac_exeext conftest.$ac_ext
18705 LIBS=$ac_check_lib_save_LIBS
18706 fi
18707 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18708 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18709 if test $ac_cv_lib_svld_dlopen = yes; then
18710   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18711 else
18712   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18713 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18714 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18715   echo $ECHO_N "(cached) $ECHO_C" >&6
18716 else
18717   ac_check_lib_save_LIBS=$LIBS
18718 LIBS="-ldld  $LIBS"
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h.  */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h.  */
18725
18726 /* Override any gcc2 internal prototype to avoid an error.  */
18727 #ifdef __cplusplus
18728 extern "C"
18729 #endif
18730 /* We use char because int might match the return type of a gcc2
18731    builtin and then its argument prototype would still apply.  */
18732 char dld_link ();
18733 int
18734 main ()
18735 {
18736 dld_link ();
18737   ;
18738   return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18743   (eval $ac_link) 2>conftest.er1
18744   ac_status=$?
18745   grep -v '^ *+' conftest.er1 >conftest.err
18746   rm -f conftest.er1
18747   cat conftest.err >&5
18748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749   (exit $ac_status); } &&
18750          { ac_try='test -z "$ac_cxx_werror_flag"
18751                          || test ! -s conftest.err'
18752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753   (eval $ac_try) 2>&5
18754   ac_status=$?
18755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756   (exit $ac_status); }; } &&
18757          { ac_try='test -s conftest$ac_exeext'
18758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759   (eval $ac_try) 2>&5
18760   ac_status=$?
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); }; }; then
18763   ac_cv_lib_dld_dld_link=yes
18764 else
18765   echo "$as_me: failed program was:" >&5
18766 sed 's/^/| /' conftest.$ac_ext >&5
18767
18768 ac_cv_lib_dld_dld_link=no
18769 fi
18770 rm -f conftest.err conftest.$ac_objext \
18771       conftest$ac_exeext conftest.$ac_ext
18772 LIBS=$ac_check_lib_save_LIBS
18773 fi
18774 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18775 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18776 if test $ac_cv_lib_dld_dld_link = yes; then
18777   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18778 fi
18779
18780
18781 fi
18782
18783
18784 fi
18785
18786
18787 fi
18788
18789
18790 fi
18791
18792
18793 fi
18794
18795     ;;
18796   esac
18797
18798   if test "x$lt_cv_dlopen" != xno; then
18799     enable_dlopen=yes
18800   else
18801     enable_dlopen=no
18802   fi
18803
18804   case $lt_cv_dlopen in
18805   dlopen)
18806     save_CPPFLAGS="$CPPFLAGS"
18807     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18808
18809     save_LDFLAGS="$LDFLAGS"
18810     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18811
18812     save_LIBS="$LIBS"
18813     LIBS="$lt_cv_dlopen_libs $LIBS"
18814
18815     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18816 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18817 if test "${lt_cv_dlopen_self+set}" = set; then
18818   echo $ECHO_N "(cached) $ECHO_C" >&6
18819 else
18820           if test "$cross_compiling" = yes; then :
18821   lt_cv_dlopen_self=cross
18822 else
18823   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18824   lt_status=$lt_dlunknown
18825   cat > conftest.$ac_ext <<EOF
18826 #line 18826 "configure"
18827 #include "confdefs.h"
18828
18829 #if HAVE_DLFCN_H
18830 #include <dlfcn.h>
18831 #endif
18832
18833 #include <stdio.h>
18834
18835 #ifdef RTLD_GLOBAL
18836 #  define LT_DLGLOBAL           RTLD_GLOBAL
18837 #else
18838 #  ifdef DL_GLOBAL
18839 #    define LT_DLGLOBAL         DL_GLOBAL
18840 #  else
18841 #    define LT_DLGLOBAL         0
18842 #  endif
18843 #endif
18844
18845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18846    find out it does not work in some platform. */
18847 #ifndef LT_DLLAZY_OR_NOW
18848 #  ifdef RTLD_LAZY
18849 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18850 #  else
18851 #    ifdef DL_LAZY
18852 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18853 #    else
18854 #      ifdef RTLD_NOW
18855 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18856 #      else
18857 #        ifdef DL_NOW
18858 #          define LT_DLLAZY_OR_NOW      DL_NOW
18859 #        else
18860 #          define LT_DLLAZY_OR_NOW      0
18861 #        endif
18862 #      endif
18863 #    endif
18864 #  endif
18865 #endif
18866
18867 #ifdef __cplusplus
18868 extern "C" void exit (int);
18869 #endif
18870
18871 void fnord() { int i=42;}
18872 int main ()
18873 {
18874   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18875   int status = $lt_dlunknown;
18876
18877   if (self)
18878     {
18879       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18880       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18881       /* dlclose (self); */
18882     }
18883
18884     exit (status);
18885 }
18886 EOF
18887   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18888   (eval $ac_link) 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18892     (./conftest; exit; ) 2>/dev/null
18893     lt_status=$?
18894     case x$lt_status in
18895       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18896       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18897       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18898     esac
18899   else :
18900     # compilation failed
18901     lt_cv_dlopen_self=no
18902   fi
18903 fi
18904 rm -fr conftest*
18905
18906
18907 fi
18908 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18909 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18910
18911     if test "x$lt_cv_dlopen_self" = xyes; then
18912       LDFLAGS="$LDFLAGS $link_static_flag"
18913       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18914 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18915 if test "${lt_cv_dlopen_self_static+set}" = set; then
18916   echo $ECHO_N "(cached) $ECHO_C" >&6
18917 else
18918           if test "$cross_compiling" = yes; then :
18919   lt_cv_dlopen_self_static=cross
18920 else
18921   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18922   lt_status=$lt_dlunknown
18923   cat > conftest.$ac_ext <<EOF
18924 #line 18924 "configure"
18925 #include "confdefs.h"
18926
18927 #if HAVE_DLFCN_H
18928 #include <dlfcn.h>
18929 #endif
18930
18931 #include <stdio.h>
18932
18933 #ifdef RTLD_GLOBAL
18934 #  define LT_DLGLOBAL           RTLD_GLOBAL
18935 #else
18936 #  ifdef DL_GLOBAL
18937 #    define LT_DLGLOBAL         DL_GLOBAL
18938 #  else
18939 #    define LT_DLGLOBAL         0
18940 #  endif
18941 #endif
18942
18943 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18944    find out it does not work in some platform. */
18945 #ifndef LT_DLLAZY_OR_NOW
18946 #  ifdef RTLD_LAZY
18947 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18948 #  else
18949 #    ifdef DL_LAZY
18950 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18951 #    else
18952 #      ifdef RTLD_NOW
18953 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18954 #      else
18955 #        ifdef DL_NOW
18956 #          define LT_DLLAZY_OR_NOW      DL_NOW
18957 #        else
18958 #          define LT_DLLAZY_OR_NOW      0
18959 #        endif
18960 #      endif
18961 #    endif
18962 #  endif
18963 #endif
18964
18965 #ifdef __cplusplus
18966 extern "C" void exit (int);
18967 #endif
18968
18969 void fnord() { int i=42;}
18970 int main ()
18971 {
18972   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18973   int status = $lt_dlunknown;
18974
18975   if (self)
18976     {
18977       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18978       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18979       /* dlclose (self); */
18980     }
18981
18982     exit (status);
18983 }
18984 EOF
18985   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18986   (eval $ac_link) 2>&5
18987   ac_status=$?
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18990     (./conftest; exit; ) 2>/dev/null
18991     lt_status=$?
18992     case x$lt_status in
18993       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18994       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18995       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18996     esac
18997   else :
18998     # compilation failed
18999     lt_cv_dlopen_self_static=no
19000   fi
19001 fi
19002 rm -fr conftest*
19003
19004
19005 fi
19006 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19007 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19008     fi
19009
19010     CPPFLAGS="$save_CPPFLAGS"
19011     LDFLAGS="$save_LDFLAGS"
19012     LIBS="$save_LIBS"
19013     ;;
19014   esac
19015
19016   case $lt_cv_dlopen_self in
19017   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19018   *) enable_dlopen_self=unknown ;;
19019   esac
19020
19021   case $lt_cv_dlopen_self_static in
19022   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19023   *) enable_dlopen_self_static=unknown ;;
19024   esac
19025 fi
19026
19027
19028 # The else clause should only fire when bootstrapping the
19029 # libtool distribution, otherwise you forgot to ship ltmain.sh
19030 # with your package, and you will get complaints that there are
19031 # no rules to generate ltmain.sh.
19032 if test -f "$ltmain"; then
19033   # See if we are running on zsh, and set the options which allow our commands through
19034   # without removal of \ escapes.
19035   if test -n "${ZSH_VERSION+set}" ; then
19036     setopt NO_GLOB_SUBST
19037   fi
19038   # Now quote all the things that may contain metacharacters while being
19039   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19040   # variables and quote the copies for generation of the libtool script.
19041   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19042     SED SHELL STRIP \
19043     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19044     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19045     deplibs_check_method reload_flag reload_cmds need_locks \
19046     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19047     lt_cv_sys_global_symbol_to_c_name_address \
19048     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19049     old_postinstall_cmds old_postuninstall_cmds \
19050     compiler_CXX \
19051     CC_CXX \
19052     LD_CXX \
19053     lt_prog_compiler_wl_CXX \
19054     lt_prog_compiler_pic_CXX \
19055     lt_prog_compiler_static_CXX \
19056     lt_prog_compiler_no_builtin_flag_CXX \
19057     export_dynamic_flag_spec_CXX \
19058     thread_safe_flag_spec_CXX \
19059     whole_archive_flag_spec_CXX \
19060     enable_shared_with_static_runtimes_CXX \
19061     old_archive_cmds_CXX \
19062     old_archive_from_new_cmds_CXX \
19063     predep_objects_CXX \
19064     postdep_objects_CXX \
19065     predeps_CXX \
19066     postdeps_CXX \
19067     compiler_lib_search_path_CXX \
19068     archive_cmds_CXX \
19069     archive_expsym_cmds_CXX \
19070     postinstall_cmds_CXX \
19071     postuninstall_cmds_CXX \
19072     old_archive_from_expsyms_cmds_CXX \
19073     allow_undefined_flag_CXX \
19074     no_undefined_flag_CXX \
19075     export_symbols_cmds_CXX \
19076     hardcode_libdir_flag_spec_CXX \
19077     hardcode_libdir_flag_spec_ld_CXX \
19078     hardcode_libdir_separator_CXX \
19079     hardcode_automatic_CXX \
19080     module_cmds_CXX \
19081     module_expsym_cmds_CXX \
19082     lt_cv_prog_compiler_c_o_CXX \
19083     exclude_expsyms_CXX \
19084     include_expsyms_CXX; do
19085
19086     case $var in
19087     old_archive_cmds_CXX | \
19088     old_archive_from_new_cmds_CXX | \
19089     archive_cmds_CXX | \
19090     archive_expsym_cmds_CXX | \
19091     module_cmds_CXX | \
19092     module_expsym_cmds_CXX | \
19093     old_archive_from_expsyms_cmds_CXX | \
19094     export_symbols_cmds_CXX | \
19095     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19096     postinstall_cmds | postuninstall_cmds | \
19097     old_postinstall_cmds | old_postuninstall_cmds | \
19098     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19099       # Double-quote double-evaled strings.
19100       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19101       ;;
19102     *)
19103       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19104       ;;
19105     esac
19106   done
19107
19108   case $lt_echo in
19109   *'\$0 --fallback-echo"')
19110     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19111     ;;
19112   esac
19113
19114 cfgfile="$ofile"
19115
19116   cat <<__EOF__ >> "$cfgfile"
19117 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19118
19119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19120
19121 # Shell to use when invoking shell scripts.
19122 SHELL=$lt_SHELL
19123
19124 # Whether or not to build shared libraries.
19125 build_libtool_libs=$enable_shared
19126
19127 # Whether or not to build static libraries.
19128 build_old_libs=$enable_static
19129
19130 # Whether or not to add -lc for building shared libraries.
19131 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19132
19133 # Whether or not to disallow shared libs when runtime libs are static
19134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19135
19136 # Whether or not to optimize for fast installation.
19137 fast_install=$enable_fast_install
19138
19139 # The host system.
19140 host_alias=$host_alias
19141 host=$host
19142
19143 # An echo program that does not interpret backslashes.
19144 echo=$lt_echo
19145
19146 # The archiver.
19147 AR=$lt_AR
19148 AR_FLAGS=$lt_AR_FLAGS
19149
19150 # A C compiler.
19151 LTCC=$lt_LTCC
19152
19153 # A language-specific compiler.
19154 CC=$lt_compiler_CXX
19155
19156 # Is the compiler the GNU C compiler?
19157 with_gcc=$GCC_CXX
19158
19159 # An ERE matcher.
19160 EGREP=$lt_EGREP
19161
19162 # The linker used to build libraries.
19163 LD=$lt_LD_CXX
19164
19165 # Whether we need hard or soft links.
19166 LN_S=$lt_LN_S
19167
19168 # A BSD-compatible nm program.
19169 NM=$lt_NM
19170
19171 # A symbol stripping program
19172 STRIP=$lt_STRIP
19173
19174 # Used to examine libraries when file_magic_cmd begins "file"
19175 MAGIC_CMD=$MAGIC_CMD
19176
19177 # Used on cygwin: DLL creation program.
19178 DLLTOOL="$DLLTOOL"
19179
19180 # Used on cygwin: object dumper.
19181 OBJDUMP="$OBJDUMP"
19182
19183 # Used on cygwin: assembler.
19184 AS="$AS"
19185
19186 # The name of the directory that contains temporary libtool files.
19187 objdir=$objdir
19188
19189 # How to create reloadable object files.
19190 reload_flag=$lt_reload_flag
19191 reload_cmds=$lt_reload_cmds
19192
19193 # How to pass a linker flag through the compiler.
19194 wl=$lt_lt_prog_compiler_wl_CXX
19195
19196 # Object file suffix (normally "o").
19197 objext="$ac_objext"
19198
19199 # Old archive suffix (normally "a").
19200 libext="$libext"
19201
19202 # Shared library suffix (normally ".so").
19203 shrext_cmds='$shrext_cmds'
19204
19205 # Executable file suffix (normally "").
19206 exeext="$exeext"
19207
19208 # Additional compiler flags for building library objects.
19209 pic_flag=$lt_lt_prog_compiler_pic_CXX
19210 pic_mode=$pic_mode
19211
19212 # What is the maximum length of a command?
19213 max_cmd_len=$lt_cv_sys_max_cmd_len
19214
19215 # Does compiler simultaneously support -c and -o options?
19216 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19217
19218 # Must we lock files when doing compilation ?
19219 need_locks=$lt_need_locks
19220
19221 # Do we need the lib prefix for modules?
19222 need_lib_prefix=$need_lib_prefix
19223
19224 # Do we need a version for libraries?
19225 need_version=$need_version
19226
19227 # Whether dlopen is supported.
19228 dlopen_support=$enable_dlopen
19229
19230 # Whether dlopen of programs is supported.
19231 dlopen_self=$enable_dlopen_self
19232
19233 # Whether dlopen of statically linked programs is supported.
19234 dlopen_self_static=$enable_dlopen_self_static
19235
19236 # Compiler flag to prevent dynamic linking.
19237 link_static_flag=$lt_lt_prog_compiler_static_CXX
19238
19239 # Compiler flag to turn off builtin functions.
19240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19241
19242 # Compiler flag to allow reflexive dlopens.
19243 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19244
19245 # Compiler flag to generate shared objects directly from archives.
19246 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19247
19248 # Compiler flag to generate thread-safe objects.
19249 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19250
19251 # Library versioning type.
19252 version_type=$version_type
19253
19254 # Format of library name prefix.
19255 libname_spec=$lt_libname_spec
19256
19257 # List of archive names.  First name is the real one, the rest are links.
19258 # The last name is the one that the linker finds with -lNAME.
19259 library_names_spec=$lt_library_names_spec
19260
19261 # The coded name of the library, if different from the real name.
19262 soname_spec=$lt_soname_spec
19263
19264 # Commands used to build and install an old-style archive.
19265 RANLIB=$lt_RANLIB
19266 old_archive_cmds=$lt_old_archive_cmds_CXX
19267 old_postinstall_cmds=$lt_old_postinstall_cmds
19268 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19269
19270 # Create an old-style archive from a shared archive.
19271 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19272
19273 # Create a temporary old-style archive to link instead of a shared archive.
19274 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19275
19276 # Commands used to build and install a shared archive.
19277 archive_cmds=$lt_archive_cmds_CXX
19278 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19279 postinstall_cmds=$lt_postinstall_cmds
19280 postuninstall_cmds=$lt_postuninstall_cmds
19281
19282 # Commands used to build a loadable module (assumed same as above if empty)
19283 module_cmds=$lt_module_cmds_CXX
19284 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19285
19286 # Commands to strip libraries.
19287 old_striplib=$lt_old_striplib
19288 striplib=$lt_striplib
19289
19290 # Dependencies to place before the objects being linked to create a
19291 # shared library.
19292 predep_objects=$lt_predep_objects_CXX
19293
19294 # Dependencies to place after the objects being linked to create a
19295 # shared library.
19296 postdep_objects=$lt_postdep_objects_CXX
19297
19298 # Dependencies to place before the objects being linked to create a
19299 # shared library.
19300 predeps=$lt_predeps_CXX
19301
19302 # Dependencies to place after the objects being linked to create a
19303 # shared library.
19304 postdeps=$lt_postdeps_CXX
19305
19306 # The library search path used internally by the compiler when linking
19307 # a shared library.
19308 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19309
19310 # Method to check whether dependent libraries are shared objects.
19311 deplibs_check_method=$lt_deplibs_check_method
19312
19313 # Command to use when deplibs_check_method == file_magic.
19314 file_magic_cmd=$lt_file_magic_cmd
19315
19316 # Flag that allows shared libraries with undefined symbols to be built.
19317 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19318
19319 # Flag that forces no undefined symbols.
19320 no_undefined_flag=$lt_no_undefined_flag_CXX
19321
19322 # Commands used to finish a libtool library installation in a directory.
19323 finish_cmds=$lt_finish_cmds
19324
19325 # Same as above, but a single script fragment to be evaled but not shown.
19326 finish_eval=$lt_finish_eval
19327
19328 # Take the output of nm and produce a listing of raw symbols and C names.
19329 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19330
19331 # Transform the output of nm in a proper C declaration
19332 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19333
19334 # Transform the output of nm in a C name address pair
19335 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19336
19337 # This is the shared library runtime path variable.
19338 runpath_var=$runpath_var
19339
19340 # This is the shared library path variable.
19341 shlibpath_var=$shlibpath_var
19342
19343 # Is shlibpath searched before the hard-coded library search path?
19344 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19345
19346 # How to hardcode a shared library path into an executable.
19347 hardcode_action=$hardcode_action_CXX
19348
19349 # Whether we should hardcode library paths into libraries.
19350 hardcode_into_libs=$hardcode_into_libs
19351
19352 # Flag to hardcode \$libdir into a binary during linking.
19353 # This must work even if \$libdir does not exist.
19354 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19355
19356 # If ld is used when linking, flag to hardcode \$libdir into
19357 # a binary during linking. This must work even if \$libdir does
19358 # not exist.
19359 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19360
19361 # Whether we need a single -rpath flag with a separated argument.
19362 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19363
19364 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19365 # resulting binary.
19366 hardcode_direct=$hardcode_direct_CXX
19367
19368 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19369 # resulting binary.
19370 hardcode_minus_L=$hardcode_minus_L_CXX
19371
19372 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19373 # the resulting binary.
19374 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19375
19376 # Set to yes if building a shared library automatically hardcodes DIR into the library
19377 # and all subsequent libraries and executables linked against it.
19378 hardcode_automatic=$hardcode_automatic_CXX
19379
19380 # Variables whose values should be saved in libtool wrapper scripts and
19381 # restored at relink time.
19382 variables_saved_for_relink="$variables_saved_for_relink"
19383
19384 # Whether libtool must link a program against all its dependency libraries.
19385 link_all_deplibs=$link_all_deplibs_CXX
19386
19387 # Compile-time system search path for libraries
19388 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19389
19390 # Run-time system search path for libraries
19391 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19392
19393 # Fix the shell variable \$srcfile for the compiler.
19394 fix_srcfile_path="$fix_srcfile_path_CXX"
19395
19396 # Set to yes if exported symbols are required.
19397 always_export_symbols=$always_export_symbols_CXX
19398
19399 # The commands to list exported symbols.
19400 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19401
19402 # The commands to extract the exported symbol list from a shared archive.
19403 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19404
19405 # Symbols that should not be listed in the preloaded symbols.
19406 exclude_expsyms=$lt_exclude_expsyms_CXX
19407
19408 # Symbols that must always be exported.
19409 include_expsyms=$lt_include_expsyms_CXX
19410
19411 # ### END LIBTOOL TAG CONFIG: $tagname
19412
19413 __EOF__
19414
19415
19416 else
19417   # If there is no Makefile yet, we rely on a make rule to execute
19418   # `config.status --recheck' to rerun these tests and create the
19419   # libtool script then.
19420   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19421   if test -f "$ltmain_in"; then
19422     test -f Makefile && make "$ltmain"
19423   fi
19424 fi
19425
19426
19427 ac_ext=c
19428 ac_cpp='$CPP $CPPFLAGS'
19429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19432
19433 CC=$lt_save_CC
19434 LDCXX=$LD
19435 LD=$lt_save_LD
19436 GCC=$lt_save_GCC
19437 with_gnu_ldcxx=$with_gnu_ld
19438 with_gnu_ld=$lt_save_with_gnu_ld
19439 lt_cv_path_LDCXX=$lt_cv_path_LD
19440 lt_cv_path_LD=$lt_save_path_LD
19441 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19442 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19443
19444         else
19445           tagname=""
19446         fi
19447         ;;
19448
19449       F77)
19450         if test -n "$F77" && test "X$F77" != "Xno"; then
19451
19452 ac_ext=f
19453 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19454 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19455 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19456
19457
19458 archive_cmds_need_lc_F77=no
19459 allow_undefined_flag_F77=
19460 always_export_symbols_F77=no
19461 archive_expsym_cmds_F77=
19462 export_dynamic_flag_spec_F77=
19463 hardcode_direct_F77=no
19464 hardcode_libdir_flag_spec_F77=
19465 hardcode_libdir_flag_spec_ld_F77=
19466 hardcode_libdir_separator_F77=
19467 hardcode_minus_L_F77=no
19468 hardcode_automatic_F77=no
19469 module_cmds_F77=
19470 module_expsym_cmds_F77=
19471 link_all_deplibs_F77=unknown
19472 old_archive_cmds_F77=$old_archive_cmds
19473 no_undefined_flag_F77=
19474 whole_archive_flag_spec_F77=
19475 enable_shared_with_static_runtimes_F77=no
19476
19477 # Source file extension for f77 test sources.
19478 ac_ext=f
19479
19480 # Object file extension for compiled f77 test sources.
19481 objext=o
19482 objext_F77=$objext
19483
19484 # Code to be used in simple compile tests
19485 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19486
19487 # Code to be used in simple link tests
19488 lt_simple_link_test_code="      program t\n      end\n"
19489
19490 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19491
19492 # If no C compiler was specified, use CC.
19493 LTCC=${LTCC-"$CC"}
19494
19495 # Allow CC to be a program name with arguments.
19496 compiler=$CC
19497
19498
19499 # Allow CC to be a program name with arguments.
19500 lt_save_CC="$CC"
19501 CC=${F77-"f77"}
19502 compiler=$CC
19503 compiler_F77=$CC
19504 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19505
19506 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19507 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19508 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19509 echo "${ECHO_T}$can_build_shared" >&6
19510
19511 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19512 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19513 test "$can_build_shared" = "no" && enable_shared=no
19514
19515 # On AIX, shared libraries and static libraries use the same namespace, and
19516 # are all built from PIC.
19517 case "$host_os" in
19518 aix3*)
19519   test "$enable_shared" = yes && enable_static=no
19520   if test -n "$RANLIB"; then
19521     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19522     postinstall_cmds='$RANLIB $lib'
19523   fi
19524   ;;
19525 aix4* | aix5*)
19526   test "$enable_shared" = yes && enable_static=no
19527   ;;
19528 esac
19529 echo "$as_me:$LINENO: result: $enable_shared" >&5
19530 echo "${ECHO_T}$enable_shared" >&6
19531
19532 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19533 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19534 # Make sure either enable_shared or enable_static is yes.
19535 test "$enable_shared" = yes || enable_static=yes
19536 echo "$as_me:$LINENO: result: $enable_static" >&5
19537 echo "${ECHO_T}$enable_static" >&6
19538
19539 test "$ld_shlibs_F77" = no && can_build_shared=no
19540
19541 GCC_F77="$G77"
19542 LD_F77="$LD"
19543
19544 lt_prog_compiler_wl_F77=
19545 lt_prog_compiler_pic_F77=
19546 lt_prog_compiler_static_F77=
19547
19548 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19549 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19550
19551   if test "$GCC" = yes; then
19552     lt_prog_compiler_wl_F77='-Wl,'
19553     lt_prog_compiler_static_F77='-static'
19554
19555     case $host_os in
19556       aix*)
19557       # All AIX code is PIC.
19558       if test "$host_cpu" = ia64; then
19559         # AIX 5 now supports IA64 processor
19560         lt_prog_compiler_static_F77='-Bstatic'
19561       fi
19562       ;;
19563
19564     amigaos*)
19565       # FIXME: we need at least 68020 code to build shared libraries, but
19566       # adding the `-m68020' flag to GCC prevents building anything better,
19567       # like `-m68040'.
19568       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19569       ;;
19570
19571     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19572       # PIC is the default for these OSes.
19573       ;;
19574
19575     mingw* | pw32* | os2*)
19576       # This hack is so that the source file can tell whether it is being
19577       # built for inclusion in a dll (and should export symbols for example).
19578       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19579       ;;
19580
19581     darwin* | rhapsody*)
19582       # PIC is the default on this platform
19583       # Common symbols not allowed in MH_DYLIB files
19584       lt_prog_compiler_pic_F77='-fno-common'
19585       ;;
19586
19587     msdosdjgpp*)
19588       # Just because we use GCC doesn't mean we suddenly get shared libraries
19589       # on systems that don't support them.
19590       lt_prog_compiler_can_build_shared_F77=no
19591       enable_shared=no
19592       ;;
19593
19594     sysv4*MP*)
19595       if test -d /usr/nec; then
19596         lt_prog_compiler_pic_F77=-Kconform_pic
19597       fi
19598       ;;
19599
19600     hpux*)
19601       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19602       # not for PA HP-UX.
19603       case "$host_cpu" in
19604       hppa*64*|ia64*)
19605         # +Z the default
19606         ;;
19607       *)
19608         lt_prog_compiler_pic_F77='-fPIC'
19609         ;;
19610       esac
19611       ;;
19612
19613     *)
19614       lt_prog_compiler_pic_F77='-fPIC'
19615       ;;
19616     esac
19617   else
19618     # PORTME Check for flag to pass linker flags through the system compiler.
19619     case $host_os in
19620     aix*)
19621       lt_prog_compiler_wl_F77='-Wl,'
19622       if test "$host_cpu" = ia64; then
19623         # AIX 5 now supports IA64 processor
19624         lt_prog_compiler_static_F77='-Bstatic'
19625       else
19626         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19627       fi
19628       ;;
19629
19630     mingw* | pw32* | os2*)
19631       # This hack is so that the source file can tell whether it is being
19632       # built for inclusion in a dll (and should export symbols for example).
19633       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19634       ;;
19635
19636     hpux9* | hpux10* | hpux11*)
19637       lt_prog_compiler_wl_F77='-Wl,'
19638       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19639       # not for PA HP-UX.
19640       case "$host_cpu" in
19641       hppa*64*|ia64*)
19642         # +Z the default
19643         ;;
19644       *)
19645         lt_prog_compiler_pic_F77='+Z'
19646         ;;
19647       esac
19648       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19649       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19650       ;;
19651
19652     irix5* | irix6* | nonstopux*)
19653       lt_prog_compiler_wl_F77='-Wl,'
19654       # PIC (with -KPIC) is the default.
19655       lt_prog_compiler_static_F77='-non_shared'
19656       ;;
19657
19658     newsos6)
19659       lt_prog_compiler_pic_F77='-KPIC'
19660       lt_prog_compiler_static_F77='-Bstatic'
19661       ;;
19662
19663     linux*)
19664       case $CC in
19665       icc* | ecc*)
19666         lt_prog_compiler_wl_F77='-Wl,'
19667         lt_prog_compiler_pic_F77='-KPIC'
19668         lt_prog_compiler_static_F77='-static'
19669         ;;
19670       ccc*)
19671         lt_prog_compiler_wl_F77='-Wl,'
19672         # All Alpha code is PIC.
19673         lt_prog_compiler_static_F77='-non_shared'
19674         ;;
19675       esac
19676       ;;
19677
19678     osf3* | osf4* | osf5*)
19679       lt_prog_compiler_wl_F77='-Wl,'
19680       # All OSF/1 code is PIC.
19681       lt_prog_compiler_static_F77='-non_shared'
19682       ;;
19683
19684     sco3.2v5*)
19685       lt_prog_compiler_pic_F77='-Kpic'
19686       lt_prog_compiler_static_F77='-dn'
19687       ;;
19688
19689     solaris*)
19690       lt_prog_compiler_wl_F77='-Wl,'
19691       lt_prog_compiler_pic_F77='-KPIC'
19692       lt_prog_compiler_static_F77='-Bstatic'
19693       ;;
19694
19695     sunos4*)
19696       lt_prog_compiler_wl_F77='-Qoption ld '
19697       lt_prog_compiler_pic_F77='-PIC'
19698       lt_prog_compiler_static_F77='-Bstatic'
19699       ;;
19700
19701     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19702       lt_prog_compiler_wl_F77='-Wl,'
19703       lt_prog_compiler_pic_F77='-KPIC'
19704       lt_prog_compiler_static_F77='-Bstatic'
19705       ;;
19706
19707     sysv4*MP*)
19708       if test -d /usr/nec ;then
19709         lt_prog_compiler_pic_F77='-Kconform_pic'
19710         lt_prog_compiler_static_F77='-Bstatic'
19711       fi
19712       ;;
19713
19714     uts4*)
19715       lt_prog_compiler_pic_F77='-pic'
19716       lt_prog_compiler_static_F77='-Bstatic'
19717       ;;
19718
19719     *)
19720       lt_prog_compiler_can_build_shared_F77=no
19721       ;;
19722     esac
19723   fi
19724
19725 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19726 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19727
19728 #
19729 # Check to make sure the PIC flag actually works.
19730 #
19731 if test -n "$lt_prog_compiler_pic_F77"; then
19732
19733 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19734 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19735 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19736   echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738   lt_prog_compiler_pic_works_F77=no
19739   ac_outfile=conftest.$ac_objext
19740    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19741    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19742    # Insert the option either (1) after the last *FLAGS variable, or
19743    # (2) before a word containing "conftest.", or (3) at the end.
19744    # Note that $ac_compile itself does not contain backslashes and begins
19745    # with a dollar sign (not a hyphen), so the echo should work correctly.
19746    # The option is referenced via a variable to avoid confusing sed.
19747    lt_compile=`echo "$ac_compile" | $SED \
19748    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19749    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19750    -e 's:$: $lt_compiler_flag:'`
19751    (eval echo "\"\$as_me:19751: $lt_compile\"" >&5)
19752    (eval "$lt_compile" 2>conftest.err)
19753    ac_status=$?
19754    cat conftest.err >&5
19755    echo "$as_me:19755: \$? = $ac_status" >&5
19756    if (exit $ac_status) && test -s "$ac_outfile"; then
19757      # The compiler can only warn and ignore the option if not recognized
19758      # So say no if there are warnings
19759      if test ! -s conftest.err; then
19760        lt_prog_compiler_pic_works_F77=yes
19761      fi
19762    fi
19763    $rm conftest*
19764
19765 fi
19766 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19767 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19768
19769 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19770     case $lt_prog_compiler_pic_F77 in
19771      "" | " "*) ;;
19772      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19773      esac
19774 else
19775     lt_prog_compiler_pic_F77=
19776      lt_prog_compiler_can_build_shared_F77=no
19777 fi
19778
19779 fi
19780 case "$host_os" in
19781   # For platforms which do not support PIC, -DPIC is meaningless:
19782   *djgpp*)
19783     lt_prog_compiler_pic_F77=
19784     ;;
19785   *)
19786     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19787     ;;
19788 esac
19789
19790 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19792 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19793   echo $ECHO_N "(cached) $ECHO_C" >&6
19794 else
19795   lt_cv_prog_compiler_c_o_F77=no
19796    $rm -r conftest 2>/dev/null
19797    mkdir conftest
19798    cd conftest
19799    mkdir out
19800    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19801
19802    lt_compiler_flag="-o out/conftest2.$ac_objext"
19803    # Insert the option either (1) after the last *FLAGS variable, or
19804    # (2) before a word containing "conftest.", or (3) at the end.
19805    # Note that $ac_compile itself does not contain backslashes and begins
19806    # with a dollar sign (not a hyphen), so the echo should work correctly.
19807    lt_compile=`echo "$ac_compile" | $SED \
19808    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19809    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19810    -e 's:$: $lt_compiler_flag:'`
19811    (eval echo "\"\$as_me:19811: $lt_compile\"" >&5)
19812    (eval "$lt_compile" 2>out/conftest.err)
19813    ac_status=$?
19814    cat out/conftest.err >&5
19815    echo "$as_me:19815: \$? = $ac_status" >&5
19816    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19817    then
19818      # The compiler can only warn and ignore the option if not recognized
19819      # So say no if there are warnings
19820      if test ! -s out/conftest.err; then
19821        lt_cv_prog_compiler_c_o_F77=yes
19822      fi
19823    fi
19824    chmod u+w .
19825    $rm conftest*
19826    # SGI C++ compiler will create directory out/ii_files/ for
19827    # template instantiation
19828    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19829    $rm out/* && rmdir out
19830    cd ..
19831    rmdir conftest
19832    $rm conftest*
19833
19834 fi
19835 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19836 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19837
19838
19839 hard_links="nottested"
19840 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19841   # do not overwrite the value of need_locks provided by the user
19842   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19843 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19844   hard_links=yes
19845   $rm conftest*
19846   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19847   touch conftest.a
19848   ln conftest.a conftest.b 2>&5 || hard_links=no
19849   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19850   echo "$as_me:$LINENO: result: $hard_links" >&5
19851 echo "${ECHO_T}$hard_links" >&6
19852   if test "$hard_links" = no; then
19853     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19854 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19855     need_locks=warn
19856   fi
19857 else
19858   need_locks=no
19859 fi
19860
19861 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19862 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19863
19864   runpath_var=
19865   allow_undefined_flag_F77=
19866   enable_shared_with_static_runtimes_F77=no
19867   archive_cmds_F77=
19868   archive_expsym_cmds_F77=
19869   old_archive_From_new_cmds_F77=
19870   old_archive_from_expsyms_cmds_F77=
19871   export_dynamic_flag_spec_F77=
19872   whole_archive_flag_spec_F77=
19873   thread_safe_flag_spec_F77=
19874   hardcode_libdir_flag_spec_F77=
19875   hardcode_libdir_flag_spec_ld_F77=
19876   hardcode_libdir_separator_F77=
19877   hardcode_direct_F77=no
19878   hardcode_minus_L_F77=no
19879   hardcode_shlibpath_var_F77=unsupported
19880   link_all_deplibs_F77=unknown
19881   hardcode_automatic_F77=no
19882   module_cmds_F77=
19883   module_expsym_cmds_F77=
19884   always_export_symbols_F77=no
19885   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19886   # include_expsyms should be a list of space-separated symbols to be *always*
19887   # included in the symbol list
19888   include_expsyms_F77=
19889   # exclude_expsyms can be an extended regexp of symbols to exclude
19890   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19891   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19892   # as well as any symbol that contains `d'.
19893   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19894   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19895   # platforms (ab)use it in PIC code, but their linkers get confused if
19896   # the symbol is explicitly referenced.  Since portable code cannot
19897   # rely on this symbol name, it's probably fine to never include it in
19898   # preloaded symbol tables.
19899   extract_expsyms_cmds=
19900
19901   case $host_os in
19902   cygwin* | mingw* | pw32*)
19903     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19904     # When not using gcc, we currently assume that we are using
19905     # Microsoft Visual C++.
19906     if test "$GCC" != yes; then
19907       with_gnu_ld=no
19908     fi
19909     ;;
19910   openbsd*)
19911     with_gnu_ld=no
19912     ;;
19913   esac
19914
19915   ld_shlibs_F77=yes
19916   if test "$with_gnu_ld" = yes; then
19917     # If archive_cmds runs LD, not CC, wlarc should be empty
19918     wlarc='${wl}'
19919
19920     # See if GNU ld supports shared libraries.
19921     case $host_os in
19922     aix3* | aix4* | aix5*)
19923       # On AIX/PPC, the GNU linker is very broken
19924       if test "$host_cpu" != ia64; then
19925         ld_shlibs_F77=no
19926         cat <<EOF 1>&2
19927
19928 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19929 *** to be unable to reliably create shared libraries on AIX.
19930 *** Therefore, libtool is disabling shared libraries support.  If you
19931 *** really care for shared libraries, you may want to modify your PATH
19932 *** so that a non-GNU linker is found, and then restart.
19933
19934 EOF
19935       fi
19936       ;;
19937
19938     amigaos*)
19939       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)'
19940       hardcode_libdir_flag_spec_F77='-L$libdir'
19941       hardcode_minus_L_F77=yes
19942
19943       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19944       # that the semantics of dynamic libraries on AmigaOS, at least up
19945       # to version 4, is to share data among multiple programs linked
19946       # with the same dynamic library.  Since this doesn't match the
19947       # behavior of shared libraries on other platforms, we can't use
19948       # them.
19949       ld_shlibs_F77=no
19950       ;;
19951
19952     beos*)
19953       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19954         allow_undefined_flag_F77=unsupported
19955         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19956         # support --undefined.  This deserves some investigation.  FIXME
19957         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19958       else
19959         ld_shlibs_F77=no
19960       fi
19961       ;;
19962
19963     cygwin* | mingw* | pw32*)
19964       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19965       # as there is no search path for DLLs.
19966       hardcode_libdir_flag_spec_F77='-L$libdir'
19967       allow_undefined_flag_F77=unsupported
19968       always_export_symbols_F77=no
19969       enable_shared_with_static_runtimes_F77=yes
19970       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19971
19972       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19973         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19974         # If the export-symbols file already is a .def file (1st line
19975         # is EXPORTS), use it as is; otherwise, prepend...
19976         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19977           cp $export_symbols $output_objdir/$soname.def;
19978         else
19979           echo EXPORTS > $output_objdir/$soname.def;
19980           cat $export_symbols >> $output_objdir/$soname.def;
19981         fi~
19982         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19983       else
19984         ld_shlibs=no
19985       fi
19986       ;;
19987
19988     netbsd*)
19989       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19990         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19991         wlarc=
19992       else
19993         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19994         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19995       fi
19996       ;;
19997
19998     solaris* | sysv5*)
19999       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20000         ld_shlibs_F77=no
20001         cat <<EOF 1>&2
20002
20003 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20004 *** create shared libraries on Solaris systems.  Therefore, libtool
20005 *** is disabling shared libraries support.  We urge you to upgrade GNU
20006 *** binutils to release 2.9.1 or newer.  Another option is to modify
20007 *** your PATH or compiler configuration so that the native linker is
20008 *** used, and then restart.
20009
20010 EOF
20011       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20012         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20013         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20014       else
20015         ld_shlibs_F77=no
20016       fi
20017       ;;
20018
20019     sunos4*)
20020       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20021       wlarc=
20022       hardcode_direct_F77=yes
20023       hardcode_shlibpath_var_F77=no
20024       ;;
20025
20026   linux*)
20027     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20028         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20029         archive_cmds_F77="$tmp_archive_cmds"
20030       supports_anon_versioning=no
20031       case `$LD -v 2>/dev/null` in
20032         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20033         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20034         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20035         *\ 2.11.*) ;; # other 2.11 versions
20036         *) supports_anon_versioning=yes ;;
20037       esac
20038       if test $supports_anon_versioning = yes; then
20039         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20040 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20041 $echo "local: *; };" >> $output_objdir/$libname.ver~
20042         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20043       else
20044         archive_expsym_cmds_F77="$tmp_archive_cmds"
20045       fi
20046     else
20047       ld_shlibs_F77=no
20048     fi
20049     ;;
20050
20051     *)
20052       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20053         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20054         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20055       else
20056         ld_shlibs_F77=no
20057       fi
20058       ;;
20059     esac
20060
20061     if test "$ld_shlibs_F77" = yes; then
20062       runpath_var=LD_RUN_PATH
20063       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20064       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20065       # ancient GNU ld didn't support --whole-archive et. al.
20066       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20067         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20068       else
20069         whole_archive_flag_spec_F77=
20070       fi
20071     fi
20072   else
20073     # PORTME fill in a description of your system's linker (not GNU ld)
20074     case $host_os in
20075     aix3*)
20076       allow_undefined_flag_F77=unsupported
20077       always_export_symbols_F77=yes
20078       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'
20079       # Note: this linker hardcodes the directories in LIBPATH if there
20080       # are no directories specified by -L.
20081       hardcode_minus_L_F77=yes
20082       if test "$GCC" = yes && test -z "$link_static_flag"; then
20083         # Neither direct hardcoding nor static linking is supported with a
20084         # broken collect2.
20085         hardcode_direct_F77=unsupported
20086       fi
20087       ;;
20088
20089     aix4* | aix5*)
20090       if test "$host_cpu" = ia64; then
20091         # On IA64, the linker does run time linking by default, so we don't
20092         # have to do anything special.
20093         aix_use_runtimelinking=no
20094         exp_sym_flag='-Bexport'
20095         no_entry_flag=""
20096       else
20097         # If we're using GNU nm, then we don't want the "-C" option.
20098         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20099         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20100           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'
20101         else
20102           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'
20103         fi
20104         aix_use_runtimelinking=no
20105
20106         # Test if we are trying to use run time linking or normal
20107         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20108         # need to do runtime linking.
20109         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20110           for ld_flag in $LDFLAGS; do
20111           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20112             aix_use_runtimelinking=yes
20113             break
20114           fi
20115           done
20116         esac
20117
20118         exp_sym_flag='-bexport'
20119         no_entry_flag='-bnoentry'
20120       fi
20121
20122       # When large executables or shared objects are built, AIX ld can
20123       # have problems creating the table of contents.  If linking a library
20124       # or program results in "error TOC overflow" add -mminimal-toc to
20125       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20126       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20127
20128       archive_cmds_F77=''
20129       hardcode_direct_F77=yes
20130       hardcode_libdir_separator_F77=':'
20131       link_all_deplibs_F77=yes
20132
20133       if test "$GCC" = yes; then
20134         case $host_os in aix4.012|aix4.012.*)
20135         # We only want to do this on AIX 4.2 and lower, the check
20136         # below for broken collect2 doesn't work under 4.3+
20137           collect2name=`${CC} -print-prog-name=collect2`
20138           if test -f "$collect2name" && \
20139            strings "$collect2name" | grep resolve_lib_name >/dev/null
20140           then
20141           # We have reworked collect2
20142           hardcode_direct_F77=yes
20143           else
20144           # We have old collect2
20145           hardcode_direct_F77=unsupported
20146           # It fails to find uninstalled libraries when the uninstalled
20147           # path is not listed in the libpath.  Setting hardcode_minus_L
20148           # to unsupported forces relinking
20149           hardcode_minus_L_F77=yes
20150           hardcode_libdir_flag_spec_F77='-L$libdir'
20151           hardcode_libdir_separator_F77=
20152           fi
20153         esac
20154         shared_flag='-shared'
20155       else
20156         # not using gcc
20157         if test "$host_cpu" = ia64; then
20158         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20159         # chokes on -Wl,-G. The following line is correct:
20160           shared_flag='-G'
20161         else
20162         if test "$aix_use_runtimelinking" = yes; then
20163             shared_flag='${wl}-G'
20164           else
20165             shared_flag='${wl}-bM:SRE'
20166         fi
20167         fi
20168       fi
20169
20170       # It seems that -bexpall does not export symbols beginning with
20171       # underscore (_), so it is better to generate a list of symbols to export.
20172       always_export_symbols_F77=yes
20173       if test "$aix_use_runtimelinking" = yes; then
20174         # Warning - without using the other runtime loading flags (-brtl),
20175         # -berok will link without error, but may produce a broken library.
20176         allow_undefined_flag_F77='-berok'
20177        # Determine the default libpath from the value encoded in an empty executable.
20178        cat >conftest.$ac_ext <<_ACEOF
20179       program main
20180
20181       end
20182 _ACEOF
20183 rm -f conftest.$ac_objext conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185   (eval $ac_link) 2>conftest.er1
20186   ac_status=$?
20187   grep -v '^ *+' conftest.er1 >conftest.err
20188   rm -f conftest.er1
20189   cat conftest.err >&5
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); } &&
20192          { ac_try='test -z "$ac_f77_werror_flag"
20193                          || test ! -s conftest.err'
20194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195   (eval $ac_try) 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; } &&
20199          { ac_try='test -s conftest$ac_exeext'
20200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201   (eval $ac_try) 2>&5
20202   ac_status=$?
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); }; }; then
20205
20206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20207 }'`
20208 # Check for a 64-bit object if we didn't find anything.
20209 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; }
20210 }'`; fi
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 fi
20216 rm -f conftest.err conftest.$ac_objext \
20217       conftest$ac_exeext conftest.$ac_ext
20218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20219
20220        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20221         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"
20222        else
20223         if test "$host_cpu" = ia64; then
20224           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20225           allow_undefined_flag_F77="-z nodefs"
20226           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"
20227         else
20228          # Determine the default libpath from the value encoded in an empty executable.
20229          cat >conftest.$ac_ext <<_ACEOF
20230       program main
20231
20232       end
20233 _ACEOF
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20236   (eval $ac_link) 2>conftest.er1
20237   ac_status=$?
20238   grep -v '^ *+' conftest.er1 >conftest.err
20239   rm -f conftest.er1
20240   cat conftest.err >&5
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); } &&
20243          { ac_try='test -z "$ac_f77_werror_flag"
20244                          || test ! -s conftest.err'
20245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246   (eval $ac_try) 2>&5
20247   ac_status=$?
20248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249   (exit $ac_status); }; } &&
20250          { ac_try='test -s conftest$ac_exeext'
20251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252   (eval $ac_try) 2>&5
20253   ac_status=$?
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); }; }; then
20256
20257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20258 }'`
20259 # Check for a 64-bit object if we didn't find anything.
20260 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; }
20261 }'`; fi
20262 else
20263   echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20265
20266 fi
20267 rm -f conftest.err conftest.$ac_objext \
20268       conftest$ac_exeext conftest.$ac_ext
20269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20270
20271          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20272           # Warning - without using the other run time loading flags,
20273           # -berok will link without error, but may produce a broken library.
20274           no_undefined_flag_F77=' ${wl}-bernotok'
20275           allow_undefined_flag_F77=' ${wl}-berok'
20276           # -bexpall does not export symbols beginning with underscore (_)
20277           always_export_symbols_F77=yes
20278           # Exported symbols can be pulled into shared objects from archives
20279           whole_archive_flag_spec_F77=' '
20280           archive_cmds_need_lc_F77=yes
20281           # This is similar to how AIX traditionally builds it's shared libraries.
20282           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'
20283         fi
20284       fi
20285       ;;
20286
20287     amigaos*)
20288       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)'
20289       hardcode_libdir_flag_spec_F77='-L$libdir'
20290       hardcode_minus_L_F77=yes
20291       # see comment about different semantics on the GNU ld section
20292       ld_shlibs_F77=no
20293       ;;
20294
20295     bsdi4*)
20296       export_dynamic_flag_spec_F77=-rdynamic
20297       ;;
20298
20299     cygwin* | mingw* | pw32*)
20300       # When not using gcc, we currently assume that we are using
20301       # Microsoft Visual C++.
20302       # hardcode_libdir_flag_spec is actually meaningless, as there is
20303       # no search path for DLLs.
20304       hardcode_libdir_flag_spec_F77=' '
20305       allow_undefined_flag_F77=unsupported
20306       # Tell ltmain to make .lib files, not .a files.
20307       libext=lib
20308       # Tell ltmain to make .dll files, not .so files.
20309       shrext_cmds=".dll"
20310       # FIXME: Setting linknames here is a bad hack.
20311       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20312       # The linker will automatically build a .lib file if we build a DLL.
20313       old_archive_From_new_cmds_F77='true'
20314       # FIXME: Should let the user specify the lib program.
20315       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20316       fix_srcfile_path='`cygpath -w "$srcfile"`'
20317       enable_shared_with_static_runtimes_F77=yes
20318       ;;
20319
20320     darwin* | rhapsody*)
20321     if test "$GXX" = yes ; then
20322       archive_cmds_need_lc_F77=no
20323       case "$host_os" in
20324       rhapsody* | darwin1.[012])
20325         allow_undefined_flag_F77='-undefined suppress'
20326         ;;
20327       *) # Darwin 1.3 on
20328       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20329         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20330       else
20331         case ${MACOSX_DEPLOYMENT_TARGET} in
20332           10.[012])
20333             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20334             ;;
20335           10.*)
20336             allow_undefined_flag_F77='-undefined dynamic_lookup'
20337             ;;
20338         esac
20339       fi
20340         ;;
20341       esac
20342         lt_int_apple_cc_single_mod=no
20343         output_verbose_link_cmd='echo'
20344         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20345           lt_int_apple_cc_single_mod=yes
20346         fi
20347         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20348           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20349         else
20350         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20351       fi
20352       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20353       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20354         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20355           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20356         else
20357           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20358         fi
20359           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}'
20360       hardcode_direct_F77=no
20361       hardcode_automatic_F77=yes
20362       hardcode_shlibpath_var_F77=unsupported
20363       whole_archive_flag_spec_F77='-all_load $convenience'
20364       link_all_deplibs_F77=yes
20365     else
20366       ld_shlibs_F77=no
20367     fi
20368       ;;
20369
20370     dgux*)
20371       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20372       hardcode_libdir_flag_spec_F77='-L$libdir'
20373       hardcode_shlibpath_var_F77=no
20374       ;;
20375
20376     freebsd1*)
20377       ld_shlibs_F77=no
20378       ;;
20379
20380     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20381     # support.  Future versions do this automatically, but an explicit c++rt0.o
20382     # does not break anything, and helps significantly (at the cost of a little
20383     # extra space).
20384     freebsd2.2*)
20385       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20386       hardcode_libdir_flag_spec_F77='-R$libdir'
20387       hardcode_direct_F77=yes
20388       hardcode_shlibpath_var_F77=no
20389       ;;
20390
20391     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20392     freebsd2*)
20393       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20394       hardcode_direct_F77=yes
20395       hardcode_minus_L_F77=yes
20396       hardcode_shlibpath_var_F77=no
20397       ;;
20398
20399     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20400     freebsd* | kfreebsd*-gnu)
20401       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20402       hardcode_libdir_flag_spec_F77='-R$libdir'
20403       hardcode_direct_F77=yes
20404       hardcode_shlibpath_var_F77=no
20405       ;;
20406
20407     hpux9*)
20408       if test "$GCC" = yes; then
20409         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'
20410       else
20411         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'
20412       fi
20413       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20414       hardcode_libdir_separator_F77=:
20415       hardcode_direct_F77=yes
20416
20417       # hardcode_minus_L: Not really in the search PATH,
20418       # but as the default location of the library.
20419       hardcode_minus_L_F77=yes
20420       export_dynamic_flag_spec_F77='${wl}-E'
20421       ;;
20422
20423     hpux10* | hpux11*)
20424       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20425         case "$host_cpu" in
20426         hppa*64*|ia64*)
20427           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20428           ;;
20429         *)
20430           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20431           ;;
20432         esac
20433       else
20434         case "$host_cpu" in
20435         hppa*64*|ia64*)
20436           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20437           ;;
20438         *)
20439           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20440           ;;
20441         esac
20442       fi
20443       if test "$with_gnu_ld" = no; then
20444         case "$host_cpu" in
20445         hppa*64*)
20446           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20447           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20448           hardcode_libdir_separator_F77=:
20449           hardcode_direct_F77=no
20450           hardcode_shlibpath_var_F77=no
20451           ;;
20452         ia64*)
20453           hardcode_libdir_flag_spec_F77='-L$libdir'
20454           hardcode_direct_F77=no
20455           hardcode_shlibpath_var_F77=no
20456
20457           # hardcode_minus_L: Not really in the search PATH,
20458           # but as the default location of the library.
20459           hardcode_minus_L_F77=yes
20460           ;;
20461         *)
20462           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20463           hardcode_libdir_separator_F77=:
20464           hardcode_direct_F77=yes
20465           export_dynamic_flag_spec_F77='${wl}-E'
20466
20467           # hardcode_minus_L: Not really in the search PATH,
20468           # but as the default location of the library.
20469           hardcode_minus_L_F77=yes
20470           ;;
20471         esac
20472       fi
20473       ;;
20474
20475     irix5* | irix6* | nonstopux*)
20476       if test "$GCC" = yes; then
20477         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'
20478       else
20479         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'
20480         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20481       fi
20482       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20483       hardcode_libdir_separator_F77=:
20484       link_all_deplibs_F77=yes
20485       ;;
20486
20487     netbsd*)
20488       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20489         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20490       else
20491         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20492       fi
20493       hardcode_libdir_flag_spec_F77='-R$libdir'
20494       hardcode_direct_F77=yes
20495       hardcode_shlibpath_var_F77=no
20496       ;;
20497
20498     newsos6)
20499       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20500       hardcode_direct_F77=yes
20501       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20502       hardcode_libdir_separator_F77=:
20503       hardcode_shlibpath_var_F77=no
20504       ;;
20505
20506     openbsd*)
20507       hardcode_direct_F77=yes
20508       hardcode_shlibpath_var_F77=no
20509       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20510         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20511         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20512         export_dynamic_flag_spec_F77='${wl}-E'
20513       else
20514        case $host_os in
20515          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20516            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20517            hardcode_libdir_flag_spec_F77='-R$libdir'
20518            ;;
20519          *)
20520            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20521            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20522            ;;
20523        esac
20524       fi
20525       ;;
20526
20527     os2*)
20528       hardcode_libdir_flag_spec_F77='-L$libdir'
20529       hardcode_minus_L_F77=yes
20530       allow_undefined_flag_F77=unsupported
20531       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'
20532       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20533       ;;
20534
20535     osf3*)
20536       if test "$GCC" = yes; then
20537         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20538         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'
20539       else
20540         allow_undefined_flag_F77=' -expect_unresolved \*'
20541         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'
20542       fi
20543       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20544       hardcode_libdir_separator_F77=:
20545       ;;
20546
20547     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20548       if test "$GCC" = yes; then
20549         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20550         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'
20551         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20552       else
20553         allow_undefined_flag_F77=' -expect_unresolved \*'
20554         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'
20555         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~
20556         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
20557
20558         # Both c and cxx compiler support -rpath directly
20559         hardcode_libdir_flag_spec_F77='-rpath $libdir'
20560       fi
20561       hardcode_libdir_separator_F77=:
20562       ;;
20563
20564     sco3.2v5*)
20565       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20566       hardcode_shlibpath_var_F77=no
20567       export_dynamic_flag_spec_F77='${wl}-Bexport'
20568       runpath_var=LD_RUN_PATH
20569       hardcode_runpath_var=yes
20570       ;;
20571
20572     solaris*)
20573       no_undefined_flag_F77=' -z text'
20574       if test "$GCC" = yes; then
20575         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20576         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20577           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20578       else
20579         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20580         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20581         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20582       fi
20583       hardcode_libdir_flag_spec_F77='-R$libdir'
20584       hardcode_shlibpath_var_F77=no
20585       case $host_os in
20586       solaris2.[0-5] | solaris2.[0-5].*) ;;
20587       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20588         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20589       esac
20590       link_all_deplibs_F77=yes
20591       ;;
20592
20593     sunos4*)
20594       if test "x$host_vendor" = xsequent; then
20595         # Use $CC to link under sequent, because it throws in some extra .o
20596         # files that make .init and .fini sections work.
20597         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20598       else
20599         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20600       fi
20601       hardcode_libdir_flag_spec_F77='-L$libdir'
20602       hardcode_direct_F77=yes
20603       hardcode_minus_L_F77=yes
20604       hardcode_shlibpath_var_F77=no
20605       ;;
20606
20607     sysv4)
20608       case $host_vendor in
20609         sni)
20610           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20611           hardcode_direct_F77=yes # is this really true???
20612         ;;
20613         siemens)
20614           ## LD is ld it makes a PLAMLIB
20615           ## CC just makes a GrossModule.
20616           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20617           reload_cmds_F77='$CC -r -o $output$reload_objs'
20618           hardcode_direct_F77=no
20619         ;;
20620         motorola)
20621           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20622           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20623         ;;
20624       esac
20625       runpath_var='LD_RUN_PATH'
20626       hardcode_shlibpath_var_F77=no
20627       ;;
20628
20629     sysv4.3*)
20630       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20631       hardcode_shlibpath_var_F77=no
20632       export_dynamic_flag_spec_F77='-Bexport'
20633       ;;
20634
20635     sysv4*MP*)
20636       if test -d /usr/nec; then
20637         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20638         hardcode_shlibpath_var_F77=no
20639         runpath_var=LD_RUN_PATH
20640         hardcode_runpath_var=yes
20641         ld_shlibs_F77=yes
20642       fi
20643       ;;
20644
20645     sysv4.2uw2*)
20646       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20647       hardcode_direct_F77=yes
20648       hardcode_minus_L_F77=no
20649       hardcode_shlibpath_var_F77=no
20650       hardcode_runpath_var=yes
20651       runpath_var=LD_RUN_PATH
20652       ;;
20653
20654    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20655       no_undefined_flag_F77='${wl}-z ${wl}text'
20656       if test "$GCC" = yes; then
20657         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20658       else
20659         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20660       fi
20661       runpath_var='LD_RUN_PATH'
20662       hardcode_shlibpath_var_F77=no
20663       ;;
20664
20665     sysv5*)
20666       no_undefined_flag_F77=' -z text'
20667       # $CC -shared without GNU ld will not create a library from C++
20668       # object files and a static libstdc++, better avoid it by now
20669       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20670       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20671                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20672       hardcode_libdir_flag_spec_F77=
20673       hardcode_shlibpath_var_F77=no
20674       runpath_var='LD_RUN_PATH'
20675       ;;
20676
20677     uts4*)
20678       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20679       hardcode_libdir_flag_spec_F77='-L$libdir'
20680       hardcode_shlibpath_var_F77=no
20681       ;;
20682
20683     *)
20684       ld_shlibs_F77=no
20685       ;;
20686     esac
20687   fi
20688
20689 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20690 echo "${ECHO_T}$ld_shlibs_F77" >&6
20691 test "$ld_shlibs_F77" = no && can_build_shared=no
20692
20693 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20694 if test "$GCC" = yes; then
20695   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20696 fi
20697
20698 #
20699 # Do we need to explicitly link libc?
20700 #
20701 case "x$archive_cmds_need_lc_F77" in
20702 x|xyes)
20703   # Assume -lc should be added
20704   archive_cmds_need_lc_F77=yes
20705
20706   if test "$enable_shared" = yes && test "$GCC" = yes; then
20707     case $archive_cmds_F77 in
20708     *'~'*)
20709       # FIXME: we may have to deal with multi-command sequences.
20710       ;;
20711     '$CC '*)
20712       # Test whether the compiler implicitly links with -lc since on some
20713       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20714       # to ld, don't add -lc before -lgcc.
20715       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20716 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20717       $rm conftest*
20718       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20719
20720       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20721   (eval $ac_compile) 2>&5
20722   ac_status=$?
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); } 2>conftest.err; then
20725         soname=conftest
20726         lib=conftest
20727         libobjs=conftest.$ac_objext
20728         deplibs=
20729         wl=$lt_prog_compiler_wl_F77
20730         compiler_flags=-v
20731         linker_flags=-v
20732         verstring=
20733         output_objdir=.
20734         libname=conftest
20735         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20736         allow_undefined_flag_F77=
20737         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20738   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20739   ac_status=$?
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); }
20742         then
20743           archive_cmds_need_lc_F77=no
20744         else
20745           archive_cmds_need_lc_F77=yes
20746         fi
20747         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20748       else
20749         cat conftest.err 1>&5
20750       fi
20751       $rm conftest*
20752       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20753 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20754       ;;
20755     esac
20756   fi
20757   ;;
20758 esac
20759
20760 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20761 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20762 library_names_spec=
20763 libname_spec='lib$name'
20764 soname_spec=
20765 shrext_cmds=".so"
20766 postinstall_cmds=
20767 postuninstall_cmds=
20768 finish_cmds=
20769 finish_eval=
20770 shlibpath_var=
20771 shlibpath_overrides_runpath=unknown
20772 version_type=none
20773 dynamic_linker="$host_os ld.so"
20774 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20775 if test "$GCC" = yes; then
20776   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20777   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20778     # if the path contains ";" then we assume it to be the separator
20779     # otherwise default to the standard path separator (i.e. ":") - it is
20780     # assumed that no part of a normal pathname contains ";" but that should
20781     # okay in the real world where ";" in dirpaths is itself problematic.
20782     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20783   else
20784     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20785   fi
20786 else
20787   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20788 fi
20789 need_lib_prefix=unknown
20790 hardcode_into_libs=no
20791
20792 # when you set need_version to no, make sure it does not cause -set_version
20793 # flags to be left without arguments
20794 need_version=unknown
20795
20796 case $host_os in
20797 aix3*)
20798   version_type=linux
20799   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20800   shlibpath_var=LIBPATH
20801
20802   # AIX 3 has no versioning support, so we append a major version to the name.
20803   soname_spec='${libname}${release}${shared_ext}$major'
20804   ;;
20805
20806 aix4* | aix5*)
20807   version_type=linux
20808   need_lib_prefix=no
20809   need_version=no
20810   hardcode_into_libs=yes
20811   if test "$host_cpu" = ia64; then
20812     # AIX 5 supports IA64
20813     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20814     shlibpath_var=LD_LIBRARY_PATH
20815   else
20816     # With GCC up to 2.95.x, collect2 would create an import file
20817     # for dependence libraries.  The import file would start with
20818     # the line `#! .'.  This would cause the generated library to
20819     # depend on `.', always an invalid library.  This was fixed in
20820     # development snapshots of GCC prior to 3.0.
20821     case $host_os in
20822       aix4 | aix4.[01] | aix4.[01].*)
20823       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20824            echo ' yes '
20825            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20826         :
20827       else
20828         can_build_shared=no
20829       fi
20830       ;;
20831     esac
20832     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20833     # soname into executable. Probably we can add versioning support to
20834     # collect2, so additional links can be useful in future.
20835     if test "$aix_use_runtimelinking" = yes; then
20836       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20837       # instead of lib<name>.a to let people know that these are not
20838       # typical AIX shared libraries.
20839       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20840     else
20841       # We preserve .a as extension for shared libraries through AIX4.2
20842       # and later when we are not doing run time linking.
20843       library_names_spec='${libname}${release}.a $libname.a'
20844       soname_spec='${libname}${release}${shared_ext}$major'
20845     fi
20846     shlibpath_var=LIBPATH
20847   fi
20848   ;;
20849
20850 amigaos*)
20851   library_names_spec='$libname.ixlibrary $libname.a'
20852   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20853   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'
20854   ;;
20855
20856 beos*)
20857   library_names_spec='${libname}${shared_ext}'
20858   dynamic_linker="$host_os ld.so"
20859   shlibpath_var=LIBRARY_PATH
20860   ;;
20861
20862 bsdi4*)
20863   version_type=linux
20864   need_version=no
20865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20866   soname_spec='${libname}${release}${shared_ext}$major'
20867   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20868   shlibpath_var=LD_LIBRARY_PATH
20869   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20870   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20871   # the default ld.so.conf also contains /usr/contrib/lib and
20872   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20873   # libtool to hard-code these into programs
20874   ;;
20875
20876 cygwin* | mingw* | pw32*)
20877   version_type=windows
20878   shrext_cmds=".dll"
20879   need_version=no
20880   need_lib_prefix=no
20881
20882   case $GCC,$host_os in
20883   yes,cygwin* | yes,mingw* | yes,pw32*)
20884     library_names_spec='$libname.dll.a'
20885     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20886     postinstall_cmds='base_file=`basename \${file}`~
20887       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20888       dldir=$destdir/`dirname \$dlpath`~
20889       test -d \$dldir || mkdir -p \$dldir~
20890       $install_prog $dir/$dlname \$dldir/$dlname'
20891     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20892       dlpath=$dir/\$dldll~
20893        $rm \$dlpath'
20894     shlibpath_overrides_runpath=yes
20895
20896     case $host_os in
20897     cygwin*)
20898       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20899       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20900       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20901       ;;
20902     mingw*)
20903       # MinGW DLLs use traditional 'lib' prefix
20904       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20905       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20906       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20907         # It is most probably a Windows format PATH printed by
20908         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20909         # path with ; separators, and with drive letters. We can handle the
20910         # drive letters (cygwin fileutils understands them), so leave them,
20911         # especially as we might pass files found there to a mingw objdump,
20912         # which wouldn't understand a cygwinified path. Ahh.
20913         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20914       else
20915         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20916       fi
20917       ;;
20918     pw32*)
20919       # pw32 DLLs use 'pw' prefix rather than 'lib'
20920       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20921       ;;
20922     esac
20923     ;;
20924
20925   *)
20926     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20927     ;;
20928   esac
20929   dynamic_linker='Win32 ld.exe'
20930   # FIXME: first we should search . and the directory the executable is in
20931   shlibpath_var=PATH
20932   ;;
20933
20934 darwin* | rhapsody*)
20935   dynamic_linker="$host_os dyld"
20936   version_type=darwin
20937   need_lib_prefix=no
20938   need_version=no
20939   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20940   soname_spec='${libname}${release}${major}$shared_ext'
20941   shlibpath_overrides_runpath=yes
20942   shlibpath_var=DYLD_LIBRARY_PATH
20943   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20944   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20945   if test "$GCC" = yes; then
20946     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"`
20947   else
20948     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20949   fi
20950   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20951   ;;
20952
20953 dgux*)
20954   version_type=linux
20955   need_lib_prefix=no
20956   need_version=no
20957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20958   soname_spec='${libname}${release}${shared_ext}$major'
20959   shlibpath_var=LD_LIBRARY_PATH
20960   ;;
20961
20962 freebsd1*)
20963   dynamic_linker=no
20964   ;;
20965
20966 kfreebsd*-gnu)
20967   version_type=linux
20968   need_lib_prefix=no
20969   need_version=no
20970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20971   soname_spec='${libname}${release}${shared_ext}$major'
20972   shlibpath_var=LD_LIBRARY_PATH
20973   shlibpath_overrides_runpath=no
20974   hardcode_into_libs=yes
20975   dynamic_linker='GNU ld.so'
20976   ;;
20977
20978 freebsd*)
20979   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20980   version_type=freebsd-$objformat
20981   case $version_type in
20982     freebsd-elf*)
20983       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20984       need_version=no
20985       need_lib_prefix=no
20986       ;;
20987     freebsd-*)
20988       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20989       need_version=yes
20990       ;;
20991   esac
20992   shlibpath_var=LD_LIBRARY_PATH
20993   case $host_os in
20994   freebsd2*)
20995     shlibpath_overrides_runpath=yes
20996     ;;
20997   freebsd3.01* | freebsdelf3.01*)
20998     shlibpath_overrides_runpath=yes
20999     hardcode_into_libs=yes
21000     ;;
21001   *) # from 3.2 on
21002     shlibpath_overrides_runpath=no
21003     hardcode_into_libs=yes
21004     ;;
21005   esac
21006   ;;
21007
21008 gnu*)
21009   version_type=linux
21010   need_lib_prefix=no
21011   need_version=no
21012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21013   soname_spec='${libname}${release}${shared_ext}$major'
21014   shlibpath_var=LD_LIBRARY_PATH
21015   hardcode_into_libs=yes
21016   ;;
21017
21018 hpux9* | hpux10* | hpux11*)
21019   # Give a soname corresponding to the major version so that dld.sl refuses to
21020   # link against other versions.
21021   version_type=sunos
21022   need_lib_prefix=no
21023   need_version=no
21024   case "$host_cpu" in
21025   ia64*)
21026     shrext_cmds='.so'
21027     hardcode_into_libs=yes
21028     dynamic_linker="$host_os dld.so"
21029     shlibpath_var=LD_LIBRARY_PATH
21030     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21032     soname_spec='${libname}${release}${shared_ext}$major'
21033     if test "X$HPUX_IA64_MODE" = X32; then
21034       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21035     else
21036       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21037     fi
21038     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21039     ;;
21040    hppa*64*)
21041      shrext_cmds='.sl'
21042      hardcode_into_libs=yes
21043      dynamic_linker="$host_os dld.sl"
21044      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21045      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21046      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21047      soname_spec='${libname}${release}${shared_ext}$major'
21048      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21049      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21050      ;;
21051    *)
21052     shrext_cmds='.sl'
21053     dynamic_linker="$host_os dld.sl"
21054     shlibpath_var=SHLIB_PATH
21055     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21057     soname_spec='${libname}${release}${shared_ext}$major'
21058     ;;
21059   esac
21060   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21061   postinstall_cmds='chmod 555 $lib'
21062   ;;
21063
21064 irix5* | irix6* | nonstopux*)
21065   case $host_os in
21066     nonstopux*) version_type=nonstopux ;;
21067     *)
21068         if test "$lt_cv_prog_gnu_ld" = yes; then
21069                 version_type=linux
21070         else
21071                 version_type=irix
21072         fi ;;
21073   esac
21074   need_lib_prefix=no
21075   need_version=no
21076   soname_spec='${libname}${release}${shared_ext}$major'
21077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21078   case $host_os in
21079   irix5* | nonstopux*)
21080     libsuff= shlibsuff=
21081     ;;
21082   *)
21083     case $LD in # libtool.m4 will add one of these switches to LD
21084     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21085       libsuff= shlibsuff= libmagic=32-bit;;
21086     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21087       libsuff=32 shlibsuff=N32 libmagic=N32;;
21088     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21089       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21090     *) libsuff= shlibsuff= libmagic=never-match;;
21091     esac
21092     ;;
21093   esac
21094   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21095   shlibpath_overrides_runpath=no
21096   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21097   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21098   hardcode_into_libs=yes
21099   ;;
21100
21101 # No shared lib support for Linux oldld, aout, or coff.
21102 linux*oldld* | linux*aout* | linux*coff*)
21103   dynamic_linker=no
21104   ;;
21105
21106 # This must be Linux ELF.
21107 linux*)
21108   version_type=linux
21109   need_lib_prefix=no
21110   need_version=no
21111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21112   soname_spec='${libname}${release}${shared_ext}$major'
21113   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21114   shlibpath_var=LD_LIBRARY_PATH
21115   shlibpath_overrides_runpath=no
21116   # This implies no fast_install, which is unacceptable.
21117   # Some rework will be needed to allow for fast_install
21118   # before this can be enabled.
21119   hardcode_into_libs=yes
21120
21121   # find out which ABI we are using
21122   libsuff=
21123   case "$host_cpu" in
21124   x86_64*|s390x*|powerpc64*)
21125     echo '#line 21125 "configure"' > conftest.$ac_ext
21126     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21127   (eval $ac_compile) 2>&5
21128   ac_status=$?
21129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130   (exit $ac_status); }; then
21131       case `/usr/bin/file conftest.$ac_objext` in
21132       *64-bit*)
21133         libsuff=64
21134         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
21135         ;;
21136       esac
21137     fi
21138     rm -rf conftest*
21139     ;;
21140   esac
21141
21142   # Append ld.so.conf contents to the search path
21143   if test -f /etc/ld.so.conf; then
21144     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
21145     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
21146   fi
21147
21148   # We used to test for /lib/ld.so.1 and disable shared libraries on
21149   # powerpc, because MkLinux only supported shared libraries with the
21150   # GNU dynamic linker.  Since this was broken with cross compilers,
21151   # most powerpc-linux boxes support dynamic linking these days and
21152   # people can always --disable-shared, the test was removed, and we
21153   # assume the GNU/Linux dynamic linker is in use.
21154   dynamic_linker='GNU/Linux ld.so'
21155   ;;
21156
21157 knetbsd*-gnu)
21158   version_type=linux
21159   need_lib_prefix=no
21160   need_version=no
21161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21162   soname_spec='${libname}${release}${shared_ext}$major'
21163   shlibpath_var=LD_LIBRARY_PATH
21164   shlibpath_overrides_runpath=no
21165   hardcode_into_libs=yes
21166   dynamic_linker='GNU ld.so'
21167   ;;
21168
21169 netbsd*)
21170   version_type=sunos
21171   need_lib_prefix=no
21172   need_version=no
21173   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21175     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21176     dynamic_linker='NetBSD (a.out) ld.so'
21177   else
21178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21179     soname_spec='${libname}${release}${shared_ext}$major'
21180     dynamic_linker='NetBSD ld.elf_so'
21181   fi
21182   shlibpath_var=LD_LIBRARY_PATH
21183   shlibpath_overrides_runpath=yes
21184   hardcode_into_libs=yes
21185   ;;
21186
21187 newsos6)
21188   version_type=linux
21189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21190   shlibpath_var=LD_LIBRARY_PATH
21191   shlibpath_overrides_runpath=yes
21192   ;;
21193
21194 nto-qnx*)
21195   version_type=linux
21196   need_lib_prefix=no
21197   need_version=no
21198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21199   soname_spec='${libname}${release}${shared_ext}$major'
21200   shlibpath_var=LD_LIBRARY_PATH
21201   shlibpath_overrides_runpath=yes
21202   ;;
21203
21204 openbsd*)
21205   version_type=sunos
21206   need_lib_prefix=no
21207   need_version=yes
21208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21209   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21210   shlibpath_var=LD_LIBRARY_PATH
21211   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21212     case $host_os in
21213       openbsd2.[89] | openbsd2.[89].*)
21214         shlibpath_overrides_runpath=no
21215         ;;
21216       *)
21217         shlibpath_overrides_runpath=yes
21218         ;;
21219       esac
21220   else
21221     shlibpath_overrides_runpath=yes
21222   fi
21223   ;;
21224
21225 os2*)
21226   libname_spec='$name'
21227   shrext_cmds=".dll"
21228   need_lib_prefix=no
21229   library_names_spec='$libname${shared_ext} $libname.a'
21230   dynamic_linker='OS/2 ld.exe'
21231   shlibpath_var=LIBPATH
21232   ;;
21233
21234 osf3* | osf4* | osf5*)
21235   version_type=osf
21236   need_lib_prefix=no
21237   need_version=no
21238   soname_spec='${libname}${release}${shared_ext}$major'
21239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21240   shlibpath_var=LD_LIBRARY_PATH
21241   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21242   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21243   ;;
21244
21245 sco3.2v5*)
21246   version_type=osf
21247   soname_spec='${libname}${release}${shared_ext}$major'
21248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21249   shlibpath_var=LD_LIBRARY_PATH
21250   ;;
21251
21252 solaris*)
21253   version_type=linux
21254   need_lib_prefix=no
21255   need_version=no
21256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21257   soname_spec='${libname}${release}${shared_ext}$major'
21258   shlibpath_var=LD_LIBRARY_PATH
21259   shlibpath_overrides_runpath=yes
21260   hardcode_into_libs=yes
21261   # ldd complains unless libraries are executable
21262   postinstall_cmds='chmod +x $lib'
21263   ;;
21264
21265 sunos4*)
21266   version_type=sunos
21267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21268   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21269   shlibpath_var=LD_LIBRARY_PATH
21270   shlibpath_overrides_runpath=yes
21271   if test "$with_gnu_ld" = yes; then
21272     need_lib_prefix=no
21273   fi
21274   need_version=yes
21275   ;;
21276
21277 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21278   version_type=linux
21279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21280   soname_spec='${libname}${release}${shared_ext}$major'
21281   shlibpath_var=LD_LIBRARY_PATH
21282   case $host_vendor in
21283     sni)
21284       shlibpath_overrides_runpath=no
21285       need_lib_prefix=no
21286       export_dynamic_flag_spec='${wl}-Blargedynsym'
21287       runpath_var=LD_RUN_PATH
21288       ;;
21289     siemens)
21290       need_lib_prefix=no
21291       ;;
21292     motorola)
21293       need_lib_prefix=no
21294       need_version=no
21295       shlibpath_overrides_runpath=no
21296       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21297       ;;
21298   esac
21299   ;;
21300
21301 sysv4*MP*)
21302   if test -d /usr/nec ;then
21303     version_type=linux
21304     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21305     soname_spec='$libname${shared_ext}.$major'
21306     shlibpath_var=LD_LIBRARY_PATH
21307   fi
21308   ;;
21309
21310 uts4*)
21311   version_type=linux
21312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21313   soname_spec='${libname}${release}${shared_ext}$major'
21314   shlibpath_var=LD_LIBRARY_PATH
21315   ;;
21316
21317 *)
21318   dynamic_linker=no
21319   ;;
21320 esac
21321 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21322 echo "${ECHO_T}$dynamic_linker" >&6
21323 test "$dynamic_linker" = no && can_build_shared=no
21324
21325 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21326 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21327 hardcode_action_F77=
21328 if test -n "$hardcode_libdir_flag_spec_F77" || \
21329    test -n "$runpath_var F77" || \
21330    test "X$hardcode_automatic_F77"="Xyes" ; then
21331
21332   # We can hardcode non-existant directories.
21333   if test "$hardcode_direct_F77" != no &&
21334      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21335      # have to relink, otherwise we might link with an installed library
21336      # when we should be linking with a yet-to-be-installed one
21337      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21338      test "$hardcode_minus_L_F77" != no; then
21339     # Linking always hardcodes the temporary library directory.
21340     hardcode_action_F77=relink
21341   else
21342     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21343     hardcode_action_F77=immediate
21344   fi
21345 else
21346   # We cannot hardcode anything, or else we can only hardcode existing
21347   # directories.
21348   hardcode_action_F77=unsupported
21349 fi
21350 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21351 echo "${ECHO_T}$hardcode_action_F77" >&6
21352
21353 if test "$hardcode_action_F77" = relink; then
21354   # Fast installation is not supported
21355   enable_fast_install=no
21356 elif test "$shlibpath_overrides_runpath" = yes ||
21357      test "$enable_shared" = no; then
21358   # Fast installation is not necessary
21359   enable_fast_install=needless
21360 fi
21361
21362 striplib=
21363 old_striplib=
21364 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21365 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21366 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21367   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21368   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21369   echo "$as_me:$LINENO: result: yes" >&5
21370 echo "${ECHO_T}yes" >&6
21371 else
21372 # FIXME - insert some real tests, host_os isn't really good enough
21373   case $host_os in
21374    darwin*)
21375        if test -n "$STRIP" ; then
21376          striplib="$STRIP -x"
21377          echo "$as_me:$LINENO: result: yes" >&5
21378 echo "${ECHO_T}yes" >&6
21379        else
21380   echo "$as_me:$LINENO: result: no" >&5
21381 echo "${ECHO_T}no" >&6
21382 fi
21383        ;;
21384    *)
21385   echo "$as_me:$LINENO: result: no" >&5
21386 echo "${ECHO_T}no" >&6
21387     ;;
21388   esac
21389 fi
21390
21391
21392
21393 # The else clause should only fire when bootstrapping the
21394 # libtool distribution, otherwise you forgot to ship ltmain.sh
21395 # with your package, and you will get complaints that there are
21396 # no rules to generate ltmain.sh.
21397 if test -f "$ltmain"; then
21398   # See if we are running on zsh, and set the options which allow our commands through
21399   # without removal of \ escapes.
21400   if test -n "${ZSH_VERSION+set}" ; then
21401     setopt NO_GLOB_SUBST
21402   fi
21403   # Now quote all the things that may contain metacharacters while being
21404   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21405   # variables and quote the copies for generation of the libtool script.
21406   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21407     SED SHELL STRIP \
21408     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21409     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21410     deplibs_check_method reload_flag reload_cmds need_locks \
21411     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21412     lt_cv_sys_global_symbol_to_c_name_address \
21413     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21414     old_postinstall_cmds old_postuninstall_cmds \
21415     compiler_F77 \
21416     CC_F77 \
21417     LD_F77 \
21418     lt_prog_compiler_wl_F77 \
21419     lt_prog_compiler_pic_F77 \
21420     lt_prog_compiler_static_F77 \
21421     lt_prog_compiler_no_builtin_flag_F77 \
21422     export_dynamic_flag_spec_F77 \
21423     thread_safe_flag_spec_F77 \
21424     whole_archive_flag_spec_F77 \
21425     enable_shared_with_static_runtimes_F77 \
21426     old_archive_cmds_F77 \
21427     old_archive_from_new_cmds_F77 \
21428     predep_objects_F77 \
21429     postdep_objects_F77 \
21430     predeps_F77 \
21431     postdeps_F77 \
21432     compiler_lib_search_path_F77 \
21433     archive_cmds_F77 \
21434     archive_expsym_cmds_F77 \
21435     postinstall_cmds_F77 \
21436     postuninstall_cmds_F77 \
21437     old_archive_from_expsyms_cmds_F77 \
21438     allow_undefined_flag_F77 \
21439     no_undefined_flag_F77 \
21440     export_symbols_cmds_F77 \
21441     hardcode_libdir_flag_spec_F77 \
21442     hardcode_libdir_flag_spec_ld_F77 \
21443     hardcode_libdir_separator_F77 \
21444     hardcode_automatic_F77 \
21445     module_cmds_F77 \
21446     module_expsym_cmds_F77 \
21447     lt_cv_prog_compiler_c_o_F77 \
21448     exclude_expsyms_F77 \
21449     include_expsyms_F77; do
21450
21451     case $var in
21452     old_archive_cmds_F77 | \
21453     old_archive_from_new_cmds_F77 | \
21454     archive_cmds_F77 | \
21455     archive_expsym_cmds_F77 | \
21456     module_cmds_F77 | \
21457     module_expsym_cmds_F77 | \
21458     old_archive_from_expsyms_cmds_F77 | \
21459     export_symbols_cmds_F77 | \
21460     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21461     postinstall_cmds | postuninstall_cmds | \
21462     old_postinstall_cmds | old_postuninstall_cmds | \
21463     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21464       # Double-quote double-evaled strings.
21465       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21466       ;;
21467     *)
21468       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21469       ;;
21470     esac
21471   done
21472
21473   case $lt_echo in
21474   *'\$0 --fallback-echo"')
21475     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21476     ;;
21477   esac
21478
21479 cfgfile="$ofile"
21480
21481   cat <<__EOF__ >> "$cfgfile"
21482 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21483
21484 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21485
21486 # Shell to use when invoking shell scripts.
21487 SHELL=$lt_SHELL
21488
21489 # Whether or not to build shared libraries.
21490 build_libtool_libs=$enable_shared
21491
21492 # Whether or not to build static libraries.
21493 build_old_libs=$enable_static
21494
21495 # Whether or not to add -lc for building shared libraries.
21496 build_libtool_need_lc=$archive_cmds_need_lc_F77
21497
21498 # Whether or not to disallow shared libs when runtime libs are static
21499 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21500
21501 # Whether or not to optimize for fast installation.
21502 fast_install=$enable_fast_install
21503
21504 # The host system.
21505 host_alias=$host_alias
21506 host=$host
21507
21508 # An echo program that does not interpret backslashes.
21509 echo=$lt_echo
21510
21511 # The archiver.
21512 AR=$lt_AR
21513 AR_FLAGS=$lt_AR_FLAGS
21514
21515 # A C compiler.
21516 LTCC=$lt_LTCC
21517
21518 # A language-specific compiler.
21519 CC=$lt_compiler_F77
21520
21521 # Is the compiler the GNU C compiler?
21522 with_gcc=$GCC_F77
21523
21524 # An ERE matcher.
21525 EGREP=$lt_EGREP
21526
21527 # The linker used to build libraries.
21528 LD=$lt_LD_F77
21529
21530 # Whether we need hard or soft links.
21531 LN_S=$lt_LN_S
21532
21533 # A BSD-compatible nm program.
21534 NM=$lt_NM
21535
21536 # A symbol stripping program
21537 STRIP=$lt_STRIP
21538
21539 # Used to examine libraries when file_magic_cmd begins "file"
21540 MAGIC_CMD=$MAGIC_CMD
21541
21542 # Used on cygwin: DLL creation program.
21543 DLLTOOL="$DLLTOOL"
21544
21545 # Used on cygwin: object dumper.
21546 OBJDUMP="$OBJDUMP"
21547
21548 # Used on cygwin: assembler.
21549 AS="$AS"
21550
21551 # The name of the directory that contains temporary libtool files.
21552 objdir=$objdir
21553
21554 # How to create reloadable object files.
21555 reload_flag=$lt_reload_flag
21556 reload_cmds=$lt_reload_cmds
21557
21558 # How to pass a linker flag through the compiler.
21559 wl=$lt_lt_prog_compiler_wl_F77
21560
21561 # Object file suffix (normally "o").
21562 objext="$ac_objext"
21563
21564 # Old archive suffix (normally "a").
21565 libext="$libext"
21566
21567 # Shared library suffix (normally ".so").
21568 shrext_cmds='$shrext_cmds'
21569
21570 # Executable file suffix (normally "").
21571 exeext="$exeext"
21572
21573 # Additional compiler flags for building library objects.
21574 pic_flag=$lt_lt_prog_compiler_pic_F77
21575 pic_mode=$pic_mode
21576
21577 # What is the maximum length of a command?
21578 max_cmd_len=$lt_cv_sys_max_cmd_len
21579
21580 # Does compiler simultaneously support -c and -o options?
21581 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21582
21583 # Must we lock files when doing compilation ?
21584 need_locks=$lt_need_locks
21585
21586 # Do we need the lib prefix for modules?
21587 need_lib_prefix=$need_lib_prefix
21588
21589 # Do we need a version for libraries?
21590 need_version=$need_version
21591
21592 # Whether dlopen is supported.
21593 dlopen_support=$enable_dlopen
21594
21595 # Whether dlopen of programs is supported.
21596 dlopen_self=$enable_dlopen_self
21597
21598 # Whether dlopen of statically linked programs is supported.
21599 dlopen_self_static=$enable_dlopen_self_static
21600
21601 # Compiler flag to prevent dynamic linking.
21602 link_static_flag=$lt_lt_prog_compiler_static_F77
21603
21604 # Compiler flag to turn off builtin functions.
21605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21606
21607 # Compiler flag to allow reflexive dlopens.
21608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21609
21610 # Compiler flag to generate shared objects directly from archives.
21611 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21612
21613 # Compiler flag to generate thread-safe objects.
21614 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21615
21616 # Library versioning type.
21617 version_type=$version_type
21618
21619 # Format of library name prefix.
21620 libname_spec=$lt_libname_spec
21621
21622 # List of archive names.  First name is the real one, the rest are links.
21623 # The last name is the one that the linker finds with -lNAME.
21624 library_names_spec=$lt_library_names_spec
21625
21626 # The coded name of the library, if different from the real name.
21627 soname_spec=$lt_soname_spec
21628
21629 # Commands used to build and install an old-style archive.
21630 RANLIB=$lt_RANLIB
21631 old_archive_cmds=$lt_old_archive_cmds_F77
21632 old_postinstall_cmds=$lt_old_postinstall_cmds
21633 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21634
21635 # Create an old-style archive from a shared archive.
21636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21637
21638 # Create a temporary old-style archive to link instead of a shared archive.
21639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21640
21641 # Commands used to build and install a shared archive.
21642 archive_cmds=$lt_archive_cmds_F77
21643 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21644 postinstall_cmds=$lt_postinstall_cmds
21645 postuninstall_cmds=$lt_postuninstall_cmds
21646
21647 # Commands used to build a loadable module (assumed same as above if empty)
21648 module_cmds=$lt_module_cmds_F77
21649 module_expsym_cmds=$lt_module_expsym_cmds_F77
21650
21651 # Commands to strip libraries.
21652 old_striplib=$lt_old_striplib
21653 striplib=$lt_striplib
21654
21655 # Dependencies to place before the objects being linked to create a
21656 # shared library.
21657 predep_objects=$lt_predep_objects_F77
21658
21659 # Dependencies to place after the objects being linked to create a
21660 # shared library.
21661 postdep_objects=$lt_postdep_objects_F77
21662
21663 # Dependencies to place before the objects being linked to create a
21664 # shared library.
21665 predeps=$lt_predeps_F77
21666
21667 # Dependencies to place after the objects being linked to create a
21668 # shared library.
21669 postdeps=$lt_postdeps_F77
21670
21671 # The library search path used internally by the compiler when linking
21672 # a shared library.
21673 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21674
21675 # Method to check whether dependent libraries are shared objects.
21676 deplibs_check_method=$lt_deplibs_check_method
21677
21678 # Command to use when deplibs_check_method == file_magic.
21679 file_magic_cmd=$lt_file_magic_cmd
21680
21681 # Flag that allows shared libraries with undefined symbols to be built.
21682 allow_undefined_flag=$lt_allow_undefined_flag_F77
21683
21684 # Flag that forces no undefined symbols.
21685 no_undefined_flag=$lt_no_undefined_flag_F77
21686
21687 # Commands used to finish a libtool library installation in a directory.
21688 finish_cmds=$lt_finish_cmds
21689
21690 # Same as above, but a single script fragment to be evaled but not shown.
21691 finish_eval=$lt_finish_eval
21692
21693 # Take the output of nm and produce a listing of raw symbols and C names.
21694 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21695
21696 # Transform the output of nm in a proper C declaration
21697 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21698
21699 # Transform the output of nm in a C name address pair
21700 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21701
21702 # This is the shared library runtime path variable.
21703 runpath_var=$runpath_var
21704
21705 # This is the shared library path variable.
21706 shlibpath_var=$shlibpath_var
21707
21708 # Is shlibpath searched before the hard-coded library search path?
21709 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21710
21711 # How to hardcode a shared library path into an executable.
21712 hardcode_action=$hardcode_action_F77
21713
21714 # Whether we should hardcode library paths into libraries.
21715 hardcode_into_libs=$hardcode_into_libs
21716
21717 # Flag to hardcode \$libdir into a binary during linking.
21718 # This must work even if \$libdir does not exist.
21719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21720
21721 # If ld is used when linking, flag to hardcode \$libdir into
21722 # a binary during linking. This must work even if \$libdir does
21723 # not exist.
21724 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21725
21726 # Whether we need a single -rpath flag with a separated argument.
21727 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21728
21729 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21730 # resulting binary.
21731 hardcode_direct=$hardcode_direct_F77
21732
21733 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21734 # resulting binary.
21735 hardcode_minus_L=$hardcode_minus_L_F77
21736
21737 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21738 # the resulting binary.
21739 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21740
21741 # Set to yes if building a shared library automatically hardcodes DIR into the library
21742 # and all subsequent libraries and executables linked against it.
21743 hardcode_automatic=$hardcode_automatic_F77
21744
21745 # Variables whose values should be saved in libtool wrapper scripts and
21746 # restored at relink time.
21747 variables_saved_for_relink="$variables_saved_for_relink"
21748
21749 # Whether libtool must link a program against all its dependency libraries.
21750 link_all_deplibs=$link_all_deplibs_F77
21751
21752 # Compile-time system search path for libraries
21753 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21754
21755 # Run-time system search path for libraries
21756 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21757
21758 # Fix the shell variable \$srcfile for the compiler.
21759 fix_srcfile_path="$fix_srcfile_path_F77"
21760
21761 # Set to yes if exported symbols are required.
21762 always_export_symbols=$always_export_symbols_F77
21763
21764 # The commands to list exported symbols.
21765 export_symbols_cmds=$lt_export_symbols_cmds_F77
21766
21767 # The commands to extract the exported symbol list from a shared archive.
21768 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21769
21770 # Symbols that should not be listed in the preloaded symbols.
21771 exclude_expsyms=$lt_exclude_expsyms_F77
21772
21773 # Symbols that must always be exported.
21774 include_expsyms=$lt_include_expsyms_F77
21775
21776 # ### END LIBTOOL TAG CONFIG: $tagname
21777
21778 __EOF__
21779
21780
21781 else
21782   # If there is no Makefile yet, we rely on a make rule to execute
21783   # `config.status --recheck' to rerun these tests and create the
21784   # libtool script then.
21785   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21786   if test -f "$ltmain_in"; then
21787     test -f Makefile && make "$ltmain"
21788   fi
21789 fi
21790
21791
21792 ac_ext=c
21793 ac_cpp='$CPP $CPPFLAGS'
21794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21797
21798 CC="$lt_save_CC"
21799
21800         else
21801           tagname=""
21802         fi
21803         ;;
21804
21805       GCJ)
21806         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21807
21808
21809
21810 # Source file extension for Java test sources.
21811 ac_ext=java
21812
21813 # Object file extension for compiled Java test sources.
21814 objext=o
21815 objext_GCJ=$objext
21816
21817 # Code to be used in simple compile tests
21818 lt_simple_compile_test_code="class foo {}\n"
21819
21820 # Code to be used in simple link tests
21821 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21822
21823 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21824
21825 # If no C compiler was specified, use CC.
21826 LTCC=${LTCC-"$CC"}
21827
21828 # Allow CC to be a program name with arguments.
21829 compiler=$CC
21830
21831
21832 # Allow CC to be a program name with arguments.
21833 lt_save_CC="$CC"
21834 CC=${GCJ-"gcj"}
21835 compiler=$CC
21836 compiler_GCJ=$CC
21837
21838 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21839 archive_cmds_need_lc_GCJ=no
21840
21841
21842 lt_prog_compiler_no_builtin_flag_GCJ=
21843
21844 if test "$GCC" = yes; then
21845   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21846
21847
21848 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21849 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21850 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21851   echo $ECHO_N "(cached) $ECHO_C" >&6
21852 else
21853   lt_cv_prog_compiler_rtti_exceptions=no
21854   ac_outfile=conftest.$ac_objext
21855    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21856    lt_compiler_flag="-fno-rtti -fno-exceptions"
21857    # Insert the option either (1) after the last *FLAGS variable, or
21858    # (2) before a word containing "conftest.", or (3) at the end.
21859    # Note that $ac_compile itself does not contain backslashes and begins
21860    # with a dollar sign (not a hyphen), so the echo should work correctly.
21861    # The option is referenced via a variable to avoid confusing sed.
21862    lt_compile=`echo "$ac_compile" | $SED \
21863    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21864    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21865    -e 's:$: $lt_compiler_flag:'`
21866    (eval echo "\"\$as_me:21866: $lt_compile\"" >&5)
21867    (eval "$lt_compile" 2>conftest.err)
21868    ac_status=$?
21869    cat conftest.err >&5
21870    echo "$as_me:21870: \$? = $ac_status" >&5
21871    if (exit $ac_status) && test -s "$ac_outfile"; then
21872      # The compiler can only warn and ignore the option if not recognized
21873      # So say no if there are warnings
21874      if test ! -s conftest.err; then
21875        lt_cv_prog_compiler_rtti_exceptions=yes
21876      fi
21877    fi
21878    $rm conftest*
21879
21880 fi
21881 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21882 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21883
21884 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21885     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21886 else
21887     :
21888 fi
21889
21890 fi
21891
21892 lt_prog_compiler_wl_GCJ=
21893 lt_prog_compiler_pic_GCJ=
21894 lt_prog_compiler_static_GCJ=
21895
21896 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21897 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21898
21899   if test "$GCC" = yes; then
21900     lt_prog_compiler_wl_GCJ='-Wl,'
21901     lt_prog_compiler_static_GCJ='-static'
21902
21903     case $host_os in
21904       aix*)
21905       # All AIX code is PIC.
21906       if test "$host_cpu" = ia64; then
21907         # AIX 5 now supports IA64 processor
21908         lt_prog_compiler_static_GCJ='-Bstatic'
21909       fi
21910       ;;
21911
21912     amigaos*)
21913       # FIXME: we need at least 68020 code to build shared libraries, but
21914       # adding the `-m68020' flag to GCC prevents building anything better,
21915       # like `-m68040'.
21916       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21917       ;;
21918
21919     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21920       # PIC is the default for these OSes.
21921       ;;
21922
21923     mingw* | pw32* | os2*)
21924       # This hack is so that the source file can tell whether it is being
21925       # built for inclusion in a dll (and should export symbols for example).
21926       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21927       ;;
21928
21929     darwin* | rhapsody*)
21930       # PIC is the default on this platform
21931       # Common symbols not allowed in MH_DYLIB files
21932       lt_prog_compiler_pic_GCJ='-fno-common'
21933       ;;
21934
21935     msdosdjgpp*)
21936       # Just because we use GCC doesn't mean we suddenly get shared libraries
21937       # on systems that don't support them.
21938       lt_prog_compiler_can_build_shared_GCJ=no
21939       enable_shared=no
21940       ;;
21941
21942     sysv4*MP*)
21943       if test -d /usr/nec; then
21944         lt_prog_compiler_pic_GCJ=-Kconform_pic
21945       fi
21946       ;;
21947
21948     hpux*)
21949       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21950       # not for PA HP-UX.
21951       case "$host_cpu" in
21952       hppa*64*|ia64*)
21953         # +Z the default
21954         ;;
21955       *)
21956         lt_prog_compiler_pic_GCJ='-fPIC'
21957         ;;
21958       esac
21959       ;;
21960
21961     *)
21962       lt_prog_compiler_pic_GCJ='-fPIC'
21963       ;;
21964     esac
21965   else
21966     # PORTME Check for flag to pass linker flags through the system compiler.
21967     case $host_os in
21968     aix*)
21969       lt_prog_compiler_wl_GCJ='-Wl,'
21970       if test "$host_cpu" = ia64; then
21971         # AIX 5 now supports IA64 processor
21972         lt_prog_compiler_static_GCJ='-Bstatic'
21973       else
21974         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21975       fi
21976       ;;
21977
21978     mingw* | pw32* | os2*)
21979       # This hack is so that the source file can tell whether it is being
21980       # built for inclusion in a dll (and should export symbols for example).
21981       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21982       ;;
21983
21984     hpux9* | hpux10* | hpux11*)
21985       lt_prog_compiler_wl_GCJ='-Wl,'
21986       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21987       # not for PA HP-UX.
21988       case "$host_cpu" in
21989       hppa*64*|ia64*)
21990         # +Z the default
21991         ;;
21992       *)
21993         lt_prog_compiler_pic_GCJ='+Z'
21994         ;;
21995       esac
21996       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21997       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21998       ;;
21999
22000     irix5* | irix6* | nonstopux*)
22001       lt_prog_compiler_wl_GCJ='-Wl,'
22002       # PIC (with -KPIC) is the default.
22003       lt_prog_compiler_static_GCJ='-non_shared'
22004       ;;
22005
22006     newsos6)
22007       lt_prog_compiler_pic_GCJ='-KPIC'
22008       lt_prog_compiler_static_GCJ='-Bstatic'
22009       ;;
22010
22011     linux*)
22012       case $CC in
22013       icc* | ecc*)
22014         lt_prog_compiler_wl_GCJ='-Wl,'
22015         lt_prog_compiler_pic_GCJ='-KPIC'
22016         lt_prog_compiler_static_GCJ='-static'
22017         ;;
22018       ccc*)
22019         lt_prog_compiler_wl_GCJ='-Wl,'
22020         # All Alpha code is PIC.
22021         lt_prog_compiler_static_GCJ='-non_shared'
22022         ;;
22023       esac
22024       ;;
22025
22026     osf3* | osf4* | osf5*)
22027       lt_prog_compiler_wl_GCJ='-Wl,'
22028       # All OSF/1 code is PIC.
22029       lt_prog_compiler_static_GCJ='-non_shared'
22030       ;;
22031
22032     sco3.2v5*)
22033       lt_prog_compiler_pic_GCJ='-Kpic'
22034       lt_prog_compiler_static_GCJ='-dn'
22035       ;;
22036
22037     solaris*)
22038       lt_prog_compiler_wl_GCJ='-Wl,'
22039       lt_prog_compiler_pic_GCJ='-KPIC'
22040       lt_prog_compiler_static_GCJ='-Bstatic'
22041       ;;
22042
22043     sunos4*)
22044       lt_prog_compiler_wl_GCJ='-Qoption ld '
22045       lt_prog_compiler_pic_GCJ='-PIC'
22046       lt_prog_compiler_static_GCJ='-Bstatic'
22047       ;;
22048
22049     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22050       lt_prog_compiler_wl_GCJ='-Wl,'
22051       lt_prog_compiler_pic_GCJ='-KPIC'
22052       lt_prog_compiler_static_GCJ='-Bstatic'
22053       ;;
22054
22055     sysv4*MP*)
22056       if test -d /usr/nec ;then
22057         lt_prog_compiler_pic_GCJ='-Kconform_pic'
22058         lt_prog_compiler_static_GCJ='-Bstatic'
22059       fi
22060       ;;
22061
22062     uts4*)
22063       lt_prog_compiler_pic_GCJ='-pic'
22064       lt_prog_compiler_static_GCJ='-Bstatic'
22065       ;;
22066
22067     *)
22068       lt_prog_compiler_can_build_shared_GCJ=no
22069       ;;
22070     esac
22071   fi
22072
22073 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22074 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22075
22076 #
22077 # Check to make sure the PIC flag actually works.
22078 #
22079 if test -n "$lt_prog_compiler_pic_GCJ"; then
22080
22081 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22082 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22083 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22084   echo $ECHO_N "(cached) $ECHO_C" >&6
22085 else
22086   lt_prog_compiler_pic_works_GCJ=no
22087   ac_outfile=conftest.$ac_objext
22088    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22089    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22090    # Insert the option either (1) after the last *FLAGS variable, or
22091    # (2) before a word containing "conftest.", or (3) at the end.
22092    # Note that $ac_compile itself does not contain backslashes and begins
22093    # with a dollar sign (not a hyphen), so the echo should work correctly.
22094    # The option is referenced via a variable to avoid confusing sed.
22095    lt_compile=`echo "$ac_compile" | $SED \
22096    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22098    -e 's:$: $lt_compiler_flag:'`
22099    (eval echo "\"\$as_me:22099: $lt_compile\"" >&5)
22100    (eval "$lt_compile" 2>conftest.err)
22101    ac_status=$?
22102    cat conftest.err >&5
22103    echo "$as_me:22103: \$? = $ac_status" >&5
22104    if (exit $ac_status) && test -s "$ac_outfile"; then
22105      # The compiler can only warn and ignore the option if not recognized
22106      # So say no if there are warnings
22107      if test ! -s conftest.err; then
22108        lt_prog_compiler_pic_works_GCJ=yes
22109      fi
22110    fi
22111    $rm conftest*
22112
22113 fi
22114 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22115 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22116
22117 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22118     case $lt_prog_compiler_pic_GCJ in
22119      "" | " "*) ;;
22120      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22121      esac
22122 else
22123     lt_prog_compiler_pic_GCJ=
22124      lt_prog_compiler_can_build_shared_GCJ=no
22125 fi
22126
22127 fi
22128 case "$host_os" in
22129   # For platforms which do not support PIC, -DPIC is meaningless:
22130   *djgpp*)
22131     lt_prog_compiler_pic_GCJ=
22132     ;;
22133   *)
22134     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22135     ;;
22136 esac
22137
22138 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22139 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22140 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22141   echo $ECHO_N "(cached) $ECHO_C" >&6
22142 else
22143   lt_cv_prog_compiler_c_o_GCJ=no
22144    $rm -r conftest 2>/dev/null
22145    mkdir conftest
22146    cd conftest
22147    mkdir out
22148    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22149
22150    lt_compiler_flag="-o out/conftest2.$ac_objext"
22151    # Insert the option either (1) after the last *FLAGS variable, or
22152    # (2) before a word containing "conftest.", or (3) at the end.
22153    # Note that $ac_compile itself does not contain backslashes and begins
22154    # with a dollar sign (not a hyphen), so the echo should work correctly.
22155    lt_compile=`echo "$ac_compile" | $SED \
22156    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22157    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22158    -e 's:$: $lt_compiler_flag:'`
22159    (eval echo "\"\$as_me:22159: $lt_compile\"" >&5)
22160    (eval "$lt_compile" 2>out/conftest.err)
22161    ac_status=$?
22162    cat out/conftest.err >&5
22163    echo "$as_me:22163: \$? = $ac_status" >&5
22164    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22165    then
22166      # The compiler can only warn and ignore the option if not recognized
22167      # So say no if there are warnings
22168      if test ! -s out/conftest.err; then
22169        lt_cv_prog_compiler_c_o_GCJ=yes
22170      fi
22171    fi
22172    chmod u+w .
22173    $rm conftest*
22174    # SGI C++ compiler will create directory out/ii_files/ for
22175    # template instantiation
22176    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22177    $rm out/* && rmdir out
22178    cd ..
22179    rmdir conftest
22180    $rm conftest*
22181
22182 fi
22183 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22184 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22185
22186
22187 hard_links="nottested"
22188 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22189   # do not overwrite the value of need_locks provided by the user
22190   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22191 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22192   hard_links=yes
22193   $rm conftest*
22194   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22195   touch conftest.a
22196   ln conftest.a conftest.b 2>&5 || hard_links=no
22197   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22198   echo "$as_me:$LINENO: result: $hard_links" >&5
22199 echo "${ECHO_T}$hard_links" >&6
22200   if test "$hard_links" = no; then
22201     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22202 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22203     need_locks=warn
22204   fi
22205 else
22206   need_locks=no
22207 fi
22208
22209 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22210 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22211
22212   runpath_var=
22213   allow_undefined_flag_GCJ=
22214   enable_shared_with_static_runtimes_GCJ=no
22215   archive_cmds_GCJ=
22216   archive_expsym_cmds_GCJ=
22217   old_archive_From_new_cmds_GCJ=
22218   old_archive_from_expsyms_cmds_GCJ=
22219   export_dynamic_flag_spec_GCJ=
22220   whole_archive_flag_spec_GCJ=
22221   thread_safe_flag_spec_GCJ=
22222   hardcode_libdir_flag_spec_GCJ=
22223   hardcode_libdir_flag_spec_ld_GCJ=
22224   hardcode_libdir_separator_GCJ=
22225   hardcode_direct_GCJ=no
22226   hardcode_minus_L_GCJ=no
22227   hardcode_shlibpath_var_GCJ=unsupported
22228   link_all_deplibs_GCJ=unknown
22229   hardcode_automatic_GCJ=no
22230   module_cmds_GCJ=
22231   module_expsym_cmds_GCJ=
22232   always_export_symbols_GCJ=no
22233   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22234   # include_expsyms should be a list of space-separated symbols to be *always*
22235   # included in the symbol list
22236   include_expsyms_GCJ=
22237   # exclude_expsyms can be an extended regexp of symbols to exclude
22238   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22239   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22240   # as well as any symbol that contains `d'.
22241   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22242   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22243   # platforms (ab)use it in PIC code, but their linkers get confused if
22244   # the symbol is explicitly referenced.  Since portable code cannot
22245   # rely on this symbol name, it's probably fine to never include it in
22246   # preloaded symbol tables.
22247   extract_expsyms_cmds=
22248
22249   case $host_os in
22250   cygwin* | mingw* | pw32*)
22251     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22252     # When not using gcc, we currently assume that we are using
22253     # Microsoft Visual C++.
22254     if test "$GCC" != yes; then
22255       with_gnu_ld=no
22256     fi
22257     ;;
22258   openbsd*)
22259     with_gnu_ld=no
22260     ;;
22261   esac
22262
22263   ld_shlibs_GCJ=yes
22264   if test "$with_gnu_ld" = yes; then
22265     # If archive_cmds runs LD, not CC, wlarc should be empty
22266     wlarc='${wl}'
22267
22268     # See if GNU ld supports shared libraries.
22269     case $host_os in
22270     aix3* | aix4* | aix5*)
22271       # On AIX/PPC, the GNU linker is very broken
22272       if test "$host_cpu" != ia64; then
22273         ld_shlibs_GCJ=no
22274         cat <<EOF 1>&2
22275
22276 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22277 *** to be unable to reliably create shared libraries on AIX.
22278 *** Therefore, libtool is disabling shared libraries support.  If you
22279 *** really care for shared libraries, you may want to modify your PATH
22280 *** so that a non-GNU linker is found, and then restart.
22281
22282 EOF
22283       fi
22284       ;;
22285
22286     amigaos*)
22287       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)'
22288       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22289       hardcode_minus_L_GCJ=yes
22290
22291       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22292       # that the semantics of dynamic libraries on AmigaOS, at least up
22293       # to version 4, is to share data among multiple programs linked
22294       # with the same dynamic library.  Since this doesn't match the
22295       # behavior of shared libraries on other platforms, we can't use
22296       # them.
22297       ld_shlibs_GCJ=no
22298       ;;
22299
22300     beos*)
22301       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22302         allow_undefined_flag_GCJ=unsupported
22303         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22304         # support --undefined.  This deserves some investigation.  FIXME
22305         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22306       else
22307         ld_shlibs_GCJ=no
22308       fi
22309       ;;
22310
22311     cygwin* | mingw* | pw32*)
22312       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22313       # as there is no search path for DLLs.
22314       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22315       allow_undefined_flag_GCJ=unsupported
22316       always_export_symbols_GCJ=no
22317       enable_shared_with_static_runtimes_GCJ=yes
22318       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22319
22320       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22321         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22322         # If the export-symbols file already is a .def file (1st line
22323         # is EXPORTS), use it as is; otherwise, prepend...
22324         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22325           cp $export_symbols $output_objdir/$soname.def;
22326         else
22327           echo EXPORTS > $output_objdir/$soname.def;
22328           cat $export_symbols >> $output_objdir/$soname.def;
22329         fi~
22330         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
22331       else
22332         ld_shlibs=no
22333       fi
22334       ;;
22335
22336     netbsd*)
22337       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22338         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22339         wlarc=
22340       else
22341         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22342         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22343       fi
22344       ;;
22345
22346     solaris* | sysv5*)
22347       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22348         ld_shlibs_GCJ=no
22349         cat <<EOF 1>&2
22350
22351 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22352 *** create shared libraries on Solaris systems.  Therefore, libtool
22353 *** is disabling shared libraries support.  We urge you to upgrade GNU
22354 *** binutils to release 2.9.1 or newer.  Another option is to modify
22355 *** your PATH or compiler configuration so that the native linker is
22356 *** used, and then restart.
22357
22358 EOF
22359       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22360         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22361         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22362       else
22363         ld_shlibs_GCJ=no
22364       fi
22365       ;;
22366
22367     sunos4*)
22368       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22369       wlarc=
22370       hardcode_direct_GCJ=yes
22371       hardcode_shlibpath_var_GCJ=no
22372       ;;
22373
22374   linux*)
22375     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22376         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22377         archive_cmds_GCJ="$tmp_archive_cmds"
22378       supports_anon_versioning=no
22379       case `$LD -v 2>/dev/null` in
22380         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22381         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22382         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22383         *\ 2.11.*) ;; # other 2.11 versions
22384         *) supports_anon_versioning=yes ;;
22385       esac
22386       if test $supports_anon_versioning = yes; then
22387         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22388 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22389 $echo "local: *; };" >> $output_objdir/$libname.ver~
22390         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22391       else
22392         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22393       fi
22394     else
22395       ld_shlibs_GCJ=no
22396     fi
22397     ;;
22398
22399     *)
22400       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22401         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22402         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22403       else
22404         ld_shlibs_GCJ=no
22405       fi
22406       ;;
22407     esac
22408
22409     if test "$ld_shlibs_GCJ" = yes; then
22410       runpath_var=LD_RUN_PATH
22411       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22412       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22413       # ancient GNU ld didn't support --whole-archive et. al.
22414       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22415         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22416       else
22417         whole_archive_flag_spec_GCJ=
22418       fi
22419     fi
22420   else
22421     # PORTME fill in a description of your system's linker (not GNU ld)
22422     case $host_os in
22423     aix3*)
22424       allow_undefined_flag_GCJ=unsupported
22425       always_export_symbols_GCJ=yes
22426       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'
22427       # Note: this linker hardcodes the directories in LIBPATH if there
22428       # are no directories specified by -L.
22429       hardcode_minus_L_GCJ=yes
22430       if test "$GCC" = yes && test -z "$link_static_flag"; then
22431         # Neither direct hardcoding nor static linking is supported with a
22432         # broken collect2.
22433         hardcode_direct_GCJ=unsupported
22434       fi
22435       ;;
22436
22437     aix4* | aix5*)
22438       if test "$host_cpu" = ia64; then
22439         # On IA64, the linker does run time linking by default, so we don't
22440         # have to do anything special.
22441         aix_use_runtimelinking=no
22442         exp_sym_flag='-Bexport'
22443         no_entry_flag=""
22444       else
22445         # If we're using GNU nm, then we don't want the "-C" option.
22446         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22447         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22448           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'
22449         else
22450           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'
22451         fi
22452         aix_use_runtimelinking=no
22453
22454         # Test if we are trying to use run time linking or normal
22455         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22456         # need to do runtime linking.
22457         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22458           for ld_flag in $LDFLAGS; do
22459           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22460             aix_use_runtimelinking=yes
22461             break
22462           fi
22463           done
22464         esac
22465
22466         exp_sym_flag='-bexport'
22467         no_entry_flag='-bnoentry'
22468       fi
22469
22470       # When large executables or shared objects are built, AIX ld can
22471       # have problems creating the table of contents.  If linking a library
22472       # or program results in "error TOC overflow" add -mminimal-toc to
22473       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22474       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22475
22476       archive_cmds_GCJ=''
22477       hardcode_direct_GCJ=yes
22478       hardcode_libdir_separator_GCJ=':'
22479       link_all_deplibs_GCJ=yes
22480
22481       if test "$GCC" = yes; then
22482         case $host_os in aix4.012|aix4.012.*)
22483         # We only want to do this on AIX 4.2 and lower, the check
22484         # below for broken collect2 doesn't work under 4.3+
22485           collect2name=`${CC} -print-prog-name=collect2`
22486           if test -f "$collect2name" && \
22487            strings "$collect2name" | grep resolve_lib_name >/dev/null
22488           then
22489           # We have reworked collect2
22490           hardcode_direct_GCJ=yes
22491           else
22492           # We have old collect2
22493           hardcode_direct_GCJ=unsupported
22494           # It fails to find uninstalled libraries when the uninstalled
22495           # path is not listed in the libpath.  Setting hardcode_minus_L
22496           # to unsupported forces relinking
22497           hardcode_minus_L_GCJ=yes
22498           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22499           hardcode_libdir_separator_GCJ=
22500           fi
22501         esac
22502         shared_flag='-shared'
22503       else
22504         # not using gcc
22505         if test "$host_cpu" = ia64; then
22506         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22507         # chokes on -Wl,-G. The following line is correct:
22508           shared_flag='-G'
22509         else
22510         if test "$aix_use_runtimelinking" = yes; then
22511             shared_flag='${wl}-G'
22512           else
22513             shared_flag='${wl}-bM:SRE'
22514         fi
22515         fi
22516       fi
22517
22518       # It seems that -bexpall does not export symbols beginning with
22519       # underscore (_), so it is better to generate a list of symbols to export.
22520       always_export_symbols_GCJ=yes
22521       if test "$aix_use_runtimelinking" = yes; then
22522         # Warning - without using the other runtime loading flags (-brtl),
22523         # -berok will link without error, but may produce a broken library.
22524         allow_undefined_flag_GCJ='-berok'
22525        # Determine the default libpath from the value encoded in an empty executable.
22526        cat >conftest.$ac_ext <<_ACEOF
22527 /* confdefs.h.  */
22528 _ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h.  */
22532
22533 int
22534 main ()
22535 {
22536
22537   ;
22538   return 0;
22539 }
22540 _ACEOF
22541 rm -f conftest.$ac_objext conftest$ac_exeext
22542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22543   (eval $ac_link) 2>conftest.er1
22544   ac_status=$?
22545   grep -v '^ *+' conftest.er1 >conftest.err
22546   rm -f conftest.er1
22547   cat conftest.err >&5
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); } &&
22550          { ac_try='test -z "$ac_c_werror_flag"
22551                          || test ! -s conftest.err'
22552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553   (eval $ac_try) 2>&5
22554   ac_status=$?
22555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556   (exit $ac_status); }; } &&
22557          { ac_try='test -s conftest$ac_exeext'
22558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559   (eval $ac_try) 2>&5
22560   ac_status=$?
22561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562   (exit $ac_status); }; }; then
22563
22564 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22565 }'`
22566 # Check for a 64-bit object if we didn't find anything.
22567 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; }
22568 }'`; fi
22569 else
22570   echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.$ac_ext >&5
22572
22573 fi
22574 rm -f conftest.err conftest.$ac_objext \
22575       conftest$ac_exeext conftest.$ac_ext
22576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22577
22578        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22579         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"
22580        else
22581         if test "$host_cpu" = ia64; then
22582           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22583           allow_undefined_flag_GCJ="-z nodefs"
22584           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"
22585         else
22586          # Determine the default libpath from the value encoded in an empty executable.
22587          cat >conftest.$ac_ext <<_ACEOF
22588 /* confdefs.h.  */
22589 _ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h.  */
22593
22594 int
22595 main ()
22596 {
22597
22598   ;
22599   return 0;
22600 }
22601 _ACEOF
22602 rm -f conftest.$ac_objext conftest$ac_exeext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22604   (eval $ac_link) 2>conftest.er1
22605   ac_status=$?
22606   grep -v '^ *+' conftest.er1 >conftest.err
22607   rm -f conftest.er1
22608   cat conftest.err >&5
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } &&
22611          { ac_try='test -z "$ac_c_werror_flag"
22612                          || test ! -s conftest.err'
22613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614   (eval $ac_try) 2>&5
22615   ac_status=$?
22616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617   (exit $ac_status); }; } &&
22618          { ac_try='test -s conftest$ac_exeext'
22619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620   (eval $ac_try) 2>&5
22621   ac_status=$?
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); }; }; then
22624
22625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22626 }'`
22627 # Check for a 64-bit object if we didn't find anything.
22628 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; }
22629 }'`; fi
22630 else
22631   echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22633
22634 fi
22635 rm -f conftest.err conftest.$ac_objext \
22636       conftest$ac_exeext conftest.$ac_ext
22637 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22638
22639          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22640           # Warning - without using the other run time loading flags,
22641           # -berok will link without error, but may produce a broken library.
22642           no_undefined_flag_GCJ=' ${wl}-bernotok'
22643           allow_undefined_flag_GCJ=' ${wl}-berok'
22644           # -bexpall does not export symbols beginning with underscore (_)
22645           always_export_symbols_GCJ=yes
22646           # Exported symbols can be pulled into shared objects from archives
22647           whole_archive_flag_spec_GCJ=' '
22648           archive_cmds_need_lc_GCJ=yes
22649           # This is similar to how AIX traditionally builds it's shared libraries.
22650           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'
22651         fi
22652       fi
22653       ;;
22654
22655     amigaos*)
22656       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)'
22657       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22658       hardcode_minus_L_GCJ=yes
22659       # see comment about different semantics on the GNU ld section
22660       ld_shlibs_GCJ=no
22661       ;;
22662
22663     bsdi4*)
22664       export_dynamic_flag_spec_GCJ=-rdynamic
22665       ;;
22666
22667     cygwin* | mingw* | pw32*)
22668       # When not using gcc, we currently assume that we are using
22669       # Microsoft Visual C++.
22670       # hardcode_libdir_flag_spec is actually meaningless, as there is
22671       # no search path for DLLs.
22672       hardcode_libdir_flag_spec_GCJ=' '
22673       allow_undefined_flag_GCJ=unsupported
22674       # Tell ltmain to make .lib files, not .a files.
22675       libext=lib
22676       # Tell ltmain to make .dll files, not .so files.
22677       shrext_cmds=".dll"
22678       # FIXME: Setting linknames here is a bad hack.
22679       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22680       # The linker will automatically build a .lib file if we build a DLL.
22681       old_archive_From_new_cmds_GCJ='true'
22682       # FIXME: Should let the user specify the lib program.
22683       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22684       fix_srcfile_path='`cygpath -w "$srcfile"`'
22685       enable_shared_with_static_runtimes_GCJ=yes
22686       ;;
22687
22688     darwin* | rhapsody*)
22689     if test "$GXX" = yes ; then
22690       archive_cmds_need_lc_GCJ=no
22691       case "$host_os" in
22692       rhapsody* | darwin1.[012])
22693         allow_undefined_flag_GCJ='-undefined suppress'
22694         ;;
22695       *) # Darwin 1.3 on
22696       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22697         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22698       else
22699         case ${MACOSX_DEPLOYMENT_TARGET} in
22700           10.[012])
22701             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
22702             ;;
22703           10.*)
22704             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
22705             ;;
22706         esac
22707       fi
22708         ;;
22709       esac
22710         lt_int_apple_cc_single_mod=no
22711         output_verbose_link_cmd='echo'
22712         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
22713           lt_int_apple_cc_single_mod=yes
22714         fi
22715         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22716           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22717         else
22718         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22719       fi
22720       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22721       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22722         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22723           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22724         else
22725           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22726         fi
22727           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}'
22728       hardcode_direct_GCJ=no
22729       hardcode_automatic_GCJ=yes
22730       hardcode_shlibpath_var_GCJ=unsupported
22731       whole_archive_flag_spec_GCJ='-all_load $convenience'
22732       link_all_deplibs_GCJ=yes
22733     else
22734       ld_shlibs_GCJ=no
22735     fi
22736       ;;
22737
22738     dgux*)
22739       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22740       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22741       hardcode_shlibpath_var_GCJ=no
22742       ;;
22743
22744     freebsd1*)
22745       ld_shlibs_GCJ=no
22746       ;;
22747
22748     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22749     # support.  Future versions do this automatically, but an explicit c++rt0.o
22750     # does not break anything, and helps significantly (at the cost of a little
22751     # extra space).
22752     freebsd2.2*)
22753       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22754       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22755       hardcode_direct_GCJ=yes
22756       hardcode_shlibpath_var_GCJ=no
22757       ;;
22758
22759     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22760     freebsd2*)
22761       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22762       hardcode_direct_GCJ=yes
22763       hardcode_minus_L_GCJ=yes
22764       hardcode_shlibpath_var_GCJ=no
22765       ;;
22766
22767     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22768     freebsd* | kfreebsd*-gnu)
22769       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22770       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22771       hardcode_direct_GCJ=yes
22772       hardcode_shlibpath_var_GCJ=no
22773       ;;
22774
22775     hpux9*)
22776       if test "$GCC" = yes; then
22777         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'
22778       else
22779         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'
22780       fi
22781       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22782       hardcode_libdir_separator_GCJ=:
22783       hardcode_direct_GCJ=yes
22784
22785       # hardcode_minus_L: Not really in the search PATH,
22786       # but as the default location of the library.
22787       hardcode_minus_L_GCJ=yes
22788       export_dynamic_flag_spec_GCJ='${wl}-E'
22789       ;;
22790
22791     hpux10* | hpux11*)
22792       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22793         case "$host_cpu" in
22794         hppa*64*|ia64*)
22795           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22796           ;;
22797         *)
22798           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22799           ;;
22800         esac
22801       else
22802         case "$host_cpu" in
22803         hppa*64*|ia64*)
22804           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22805           ;;
22806         *)
22807           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22808           ;;
22809         esac
22810       fi
22811       if test "$with_gnu_ld" = no; then
22812         case "$host_cpu" in
22813         hppa*64*)
22814           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22815           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22816           hardcode_libdir_separator_GCJ=:
22817           hardcode_direct_GCJ=no
22818           hardcode_shlibpath_var_GCJ=no
22819           ;;
22820         ia64*)
22821           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22822           hardcode_direct_GCJ=no
22823           hardcode_shlibpath_var_GCJ=no
22824
22825           # hardcode_minus_L: Not really in the search PATH,
22826           # but as the default location of the library.
22827           hardcode_minus_L_GCJ=yes
22828           ;;
22829         *)
22830           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22831           hardcode_libdir_separator_GCJ=:
22832           hardcode_direct_GCJ=yes
22833           export_dynamic_flag_spec_GCJ='${wl}-E'
22834
22835           # hardcode_minus_L: Not really in the search PATH,
22836           # but as the default location of the library.
22837           hardcode_minus_L_GCJ=yes
22838           ;;
22839         esac
22840       fi
22841       ;;
22842
22843     irix5* | irix6* | nonstopux*)
22844       if test "$GCC" = yes; then
22845         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'
22846       else
22847         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'
22848         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22849       fi
22850       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22851       hardcode_libdir_separator_GCJ=:
22852       link_all_deplibs_GCJ=yes
22853       ;;
22854
22855     netbsd*)
22856       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22857         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22858       else
22859         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22860       fi
22861       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22862       hardcode_direct_GCJ=yes
22863       hardcode_shlibpath_var_GCJ=no
22864       ;;
22865
22866     newsos6)
22867       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22868       hardcode_direct_GCJ=yes
22869       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22870       hardcode_libdir_separator_GCJ=:
22871       hardcode_shlibpath_var_GCJ=no
22872       ;;
22873
22874     openbsd*)
22875       hardcode_direct_GCJ=yes
22876       hardcode_shlibpath_var_GCJ=no
22877       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22878         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22879         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22880         export_dynamic_flag_spec_GCJ='${wl}-E'
22881       else
22882        case $host_os in
22883          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22884            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22885            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22886            ;;
22887          *)
22888            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22889            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22890            ;;
22891        esac
22892       fi
22893       ;;
22894
22895     os2*)
22896       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22897       hardcode_minus_L_GCJ=yes
22898       allow_undefined_flag_GCJ=unsupported
22899       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'
22900       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22901       ;;
22902
22903     osf3*)
22904       if test "$GCC" = yes; then
22905         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22906         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'
22907       else
22908         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22909         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'
22910       fi
22911       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22912       hardcode_libdir_separator_GCJ=:
22913       ;;
22914
22915     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22916       if test "$GCC" = yes; then
22917         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22918         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'
22919         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22920       else
22921         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22922         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'
22923         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~
22924         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
22925
22926         # Both c and cxx compiler support -rpath directly
22927         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22928       fi
22929       hardcode_libdir_separator_GCJ=:
22930       ;;
22931
22932     sco3.2v5*)
22933       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22934       hardcode_shlibpath_var_GCJ=no
22935       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22936       runpath_var=LD_RUN_PATH
22937       hardcode_runpath_var=yes
22938       ;;
22939
22940     solaris*)
22941       no_undefined_flag_GCJ=' -z text'
22942       if test "$GCC" = yes; then
22943         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22944         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22945           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22946       else
22947         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22948         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22949         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22950       fi
22951       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22952       hardcode_shlibpath_var_GCJ=no
22953       case $host_os in
22954       solaris2.[0-5] | solaris2.[0-5].*) ;;
22955       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22956         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22957       esac
22958       link_all_deplibs_GCJ=yes
22959       ;;
22960
22961     sunos4*)
22962       if test "x$host_vendor" = xsequent; then
22963         # Use $CC to link under sequent, because it throws in some extra .o
22964         # files that make .init and .fini sections work.
22965         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22966       else
22967         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22968       fi
22969       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22970       hardcode_direct_GCJ=yes
22971       hardcode_minus_L_GCJ=yes
22972       hardcode_shlibpath_var_GCJ=no
22973       ;;
22974
22975     sysv4)
22976       case $host_vendor in
22977         sni)
22978           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22979           hardcode_direct_GCJ=yes # is this really true???
22980         ;;
22981         siemens)
22982           ## LD is ld it makes a PLAMLIB
22983           ## CC just makes a GrossModule.
22984           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22985           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22986           hardcode_direct_GCJ=no
22987         ;;
22988         motorola)
22989           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22990           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22991         ;;
22992       esac
22993       runpath_var='LD_RUN_PATH'
22994       hardcode_shlibpath_var_GCJ=no
22995       ;;
22996
22997     sysv4.3*)
22998       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22999       hardcode_shlibpath_var_GCJ=no
23000       export_dynamic_flag_spec_GCJ='-Bexport'
23001       ;;
23002
23003     sysv4*MP*)
23004       if test -d /usr/nec; then
23005         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23006         hardcode_shlibpath_var_GCJ=no
23007         runpath_var=LD_RUN_PATH
23008         hardcode_runpath_var=yes
23009         ld_shlibs_GCJ=yes
23010       fi
23011       ;;
23012
23013     sysv4.2uw2*)
23014       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23015       hardcode_direct_GCJ=yes
23016       hardcode_minus_L_GCJ=no
23017       hardcode_shlibpath_var_GCJ=no
23018       hardcode_runpath_var=yes
23019       runpath_var=LD_RUN_PATH
23020       ;;
23021
23022    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
23023       no_undefined_flag_GCJ='${wl}-z ${wl}text'
23024       if test "$GCC" = yes; then
23025         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23026       else
23027         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23028       fi
23029       runpath_var='LD_RUN_PATH'
23030       hardcode_shlibpath_var_GCJ=no
23031       ;;
23032
23033     sysv5*)
23034       no_undefined_flag_GCJ=' -z text'
23035       # $CC -shared without GNU ld will not create a library from C++
23036       # object files and a static libstdc++, better avoid it by now
23037       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23038       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23039                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23040       hardcode_libdir_flag_spec_GCJ=
23041       hardcode_shlibpath_var_GCJ=no
23042       runpath_var='LD_RUN_PATH'
23043       ;;
23044
23045     uts4*)
23046       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23047       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23048       hardcode_shlibpath_var_GCJ=no
23049       ;;
23050
23051     *)
23052       ld_shlibs_GCJ=no
23053       ;;
23054     esac
23055   fi
23056
23057 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23058 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23059 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23060
23061 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23062 if test "$GCC" = yes; then
23063   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23064 fi
23065
23066 #
23067 # Do we need to explicitly link libc?
23068 #
23069 case "x$archive_cmds_need_lc_GCJ" in
23070 x|xyes)
23071   # Assume -lc should be added
23072   archive_cmds_need_lc_GCJ=yes
23073
23074   if test "$enable_shared" = yes && test "$GCC" = yes; then
23075     case $archive_cmds_GCJ in
23076     *'~'*)
23077       # FIXME: we may have to deal with multi-command sequences.
23078       ;;
23079     '$CC '*)
23080       # Test whether the compiler implicitly links with -lc since on some
23081       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23082       # to ld, don't add -lc before -lgcc.
23083       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23084 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23085       $rm conftest*
23086       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23087
23088       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23089   (eval $ac_compile) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); } 2>conftest.err; then
23093         soname=conftest
23094         lib=conftest
23095         libobjs=conftest.$ac_objext
23096         deplibs=
23097         wl=$lt_prog_compiler_wl_GCJ
23098         compiler_flags=-v
23099         linker_flags=-v
23100         verstring=
23101         output_objdir=.
23102         libname=conftest
23103         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23104         allow_undefined_flag_GCJ=
23105         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23106   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23107   ac_status=$?
23108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109   (exit $ac_status); }
23110         then
23111           archive_cmds_need_lc_GCJ=no
23112         else
23113           archive_cmds_need_lc_GCJ=yes
23114         fi
23115         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23116       else
23117         cat conftest.err 1>&5
23118       fi
23119       $rm conftest*
23120       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23121 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23122       ;;
23123     esac
23124   fi
23125   ;;
23126 esac
23127
23128 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23129 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23130 library_names_spec=
23131 libname_spec='lib$name'
23132 soname_spec=
23133 shrext_cmds=".so"
23134 postinstall_cmds=
23135 postuninstall_cmds=
23136 finish_cmds=
23137 finish_eval=
23138 shlibpath_var=
23139 shlibpath_overrides_runpath=unknown
23140 version_type=none
23141 dynamic_linker="$host_os ld.so"
23142 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23143 if test "$GCC" = yes; then
23144   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23145   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23146     # if the path contains ";" then we assume it to be the separator
23147     # otherwise default to the standard path separator (i.e. ":") - it is
23148     # assumed that no part of a normal pathname contains ";" but that should
23149     # okay in the real world where ";" in dirpaths is itself problematic.
23150     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23151   else
23152     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23153   fi
23154 else
23155   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23156 fi
23157 need_lib_prefix=unknown
23158 hardcode_into_libs=no
23159
23160 # when you set need_version to no, make sure it does not cause -set_version
23161 # flags to be left without arguments
23162 need_version=unknown
23163
23164 case $host_os in
23165 aix3*)
23166   version_type=linux
23167   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23168   shlibpath_var=LIBPATH
23169
23170   # AIX 3 has no versioning support, so we append a major version to the name.
23171   soname_spec='${libname}${release}${shared_ext}$major'
23172   ;;
23173
23174 aix4* | aix5*)
23175   version_type=linux
23176   need_lib_prefix=no
23177   need_version=no
23178   hardcode_into_libs=yes
23179   if test "$host_cpu" = ia64; then
23180     # AIX 5 supports IA64
23181     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23182     shlibpath_var=LD_LIBRARY_PATH
23183   else
23184     # With GCC up to 2.95.x, collect2 would create an import file
23185     # for dependence libraries.  The import file would start with
23186     # the line `#! .'.  This would cause the generated library to
23187     # depend on `.', always an invalid library.  This was fixed in
23188     # development snapshots of GCC prior to 3.0.
23189     case $host_os in
23190       aix4 | aix4.[01] | aix4.[01].*)
23191       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23192            echo ' yes '
23193            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23194         :
23195       else
23196         can_build_shared=no
23197       fi
23198       ;;
23199     esac
23200     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23201     # soname into executable. Probably we can add versioning support to
23202     # collect2, so additional links can be useful in future.
23203     if test "$aix_use_runtimelinking" = yes; then
23204       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23205       # instead of lib<name>.a to let people know that these are not
23206       # typical AIX shared libraries.
23207       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23208     else
23209       # We preserve .a as extension for shared libraries through AIX4.2
23210       # and later when we are not doing run time linking.
23211       library_names_spec='${libname}${release}.a $libname.a'
23212       soname_spec='${libname}${release}${shared_ext}$major'
23213     fi
23214     shlibpath_var=LIBPATH
23215   fi
23216   ;;
23217
23218 amigaos*)
23219   library_names_spec='$libname.ixlibrary $libname.a'
23220   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23221   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'
23222   ;;
23223
23224 beos*)
23225   library_names_spec='${libname}${shared_ext}'
23226   dynamic_linker="$host_os ld.so"
23227   shlibpath_var=LIBRARY_PATH
23228   ;;
23229
23230 bsdi4*)
23231   version_type=linux
23232   need_version=no
23233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23234   soname_spec='${libname}${release}${shared_ext}$major'
23235   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23236   shlibpath_var=LD_LIBRARY_PATH
23237   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23238   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23239   # the default ld.so.conf also contains /usr/contrib/lib and
23240   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23241   # libtool to hard-code these into programs
23242   ;;
23243
23244 cygwin* | mingw* | pw32*)
23245   version_type=windows
23246   shrext_cmds=".dll"
23247   need_version=no
23248   need_lib_prefix=no
23249
23250   case $GCC,$host_os in
23251   yes,cygwin* | yes,mingw* | yes,pw32*)
23252     library_names_spec='$libname.dll.a'
23253     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23254     postinstall_cmds='base_file=`basename \${file}`~
23255       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23256       dldir=$destdir/`dirname \$dlpath`~
23257       test -d \$dldir || mkdir -p \$dldir~
23258       $install_prog $dir/$dlname \$dldir/$dlname'
23259     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23260       dlpath=$dir/\$dldll~
23261        $rm \$dlpath'
23262     shlibpath_overrides_runpath=yes
23263
23264     case $host_os in
23265     cygwin*)
23266       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23267       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23268       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23269       ;;
23270     mingw*)
23271       # MinGW DLLs use traditional 'lib' prefix
23272       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23273       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23274       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23275         # It is most probably a Windows format PATH printed by
23276         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23277         # path with ; separators, and with drive letters. We can handle the
23278         # drive letters (cygwin fileutils understands them), so leave them,
23279         # especially as we might pass files found there to a mingw objdump,
23280         # which wouldn't understand a cygwinified path. Ahh.
23281         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23282       else
23283         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23284       fi
23285       ;;
23286     pw32*)
23287       # pw32 DLLs use 'pw' prefix rather than 'lib'
23288       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
23289       ;;
23290     esac
23291     ;;
23292
23293   *)
23294     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23295     ;;
23296   esac
23297   dynamic_linker='Win32 ld.exe'
23298   # FIXME: first we should search . and the directory the executable is in
23299   shlibpath_var=PATH
23300   ;;
23301
23302 darwin* | rhapsody*)
23303   dynamic_linker="$host_os dyld"
23304   version_type=darwin
23305   need_lib_prefix=no
23306   need_version=no
23307   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23308   soname_spec='${libname}${release}${major}$shared_ext'
23309   shlibpath_overrides_runpath=yes
23310   shlibpath_var=DYLD_LIBRARY_PATH
23311   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
23312   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23313   if test "$GCC" = yes; then
23314     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"`
23315   else
23316     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23317   fi
23318   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23319   ;;
23320
23321 dgux*)
23322   version_type=linux
23323   need_lib_prefix=no
23324   need_version=no
23325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23326   soname_spec='${libname}${release}${shared_ext}$major'
23327   shlibpath_var=LD_LIBRARY_PATH
23328   ;;
23329
23330 freebsd1*)
23331   dynamic_linker=no
23332   ;;
23333
23334 kfreebsd*-gnu)
23335   version_type=linux
23336   need_lib_prefix=no
23337   need_version=no
23338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23339   soname_spec='${libname}${release}${shared_ext}$major'
23340   shlibpath_var=LD_LIBRARY_PATH
23341   shlibpath_overrides_runpath=no
23342   hardcode_into_libs=yes
23343   dynamic_linker='GNU ld.so'
23344   ;;
23345
23346 freebsd*)
23347   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23348   version_type=freebsd-$objformat
23349   case $version_type in
23350     freebsd-elf*)
23351       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23352       need_version=no
23353       need_lib_prefix=no
23354       ;;
23355     freebsd-*)
23356       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23357       need_version=yes
23358       ;;
23359   esac
23360   shlibpath_var=LD_LIBRARY_PATH
23361   case $host_os in
23362   freebsd2*)
23363     shlibpath_overrides_runpath=yes
23364     ;;
23365   freebsd3.01* | freebsdelf3.01*)
23366     shlibpath_overrides_runpath=yes
23367     hardcode_into_libs=yes
23368     ;;
23369   *) # from 3.2 on
23370     shlibpath_overrides_runpath=no
23371     hardcode_into_libs=yes
23372     ;;
23373   esac
23374   ;;
23375
23376 gnu*)
23377   version_type=linux
23378   need_lib_prefix=no
23379   need_version=no
23380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23381   soname_spec='${libname}${release}${shared_ext}$major'
23382   shlibpath_var=LD_LIBRARY_PATH
23383   hardcode_into_libs=yes
23384   ;;
23385
23386 hpux9* | hpux10* | hpux11*)
23387   # Give a soname corresponding to the major version so that dld.sl refuses to
23388   # link against other versions.
23389   version_type=sunos
23390   need_lib_prefix=no
23391   need_version=no
23392   case "$host_cpu" in
23393   ia64*)
23394     shrext_cmds='.so'
23395     hardcode_into_libs=yes
23396     dynamic_linker="$host_os dld.so"
23397     shlibpath_var=LD_LIBRARY_PATH
23398     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23399     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23400     soname_spec='${libname}${release}${shared_ext}$major'
23401     if test "X$HPUX_IA64_MODE" = X32; then
23402       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23403     else
23404       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23405     fi
23406     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23407     ;;
23408    hppa*64*)
23409      shrext_cmds='.sl'
23410      hardcode_into_libs=yes
23411      dynamic_linker="$host_os dld.sl"
23412      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23413      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23414      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23415      soname_spec='${libname}${release}${shared_ext}$major'
23416      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23417      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23418      ;;
23419    *)
23420     shrext_cmds='.sl'
23421     dynamic_linker="$host_os dld.sl"
23422     shlibpath_var=SHLIB_PATH
23423     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23424     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23425     soname_spec='${libname}${release}${shared_ext}$major'
23426     ;;
23427   esac
23428   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23429   postinstall_cmds='chmod 555 $lib'
23430   ;;
23431
23432 irix5* | irix6* | nonstopux*)
23433   case $host_os in
23434     nonstopux*) version_type=nonstopux ;;
23435     *)
23436         if test "$lt_cv_prog_gnu_ld" = yes; then
23437                 version_type=linux
23438         else
23439                 version_type=irix
23440         fi ;;
23441   esac
23442   need_lib_prefix=no
23443   need_version=no
23444   soname_spec='${libname}${release}${shared_ext}$major'
23445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23446   case $host_os in
23447   irix5* | nonstopux*)
23448     libsuff= shlibsuff=
23449     ;;
23450   *)
23451     case $LD in # libtool.m4 will add one of these switches to LD
23452     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23453       libsuff= shlibsuff= libmagic=32-bit;;
23454     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23455       libsuff=32 shlibsuff=N32 libmagic=N32;;
23456     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23457       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23458     *) libsuff= shlibsuff= libmagic=never-match;;
23459     esac
23460     ;;
23461   esac
23462   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23463   shlibpath_overrides_runpath=no
23464   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23465   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23466   hardcode_into_libs=yes
23467   ;;
23468
23469 # No shared lib support for Linux oldld, aout, or coff.
23470 linux*oldld* | linux*aout* | linux*coff*)
23471   dynamic_linker=no
23472   ;;
23473
23474 # This must be Linux ELF.
23475 linux*)
23476   version_type=linux
23477   need_lib_prefix=no
23478   need_version=no
23479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23480   soname_spec='${libname}${release}${shared_ext}$major'
23481   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23482   shlibpath_var=LD_LIBRARY_PATH
23483   shlibpath_overrides_runpath=no
23484   # This implies no fast_install, which is unacceptable.
23485   # Some rework will be needed to allow for fast_install
23486   # before this can be enabled.
23487   hardcode_into_libs=yes
23488
23489   # find out which ABI we are using
23490   libsuff=
23491   case "$host_cpu" in
23492   x86_64*|s390x*|powerpc64*)
23493     echo '#line 23493 "configure"' > conftest.$ac_ext
23494     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23495   (eval $ac_compile) 2>&5
23496   ac_status=$?
23497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); }; then
23499       case `/usr/bin/file conftest.$ac_objext` in
23500       *64-bit*)
23501         libsuff=64
23502         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
23503         ;;
23504       esac
23505     fi
23506     rm -rf conftest*
23507     ;;
23508   esac
23509
23510   # Append ld.so.conf contents to the search path
23511   if test -f /etc/ld.so.conf; then
23512     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23513     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
23514   fi
23515
23516   # We used to test for /lib/ld.so.1 and disable shared libraries on
23517   # powerpc, because MkLinux only supported shared libraries with the
23518   # GNU dynamic linker.  Since this was broken with cross compilers,
23519   # most powerpc-linux boxes support dynamic linking these days and
23520   # people can always --disable-shared, the test was removed, and we
23521   # assume the GNU/Linux dynamic linker is in use.
23522   dynamic_linker='GNU/Linux ld.so'
23523   ;;
23524
23525 knetbsd*-gnu)
23526   version_type=linux
23527   need_lib_prefix=no
23528   need_version=no
23529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23530   soname_spec='${libname}${release}${shared_ext}$major'
23531   shlibpath_var=LD_LIBRARY_PATH
23532   shlibpath_overrides_runpath=no
23533   hardcode_into_libs=yes
23534   dynamic_linker='GNU ld.so'
23535   ;;
23536
23537 netbsd*)
23538   version_type=sunos
23539   need_lib_prefix=no
23540   need_version=no
23541   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23543     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23544     dynamic_linker='NetBSD (a.out) ld.so'
23545   else
23546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23547     soname_spec='${libname}${release}${shared_ext}$major'
23548     dynamic_linker='NetBSD ld.elf_so'
23549   fi
23550   shlibpath_var=LD_LIBRARY_PATH
23551   shlibpath_overrides_runpath=yes
23552   hardcode_into_libs=yes
23553   ;;
23554
23555 newsos6)
23556   version_type=linux
23557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23558   shlibpath_var=LD_LIBRARY_PATH
23559   shlibpath_overrides_runpath=yes
23560   ;;
23561
23562 nto-qnx*)
23563   version_type=linux
23564   need_lib_prefix=no
23565   need_version=no
23566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23567   soname_spec='${libname}${release}${shared_ext}$major'
23568   shlibpath_var=LD_LIBRARY_PATH
23569   shlibpath_overrides_runpath=yes
23570   ;;
23571
23572 openbsd*)
23573   version_type=sunos
23574   need_lib_prefix=no
23575   need_version=yes
23576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23578   shlibpath_var=LD_LIBRARY_PATH
23579   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23580     case $host_os in
23581       openbsd2.[89] | openbsd2.[89].*)
23582         shlibpath_overrides_runpath=no
23583         ;;
23584       *)
23585         shlibpath_overrides_runpath=yes
23586         ;;
23587       esac
23588   else
23589     shlibpath_overrides_runpath=yes
23590   fi
23591   ;;
23592
23593 os2*)
23594   libname_spec='$name'
23595   shrext_cmds=".dll"
23596   need_lib_prefix=no
23597   library_names_spec='$libname${shared_ext} $libname.a'
23598   dynamic_linker='OS/2 ld.exe'
23599   shlibpath_var=LIBPATH
23600   ;;
23601
23602 osf3* | osf4* | osf5*)
23603   version_type=osf
23604   need_lib_prefix=no
23605   need_version=no
23606   soname_spec='${libname}${release}${shared_ext}$major'
23607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23608   shlibpath_var=LD_LIBRARY_PATH
23609   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23610   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23611   ;;
23612
23613 sco3.2v5*)
23614   version_type=osf
23615   soname_spec='${libname}${release}${shared_ext}$major'
23616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23617   shlibpath_var=LD_LIBRARY_PATH
23618   ;;
23619
23620 solaris*)
23621   version_type=linux
23622   need_lib_prefix=no
23623   need_version=no
23624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23625   soname_spec='${libname}${release}${shared_ext}$major'
23626   shlibpath_var=LD_LIBRARY_PATH
23627   shlibpath_overrides_runpath=yes
23628   hardcode_into_libs=yes
23629   # ldd complains unless libraries are executable
23630   postinstall_cmds='chmod +x $lib'
23631   ;;
23632
23633 sunos4*)
23634   version_type=sunos
23635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23636   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23637   shlibpath_var=LD_LIBRARY_PATH
23638   shlibpath_overrides_runpath=yes
23639   if test "$with_gnu_ld" = yes; then
23640     need_lib_prefix=no
23641   fi
23642   need_version=yes
23643   ;;
23644
23645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23646   version_type=linux
23647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23648   soname_spec='${libname}${release}${shared_ext}$major'
23649   shlibpath_var=LD_LIBRARY_PATH
23650   case $host_vendor in
23651     sni)
23652       shlibpath_overrides_runpath=no
23653       need_lib_prefix=no
23654       export_dynamic_flag_spec='${wl}-Blargedynsym'
23655       runpath_var=LD_RUN_PATH
23656       ;;
23657     siemens)
23658       need_lib_prefix=no
23659       ;;
23660     motorola)
23661       need_lib_prefix=no
23662       need_version=no
23663       shlibpath_overrides_runpath=no
23664       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23665       ;;
23666   esac
23667   ;;
23668
23669 sysv4*MP*)
23670   if test -d /usr/nec ;then
23671     version_type=linux
23672     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23673     soname_spec='$libname${shared_ext}.$major'
23674     shlibpath_var=LD_LIBRARY_PATH
23675   fi
23676   ;;
23677
23678 uts4*)
23679   version_type=linux
23680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23681   soname_spec='${libname}${release}${shared_ext}$major'
23682   shlibpath_var=LD_LIBRARY_PATH
23683   ;;
23684
23685 *)
23686   dynamic_linker=no
23687   ;;
23688 esac
23689 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23690 echo "${ECHO_T}$dynamic_linker" >&6
23691 test "$dynamic_linker" = no && can_build_shared=no
23692
23693 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23694 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23695 hardcode_action_GCJ=
23696 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23697    test -n "$runpath_var GCJ" || \
23698    test "X$hardcode_automatic_GCJ"="Xyes" ; then
23699
23700   # We can hardcode non-existant directories.
23701   if test "$hardcode_direct_GCJ" != no &&
23702      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23703      # have to relink, otherwise we might link with an installed library
23704      # when we should be linking with a yet-to-be-installed one
23705      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23706      test "$hardcode_minus_L_GCJ" != no; then
23707     # Linking always hardcodes the temporary library directory.
23708     hardcode_action_GCJ=relink
23709   else
23710     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23711     hardcode_action_GCJ=immediate
23712   fi
23713 else
23714   # We cannot hardcode anything, or else we can only hardcode existing
23715   # directories.
23716   hardcode_action_GCJ=unsupported
23717 fi
23718 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23719 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23720
23721 if test "$hardcode_action_GCJ" = relink; then
23722   # Fast installation is not supported
23723   enable_fast_install=no
23724 elif test "$shlibpath_overrides_runpath" = yes ||
23725      test "$enable_shared" = no; then
23726   # Fast installation is not necessary
23727   enable_fast_install=needless
23728 fi
23729
23730 striplib=
23731 old_striplib=
23732 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23733 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23734 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23735   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23736   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23737   echo "$as_me:$LINENO: result: yes" >&5
23738 echo "${ECHO_T}yes" >&6
23739 else
23740 # FIXME - insert some real tests, host_os isn't really good enough
23741   case $host_os in
23742    darwin*)
23743        if test -n "$STRIP" ; then
23744          striplib="$STRIP -x"
23745          echo "$as_me:$LINENO: result: yes" >&5
23746 echo "${ECHO_T}yes" >&6
23747        else
23748   echo "$as_me:$LINENO: result: no" >&5
23749 echo "${ECHO_T}no" >&6
23750 fi
23751        ;;
23752    *)
23753   echo "$as_me:$LINENO: result: no" >&5
23754 echo "${ECHO_T}no" >&6
23755     ;;
23756   esac
23757 fi
23758
23759 if test "x$enable_dlopen" != xyes; then
23760   enable_dlopen=unknown
23761   enable_dlopen_self=unknown
23762   enable_dlopen_self_static=unknown
23763 else
23764   lt_cv_dlopen=no
23765   lt_cv_dlopen_libs=
23766
23767   case $host_os in
23768   beos*)
23769     lt_cv_dlopen="load_add_on"
23770     lt_cv_dlopen_libs=
23771     lt_cv_dlopen_self=yes
23772     ;;
23773
23774   mingw* | pw32*)
23775     lt_cv_dlopen="LoadLibrary"
23776     lt_cv_dlopen_libs=
23777    ;;
23778
23779   cygwin*)
23780     lt_cv_dlopen="dlopen"
23781     lt_cv_dlopen_libs=
23782    ;;
23783
23784   darwin*)
23785   # if libdl is installed we need to link against it
23786     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23787 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23788 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23789   echo $ECHO_N "(cached) $ECHO_C" >&6
23790 else
23791   ac_check_lib_save_LIBS=$LIBS
23792 LIBS="-ldl  $LIBS"
23793 cat >conftest.$ac_ext <<_ACEOF
23794 /* confdefs.h.  */
23795 _ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h.  */
23799
23800 /* Override any gcc2 internal prototype to avoid an error.  */
23801 #ifdef __cplusplus
23802 extern "C"
23803 #endif
23804 /* We use char because int might match the return type of a gcc2
23805    builtin and then its argument prototype would still apply.  */
23806 char dlopen ();
23807 int
23808 main ()
23809 {
23810 dlopen ();
23811   ;
23812   return 0;
23813 }
23814 _ACEOF
23815 rm -f conftest.$ac_objext conftest$ac_exeext
23816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23817   (eval $ac_link) 2>conftest.er1
23818   ac_status=$?
23819   grep -v '^ *+' conftest.er1 >conftest.err
23820   rm -f conftest.er1
23821   cat conftest.err >&5
23822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823   (exit $ac_status); } &&
23824          { ac_try='test -z "$ac_c_werror_flag"
23825                          || test ! -s conftest.err'
23826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23827   (eval $ac_try) 2>&5
23828   ac_status=$?
23829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); }; } &&
23831          { ac_try='test -s conftest$ac_exeext'
23832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833   (eval $ac_try) 2>&5
23834   ac_status=$?
23835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836   (exit $ac_status); }; }; then
23837   ac_cv_lib_dl_dlopen=yes
23838 else
23839   echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23841
23842 ac_cv_lib_dl_dlopen=no
23843 fi
23844 rm -f conftest.err conftest.$ac_objext \
23845       conftest$ac_exeext conftest.$ac_ext
23846 LIBS=$ac_check_lib_save_LIBS
23847 fi
23848 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23849 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23850 if test $ac_cv_lib_dl_dlopen = yes; then
23851   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23852 else
23853
23854     lt_cv_dlopen="dyld"
23855     lt_cv_dlopen_libs=
23856     lt_cv_dlopen_self=yes
23857
23858 fi
23859
23860    ;;
23861
23862   *)
23863     echo "$as_me:$LINENO: checking for shl_load" >&5
23864 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23865 if test "${ac_cv_func_shl_load+set}" = set; then
23866   echo $ECHO_N "(cached) $ECHO_C" >&6
23867 else
23868   cat >conftest.$ac_ext <<_ACEOF
23869 /* confdefs.h.  */
23870 _ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h.  */
23874 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23876 #define shl_load innocuous_shl_load
23877
23878 /* System header to define __stub macros and hopefully few prototypes,
23879     which can conflict with char shl_load (); below.
23880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23881     <limits.h> exists even on freestanding compilers.  */
23882
23883 #ifdef __STDC__
23884 # include <limits.h>
23885 #else
23886 # include <assert.h>
23887 #endif
23888
23889 #undef shl_load
23890
23891 /* Override any gcc2 internal prototype to avoid an error.  */
23892 #ifdef __cplusplus
23893 extern "C"
23894 {
23895 #endif
23896 /* We use char because int might match the return type of a gcc2
23897    builtin and then its argument prototype would still apply.  */
23898 char shl_load ();
23899 /* The GNU C library defines this for functions which it implements
23900     to always fail with ENOSYS.  Some functions are actually named
23901     something starting with __ and the normal name is an alias.  */
23902 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23903 choke me
23904 #else
23905 char (*f) () = shl_load;
23906 #endif
23907 #ifdef __cplusplus
23908 }
23909 #endif
23910
23911 int
23912 main ()
23913 {
23914 return f != shl_load;
23915   ;
23916   return 0;
23917 }
23918 _ACEOF
23919 rm -f conftest.$ac_objext conftest$ac_exeext
23920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23921   (eval $ac_link) 2>conftest.er1
23922   ac_status=$?
23923   grep -v '^ *+' conftest.er1 >conftest.err
23924   rm -f conftest.er1
23925   cat conftest.err >&5
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); } &&
23928          { ac_try='test -z "$ac_c_werror_flag"
23929                          || test ! -s conftest.err'
23930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23931   (eval $ac_try) 2>&5
23932   ac_status=$?
23933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934   (exit $ac_status); }; } &&
23935          { ac_try='test -s conftest$ac_exeext'
23936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23937   (eval $ac_try) 2>&5
23938   ac_status=$?
23939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940   (exit $ac_status); }; }; then
23941   ac_cv_func_shl_load=yes
23942 else
23943   echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23945
23946 ac_cv_func_shl_load=no
23947 fi
23948 rm -f conftest.err conftest.$ac_objext \
23949       conftest$ac_exeext conftest.$ac_ext
23950 fi
23951 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23952 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23953 if test $ac_cv_func_shl_load = yes; then
23954   lt_cv_dlopen="shl_load"
23955 else
23956   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23957 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23958 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23959   echo $ECHO_N "(cached) $ECHO_C" >&6
23960 else
23961   ac_check_lib_save_LIBS=$LIBS
23962 LIBS="-ldld  $LIBS"
23963 cat >conftest.$ac_ext <<_ACEOF
23964 /* confdefs.h.  */
23965 _ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h.  */
23969
23970 /* Override any gcc2 internal prototype to avoid an error.  */
23971 #ifdef __cplusplus
23972 extern "C"
23973 #endif
23974 /* We use char because int might match the return type of a gcc2
23975    builtin and then its argument prototype would still apply.  */
23976 char shl_load ();
23977 int
23978 main ()
23979 {
23980 shl_load ();
23981   ;
23982   return 0;
23983 }
23984 _ACEOF
23985 rm -f conftest.$ac_objext conftest$ac_exeext
23986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987   (eval $ac_link) 2>conftest.er1
23988   ac_status=$?
23989   grep -v '^ *+' conftest.er1 >conftest.err
23990   rm -f conftest.er1
23991   cat conftest.err >&5
23992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993   (exit $ac_status); } &&
23994          { ac_try='test -z "$ac_c_werror_flag"
23995                          || test ! -s conftest.err'
23996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997   (eval $ac_try) 2>&5
23998   ac_status=$?
23999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000   (exit $ac_status); }; } &&
24001          { ac_try='test -s conftest$ac_exeext'
24002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24003   (eval $ac_try) 2>&5
24004   ac_status=$?
24005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006   (exit $ac_status); }; }; then
24007   ac_cv_lib_dld_shl_load=yes
24008 else
24009   echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24011
24012 ac_cv_lib_dld_shl_load=no
24013 fi
24014 rm -f conftest.err conftest.$ac_objext \
24015       conftest$ac_exeext conftest.$ac_ext
24016 LIBS=$ac_check_lib_save_LIBS
24017 fi
24018 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24019 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24020 if test $ac_cv_lib_dld_shl_load = yes; then
24021   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24022 else
24023   echo "$as_me:$LINENO: checking for dlopen" >&5
24024 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24025 if test "${ac_cv_func_dlopen+set}" = set; then
24026   echo $ECHO_N "(cached) $ECHO_C" >&6
24027 else
24028   cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h.  */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h.  */
24034 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24036 #define dlopen innocuous_dlopen
24037
24038 /* System header to define __stub macros and hopefully few prototypes,
24039     which can conflict with char dlopen (); below.
24040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24041     <limits.h> exists even on freestanding compilers.  */
24042
24043 #ifdef __STDC__
24044 # include <limits.h>
24045 #else
24046 # include <assert.h>
24047 #endif
24048
24049 #undef dlopen
24050
24051 /* Override any gcc2 internal prototype to avoid an error.  */
24052 #ifdef __cplusplus
24053 extern "C"
24054 {
24055 #endif
24056 /* We use char because int might match the return type of a gcc2
24057    builtin and then its argument prototype would still apply.  */
24058 char dlopen ();
24059 /* The GNU C library defines this for functions which it implements
24060     to always fail with ENOSYS.  Some functions are actually named
24061     something starting with __ and the normal name is an alias.  */
24062 #if defined (__stub_dlopen) || defined (__stub___dlopen)
24063 choke me
24064 #else
24065 char (*f) () = dlopen;
24066 #endif
24067 #ifdef __cplusplus
24068 }
24069 #endif
24070
24071 int
24072 main ()
24073 {
24074 return f != dlopen;
24075   ;
24076   return 0;
24077 }
24078 _ACEOF
24079 rm -f conftest.$ac_objext conftest$ac_exeext
24080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24081   (eval $ac_link) 2>conftest.er1
24082   ac_status=$?
24083   grep -v '^ *+' conftest.er1 >conftest.err
24084   rm -f conftest.er1
24085   cat conftest.err >&5
24086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087   (exit $ac_status); } &&
24088          { ac_try='test -z "$ac_c_werror_flag"
24089                          || test ! -s conftest.err'
24090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24091   (eval $ac_try) 2>&5
24092   ac_status=$?
24093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094   (exit $ac_status); }; } &&
24095          { ac_try='test -s conftest$ac_exeext'
24096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24097   (eval $ac_try) 2>&5
24098   ac_status=$?
24099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100   (exit $ac_status); }; }; then
24101   ac_cv_func_dlopen=yes
24102 else
24103   echo "$as_me: failed program was:" >&5
24104 sed 's/^/| /' conftest.$ac_ext >&5
24105
24106 ac_cv_func_dlopen=no
24107 fi
24108 rm -f conftest.err conftest.$ac_objext \
24109       conftest$ac_exeext conftest.$ac_ext
24110 fi
24111 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24112 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24113 if test $ac_cv_func_dlopen = yes; then
24114   lt_cv_dlopen="dlopen"
24115 else
24116   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24117 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24118 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24119   echo $ECHO_N "(cached) $ECHO_C" >&6
24120 else
24121   ac_check_lib_save_LIBS=$LIBS
24122 LIBS="-ldl  $LIBS"
24123 cat >conftest.$ac_ext <<_ACEOF
24124 /* confdefs.h.  */
24125 _ACEOF
24126 cat confdefs.h >>conftest.$ac_ext
24127 cat >>conftest.$ac_ext <<_ACEOF
24128 /* end confdefs.h.  */
24129
24130 /* Override any gcc2 internal prototype to avoid an error.  */
24131 #ifdef __cplusplus
24132 extern "C"
24133 #endif
24134 /* We use char because int might match the return type of a gcc2
24135    builtin and then its argument prototype would still apply.  */
24136 char dlopen ();
24137 int
24138 main ()
24139 {
24140 dlopen ();
24141   ;
24142   return 0;
24143 }
24144 _ACEOF
24145 rm -f conftest.$ac_objext conftest$ac_exeext
24146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24147   (eval $ac_link) 2>conftest.er1
24148   ac_status=$?
24149   grep -v '^ *+' conftest.er1 >conftest.err
24150   rm -f conftest.er1
24151   cat conftest.err >&5
24152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153   (exit $ac_status); } &&
24154          { ac_try='test -z "$ac_c_werror_flag"
24155                          || test ! -s conftest.err'
24156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24157   (eval $ac_try) 2>&5
24158   ac_status=$?
24159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160   (exit $ac_status); }; } &&
24161          { ac_try='test -s conftest$ac_exeext'
24162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24163   (eval $ac_try) 2>&5
24164   ac_status=$?
24165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166   (exit $ac_status); }; }; then
24167   ac_cv_lib_dl_dlopen=yes
24168 else
24169   echo "$as_me: failed program was:" >&5
24170 sed 's/^/| /' conftest.$ac_ext >&5
24171
24172 ac_cv_lib_dl_dlopen=no
24173 fi
24174 rm -f conftest.err conftest.$ac_objext \
24175       conftest$ac_exeext conftest.$ac_ext
24176 LIBS=$ac_check_lib_save_LIBS
24177 fi
24178 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24180 if test $ac_cv_lib_dl_dlopen = yes; then
24181   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24182 else
24183   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24184 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24185 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24186   echo $ECHO_N "(cached) $ECHO_C" >&6
24187 else
24188   ac_check_lib_save_LIBS=$LIBS
24189 LIBS="-lsvld  $LIBS"
24190 cat >conftest.$ac_ext <<_ACEOF
24191 /* confdefs.h.  */
24192 _ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h.  */
24196
24197 /* Override any gcc2 internal prototype to avoid an error.  */
24198 #ifdef __cplusplus
24199 extern "C"
24200 #endif
24201 /* We use char because int might match the return type of a gcc2
24202    builtin and then its argument prototype would still apply.  */
24203 char dlopen ();
24204 int
24205 main ()
24206 {
24207 dlopen ();
24208   ;
24209   return 0;
24210 }
24211 _ACEOF
24212 rm -f conftest.$ac_objext conftest$ac_exeext
24213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24214   (eval $ac_link) 2>conftest.er1
24215   ac_status=$?
24216   grep -v '^ *+' conftest.er1 >conftest.err
24217   rm -f conftest.er1
24218   cat conftest.err >&5
24219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220   (exit $ac_status); } &&
24221          { ac_try='test -z "$ac_c_werror_flag"
24222                          || test ! -s conftest.err'
24223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24224   (eval $ac_try) 2>&5
24225   ac_status=$?
24226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227   (exit $ac_status); }; } &&
24228          { ac_try='test -s conftest$ac_exeext'
24229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24230   (eval $ac_try) 2>&5
24231   ac_status=$?
24232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233   (exit $ac_status); }; }; then
24234   ac_cv_lib_svld_dlopen=yes
24235 else
24236   echo "$as_me: failed program was:" >&5
24237 sed 's/^/| /' conftest.$ac_ext >&5
24238
24239 ac_cv_lib_svld_dlopen=no
24240 fi
24241 rm -f conftest.err conftest.$ac_objext \
24242       conftest$ac_exeext conftest.$ac_ext
24243 LIBS=$ac_check_lib_save_LIBS
24244 fi
24245 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24246 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24247 if test $ac_cv_lib_svld_dlopen = yes; then
24248   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24249 else
24250   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24251 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24252 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24253   echo $ECHO_N "(cached) $ECHO_C" >&6
24254 else
24255   ac_check_lib_save_LIBS=$LIBS
24256 LIBS="-ldld  $LIBS"
24257 cat >conftest.$ac_ext <<_ACEOF
24258 /* confdefs.h.  */
24259 _ACEOF
24260 cat confdefs.h >>conftest.$ac_ext
24261 cat >>conftest.$ac_ext <<_ACEOF
24262 /* end confdefs.h.  */
24263
24264 /* Override any gcc2 internal prototype to avoid an error.  */
24265 #ifdef __cplusplus
24266 extern "C"
24267 #endif
24268 /* We use char because int might match the return type of a gcc2
24269    builtin and then its argument prototype would still apply.  */
24270 char dld_link ();
24271 int
24272 main ()
24273 {
24274 dld_link ();
24275   ;
24276   return 0;
24277 }
24278 _ACEOF
24279 rm -f conftest.$ac_objext conftest$ac_exeext
24280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24281   (eval $ac_link) 2>conftest.er1
24282   ac_status=$?
24283   grep -v '^ *+' conftest.er1 >conftest.err
24284   rm -f conftest.er1
24285   cat conftest.err >&5
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); } &&
24288          { ac_try='test -z "$ac_c_werror_flag"
24289                          || test ! -s conftest.err'
24290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24291   (eval $ac_try) 2>&5
24292   ac_status=$?
24293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294   (exit $ac_status); }; } &&
24295          { ac_try='test -s conftest$ac_exeext'
24296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24297   (eval $ac_try) 2>&5
24298   ac_status=$?
24299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300   (exit $ac_status); }; }; then
24301   ac_cv_lib_dld_dld_link=yes
24302 else
24303   echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24305
24306 ac_cv_lib_dld_dld_link=no
24307 fi
24308 rm -f conftest.err conftest.$ac_objext \
24309       conftest$ac_exeext conftest.$ac_ext
24310 LIBS=$ac_check_lib_save_LIBS
24311 fi
24312 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24313 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24314 if test $ac_cv_lib_dld_dld_link = yes; then
24315   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24316 fi
24317
24318
24319 fi
24320
24321
24322 fi
24323
24324
24325 fi
24326
24327
24328 fi
24329
24330
24331 fi
24332
24333     ;;
24334   esac
24335
24336   if test "x$lt_cv_dlopen" != xno; then
24337     enable_dlopen=yes
24338   else
24339     enable_dlopen=no
24340   fi
24341
24342   case $lt_cv_dlopen in
24343   dlopen)
24344     save_CPPFLAGS="$CPPFLAGS"
24345     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
24346
24347     save_LDFLAGS="$LDFLAGS"
24348     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
24349
24350     save_LIBS="$LIBS"
24351     LIBS="$lt_cv_dlopen_libs $LIBS"
24352
24353     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
24354 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24355 if test "${lt_cv_dlopen_self+set}" = set; then
24356   echo $ECHO_N "(cached) $ECHO_C" >&6
24357 else
24358           if test "$cross_compiling" = yes; then :
24359   lt_cv_dlopen_self=cross
24360 else
24361   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24362   lt_status=$lt_dlunknown
24363   cat > conftest.$ac_ext <<EOF
24364 #line 24364 "configure"
24365 #include "confdefs.h"
24366
24367 #if HAVE_DLFCN_H
24368 #include <dlfcn.h>
24369 #endif
24370
24371 #include <stdio.h>
24372
24373 #ifdef RTLD_GLOBAL
24374 #  define LT_DLGLOBAL           RTLD_GLOBAL
24375 #else
24376 #  ifdef DL_GLOBAL
24377 #    define LT_DLGLOBAL         DL_GLOBAL
24378 #  else
24379 #    define LT_DLGLOBAL         0
24380 #  endif
24381 #endif
24382
24383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24384    find out it does not work in some platform. */
24385 #ifndef LT_DLLAZY_OR_NOW
24386 #  ifdef RTLD_LAZY
24387 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
24388 #  else
24389 #    ifdef DL_LAZY
24390 #      define LT_DLLAZY_OR_NOW          DL_LAZY
24391 #    else
24392 #      ifdef RTLD_NOW
24393 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
24394 #      else
24395 #        ifdef DL_NOW
24396 #          define LT_DLLAZY_OR_NOW      DL_NOW
24397 #        else
24398 #          define LT_DLLAZY_OR_NOW      0
24399 #        endif
24400 #      endif
24401 #    endif
24402 #  endif
24403 #endif
24404
24405 #ifdef __cplusplus
24406 extern "C" void exit (int);
24407 #endif
24408
24409 void fnord() { int i=42;}
24410 int main ()
24411 {
24412   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24413   int status = $lt_dlunknown;
24414
24415   if (self)
24416     {
24417       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24418       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24419       /* dlclose (self); */
24420     }
24421
24422     exit (status);
24423 }
24424 EOF
24425   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24426   (eval $ac_link) 2>&5
24427   ac_status=$?
24428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24430     (./conftest; exit; ) 2>/dev/null
24431     lt_status=$?
24432     case x$lt_status in
24433       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24434       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24435       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24436     esac
24437   else :
24438     # compilation failed
24439     lt_cv_dlopen_self=no
24440   fi
24441 fi
24442 rm -fr conftest*
24443
24444
24445 fi
24446 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24447 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24448
24449     if test "x$lt_cv_dlopen_self" = xyes; then
24450       LDFLAGS="$LDFLAGS $link_static_flag"
24451       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24452 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24453 if test "${lt_cv_dlopen_self_static+set}" = set; then
24454   echo $ECHO_N "(cached) $ECHO_C" >&6
24455 else
24456           if test "$cross_compiling" = yes; then :
24457   lt_cv_dlopen_self_static=cross
24458 else
24459   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24460   lt_status=$lt_dlunknown
24461   cat > conftest.$ac_ext <<EOF
24462 #line 24462 "configure"
24463 #include "confdefs.h"
24464
24465 #if HAVE_DLFCN_H
24466 #include <dlfcn.h>
24467 #endif
24468
24469 #include <stdio.h>
24470
24471 #ifdef RTLD_GLOBAL
24472 #  define LT_DLGLOBAL           RTLD_GLOBAL
24473 #else
24474 #  ifdef DL_GLOBAL
24475 #    define LT_DLGLOBAL         DL_GLOBAL
24476 #  else
24477 #    define LT_DLGLOBAL         0
24478 #  endif
24479 #endif
24480
24481 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24482    find out it does not work in some platform. */
24483 #ifndef LT_DLLAZY_OR_NOW
24484 #  ifdef RTLD_LAZY
24485 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
24486 #  else
24487 #    ifdef DL_LAZY
24488 #      define LT_DLLAZY_OR_NOW          DL_LAZY
24489 #    else
24490 #      ifdef RTLD_NOW
24491 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
24492 #      else
24493 #        ifdef DL_NOW
24494 #          define LT_DLLAZY_OR_NOW      DL_NOW
24495 #        else
24496 #          define LT_DLLAZY_OR_NOW      0
24497 #        endif
24498 #      endif
24499 #    endif
24500 #  endif
24501 #endif
24502
24503 #ifdef __cplusplus
24504 extern "C" void exit (int);
24505 #endif
24506
24507 void fnord() { int i=42;}
24508 int main ()
24509 {
24510   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24511   int status = $lt_dlunknown;
24512
24513   if (self)
24514     {
24515       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24516       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24517       /* dlclose (self); */
24518     }
24519
24520     exit (status);
24521 }
24522 EOF
24523   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24524   (eval $ac_link) 2>&5
24525   ac_status=$?
24526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24528     (./conftest; exit; ) 2>/dev/null
24529     lt_status=$?
24530     case x$lt_status in
24531       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24532       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24533       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24534     esac
24535   else :
24536     # compilation failed
24537     lt_cv_dlopen_self_static=no
24538   fi
24539 fi
24540 rm -fr conftest*
24541
24542
24543 fi
24544 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24545 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24546     fi
24547
24548     CPPFLAGS="$save_CPPFLAGS"
24549     LDFLAGS="$save_LDFLAGS"
24550     LIBS="$save_LIBS"
24551     ;;
24552   esac
24553
24554   case $lt_cv_dlopen_self in
24555   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24556   *) enable_dlopen_self=unknown ;;
24557   esac
24558
24559   case $lt_cv_dlopen_self_static in
24560   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24561   *) enable_dlopen_self_static=unknown ;;
24562   esac
24563 fi
24564
24565
24566 # The else clause should only fire when bootstrapping the
24567 # libtool distribution, otherwise you forgot to ship ltmain.sh
24568 # with your package, and you will get complaints that there are
24569 # no rules to generate ltmain.sh.
24570 if test -f "$ltmain"; then
24571   # See if we are running on zsh, and set the options which allow our commands through
24572   # without removal of \ escapes.
24573   if test -n "${ZSH_VERSION+set}" ; then
24574     setopt NO_GLOB_SUBST
24575   fi
24576   # Now quote all the things that may contain metacharacters while being
24577   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24578   # variables and quote the copies for generation of the libtool script.
24579   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24580     SED SHELL STRIP \
24581     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24582     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24583     deplibs_check_method reload_flag reload_cmds need_locks \
24584     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24585     lt_cv_sys_global_symbol_to_c_name_address \
24586     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24587     old_postinstall_cmds old_postuninstall_cmds \
24588     compiler_GCJ \
24589     CC_GCJ \
24590     LD_GCJ \
24591     lt_prog_compiler_wl_GCJ \
24592     lt_prog_compiler_pic_GCJ \
24593     lt_prog_compiler_static_GCJ \
24594     lt_prog_compiler_no_builtin_flag_GCJ \
24595     export_dynamic_flag_spec_GCJ \
24596     thread_safe_flag_spec_GCJ \
24597     whole_archive_flag_spec_GCJ \
24598     enable_shared_with_static_runtimes_GCJ \
24599     old_archive_cmds_GCJ \
24600     old_archive_from_new_cmds_GCJ \
24601     predep_objects_GCJ \
24602     postdep_objects_GCJ \
24603     predeps_GCJ \
24604     postdeps_GCJ \
24605     compiler_lib_search_path_GCJ \
24606     archive_cmds_GCJ \
24607     archive_expsym_cmds_GCJ \
24608     postinstall_cmds_GCJ \
24609     postuninstall_cmds_GCJ \
24610     old_archive_from_expsyms_cmds_GCJ \
24611     allow_undefined_flag_GCJ \
24612     no_undefined_flag_GCJ \
24613     export_symbols_cmds_GCJ \
24614     hardcode_libdir_flag_spec_GCJ \
24615     hardcode_libdir_flag_spec_ld_GCJ \
24616     hardcode_libdir_separator_GCJ \
24617     hardcode_automatic_GCJ \
24618     module_cmds_GCJ \
24619     module_expsym_cmds_GCJ \
24620     lt_cv_prog_compiler_c_o_GCJ \
24621     exclude_expsyms_GCJ \
24622     include_expsyms_GCJ; do
24623
24624     case $var in
24625     old_archive_cmds_GCJ | \
24626     old_archive_from_new_cmds_GCJ | \
24627     archive_cmds_GCJ | \
24628     archive_expsym_cmds_GCJ | \
24629     module_cmds_GCJ | \
24630     module_expsym_cmds_GCJ | \
24631     old_archive_from_expsyms_cmds_GCJ | \
24632     export_symbols_cmds_GCJ | \
24633     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24634     postinstall_cmds | postuninstall_cmds | \
24635     old_postinstall_cmds | old_postuninstall_cmds | \
24636     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24637       # Double-quote double-evaled strings.
24638       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24639       ;;
24640     *)
24641       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24642       ;;
24643     esac
24644   done
24645
24646   case $lt_echo in
24647   *'\$0 --fallback-echo"')
24648     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24649     ;;
24650   esac
24651
24652 cfgfile="$ofile"
24653
24654   cat <<__EOF__ >> "$cfgfile"
24655 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24656
24657 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24658
24659 # Shell to use when invoking shell scripts.
24660 SHELL=$lt_SHELL
24661
24662 # Whether or not to build shared libraries.
24663 build_libtool_libs=$enable_shared
24664
24665 # Whether or not to build static libraries.
24666 build_old_libs=$enable_static
24667
24668 # Whether or not to add -lc for building shared libraries.
24669 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24670
24671 # Whether or not to disallow shared libs when runtime libs are static
24672 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24673
24674 # Whether or not to optimize for fast installation.
24675 fast_install=$enable_fast_install
24676
24677 # The host system.
24678 host_alias=$host_alias
24679 host=$host
24680
24681 # An echo program that does not interpret backslashes.
24682 echo=$lt_echo
24683
24684 # The archiver.
24685 AR=$lt_AR
24686 AR_FLAGS=$lt_AR_FLAGS
24687
24688 # A C compiler.
24689 LTCC=$lt_LTCC
24690
24691 # A language-specific compiler.
24692 CC=$lt_compiler_GCJ
24693
24694 # Is the compiler the GNU C compiler?
24695 with_gcc=$GCC_GCJ
24696
24697 # An ERE matcher.
24698 EGREP=$lt_EGREP
24699
24700 # The linker used to build libraries.
24701 LD=$lt_LD_GCJ
24702
24703 # Whether we need hard or soft links.
24704 LN_S=$lt_LN_S
24705
24706 # A BSD-compatible nm program.
24707 NM=$lt_NM
24708
24709 # A symbol stripping program
24710 STRIP=$lt_STRIP
24711
24712 # Used to examine libraries when file_magic_cmd begins "file"
24713 MAGIC_CMD=$MAGIC_CMD
24714
24715 # Used on cygwin: DLL creation program.
24716 DLLTOOL="$DLLTOOL"
24717
24718 # Used on cygwin: object dumper.
24719 OBJDUMP="$OBJDUMP"
24720
24721 # Used on cygwin: assembler.
24722 AS="$AS"
24723
24724 # The name of the directory that contains temporary libtool files.
24725 objdir=$objdir
24726
24727 # How to create reloadable object files.
24728 reload_flag=$lt_reload_flag
24729 reload_cmds=$lt_reload_cmds
24730
24731 # How to pass a linker flag through the compiler.
24732 wl=$lt_lt_prog_compiler_wl_GCJ
24733
24734 # Object file suffix (normally "o").
24735 objext="$ac_objext"
24736
24737 # Old archive suffix (normally "a").
24738 libext="$libext"
24739
24740 # Shared library suffix (normally ".so").
24741 shrext_cmds='$shrext_cmds'
24742
24743 # Executable file suffix (normally "").
24744 exeext="$exeext"
24745
24746 # Additional compiler flags for building library objects.
24747 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24748 pic_mode=$pic_mode
24749
24750 # What is the maximum length of a command?
24751 max_cmd_len=$lt_cv_sys_max_cmd_len
24752
24753 # Does compiler simultaneously support -c and -o options?
24754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24755
24756 # Must we lock files when doing compilation ?
24757 need_locks=$lt_need_locks
24758
24759 # Do we need the lib prefix for modules?
24760 need_lib_prefix=$need_lib_prefix
24761
24762 # Do we need a version for libraries?
24763 need_version=$need_version
24764
24765 # Whether dlopen is supported.
24766 dlopen_support=$enable_dlopen
24767
24768 # Whether dlopen of programs is supported.
24769 dlopen_self=$enable_dlopen_self
24770
24771 # Whether dlopen of statically linked programs is supported.
24772 dlopen_self_static=$enable_dlopen_self_static
24773
24774 # Compiler flag to prevent dynamic linking.
24775 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24776
24777 # Compiler flag to turn off builtin functions.
24778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24779
24780 # Compiler flag to allow reflexive dlopens.
24781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24782
24783 # Compiler flag to generate shared objects directly from archives.
24784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24785
24786 # Compiler flag to generate thread-safe objects.
24787 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24788
24789 # Library versioning type.
24790 version_type=$version_type
24791
24792 # Format of library name prefix.
24793 libname_spec=$lt_libname_spec
24794
24795 # List of archive names.  First name is the real one, the rest are links.
24796 # The last name is the one that the linker finds with -lNAME.
24797 library_names_spec=$lt_library_names_spec
24798
24799 # The coded name of the library, if different from the real name.
24800 soname_spec=$lt_soname_spec
24801
24802 # Commands used to build and install an old-style archive.
24803 RANLIB=$lt_RANLIB
24804 old_archive_cmds=$lt_old_archive_cmds_GCJ
24805 old_postinstall_cmds=$lt_old_postinstall_cmds
24806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24807
24808 # Create an old-style archive from a shared archive.
24809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24810
24811 # Create a temporary old-style archive to link instead of a shared archive.
24812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24813
24814 # Commands used to build and install a shared archive.
24815 archive_cmds=$lt_archive_cmds_GCJ
24816 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24817 postinstall_cmds=$lt_postinstall_cmds
24818 postuninstall_cmds=$lt_postuninstall_cmds
24819
24820 # Commands used to build a loadable module (assumed same as above if empty)
24821 module_cmds=$lt_module_cmds_GCJ
24822 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24823
24824 # Commands to strip libraries.
24825 old_striplib=$lt_old_striplib
24826 striplib=$lt_striplib
24827
24828 # Dependencies to place before the objects being linked to create a
24829 # shared library.
24830 predep_objects=$lt_predep_objects_GCJ
24831
24832 # Dependencies to place after the objects being linked to create a
24833 # shared library.
24834 postdep_objects=$lt_postdep_objects_GCJ
24835
24836 # Dependencies to place before the objects being linked to create a
24837 # shared library.
24838 predeps=$lt_predeps_GCJ
24839
24840 # Dependencies to place after the objects being linked to create a
24841 # shared library.
24842 postdeps=$lt_postdeps_GCJ
24843
24844 # The library search path used internally by the compiler when linking
24845 # a shared library.
24846 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24847
24848 # Method to check whether dependent libraries are shared objects.
24849 deplibs_check_method=$lt_deplibs_check_method
24850
24851 # Command to use when deplibs_check_method == file_magic.
24852 file_magic_cmd=$lt_file_magic_cmd
24853
24854 # Flag that allows shared libraries with undefined symbols to be built.
24855 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24856
24857 # Flag that forces no undefined symbols.
24858 no_undefined_flag=$lt_no_undefined_flag_GCJ
24859
24860 # Commands used to finish a libtool library installation in a directory.
24861 finish_cmds=$lt_finish_cmds
24862
24863 # Same as above, but a single script fragment to be evaled but not shown.
24864 finish_eval=$lt_finish_eval
24865
24866 # Take the output of nm and produce a listing of raw symbols and C names.
24867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24868
24869 # Transform the output of nm in a proper C declaration
24870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24871
24872 # Transform the output of nm in a C name address pair
24873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24874
24875 # This is the shared library runtime path variable.
24876 runpath_var=$runpath_var
24877
24878 # This is the shared library path variable.
24879 shlibpath_var=$shlibpath_var
24880
24881 # Is shlibpath searched before the hard-coded library search path?
24882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24883
24884 # How to hardcode a shared library path into an executable.
24885 hardcode_action=$hardcode_action_GCJ
24886
24887 # Whether we should hardcode library paths into libraries.
24888 hardcode_into_libs=$hardcode_into_libs
24889
24890 # Flag to hardcode \$libdir into a binary during linking.
24891 # This must work even if \$libdir does not exist.
24892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24893
24894 # If ld is used when linking, flag to hardcode \$libdir into
24895 # a binary during linking. This must work even if \$libdir does
24896 # not exist.
24897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24898
24899 # Whether we need a single -rpath flag with a separated argument.
24900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24901
24902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24903 # resulting binary.
24904 hardcode_direct=$hardcode_direct_GCJ
24905
24906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24907 # resulting binary.
24908 hardcode_minus_L=$hardcode_minus_L_GCJ
24909
24910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24911 # the resulting binary.
24912 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24913
24914 # Set to yes if building a shared library automatically hardcodes DIR into the library
24915 # and all subsequent libraries and executables linked against it.
24916 hardcode_automatic=$hardcode_automatic_GCJ
24917
24918 # Variables whose values should be saved in libtool wrapper scripts and
24919 # restored at relink time.
24920 variables_saved_for_relink="$variables_saved_for_relink"
24921
24922 # Whether libtool must link a program against all its dependency libraries.
24923 link_all_deplibs=$link_all_deplibs_GCJ
24924
24925 # Compile-time system search path for libraries
24926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24927
24928 # Run-time system search path for libraries
24929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24930
24931 # Fix the shell variable \$srcfile for the compiler.
24932 fix_srcfile_path="$fix_srcfile_path_GCJ"
24933
24934 # Set to yes if exported symbols are required.
24935 always_export_symbols=$always_export_symbols_GCJ
24936
24937 # The commands to list exported symbols.
24938 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24939
24940 # The commands to extract the exported symbol list from a shared archive.
24941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24942
24943 # Symbols that should not be listed in the preloaded symbols.
24944 exclude_expsyms=$lt_exclude_expsyms_GCJ
24945
24946 # Symbols that must always be exported.
24947 include_expsyms=$lt_include_expsyms_GCJ
24948
24949 # ### END LIBTOOL TAG CONFIG: $tagname
24950
24951 __EOF__
24952
24953
24954 else
24955   # If there is no Makefile yet, we rely on a make rule to execute
24956   # `config.status --recheck' to rerun these tests and create the
24957   # libtool script then.
24958   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24959   if test -f "$ltmain_in"; then
24960     test -f Makefile && make "$ltmain"
24961   fi
24962 fi
24963
24964
24965 ac_ext=c
24966 ac_cpp='$CPP $CPPFLAGS'
24967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24970
24971 CC="$lt_save_CC"
24972
24973         else
24974           tagname=""
24975         fi
24976         ;;
24977
24978       RC)
24979
24980
24981
24982 # Source file extension for RC test sources.
24983 ac_ext=rc
24984
24985 # Object file extension for compiled RC test sources.
24986 objext=o
24987 objext_RC=$objext
24988
24989 # Code to be used in simple compile tests
24990 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24991
24992 # Code to be used in simple link tests
24993 lt_simple_link_test_code="$lt_simple_compile_test_code"
24994
24995 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24996
24997 # If no C compiler was specified, use CC.
24998 LTCC=${LTCC-"$CC"}
24999
25000 # Allow CC to be a program name with arguments.
25001 compiler=$CC
25002
25003
25004 # Allow CC to be a program name with arguments.
25005 lt_save_CC="$CC"
25006 CC=${RC-"windres"}
25007 compiler=$CC
25008 compiler_RC=$CC
25009 lt_cv_prog_compiler_c_o_RC=yes
25010
25011 # The else clause should only fire when bootstrapping the
25012 # libtool distribution, otherwise you forgot to ship ltmain.sh
25013 # with your package, and you will get complaints that there are
25014 # no rules to generate ltmain.sh.
25015 if test -f "$ltmain"; then
25016   # See if we are running on zsh, and set the options which allow our commands through
25017   # without removal of \ escapes.
25018   if test -n "${ZSH_VERSION+set}" ; then
25019     setopt NO_GLOB_SUBST
25020   fi
25021   # Now quote all the things that may contain metacharacters while being
25022   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25023   # variables and quote the copies for generation of the libtool script.
25024   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25025     SED SHELL STRIP \
25026     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25027     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25028     deplibs_check_method reload_flag reload_cmds need_locks \
25029     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25030     lt_cv_sys_global_symbol_to_c_name_address \
25031     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25032     old_postinstall_cmds old_postuninstall_cmds \
25033     compiler_RC \
25034     CC_RC \
25035     LD_RC \
25036     lt_prog_compiler_wl_RC \
25037     lt_prog_compiler_pic_RC \
25038     lt_prog_compiler_static_RC \
25039     lt_prog_compiler_no_builtin_flag_RC \
25040     export_dynamic_flag_spec_RC \
25041     thread_safe_flag_spec_RC \
25042     whole_archive_flag_spec_RC \
25043     enable_shared_with_static_runtimes_RC \
25044     old_archive_cmds_RC \
25045     old_archive_from_new_cmds_RC \
25046     predep_objects_RC \
25047     postdep_objects_RC \
25048     predeps_RC \
25049     postdeps_RC \
25050     compiler_lib_search_path_RC \
25051     archive_cmds_RC \
25052     archive_expsym_cmds_RC \
25053     postinstall_cmds_RC \
25054     postuninstall_cmds_RC \
25055     old_archive_from_expsyms_cmds_RC \
25056     allow_undefined_flag_RC \
25057     no_undefined_flag_RC \
25058     export_symbols_cmds_RC \
25059     hardcode_libdir_flag_spec_RC \
25060     hardcode_libdir_flag_spec_ld_RC \
25061     hardcode_libdir_separator_RC \
25062     hardcode_automatic_RC \
25063     module_cmds_RC \
25064     module_expsym_cmds_RC \
25065     lt_cv_prog_compiler_c_o_RC \
25066     exclude_expsyms_RC \
25067     include_expsyms_RC; do
25068
25069     case $var in
25070     old_archive_cmds_RC | \
25071     old_archive_from_new_cmds_RC | \
25072     archive_cmds_RC | \
25073     archive_expsym_cmds_RC | \
25074     module_cmds_RC | \
25075     module_expsym_cmds_RC | \
25076     old_archive_from_expsyms_cmds_RC | \
25077     export_symbols_cmds_RC | \
25078     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25079     postinstall_cmds | postuninstall_cmds | \
25080     old_postinstall_cmds | old_postuninstall_cmds | \
25081     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25082       # Double-quote double-evaled strings.
25083       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25084       ;;
25085     *)
25086       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25087       ;;
25088     esac
25089   done
25090
25091   case $lt_echo in
25092   *'\$0 --fallback-echo"')
25093     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25094     ;;
25095   esac
25096
25097 cfgfile="$ofile"
25098
25099   cat <<__EOF__ >> "$cfgfile"
25100 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25101
25102 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25103
25104 # Shell to use when invoking shell scripts.
25105 SHELL=$lt_SHELL
25106
25107 # Whether or not to build shared libraries.
25108 build_libtool_libs=$enable_shared
25109
25110 # Whether or not to build static libraries.
25111 build_old_libs=$enable_static
25112
25113 # Whether or not to add -lc for building shared libraries.
25114 build_libtool_need_lc=$archive_cmds_need_lc_RC
25115
25116 # Whether or not to disallow shared libs when runtime libs are static
25117 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25118
25119 # Whether or not to optimize for fast installation.
25120 fast_install=$enable_fast_install
25121
25122 # The host system.
25123 host_alias=$host_alias
25124 host=$host
25125
25126 # An echo program that does not interpret backslashes.
25127 echo=$lt_echo
25128
25129 # The archiver.
25130 AR=$lt_AR
25131 AR_FLAGS=$lt_AR_FLAGS
25132
25133 # A C compiler.
25134 LTCC=$lt_LTCC
25135
25136 # A language-specific compiler.
25137 CC=$lt_compiler_RC
25138
25139 # Is the compiler the GNU C compiler?
25140 with_gcc=$GCC_RC
25141
25142 # An ERE matcher.
25143 EGREP=$lt_EGREP
25144
25145 # The linker used to build libraries.
25146 LD=$lt_LD_RC
25147
25148 # Whether we need hard or soft links.
25149 LN_S=$lt_LN_S
25150
25151 # A BSD-compatible nm program.
25152 NM=$lt_NM
25153
25154 # A symbol stripping program
25155 STRIP=$lt_STRIP
25156
25157 # Used to examine libraries when file_magic_cmd begins "file"
25158 MAGIC_CMD=$MAGIC_CMD
25159
25160 # Used on cygwin: DLL creation program.
25161 DLLTOOL="$DLLTOOL"
25162
25163 # Used on cygwin: object dumper.
25164 OBJDUMP="$OBJDUMP"
25165
25166 # Used on cygwin: assembler.
25167 AS="$AS"
25168
25169 # The name of the directory that contains temporary libtool files.
25170 objdir=$objdir
25171
25172 # How to create reloadable object files.
25173 reload_flag=$lt_reload_flag
25174 reload_cmds=$lt_reload_cmds
25175
25176 # How to pass a linker flag through the compiler.
25177 wl=$lt_lt_prog_compiler_wl_RC
25178
25179 # Object file suffix (normally "o").
25180 objext="$ac_objext"
25181
25182 # Old archive suffix (normally "a").
25183 libext="$libext"
25184
25185 # Shared library suffix (normally ".so").
25186 shrext_cmds='$shrext_cmds'
25187
25188 # Executable file suffix (normally "").
25189 exeext="$exeext"
25190
25191 # Additional compiler flags for building library objects.
25192 pic_flag=$lt_lt_prog_compiler_pic_RC
25193 pic_mode=$pic_mode
25194
25195 # What is the maximum length of a command?
25196 max_cmd_len=$lt_cv_sys_max_cmd_len
25197
25198 # Does compiler simultaneously support -c and -o options?
25199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25200
25201 # Must we lock files when doing compilation ?
25202 need_locks=$lt_need_locks
25203
25204 # Do we need the lib prefix for modules?
25205 need_lib_prefix=$need_lib_prefix
25206
25207 # Do we need a version for libraries?
25208 need_version=$need_version
25209
25210 # Whether dlopen is supported.
25211 dlopen_support=$enable_dlopen
25212
25213 # Whether dlopen of programs is supported.
25214 dlopen_self=$enable_dlopen_self
25215
25216 # Whether dlopen of statically linked programs is supported.
25217 dlopen_self_static=$enable_dlopen_self_static
25218
25219 # Compiler flag to prevent dynamic linking.
25220 link_static_flag=$lt_lt_prog_compiler_static_RC
25221
25222 # Compiler flag to turn off builtin functions.
25223 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25224
25225 # Compiler flag to allow reflexive dlopens.
25226 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25227
25228 # Compiler flag to generate shared objects directly from archives.
25229 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25230
25231 # Compiler flag to generate thread-safe objects.
25232 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25233
25234 # Library versioning type.
25235 version_type=$version_type
25236
25237 # Format of library name prefix.
25238 libname_spec=$lt_libname_spec
25239
25240 # List of archive names.  First name is the real one, the rest are links.
25241 # The last name is the one that the linker finds with -lNAME.
25242 library_names_spec=$lt_library_names_spec
25243
25244 # The coded name of the library, if different from the real name.
25245 soname_spec=$lt_soname_spec
25246
25247 # Commands used to build and install an old-style archive.
25248 RANLIB=$lt_RANLIB
25249 old_archive_cmds=$lt_old_archive_cmds_RC
25250 old_postinstall_cmds=$lt_old_postinstall_cmds
25251 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25252
25253 # Create an old-style archive from a shared archive.
25254 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25255
25256 # Create a temporary old-style archive to link instead of a shared archive.
25257 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25258
25259 # Commands used to build and install a shared archive.
25260 archive_cmds=$lt_archive_cmds_RC
25261 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25262 postinstall_cmds=$lt_postinstall_cmds
25263 postuninstall_cmds=$lt_postuninstall_cmds
25264
25265 # Commands used to build a loadable module (assumed same as above if empty)
25266 module_cmds=$lt_module_cmds_RC
25267 module_expsym_cmds=$lt_module_expsym_cmds_RC
25268
25269 # Commands to strip libraries.
25270 old_striplib=$lt_old_striplib
25271 striplib=$lt_striplib
25272
25273 # Dependencies to place before the objects being linked to create a
25274 # shared library.
25275 predep_objects=$lt_predep_objects_RC
25276
25277 # Dependencies to place after the objects being linked to create a
25278 # shared library.
25279 postdep_objects=$lt_postdep_objects_RC
25280
25281 # Dependencies to place before the objects being linked to create a
25282 # shared library.
25283 predeps=$lt_predeps_RC
25284
25285 # Dependencies to place after the objects being linked to create a
25286 # shared library.
25287 postdeps=$lt_postdeps_RC
25288
25289 # The library search path used internally by the compiler when linking
25290 # a shared library.
25291 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25292
25293 # Method to check whether dependent libraries are shared objects.
25294 deplibs_check_method=$lt_deplibs_check_method
25295
25296 # Command to use when deplibs_check_method == file_magic.
25297 file_magic_cmd=$lt_file_magic_cmd
25298
25299 # Flag that allows shared libraries with undefined symbols to be built.
25300 allow_undefined_flag=$lt_allow_undefined_flag_RC
25301
25302 # Flag that forces no undefined symbols.
25303 no_undefined_flag=$lt_no_undefined_flag_RC
25304
25305 # Commands used to finish a libtool library installation in a directory.
25306 finish_cmds=$lt_finish_cmds
25307
25308 # Same as above, but a single script fragment to be evaled but not shown.
25309 finish_eval=$lt_finish_eval
25310
25311 # Take the output of nm and produce a listing of raw symbols and C names.
25312 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25313
25314 # Transform the output of nm in a proper C declaration
25315 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25316
25317 # Transform the output of nm in a C name address pair
25318 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25319
25320 # This is the shared library runtime path variable.
25321 runpath_var=$runpath_var
25322
25323 # This is the shared library path variable.
25324 shlibpath_var=$shlibpath_var
25325
25326 # Is shlibpath searched before the hard-coded library search path?
25327 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25328
25329 # How to hardcode a shared library path into an executable.
25330 hardcode_action=$hardcode_action_RC
25331
25332 # Whether we should hardcode library paths into libraries.
25333 hardcode_into_libs=$hardcode_into_libs
25334
25335 # Flag to hardcode \$libdir into a binary during linking.
25336 # This must work even if \$libdir does not exist.
25337 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25338
25339 # If ld is used when linking, flag to hardcode \$libdir into
25340 # a binary during linking. This must work even if \$libdir does
25341 # not exist.
25342 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25343
25344 # Whether we need a single -rpath flag with a separated argument.
25345 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25346
25347 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25348 # resulting binary.
25349 hardcode_direct=$hardcode_direct_RC
25350
25351 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25352 # resulting binary.
25353 hardcode_minus_L=$hardcode_minus_L_RC
25354
25355 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25356 # the resulting binary.
25357 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25358
25359 # Set to yes if building a shared library automatically hardcodes DIR into the library
25360 # and all subsequent libraries and executables linked against it.
25361 hardcode_automatic=$hardcode_automatic_RC
25362
25363 # Variables whose values should be saved in libtool wrapper scripts and
25364 # restored at relink time.
25365 variables_saved_for_relink="$variables_saved_for_relink"
25366
25367 # Whether libtool must link a program against all its dependency libraries.
25368 link_all_deplibs=$link_all_deplibs_RC
25369
25370 # Compile-time system search path for libraries
25371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25372
25373 # Run-time system search path for libraries
25374 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25375
25376 # Fix the shell variable \$srcfile for the compiler.
25377 fix_srcfile_path="$fix_srcfile_path_RC"
25378
25379 # Set to yes if exported symbols are required.
25380 always_export_symbols=$always_export_symbols_RC
25381
25382 # The commands to list exported symbols.
25383 export_symbols_cmds=$lt_export_symbols_cmds_RC
25384
25385 # The commands to extract the exported symbol list from a shared archive.
25386 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25387
25388 # Symbols that should not be listed in the preloaded symbols.
25389 exclude_expsyms=$lt_exclude_expsyms_RC
25390
25391 # Symbols that must always be exported.
25392 include_expsyms=$lt_include_expsyms_RC
25393
25394 # ### END LIBTOOL TAG CONFIG: $tagname
25395
25396 __EOF__
25397
25398
25399 else
25400   # If there is no Makefile yet, we rely on a make rule to execute
25401   # `config.status --recheck' to rerun these tests and create the
25402   # libtool script then.
25403   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25404   if test -f "$ltmain_in"; then
25405     test -f Makefile && make "$ltmain"
25406   fi
25407 fi
25408
25409
25410 ac_ext=c
25411 ac_cpp='$CPP $CPPFLAGS'
25412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25415
25416 CC="$lt_save_CC"
25417
25418         ;;
25419
25420       *)
25421         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25422 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25423    { (exit 1); exit 1; }; }
25424         ;;
25425       esac
25426
25427       # Append the new tag name to the list of available tags.
25428       if test -n "$tagname" ; then
25429       available_tags="$available_tags $tagname"
25430     fi
25431     fi
25432   done
25433   IFS="$lt_save_ifs"
25434
25435   # Now substitute the updated list of available tags.
25436   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25437     mv "${ofile}T" "$ofile"
25438     chmod +x "$ofile"
25439   else
25440     rm -f "${ofile}T"
25441     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25442 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25443    { (exit 1); exit 1; }; }
25444   fi
25445 fi
25446
25447
25448
25449 # This can be used to rebuild libtool when needed
25450 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25451
25452 # Always use our own libtool.
25453 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
25454
25455 # Prevent multiple expansion
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479         echo "$as_me:$LINENO: checking for linux kernel dir" >&5
25480 echo $ECHO_N "checking for linux kernel dir... $ECHO_C" >&6
25481 if test "${ensc_cv_path_kerneldir+set}" = set; then
25482   echo $ECHO_N "(cached) $ECHO_C" >&6
25483 else
25484
25485
25486 # Check whether --with-kerneldir or --without-kerneldir was given.
25487 if test "${with_kerneldir+set}" = set; then
25488   withval="$with_kerneldir"
25489   case "$withval" in
25490                 yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for kerneldir" >&5
25491 echo "$as_me: error: '$withval' is not a valid value for kerneldir" >&2;}
25492    { (exit 1); exit 1; }; };;
25493                 *)      ensc_cv_path_kerneldir=$withval;;
25494              esac
25495 else
25496   ensc_cv_path_kerneldir=
25497              for i in /lib/modules/$(uname -r)/build /usr/src/linux /usr; do
25498                 test -e $i/include/linux/version.h && { ensc_cv_path_kerneldir=$i; break; }
25499              done
25500 fi;
25501
25502 fi
25503 echo "$as_me:$LINENO: result: $ensc_cv_path_kerneldir" >&5
25504 echo "${ECHO_T}$ensc_cv_path_kerneldir" >&6
25505
25506         test "$ensc_cv_path_kerneldir" -a -e "$ensc_cv_path_kerneldir"/include/linux/version.h || {
25507                 { { echo "$as_me:$LINENO: error: Can not find kernelsources" >&5
25508 echo "$as_me: error: Can not find kernelsources" >&2;}
25509    { (exit 1); exit 1; }; }
25510         }
25511
25512
25513
25514
25515         echo "$as_me:$LINENO: checking for linux kernel headers" >&5
25516 echo $ECHO_N "checking for linux kernel headers... $ECHO_C" >&6
25517 if test "${ensc_cv_path_kernelheaders+set}" = set; then
25518   echo $ECHO_N "(cached) $ECHO_C" >&6
25519 else
25520
25521                 ensc_cv_path_kernelheaders=$ensc_cv_path_kerneldir/include
25522
25523 fi
25524 echo "$as_me:$LINENO: result: $ensc_cv_path_kernelheaders" >&5
25525 echo "${ECHO_T}$ensc_cv_path_kernelheaders" >&6
25526
25527         if test x"kernelincludedir" != x; then
25528                 kernelincludedir=$ensc_cv_path_kernelheaders
25529
25530         fi
25531
25532
25533         echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
25534 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6
25535
25536 # Check whether --with-vrootdir or --without-vrootdir was given.
25537 if test "${with_vrootdir+set}" = set; then
25538   withval="$with_vrootdir"
25539   case "$withval" in
25540                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
25541 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
25542    { (exit 1); exit 1; }; };;
25543                         *)      ensc_uv_path_vrootdir=$withval;;
25544                      esac
25545 else
25546   ensc_uv_path_vrootdir=/vservers
25547 fi;
25548         echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
25549 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6
25550
25551         if test x"vserverdir" != x; then
25552                 vserverdir=$ensc_uv_path_vrootdir
25553
25554         fi
25555
25556
25557         if test x"trunk" != x; then
25558                 CVS2CL_TAG='-F trunk'
25559
25560         fi
25561
25562         for ac_prog in cvs2cl
25563 do
25564   # Extract the first word of "$ac_prog", so it can be a program name with args.
25565 set dummy $ac_prog; ac_word=$2
25566 echo "$as_me:$LINENO: checking for $ac_word" >&5
25567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25568 if test "${ac_cv_prog_CVS2CL+set}" = set; then
25569   echo $ECHO_N "(cached) $ECHO_C" >&6
25570 else
25571   if test -n "$CVS2CL"; then
25572   ac_cv_prog_CVS2CL="$CVS2CL" # Let the user override the test.
25573 else
25574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25575 for as_dir in $PATH
25576 do
25577   IFS=$as_save_IFS
25578   test -z "$as_dir" && as_dir=.
25579   for ac_exec_ext in '' $ac_executable_extensions; do
25580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25581     ac_cv_prog_CVS2CL="$ac_prog"
25582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25583     break 2
25584   fi
25585 done
25586 done
25587
25588 fi
25589 fi
25590 CVS2CL=$ac_cv_prog_CVS2CL
25591 if test -n "$CVS2CL"; then
25592   echo "$as_me:$LINENO: result: $CVS2CL" >&5
25593 echo "${ECHO_T}$CVS2CL" >&6
25594 else
25595   echo "$as_me:$LINENO: result: no" >&5
25596 echo "${ECHO_T}no" >&6
25597 fi
25598
25599   test -n "$CVS2CL" && break
25600 done
25601
25602
25603
25604 if test x"$CVS2CL" != x; then
25605   HAVE_CVS2CL_TRUE=
25606   HAVE_CVS2CL_FALSE='#'
25607 else
25608   HAVE_CVS2CL_TRUE='#'
25609   HAVE_CVS2CL_FALSE=
25610 fi
25611
25612
25613         for ac_prog in rcs2log
25614 do
25615   # Extract the first word of "$ac_prog", so it can be a program name with args.
25616 set dummy $ac_prog; ac_word=$2
25617 echo "$as_me:$LINENO: checking for $ac_word" >&5
25618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25619 if test "${ac_cv_prog_RCS2LOG+set}" = set; then
25620   echo $ECHO_N "(cached) $ECHO_C" >&6
25621 else
25622   if test -n "$RCS2LOG"; then
25623   ac_cv_prog_RCS2LOG="$RCS2LOG" # Let the user override the test.
25624 else
25625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25626 for as_dir in $PATH
25627 do
25628   IFS=$as_save_IFS
25629   test -z "$as_dir" && as_dir=.
25630   for ac_exec_ext in '' $ac_executable_extensions; do
25631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25632     ac_cv_prog_RCS2LOG="$ac_prog"
25633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25634     break 2
25635   fi
25636 done
25637 done
25638
25639 fi
25640 fi
25641 RCS2LOG=$ac_cv_prog_RCS2LOG
25642 if test -n "$RCS2LOG"; then
25643   echo "$as_me:$LINENO: result: $RCS2LOG" >&5
25644 echo "${ECHO_T}$RCS2LOG" >&6
25645 else
25646   echo "$as_me:$LINENO: result: no" >&5
25647 echo "${ECHO_T}no" >&6
25648 fi
25649
25650   test -n "$RCS2LOG" && break
25651 done
25652
25653
25654
25655 if test x"$RCS2LOG" != x; then
25656   HAVE_RCS2LOG_TRUE=
25657   HAVE_RCS2LOG_FALSE='#'
25658 else
25659   HAVE_RCS2LOG_TRUE='#'
25660   HAVE_RCS2LOG_FALSE=
25661 fi
25662
25663
25664
25665
25666 echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
25667 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6
25668 # Check whether --enable-internal-headers or --disable-internal-headers was given.
25669 if test "${enable_internal_headers+set}" = set; then
25670   enableval="$enable_internal_headers"
25671   case "$enableval" in
25672                   (yes|no) ;;
25673                   (*)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
25674 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
25675    { (exit 1); exit 1; }; };;
25676                esac
25677 else
25678   enable_internal_headers=yes
25679 fi;
25680
25681
25682
25683 if test x"$enable_internal_headers" = xyes; then
25684   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
25685   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
25686 else
25687   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
25688   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
25689 fi
25690
25691 echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
25692 echo "${ECHO_T}$enable_internal_headers" >&6
25693
25694 echo "$as_me:$LINENO: checking for supported APIs" >&5
25695 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6
25696 # Check whether --enable-apis or --disable-apis was given.
25697 if test "${enable_apis+set}" = set; then
25698   enableval="$enable_apis"
25699
25700 else
25701   enable_apis=compat,v11,v13,fscompat,net
25702 fi;
25703
25704 test x"$enable_apis" != xALL || enable_apis='legacy,compat,v11,v13,fscompat,net'
25705 enable_api_oldproc=
25706 enable_api_olduts=
25707 old_IFS=$IFS
25708 IFS=,;
25709 for i in $enable_apis; do
25710         case "$i" in
25711                 (compat)
25712 cat >>confdefs.h <<\_ACEOF
25713 #define VC_ENABLE_API_COMPAT 1
25714 _ACEOF
25715
25716                                 enable_api_oldproc=1
25717                                 enable_api_olduts=1
25718                                 ;;
25719                 (legacy)
25720 cat >>confdefs.h <<\_ACEOF
25721 #define VC_ENABLE_API_LEGACY 1
25722 _ACEOF
25723
25724                                 enable_api_old_proc=1
25725                                 enable_api_olduts=1
25726                                 ;;
25727                 (v11)
25728 cat >>confdefs.h <<\_ACEOF
25729 #define VC_ENABLE_API_V11 1
25730 _ACEOF
25731
25732                                 enable_api_oldproc=1
25733                                 enable_api_olduts=1
25734                                 ;;
25735                 (v13)
25736 cat >>confdefs.h <<\_ACEOF
25737 #define VC_ENABLE_API_V13 1
25738 _ACEOF
25739 ;;
25740                 (net)
25741 cat >>confdefs.h <<\_ACEOF
25742 #define VC_ENABLE_API_NET 1
25743 _ACEOF
25744 ;;
25745                 (fscompat)
25746 cat >>confdefs.h <<\_ACEOF
25747 #define VC_ENABLE_API_FSCOMPAT 1
25748 _ACEOF
25749 ;;
25750                 (*)             { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
25751 echo "$as_me: error: '$i' is not a supported API" >&2;}
25752    { (exit 1); exit 1; }; };;
25753         esac
25754 done
25755 IFS=$old_IFS
25756 if test x"$enable_api_oldproc" != x; then
25757
25758 cat >>confdefs.h <<\_ACEOF
25759 #define VC_ENABLE_API_OLDPROC 1
25760 _ACEOF
25761
25762         enable_apis="$enable_apis,oldproc"
25763 fi
25764 if test x"$enable_api_olduts" != x; then
25765
25766 cat >>confdefs.h <<\_ACEOF
25767 #define VC_ENABLE_API_OLDUTS 1
25768 _ACEOF
25769
25770         enable_apis="$enable_apis,olduts"
25771 fi
25772 echo "$as_me:$LINENO: result: $enable_apis" >&5
25773 echo "${ECHO_T}$enable_apis" >&6
25774
25775
25776
25777
25778
25779
25780
25781         echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
25782 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6
25783 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
25784   echo $ECHO_N "(cached) $ECHO_C" >&6
25785 else
25786
25787                 ac_ext=c
25788 ac_cpp='$CPP $CPPFLAGS'
25789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25792
25793                 cat >conftest.$ac_ext <<_ACEOF
25794
25795 #include <asm/unistd.h>
25796 #ifdef __NR_vserver
25797 ensc_syscall_tmp_nr=__NR_vserver;
25798 ensc_syscall_tmp_src=ENSC_MARK
25799 #endif
25800
25801 _ACEOF
25802                 ensc_syscall_tmp_nr=
25803                 ensc_syscall_tmp_src=
25804                 test "$ensc_syscall_tmp_nr" || \
25805                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                 conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
25806                 test "$ensc_syscall_tmp_nr" || \
25807                         eval $($CPP $CPPFLAGS -D ENSC_MARK='kernel' -I $ensc_cv_path_kernelheaders conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
25808                 test "$ensc_syscall_tmp_nr" || {
25809                         ensc_syscall_tmp_nr=273
25810                         ensc_syscall_tmp_src=default
25811                 }
25812
25813                 if test x"$ensc_syscall_tmp_nr" = x; then
25814                         { { 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
25815 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;}
25816    { (exit 1); exit 1; }; }
25817                 fi
25818                 ac_ext=c
25819 ac_cpp='$CPP $CPPFLAGS'
25820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25823
25824
25825                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
25826
25827 fi
25828 echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
25829 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6
25830
25831         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
25832         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
25833
25834         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
25835
25836 cat >>confdefs.h <<_ACEOF
25837 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
25838 _ACEOF
25839
25840         fi
25841
25842
25843
25844
25845
25846         echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
25847 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6
25848
25849 # Check whether --with-syscall or --without-syscall was given.
25850 if test "${with_syscall+set}" = set; then
25851   withval="$with_syscall"
25852
25853 else
25854   with_syscall=auto
25855 fi;
25856         echo "$as_me:$LINENO: result: $with_syscall" >&5
25857 echo "${ECHO_T}$with_syscall" >&6
25858
25859         case x"$with_syscall" in
25860             (xauto)
25861                 echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
25862 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6
25863 if test "${ensc_cv_test_syscall+set}" = set; then
25864   echo $ECHO_N "(cached) $ECHO_C" >&6
25865 else
25866
25867                                 ac_ext=c
25868 ac_cpp='$CPP $CPPFLAGS'
25869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25872
25873                                 cat >conftest.$ac_ext <<_ACEOF
25874 /* confdefs.h.  */
25875 _ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h.  */
25879
25880 #include "$srcdir/lib/syscall-wrap.h"
25881 #include <errno.h>
25882
25883 #define __NR_foo0       300
25884 #define __NR_foo1       301
25885 #define __NR_foo2       302
25886 #define __NR_foo3       303
25887 #define __NR_foo4       304
25888 #define __NR_foo5       305
25889 inline static _syscall0(int, foo0)
25890 inline static _syscall1(int, foo1, int, a)
25891 inline static _syscall2(int, foo2, int, a, int, b)
25892 inline static _syscall3(int, foo3, int, a, int, b, int, c)
25893 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
25894 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
25895
25896 int main() {
25897   return foo0() || \
25898          foo1(1) || \
25899          foo2(1,2) || \
25900          foo3(1,2,3) || \
25901          foo4(1,2,3,4) || \
25902          foo5(1,2,3,4,5);
25903 }
25904
25905 _ACEOF
25906 rm -f conftest.$ac_objext
25907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25908   (eval $ac_compile) 2>conftest.er1
25909   ac_status=$?
25910   grep -v '^ *+' conftest.er1 >conftest.err
25911   rm -f conftest.er1
25912   cat conftest.err >&5
25913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914   (exit $ac_status); } &&
25915          { ac_try='test -z "$ac_c_werror_flag"
25916                          || test ! -s conftest.err'
25917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918   (eval $ac_try) 2>&5
25919   ac_status=$?
25920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921   (exit $ac_status); }; } &&
25922          { ac_try='test -s conftest.$ac_objext'
25923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924   (eval $ac_try) 2>&5
25925   ac_status=$?
25926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927   (exit $ac_status); }; }; then
25928   ensc_cv_test_syscall=fast
25929 else
25930   echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.$ac_ext >&5
25932
25933 ensc_cv_test_syscall=traditional
25934 fi
25935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25936
25937                                 ac_ext=c
25938 ac_cpp='$CPP $CPPFLAGS'
25939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25942
25943
25944 fi
25945 echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
25946 echo "${ECHO_T}$ensc_cv_test_syscall" >&6
25947                 with_syscall=$ensc_cv_test_syscall
25948                 ;;
25949             (xfast|xtraditional)
25950                 ;;
25951             *)
25952                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
25953 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
25954    { (exit 1); exit 1; }; }
25955                 ;;
25956         esac
25957
25958         if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
25959             with_syscall='alternative'
25960         fi
25961
25962         if test x"$with_syscall" = xtraditional; then
25963
25964 cat >>confdefs.h <<\_ACEOF
25965 #define ENSC_SYSCALL_TRADITIONAL 1
25966 _ACEOF
25967
25968         fi
25969
25970
25971
25972
25973
25974
25975     ac_ext=cc
25976 ac_cpp='$CXXCPP $CPPFLAGS'
25977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25980
25981     echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
25982 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6
25983 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
25984   echo $ECHO_N "(cached) $ECHO_C" >&6
25985 else
25986
25987         cat >conftest.$ac_ext <<_ACEOF
25988 /* confdefs.h.  */
25989 _ACEOF
25990 cat confdefs.h >>conftest.$ac_ext
25991 cat >>conftest.$ac_ext <<_ACEOF
25992 /* end confdefs.h.  */
25993 #include <ext2fs/ext2_fs.h>
25994                                           int main() { return 0; }
25995 _ACEOF
25996 rm -f conftest.$ac_objext
25997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25998   (eval $ac_compile) 2>conftest.er1
25999   ac_status=$?
26000   grep -v '^ *+' conftest.er1 >conftest.err
26001   rm -f conftest.er1
26002   cat conftest.err >&5
26003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004   (exit $ac_status); } &&
26005          { ac_try='test -z "$ac_cxx_werror_flag"
26006                          || test ! -s conftest.err'
26007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008   (eval $ac_try) 2>&5
26009   ac_status=$?
26010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); }; } &&
26012          { ac_try='test -s conftest.$ac_objext'
26013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26014   (eval $ac_try) 2>&5
26015   ac_status=$?
26016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017   (exit $ac_status); }; }; then
26018   ensc_cv_test_ext2fs_header=e2fsprogs
26019 else
26020   echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26022
26023
26024         cat >conftest.$ac_ext <<_ACEOF
26025 /* confdefs.h.  */
26026 _ACEOF
26027 cat confdefs.h >>conftest.$ac_ext
26028 cat >>conftest.$ac_ext <<_ACEOF
26029 /* end confdefs.h.  */
26030 #include <linux/ext2_fs.h>
26031                                           int main() { return 0; }
26032 _ACEOF
26033 rm -f conftest.$ac_objext
26034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26035   (eval $ac_compile) 2>conftest.er1
26036   ac_status=$?
26037   grep -v '^ *+' conftest.er1 >conftest.err
26038   rm -f conftest.er1
26039   cat conftest.err >&5
26040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041   (exit $ac_status); } &&
26042          { ac_try='test -z "$ac_cxx_werror_flag"
26043                          || test ! -s conftest.err'
26044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045   (eval $ac_try) 2>&5
26046   ac_status=$?
26047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048   (exit $ac_status); }; } &&
26049          { ac_try='test -s conftest.$ac_objext'
26050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26051   (eval $ac_try) 2>&5
26052   ac_status=$?
26053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); }; }; then
26055   ensc_cv_test_ext2fs_header=kernel
26056 else
26057   echo "$as_me: failed program was:" >&5
26058 sed 's/^/| /' conftest.$ac_ext >&5
26059
26060
26061         ensc_cv_test_ext2fs_header=none
26062 fi
26063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26064 fi
26065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26066 fi
26067 echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
26068 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6
26069
26070     case x"$ensc_cv_test_ext2fs_header" in
26071         (xe2fsprogs)
26072                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26073   echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26074 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26075 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26076   echo $ECHO_N "(cached) $ECHO_C" >&6
26077 fi
26078 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26079 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26080 else
26081   # Is the header compilable?
26082 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
26083 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6
26084 cat >conftest.$ac_ext <<_ACEOF
26085 /* confdefs.h.  */
26086 _ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h.  */
26090 $ac_includes_default
26091 #include <ext2fs/ext2_fs.h>
26092 _ACEOF
26093 rm -f conftest.$ac_objext
26094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26095   (eval $ac_compile) 2>conftest.er1
26096   ac_status=$?
26097   grep -v '^ *+' conftest.er1 >conftest.err
26098   rm -f conftest.er1
26099   cat conftest.err >&5
26100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101   (exit $ac_status); } &&
26102          { ac_try='test -z "$ac_cxx_werror_flag"
26103                          || test ! -s conftest.err'
26104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105   (eval $ac_try) 2>&5
26106   ac_status=$?
26107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108   (exit $ac_status); }; } &&
26109          { ac_try='test -s conftest.$ac_objext'
26110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26111   (eval $ac_try) 2>&5
26112   ac_status=$?
26113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114   (exit $ac_status); }; }; then
26115   ac_header_compiler=yes
26116 else
26117   echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26119
26120 ac_header_compiler=no
26121 fi
26122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26124 echo "${ECHO_T}$ac_header_compiler" >&6
26125
26126 # Is the header present?
26127 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
26128 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6
26129 cat >conftest.$ac_ext <<_ACEOF
26130 /* confdefs.h.  */
26131 _ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h.  */
26135 #include <ext2fs/ext2_fs.h>
26136 _ACEOF
26137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26139   ac_status=$?
26140   grep -v '^ *+' conftest.er1 >conftest.err
26141   rm -f conftest.er1
26142   cat conftest.err >&5
26143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144   (exit $ac_status); } >/dev/null; then
26145   if test -s conftest.err; then
26146     ac_cpp_err=$ac_cxx_preproc_warn_flag
26147     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26148   else
26149     ac_cpp_err=
26150   fi
26151 else
26152   ac_cpp_err=yes
26153 fi
26154 if test -z "$ac_cpp_err"; then
26155   ac_header_preproc=yes
26156 else
26157   echo "$as_me: failed program was:" >&5
26158 sed 's/^/| /' conftest.$ac_ext >&5
26159
26160   ac_header_preproc=no
26161 fi
26162 rm -f conftest.err conftest.$ac_ext
26163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26164 echo "${ECHO_T}$ac_header_preproc" >&6
26165
26166 # So?  What about this header?
26167 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26168   yes:no: )
26169     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26170 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26171     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
26172 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
26173     ac_header_preproc=yes
26174     ;;
26175   no:yes:* )
26176     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
26177 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
26178     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
26179 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26180     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
26181 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
26182     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26183 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26184     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
26185 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26186     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
26187 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26188     (
26189       cat <<\_ASBOX
26190 ## ------------------------------------------------------ ##
26191 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
26192 ## ------------------------------------------------------ ##
26193 _ASBOX
26194     ) |
26195       sed "s/^/$as_me: WARNING:     /" >&2
26196     ;;
26197 esac
26198 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26199 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26200 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26201   echo $ECHO_N "(cached) $ECHO_C" >&6
26202 else
26203   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
26204 fi
26205 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26206 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26207
26208 fi
26209 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
26210
26211 cat >>confdefs.h <<\_ACEOF
26212 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
26213 _ACEOF
26214
26215 else
26216   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26217 See \`config.log' for more details." >&5
26218 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26219 See \`config.log' for more details." >&2;}
26220    { (exit 1); exit 1; }; }
26221 fi
26222
26223
26224                 ;;
26225         (xkernel)
26226                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26227   echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26228 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26229 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26230   echo $ECHO_N "(cached) $ECHO_C" >&6
26231 fi
26232 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26233 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26234 else
26235   # Is the header compilable?
26236 echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
26237 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6
26238 cat >conftest.$ac_ext <<_ACEOF
26239 /* confdefs.h.  */
26240 _ACEOF
26241 cat confdefs.h >>conftest.$ac_ext
26242 cat >>conftest.$ac_ext <<_ACEOF
26243 /* end confdefs.h.  */
26244 $ac_includes_default
26245 #include <linux/ext2_fs.h>
26246 _ACEOF
26247 rm -f conftest.$ac_objext
26248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26249   (eval $ac_compile) 2>conftest.er1
26250   ac_status=$?
26251   grep -v '^ *+' conftest.er1 >conftest.err
26252   rm -f conftest.er1
26253   cat conftest.err >&5
26254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255   (exit $ac_status); } &&
26256          { ac_try='test -z "$ac_cxx_werror_flag"
26257                          || test ! -s conftest.err'
26258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26259   (eval $ac_try) 2>&5
26260   ac_status=$?
26261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262   (exit $ac_status); }; } &&
26263          { ac_try='test -s conftest.$ac_objext'
26264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26265   (eval $ac_try) 2>&5
26266   ac_status=$?
26267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268   (exit $ac_status); }; }; then
26269   ac_header_compiler=yes
26270 else
26271   echo "$as_me: failed program was:" >&5
26272 sed 's/^/| /' conftest.$ac_ext >&5
26273
26274 ac_header_compiler=no
26275 fi
26276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26278 echo "${ECHO_T}$ac_header_compiler" >&6
26279
26280 # Is the header present?
26281 echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
26282 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6
26283 cat >conftest.$ac_ext <<_ACEOF
26284 /* confdefs.h.  */
26285 _ACEOF
26286 cat confdefs.h >>conftest.$ac_ext
26287 cat >>conftest.$ac_ext <<_ACEOF
26288 /* end confdefs.h.  */
26289 #include <linux/ext2_fs.h>
26290 _ACEOF
26291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26293   ac_status=$?
26294   grep -v '^ *+' conftest.er1 >conftest.err
26295   rm -f conftest.er1
26296   cat conftest.err >&5
26297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298   (exit $ac_status); } >/dev/null; then
26299   if test -s conftest.err; then
26300     ac_cpp_err=$ac_cxx_preproc_warn_flag
26301     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26302   else
26303     ac_cpp_err=
26304   fi
26305 else
26306   ac_cpp_err=yes
26307 fi
26308 if test -z "$ac_cpp_err"; then
26309   ac_header_preproc=yes
26310 else
26311   echo "$as_me: failed program was:" >&5
26312 sed 's/^/| /' conftest.$ac_ext >&5
26313
26314   ac_header_preproc=no
26315 fi
26316 rm -f conftest.err conftest.$ac_ext
26317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26318 echo "${ECHO_T}$ac_header_preproc" >&6
26319
26320 # So?  What about this header?
26321 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26322   yes:no: )
26323     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26324 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26325     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
26326 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
26327     ac_header_preproc=yes
26328     ;;
26329   no:yes:* )
26330     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
26331 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
26332     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
26333 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26334     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
26335 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
26336     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26337 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26338     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
26339 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26340     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
26341 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26342     (
26343       cat <<\_ASBOX
26344 ## ------------------------------------------------------ ##
26345 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
26346 ## ------------------------------------------------------ ##
26347 _ASBOX
26348     ) |
26349       sed "s/^/$as_me: WARNING:     /" >&2
26350     ;;
26351 esac
26352 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26353 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26354 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26355   echo $ECHO_N "(cached) $ECHO_C" >&6
26356 else
26357   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
26358 fi
26359 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26360 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26361
26362 fi
26363 if test $ac_cv_header_linux_ext2_fs_h = yes; then
26364
26365 cat >>confdefs.h <<\_ACEOF
26366 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
26367 _ACEOF
26368
26369 else
26370   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
26371 See \`config.log' for more details." >&5
26372 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
26373 See \`config.log' for more details." >&2;}
26374    { (exit 1); exit 1; }; }
26375 fi
26376
26377
26378                 ;;
26379         (*)
26380                 { { echo "$as_me:$LINENO: error:
26381 ext2fs headers were not found, or they are not usable. This can have
26382 the following reasons:
26383
26384 * you have neither the e2fsprogs nor the kernel headers installed
26385
26386 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26387   and you do not have e2fsprogs headers installed; please try to install
26388   - e2fsprogs-devel (for Red Hat), or
26389   - libext2fs2-devel (for Mandrake), or
26390   - e2fslibs-dev (for Debian)
26391   in this case.
26392
26393 * kernel headers are broken and your e2fsprogs headers are too old;
26394   until version 1.27 (inclusive), they are using reserved C++ keywords
26395
26396 * kernel headers are broken and your e2fsprogs headers are too new;
26397   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26398   C++, for details and a solution see
26399   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26400
26401
26402 In the latter two cases you have the following options:
26403 * fix the headers manually, or
26404 * install a stable version of e2fsprogs (e.g. 1.34), or
26405 * use good kernel headers (from linux 2.4.x)
26406
26407 See \`config.log' for more details." >&5
26408 echo "$as_me: error:
26409 ext2fs headers were not found, or they are not usable. This can have
26410 the following reasons:
26411
26412 * you have neither the e2fsprogs nor the kernel headers installed
26413
26414 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26415   and you do not have e2fsprogs headers installed; please try to install
26416   - e2fsprogs-devel (for Red Hat), or
26417   - libext2fs2-devel (for Mandrake), or
26418   - e2fslibs-dev (for Debian)
26419   in this case.
26420
26421 * kernel headers are broken and your e2fsprogs headers are too old;
26422   until version 1.27 (inclusive), they are using reserved C++ keywords
26423
26424 * kernel headers are broken and your e2fsprogs headers are too new;
26425   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26426   C++, for details and a solution see
26427   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26428
26429
26430 In the latter two cases you have the following options:
26431 * fix the headers manually, or
26432 * install a stable version of e2fsprogs (e.g. 1.34), or
26433 * use good kernel headers (from linux 2.4.x)
26434
26435 See \`config.log' for more details." >&2;}
26436    { (exit 1); exit 1; }; }
26437                 ;;
26438     esac
26439     ac_ext=c
26440 ac_cpp='$CPP $CPPFLAGS'
26441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26444
26445
26446
26447 for ac_func in vserver
26448 do
26449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26450 echo "$as_me:$LINENO: checking for $ac_func" >&5
26451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26452 if eval "test \"\${$as_ac_var+set}\" = set"; then
26453   echo $ECHO_N "(cached) $ECHO_C" >&6
26454 else
26455   cat >conftest.$ac_ext <<_ACEOF
26456 /* confdefs.h.  */
26457 _ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h.  */
26461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26463 #define $ac_func innocuous_$ac_func
26464
26465 /* System header to define __stub macros and hopefully few prototypes,
26466     which can conflict with char $ac_func (); below.
26467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26468     <limits.h> exists even on freestanding compilers.  */
26469
26470 #ifdef __STDC__
26471 # include <limits.h>
26472 #else
26473 # include <assert.h>
26474 #endif
26475
26476 #undef $ac_func
26477
26478 /* Override any gcc2 internal prototype to avoid an error.  */
26479 #ifdef __cplusplus
26480 extern "C"
26481 {
26482 #endif
26483 /* We use char because int might match the return type of a gcc2
26484    builtin and then its argument prototype would still apply.  */
26485 char $ac_func ();
26486 /* The GNU C library defines this for functions which it implements
26487     to always fail with ENOSYS.  Some functions are actually named
26488     something starting with __ and the normal name is an alias.  */
26489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26490 choke me
26491 #else
26492 char (*f) () = $ac_func;
26493 #endif
26494 #ifdef __cplusplus
26495 }
26496 #endif
26497
26498 int
26499 main ()
26500 {
26501 return f != $ac_func;
26502   ;
26503   return 0;
26504 }
26505 _ACEOF
26506 rm -f conftest.$ac_objext conftest$ac_exeext
26507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26508   (eval $ac_link) 2>conftest.er1
26509   ac_status=$?
26510   grep -v '^ *+' conftest.er1 >conftest.err
26511   rm -f conftest.er1
26512   cat conftest.err >&5
26513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514   (exit $ac_status); } &&
26515          { ac_try='test -z "$ac_c_werror_flag"
26516                          || test ! -s conftest.err'
26517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518   (eval $ac_try) 2>&5
26519   ac_status=$?
26520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521   (exit $ac_status); }; } &&
26522          { ac_try='test -s conftest$ac_exeext'
26523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26524   (eval $ac_try) 2>&5
26525   ac_status=$?
26526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527   (exit $ac_status); }; }; then
26528   eval "$as_ac_var=yes"
26529 else
26530   echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26532
26533 eval "$as_ac_var=no"
26534 fi
26535 rm -f conftest.err conftest.$ac_objext \
26536       conftest$ac_exeext conftest.$ac_ext
26537 fi
26538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26540 if test `eval echo '${'$as_ac_var'}'` = yes; then
26541   cat >>confdefs.h <<_ACEOF
26542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26543 _ACEOF
26544
26545 fi
26546 done
26547
26548 echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
26549 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6
26550 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
26551   echo $ECHO_N "(cached) $ECHO_C" >&6
26552 else
26553   cat >conftest.$ac_ext <<_ACEOF
26554 /* confdefs.h.  */
26555 _ACEOF
26556 cat confdefs.h >>conftest.$ac_ext
26557 cat >>conftest.$ac_ext <<_ACEOF
26558 /* end confdefs.h.  */
26559 #include <linux/fs.h>
26560
26561 int
26562 main ()
26563 {
26564 #ifndef MS_MOVE
26565   char *p = (char *) MS_MOVE;
26566 #endif
26567
26568   ;
26569   return 0;
26570 }
26571 _ACEOF
26572 rm -f conftest.$ac_objext
26573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26574   (eval $ac_compile) 2>conftest.er1
26575   ac_status=$?
26576   grep -v '^ *+' conftest.er1 >conftest.err
26577   rm -f conftest.er1
26578   cat conftest.err >&5
26579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580   (exit $ac_status); } &&
26581          { ac_try='test -z "$ac_c_werror_flag"
26582                          || test ! -s conftest.err'
26583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26584   (eval $ac_try) 2>&5
26585   ac_status=$?
26586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587   (exit $ac_status); }; } &&
26588          { ac_try='test -s conftest.$ac_objext'
26589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26590   (eval $ac_try) 2>&5
26591   ac_status=$?
26592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593   (exit $ac_status); }; }; then
26594   ac_cv_have_decl_MS_MOVE=yes
26595 else
26596   echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.$ac_ext >&5
26598
26599 ac_cv_have_decl_MS_MOVE=no
26600 fi
26601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26602 fi
26603 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
26604 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6
26605 if test $ac_cv_have_decl_MS_MOVE = yes; then
26606
26607 cat >>confdefs.h <<_ACEOF
26608 #define HAVE_DECL_MS_MOVE 1
26609 _ACEOF
26610
26611
26612 else
26613   cat >>confdefs.h <<_ACEOF
26614 #define HAVE_DECL_MS_MOVE 0
26615 _ACEOF
26616
26617
26618 fi
26619
26620
26621 echo "$as_me:$LINENO: checking for xid_t" >&5
26622 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6
26623 if test "${ac_cv_type_xid_t+set}" = set; then
26624   echo $ECHO_N "(cached) $ECHO_C" >&6
26625 else
26626   cat >conftest.$ac_ext <<_ACEOF
26627 /* confdefs.h.  */
26628 _ACEOF
26629 cat confdefs.h >>conftest.$ac_ext
26630 cat >>conftest.$ac_ext <<_ACEOF
26631 /* end confdefs.h.  */
26632 #include <sys/types.h>
26633
26634 int
26635 main ()
26636 {
26637 if ((xid_t *) 0)
26638   return 0;
26639 if (sizeof (xid_t))
26640   return 0;
26641   ;
26642   return 0;
26643 }
26644 _ACEOF
26645 rm -f conftest.$ac_objext
26646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26647   (eval $ac_compile) 2>conftest.er1
26648   ac_status=$?
26649   grep -v '^ *+' conftest.er1 >conftest.err
26650   rm -f conftest.er1
26651   cat conftest.err >&5
26652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653   (exit $ac_status); } &&
26654          { ac_try='test -z "$ac_c_werror_flag"
26655                          || test ! -s conftest.err'
26656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26657   (eval $ac_try) 2>&5
26658   ac_status=$?
26659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660   (exit $ac_status); }; } &&
26661          { ac_try='test -s conftest.$ac_objext'
26662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663   (eval $ac_try) 2>&5
26664   ac_status=$?
26665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666   (exit $ac_status); }; }; then
26667   ac_cv_type_xid_t=yes
26668 else
26669   echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26671
26672 ac_cv_type_xid_t=no
26673 fi
26674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26675 fi
26676 echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
26677 echo "${ECHO_T}$ac_cv_type_xid_t" >&6
26678 if test $ac_cv_type_xid_t = yes; then
26679
26680 cat >>confdefs.h <<_ACEOF
26681 #define HAVE_XID_T 1
26682 _ACEOF
26683
26684
26685 fi
26686
26687 echo "$as_me:$LINENO: checking for nid_t" >&5
26688 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6
26689 if test "${ac_cv_type_nid_t+set}" = set; then
26690   echo $ECHO_N "(cached) $ECHO_C" >&6
26691 else
26692   cat >conftest.$ac_ext <<_ACEOF
26693 /* confdefs.h.  */
26694 _ACEOF
26695 cat confdefs.h >>conftest.$ac_ext
26696 cat >>conftest.$ac_ext <<_ACEOF
26697 /* end confdefs.h.  */
26698 #include <sys/types.h>
26699
26700 int
26701 main ()
26702 {
26703 if ((nid_t *) 0)
26704   return 0;
26705 if (sizeof (nid_t))
26706   return 0;
26707   ;
26708   return 0;
26709 }
26710 _ACEOF
26711 rm -f conftest.$ac_objext
26712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26713   (eval $ac_compile) 2>conftest.er1
26714   ac_status=$?
26715   grep -v '^ *+' conftest.er1 >conftest.err
26716   rm -f conftest.er1
26717   cat conftest.err >&5
26718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719   (exit $ac_status); } &&
26720          { ac_try='test -z "$ac_c_werror_flag"
26721                          || test ! -s conftest.err'
26722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26723   (eval $ac_try) 2>&5
26724   ac_status=$?
26725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726   (exit $ac_status); }; } &&
26727          { ac_try='test -s conftest.$ac_objext'
26728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26729   (eval $ac_try) 2>&5
26730   ac_status=$?
26731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732   (exit $ac_status); }; }; then
26733   ac_cv_type_nid_t=yes
26734 else
26735   echo "$as_me: failed program was:" >&5
26736 sed 's/^/| /' conftest.$ac_ext >&5
26737
26738 ac_cv_type_nid_t=no
26739 fi
26740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26741 fi
26742 echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
26743 echo "${ECHO_T}$ac_cv_type_nid_t" >&6
26744 if test $ac_cv_type_nid_t = yes; then
26745
26746 cat >>confdefs.h <<_ACEOF
26747 #define HAVE_NID_T 1
26748 _ACEOF
26749
26750
26751 fi
26752
26753
26754
26755 for ac_header in sys/capability.h
26756 do
26757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26759   echo "$as_me:$LINENO: checking for $ac_header" >&5
26760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26762   echo $ECHO_N "(cached) $ECHO_C" >&6
26763 fi
26764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26766 else
26767   # Is the header compilable?
26768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26769 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
26777 #include <$ac_header>
26778 _ACEOF
26779 rm -f conftest.$ac_objext
26780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26781   (eval $ac_compile) 2>conftest.er1
26782   ac_status=$?
26783   grep -v '^ *+' conftest.er1 >conftest.err
26784   rm -f conftest.er1
26785   cat conftest.err >&5
26786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787   (exit $ac_status); } &&
26788          { ac_try='test -z "$ac_c_werror_flag"
26789                          || test ! -s conftest.err'
26790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791   (eval $ac_try) 2>&5
26792   ac_status=$?
26793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794   (exit $ac_status); }; } &&
26795          { ac_try='test -s conftest.$ac_objext'
26796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26797   (eval $ac_try) 2>&5
26798   ac_status=$?
26799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800   (exit $ac_status); }; }; then
26801   ac_header_compiler=yes
26802 else
26803   echo "$as_me: failed program was:" >&5
26804 sed 's/^/| /' conftest.$ac_ext >&5
26805
26806 ac_header_compiler=no
26807 fi
26808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26810 echo "${ECHO_T}$ac_header_compiler" >&6
26811
26812 # Is the header present?
26813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26815 cat >conftest.$ac_ext <<_ACEOF
26816 /* confdefs.h.  */
26817 _ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h.  */
26821 #include <$ac_header>
26822 _ACEOF
26823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26825   ac_status=$?
26826   grep -v '^ *+' conftest.er1 >conftest.err
26827   rm -f conftest.er1
26828   cat conftest.err >&5
26829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830   (exit $ac_status); } >/dev/null; then
26831   if test -s conftest.err; then
26832     ac_cpp_err=$ac_c_preproc_warn_flag
26833     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26834   else
26835     ac_cpp_err=
26836   fi
26837 else
26838   ac_cpp_err=yes
26839 fi
26840 if test -z "$ac_cpp_err"; then
26841   ac_header_preproc=yes
26842 else
26843   echo "$as_me: failed program was:" >&5
26844 sed 's/^/| /' conftest.$ac_ext >&5
26845
26846   ac_header_preproc=no
26847 fi
26848 rm -f conftest.err conftest.$ac_ext
26849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26850 echo "${ECHO_T}$ac_header_preproc" >&6
26851
26852 # So?  What about this header?
26853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26854   yes:no: )
26855     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26859     ac_header_preproc=yes
26860     ;;
26861   no:yes:* )
26862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26864     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26865 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26866     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26868     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26869 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26872     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26874     (
26875       cat <<\_ASBOX
26876 ## ------------------------------------------------------ ##
26877 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
26878 ## ------------------------------------------------------ ##
26879 _ASBOX
26880     ) |
26881       sed "s/^/$as_me: WARNING:     /" >&2
26882     ;;
26883 esac
26884 echo "$as_me:$LINENO: checking for $ac_header" >&5
26885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26887   echo $ECHO_N "(cached) $ECHO_C" >&6
26888 else
26889   eval "$as_ac_Header=\$ac_header_preproc"
26890 fi
26891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26893
26894 fi
26895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26896   cat >>confdefs.h <<_ACEOF
26897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26898 _ACEOF
26899
26900 fi
26901
26902 done
26903
26904
26905
26906 if test x"$ensc_cv_c99_c99compiler" = xyes; then
26907         ensc_have_beecrypt=yes
26908
26909         if test x"$ensc_have_beecrypt" = xyes; then
26910                 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
26911   echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
26912 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
26913 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
26914   echo $ECHO_N "(cached) $ECHO_C" >&6
26915 fi
26916 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
26917 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
26918 else
26919   # Is the header compilable?
26920 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
26921 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6
26922 cat >conftest.$ac_ext <<_ACEOF
26923 /* confdefs.h.  */
26924 _ACEOF
26925 cat confdefs.h >>conftest.$ac_ext
26926 cat >>conftest.$ac_ext <<_ACEOF
26927 /* end confdefs.h.  */
26928 $ac_includes_default
26929 #include <beecrypt/beecrypt.h>
26930 _ACEOF
26931 rm -f conftest.$ac_objext
26932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26933   (eval $ac_compile) 2>conftest.er1
26934   ac_status=$?
26935   grep -v '^ *+' conftest.er1 >conftest.err
26936   rm -f conftest.er1
26937   cat conftest.err >&5
26938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939   (exit $ac_status); } &&
26940          { ac_try='test -z "$ac_c_werror_flag"
26941                          || test ! -s conftest.err'
26942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943   (eval $ac_try) 2>&5
26944   ac_status=$?
26945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946   (exit $ac_status); }; } &&
26947          { ac_try='test -s conftest.$ac_objext'
26948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949   (eval $ac_try) 2>&5
26950   ac_status=$?
26951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952   (exit $ac_status); }; }; then
26953   ac_header_compiler=yes
26954 else
26955   echo "$as_me: failed program was:" >&5
26956 sed 's/^/| /' conftest.$ac_ext >&5
26957
26958 ac_header_compiler=no
26959 fi
26960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26962 echo "${ECHO_T}$ac_header_compiler" >&6
26963
26964 # Is the header present?
26965 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
26966 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6
26967 cat >conftest.$ac_ext <<_ACEOF
26968 /* confdefs.h.  */
26969 _ACEOF
26970 cat confdefs.h >>conftest.$ac_ext
26971 cat >>conftest.$ac_ext <<_ACEOF
26972 /* end confdefs.h.  */
26973 #include <beecrypt/beecrypt.h>
26974 _ACEOF
26975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26976   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26977   ac_status=$?
26978   grep -v '^ *+' conftest.er1 >conftest.err
26979   rm -f conftest.er1
26980   cat conftest.err >&5
26981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982   (exit $ac_status); } >/dev/null; then
26983   if test -s conftest.err; then
26984     ac_cpp_err=$ac_c_preproc_warn_flag
26985     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26986   else
26987     ac_cpp_err=
26988   fi
26989 else
26990   ac_cpp_err=yes
26991 fi
26992 if test -z "$ac_cpp_err"; then
26993   ac_header_preproc=yes
26994 else
26995   echo "$as_me: failed program was:" >&5
26996 sed 's/^/| /' conftest.$ac_ext >&5
26997
26998   ac_header_preproc=no
26999 fi
27000 rm -f conftest.err conftest.$ac_ext
27001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27002 echo "${ECHO_T}$ac_header_preproc" >&6
27003
27004 # So?  What about this header?
27005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27006   yes:no: )
27007     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27008 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27009     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
27010 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
27011     ac_header_preproc=yes
27012     ;;
27013   no:yes:* )
27014     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
27015 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
27016     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&5
27017 echo "$as_me: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&2;}
27018     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
27019 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
27020     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
27021 echo "$as_me: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27022     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
27023 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
27024     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
27025 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
27026     (
27027       cat <<\_ASBOX
27028 ## ------------------------------------------------------ ##
27029 ## Report this to enrico.scholz@informatik.tu-chemnitz.de ##
27030 ## ------------------------------------------------------ ##
27031 _ASBOX
27032     ) |
27033       sed "s/^/$as_me: WARNING:     /" >&2
27034     ;;
27035 esac
27036 echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27037 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27038 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27039   echo $ECHO_N "(cached) $ECHO_C" >&6
27040 else
27041   ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
27042 fi
27043 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27044 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27045
27046 fi
27047 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
27048    :
27049 else
27050    ensc_have_beecrypt=no
27051 fi
27052
27053
27054         fi
27055
27056         if test x"$ensc_have_beecrypt" = xyes; then
27057                 echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
27058 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6
27059 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
27060   echo $ECHO_N "(cached) $ECHO_C" >&6
27061 else
27062   ac_check_lib_save_LIBS=$LIBS
27063 LIBS="-lbeecrypt  $LIBS"
27064 cat >conftest.$ac_ext <<_ACEOF
27065 /* confdefs.h.  */
27066 _ACEOF
27067 cat confdefs.h >>conftest.$ac_ext
27068 cat >>conftest.$ac_ext <<_ACEOF
27069 /* end confdefs.h.  */
27070
27071 /* Override any gcc2 internal prototype to avoid an error.  */
27072 #ifdef __cplusplus
27073 extern "C"
27074 #endif
27075 /* We use char because int might match the return type of a gcc2
27076    builtin and then its argument prototype would still apply.  */
27077 char hashFunctionContextInit ();
27078 int
27079 main ()
27080 {
27081 hashFunctionContextInit ();
27082   ;
27083   return 0;
27084 }
27085 _ACEOF
27086 rm -f conftest.$ac_objext conftest$ac_exeext
27087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27088   (eval $ac_link) 2>conftest.er1
27089   ac_status=$?
27090   grep -v '^ *+' conftest.er1 >conftest.err
27091   rm -f conftest.er1
27092   cat conftest.err >&5
27093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094   (exit $ac_status); } &&
27095          { ac_try='test -z "$ac_c_werror_flag"
27096                          || test ! -s conftest.err'
27097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27098   (eval $ac_try) 2>&5
27099   ac_status=$?
27100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101   (exit $ac_status); }; } &&
27102          { ac_try='test -s conftest$ac_exeext'
27103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104   (eval $ac_try) 2>&5
27105   ac_status=$?
27106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107   (exit $ac_status); }; }; then
27108   ac_cv_lib_beecrypt_hashFunctionContextInit=yes
27109 else
27110   echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27112
27113 ac_cv_lib_beecrypt_hashFunctionContextInit=no
27114 fi
27115 rm -f conftest.err conftest.$ac_objext \
27116       conftest$ac_exeext conftest.$ac_ext
27117 LIBS=$ac_check_lib_save_LIBS
27118 fi
27119 echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
27120 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6
27121 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
27122    :
27123 else
27124    ensc_have_beecrypt=no
27125 fi
27126
27127         fi
27128
27129         if test x"$ensc_have_beecrypt" != xyes; then
27130                 { echo "$as_me:$LINENO: WARNING:
27131 ****
27132 **** 'beecrypt' could not be found;
27133 **** this will disable the build of 'vhashify'
27134 ****" >&5
27135 echo "$as_me: WARNING:
27136 ****
27137 **** 'beecrypt' could not be found;
27138 **** this will disable the build of 'vhashify'
27139 ****" >&2;}
27140         fi
27141 else
27142         ensc_have_beecrypt=no
27143 fi
27144
27145
27146
27147 if test x"$ensc_have_beecrypt" = xyes; then
27148   ENSC_HAVE_BEECRYPT_TRUE=
27149   ENSC_HAVE_BEECRYPT_FALSE='#'
27150 else
27151   ENSC_HAVE_BEECRYPT_TRUE='#'
27152   ENSC_HAVE_BEECRYPT_FALSE=
27153 fi
27154
27155
27156
27157 if false; then
27158   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
27159   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
27160 else
27161   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
27162   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
27163 fi
27164
27165
27166
27167
27168 cat >>confdefs.h <<\_ACEOF
27169 #define UTMP_GID 22
27170 _ACEOF
27171
27172
27173 if false; then
27174
27175 cat >>confdefs.h <<\_ACEOF
27176 #define HAVE_GROWING_STACK 1
27177 _ACEOF
27178
27179 fi
27180
27181
27182 cat >>confdefs.h <<\_ACEOF
27183 #define _FILE_OFFSET_BITS 64
27184 _ACEOF
27185
27186
27187 ensc_cxx_affected=" (affected: vbuild, vcheck)"
27188 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
27189 ensc_diet_msg=" (you have been warned)"
27190 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
27191 ensc_diet_compat_msg=" (using -lcompat)"
27192 test x"$ensc_cv_cxx_cxxcompiler"    = xno || ensc_cxx_affected=
27193 test x"$ensc_cv_c99_c99compiler"    = xno || ensc_c99_affected=
27194 test x"$ensc_have_dietlibc"         = xno || ensc_diet_msg=
27195 test x"$ensc_version_dietlibc"     != x   || ensc_diet_version_msg=
27196 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
27197
27198
27199
27200
27201
27202                                         ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile"
27203
27204 cat >confcache <<\_ACEOF
27205 # This file is a shell script that caches the results of configure
27206 # tests run on this system so they can be shared between configure
27207 # scripts and configure runs, see configure's option --config-cache.
27208 # It is not useful on other systems.  If it contains results you don't
27209 # want to keep, you may remove or edit it.
27210 #
27211 # config.status only pays attention to the cache file if you give it
27212 # the --recheck option to rerun configure.
27213 #
27214 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27215 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27216 # following values.
27217
27218 _ACEOF
27219
27220 # The following way of writing the cache mishandles newlines in values,
27221 # but we know of no workaround that is simple, portable, and efficient.
27222 # So, don't put newlines in cache variables' values.
27223 # Ultrix sh set writes to stderr and can't be redirected directly,
27224 # and sets the high bit in the cache file unless we assign to the vars.
27225 {
27226   (set) 2>&1 |
27227     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27228     *ac_space=\ *)
27229       # `set' does not quote correctly, so add quotes (double-quote
27230       # substitution turns \\\\ into \\, and sed turns \\ into \).
27231       sed -n \
27232         "s/'/'\\\\''/g;
27233           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27234       ;;
27235     *)
27236       # `set' quotes correctly as required by POSIX, so do not add quotes.
27237       sed -n \
27238         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27239       ;;
27240     esac;
27241 } |
27242   sed '
27243      t clear
27244      : clear
27245      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27246      t end
27247      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27248      : end' >>confcache
27249 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27250   if test -w $cache_file; then
27251     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27252     cat confcache >$cache_file
27253   else
27254     echo "not updating unwritable cache $cache_file"
27255   fi
27256 fi
27257 rm -f confcache
27258
27259 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27260 # Let make expand exec_prefix.
27261 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27262
27263 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27264 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27265 # trailing colons and then remove the whole line if VPATH becomes empty
27266 # (actually we leave an empty line to preserve line numbers).
27267 if test "x$srcdir" = x.; then
27268   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27269 s/:*\$(srcdir):*/:/;
27270 s/:*\${srcdir}:*/:/;
27271 s/:*@srcdir@:*/:/;
27272 s/^\([^=]*=[     ]*\):*/\1/;
27273 s/:*$//;
27274 s/^[^=]*=[       ]*$//;
27275 }'
27276 fi
27277
27278 DEFS=-DHAVE_CONFIG_H
27279
27280 ac_libobjs=
27281 ac_ltlibobjs=
27282 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27283   # 1. Remove the extension, and $U if already installed.
27284   ac_i=`echo "$ac_i" |
27285          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27286   # 2. Add them.
27287   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27288   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27289 done
27290 LIBOBJS=$ac_libobjs
27291
27292 LTLIBOBJS=$ac_ltlibobjs
27293
27294
27295 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27296   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27297 Usually this means the macro was only invoked conditionally." >&5
27298 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27299 Usually this means the macro was only invoked conditionally." >&2;}
27300    { (exit 1); exit 1; }; }
27301 fi
27302 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27303   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27304 Usually this means the macro was only invoked conditionally." >&5
27305 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27306 Usually this means the macro was only invoked conditionally." >&2;}
27307    { (exit 1); exit 1; }; }
27308 fi
27309 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27310   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27311 Usually this means the macro was only invoked conditionally." >&5
27312 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27313 Usually this means the macro was only invoked conditionally." >&2;}
27314    { (exit 1); exit 1; }; }
27315 fi
27316 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27317   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27318 Usually this means the macro was only invoked conditionally." >&5
27319 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27320 Usually this means the macro was only invoked conditionally." >&2;}
27321    { (exit 1); exit 1; }; }
27322 fi
27323 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
27324   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27325 Usually this means the macro was only invoked conditionally." >&5
27326 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27327 Usually this means the macro was only invoked conditionally." >&2;}
27328    { (exit 1); exit 1; }; }
27329 fi
27330 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
27331   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27332 Usually this means the macro was only invoked conditionally." >&5
27333 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27334 Usually this means the macro was only invoked conditionally." >&2;}
27335    { (exit 1); exit 1; }; }
27336 fi
27337 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
27338   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
27339 Usually this means the macro was only invoked conditionally." >&5
27340 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
27341 Usually this means the macro was only invoked conditionally." >&2;}
27342    { (exit 1); exit 1; }; }
27343 fi
27344 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
27345   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
27346 Usually this means the macro was only invoked conditionally." >&5
27347 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
27348 Usually this means the macro was only invoked conditionally." >&2;}
27349    { (exit 1); exit 1; }; }
27350 fi
27351 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27352   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27353 Usually this means the macro was only invoked conditionally." >&5
27354 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27355 Usually this means the macro was only invoked conditionally." >&2;}
27356    { (exit 1); exit 1; }; }
27357 fi
27358 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27359   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27360 Usually this means the macro was only invoked conditionally." >&5
27361 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27362 Usually this means the macro was only invoked conditionally." >&2;}
27363    { (exit 1); exit 1; }; }
27364 fi
27365 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27366   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27367 Usually this means the macro was only invoked conditionally." >&5
27368 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27369 Usually this means the macro was only invoked conditionally." >&2;}
27370    { (exit 1); exit 1; }; }
27371 fi
27372 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27373   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27374 Usually this means the macro was only invoked conditionally." >&5
27375 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27376 Usually this means the macro was only invoked conditionally." >&2;}
27377    { (exit 1); exit 1; }; }
27378 fi
27379 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27380   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27381 Usually this means the macro was only invoked conditionally." >&5
27382 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27383 Usually this means the macro was only invoked conditionally." >&2;}
27384    { (exit 1); exit 1; }; }
27385 fi
27386 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27387   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27388 Usually this means the macro was only invoked conditionally." >&5
27389 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27390 Usually this means the macro was only invoked conditionally." >&2;}
27391    { (exit 1); exit 1; }; }
27392 fi
27393 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27394   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27395 Usually this means the macro was only invoked conditionally." >&5
27396 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27397 Usually this means the macro was only invoked conditionally." >&2;}
27398    { (exit 1); exit 1; }; }
27399 fi
27400 if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
27401   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27402 Usually this means the macro was only invoked conditionally." >&5
27403 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27404 Usually this means the macro was only invoked conditionally." >&2;}
27405    { (exit 1); exit 1; }; }
27406 fi
27407 if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
27408   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27409 Usually this means the macro was only invoked conditionally." >&5
27410 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27411 Usually this means the macro was only invoked conditionally." >&2;}
27412    { (exit 1); exit 1; }; }
27413 fi
27414 if test -z "${HAVE_CVS2CL_TRUE}" && test -z "${HAVE_CVS2CL_FALSE}"; then
27415   { { echo "$as_me:$LINENO: error: conditional \"HAVE_CVS2CL\" was never defined.
27416 Usually this means the macro was only invoked conditionally." >&5
27417 echo "$as_me: error: conditional \"HAVE_CVS2CL\" was never defined.
27418 Usually this means the macro was only invoked conditionally." >&2;}
27419    { (exit 1); exit 1; }; }
27420 fi
27421 if test -z "${HAVE_RCS2LOG_TRUE}" && test -z "${HAVE_RCS2LOG_FALSE}"; then
27422   { { echo "$as_me:$LINENO: error: conditional \"HAVE_RCS2LOG\" was never defined.
27423 Usually this means the macro was only invoked conditionally." >&5
27424 echo "$as_me: error: conditional \"HAVE_RCS2LOG\" was never defined.
27425 Usually this means the macro was only invoked conditionally." >&2;}
27426    { (exit 1); exit 1; }; }
27427 fi
27428 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
27429   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27430 Usually this means the macro was only invoked conditionally." >&5
27431 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27432 Usually this means the macro was only invoked conditionally." >&2;}
27433    { (exit 1); exit 1; }; }
27434 fi
27435 if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
27436   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27437 Usually this means the macro was only invoked conditionally." >&5
27438 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27439 Usually this means the macro was only invoked conditionally." >&2;}
27440    { (exit 1); exit 1; }; }
27441 fi
27442 if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
27443   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27444 Usually this means the macro was only invoked conditionally." >&5
27445 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27446 Usually this means the macro was only invoked conditionally." >&2;}
27447    { (exit 1); exit 1; }; }
27448 fi
27449
27450                         FEATURES_TXT="\
27451 Features:
27452                        CC: $CC, $($CC   --version | sed -e '1p;d')
27453                       CXX: $CXX, $($CXX --version | sed -e '1p;d')
27454                  CPPFLAGS: '$CPPFLAGS'
27455                    CFLAGS: '$CFLAGS'
27456                  CXXFLAGS: '$CXXFLAGS'
27457                build/host: $build/$host
27458              Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
27459        Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
27460        Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
27461            Available APIs: $enable_apis
27462             ext2fs Source: $ensc_cv_test_ext2fs_header
27463     syscall(2) invocation: $with_syscall
27464       vserver(2) syscall#: $ensc_cv_value_syscall_vserver
27465
27466 Paths:
27467                    prefix: $prefix
27468         sysconf-Directory: $sysconfdir
27469             cfg-Directory: $sysconfdir/vservers
27470          initrd-Directory: $initrddir
27471        pkgstate-Directory: $localstatedir/run/vservers
27472             Kernelheaders: $kernelincludedir
27473           vserver-Rootdir: $vserverdir
27474 "
27475                         echo "$FEATURES_TXT" >FEATURES.txt
27476
27477
27478 : ${CONFIG_STATUS=./config.status}
27479 ac_clean_files_save=$ac_clean_files
27480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27481 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27482 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27483 cat >$CONFIG_STATUS <<_ACEOF
27484 #! $SHELL
27485 # Generated by $as_me.
27486 # Run this file to recreate the current configuration.
27487 # Compiler output produced by configure, useful for debugging
27488 # configure, is in config.log if it exists.
27489
27490 debug=false
27491 ac_cs_recheck=false
27492 ac_cs_silent=false
27493 SHELL=\${CONFIG_SHELL-$SHELL}
27494 _ACEOF
27495
27496 cat >>$CONFIG_STATUS <<\_ACEOF
27497 ## --------------------- ##
27498 ## M4sh Initialization.  ##
27499 ## --------------------- ##
27500
27501 # Be Bourne compatible
27502 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27503   emulate sh
27504   NULLCMD=:
27505   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27506   # is contrary to our usage.  Disable this feature.
27507   alias -g '${1+"$@"}'='"$@"'
27508 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27509   set -o posix
27510 fi
27511 DUALCASE=1; export DUALCASE # for MKS sh
27512
27513 # Support unset when possible.
27514 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27515   as_unset=unset
27516 else
27517   as_unset=false
27518 fi
27519
27520
27521 # Work around bugs in pre-3.0 UWIN ksh.
27522 $as_unset ENV MAIL MAILPATH
27523 PS1='$ '
27524 PS2='> '
27525 PS4='+ '
27526
27527 # NLS nuisances.
27528 for as_var in \
27529   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27530   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27531   LC_TELEPHONE LC_TIME
27532 do
27533   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27534     eval $as_var=C; export $as_var
27535   else
27536     $as_unset $as_var
27537   fi
27538 done
27539
27540 # Required to use basename.
27541 if expr a : '\(a\)' >/dev/null 2>&1; then
27542   as_expr=expr
27543 else
27544   as_expr=false
27545 fi
27546
27547 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27548   as_basename=basename
27549 else
27550   as_basename=false
27551 fi
27552
27553
27554 # Name of the executable.
27555 as_me=`$as_basename "$0" ||
27556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27557          X"$0" : 'X\(//\)$' \| \
27558          X"$0" : 'X\(/\)$' \| \
27559          .     : '\(.\)' 2>/dev/null ||
27560 echo X/"$0" |
27561     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27562           /^X\/\(\/\/\)$/{ s//\1/; q; }
27563           /^X\/\(\/\).*/{ s//\1/; q; }
27564           s/.*/./; q'`
27565
27566
27567 # PATH needs CR, and LINENO needs CR and PATH.
27568 # Avoid depending upon Character Ranges.
27569 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27570 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27571 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27572 as_cr_digits='0123456789'
27573 as_cr_alnum=$as_cr_Letters$as_cr_digits
27574
27575 # The user is always right.
27576 if test "${PATH_SEPARATOR+set}" != set; then
27577   echo "#! /bin/sh" >conf$$.sh
27578   echo  "exit 0"   >>conf$$.sh
27579   chmod +x conf$$.sh
27580   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27581     PATH_SEPARATOR=';'
27582   else
27583     PATH_SEPARATOR=:
27584   fi
27585   rm -f conf$$.sh
27586 fi
27587
27588
27589   as_lineno_1=$LINENO
27590   as_lineno_2=$LINENO
27591   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27592   test "x$as_lineno_1" != "x$as_lineno_2" &&
27593   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
27594   # Find who we are.  Look in the path if we contain no path at all
27595   # relative or not.
27596   case $0 in
27597     *[\\/]* ) as_myself=$0 ;;
27598     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27599 for as_dir in $PATH
27600 do
27601   IFS=$as_save_IFS
27602   test -z "$as_dir" && as_dir=.
27603   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27604 done
27605
27606        ;;
27607   esac
27608   # We did not find ourselves, most probably we were run as `sh COMMAND'
27609   # in which case we are not to be found in the path.
27610   if test "x$as_myself" = x; then
27611     as_myself=$0
27612   fi
27613   if test ! -f "$as_myself"; then
27614     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27615 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27616    { (exit 1); exit 1; }; }
27617   fi
27618   case $CONFIG_SHELL in
27619   '')
27620     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27621 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27622 do
27623   IFS=$as_save_IFS
27624   test -z "$as_dir" && as_dir=.
27625   for as_base in sh bash ksh sh5; do
27626          case $as_dir in
27627          /*)
27628            if ("$as_dir/$as_base" -c '
27629   as_lineno_1=$LINENO
27630   as_lineno_2=$LINENO
27631   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27632   test "x$as_lineno_1" != "x$as_lineno_2" &&
27633   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
27634              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27635              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27636              CONFIG_SHELL=$as_dir/$as_base
27637              export CONFIG_SHELL
27638              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27639            fi;;
27640          esac
27641        done
27642 done
27643 ;;
27644   esac
27645
27646   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27647   # uniformly replaced by the line number.  The first 'sed' inserts a
27648   # line-number line before each line; the second 'sed' does the real
27649   # work.  The second script uses 'N' to pair each line-number line
27650   # with the numbered line, and appends trailing '-' during
27651   # substitution so that $LINENO is not a special case at line end.
27652   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27653   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
27654   sed '=' <$as_myself |
27655     sed '
27656       N
27657       s,$,-,
27658       : loop
27659       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27660       t loop
27661       s,-$,,
27662       s,^['$as_cr_digits']*\n,,
27663     ' >$as_me.lineno &&
27664   chmod +x $as_me.lineno ||
27665     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27666 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27667    { (exit 1); exit 1; }; }
27668
27669   # Don't try to exec as it changes $[0], causing all sort of problems
27670   # (the dirname of $[0] is not the place where we might find the
27671   # original and so on.  Autoconf is especially sensible to this).
27672   . ./$as_me.lineno
27673   # Exit status is that of the last command.
27674   exit
27675 }
27676
27677
27678 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27679   *c*,-n*) ECHO_N= ECHO_C='
27680 ' ECHO_T='      ' ;;
27681   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27682   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
27683 esac
27684
27685 if expr a : '\(a\)' >/dev/null 2>&1; then
27686   as_expr=expr
27687 else
27688   as_expr=false
27689 fi
27690
27691 rm -f conf$$ conf$$.exe conf$$.file
27692 echo >conf$$.file
27693 if ln -s conf$$.file conf$$ 2>/dev/null; then
27694   # We could just check for DJGPP; but this test a) works b) is more generic
27695   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27696   if test -f conf$$.exe; then
27697     # Don't use ln at all; we don't have any links
27698     as_ln_s='cp -p'
27699   else
27700     as_ln_s='ln -s'
27701   fi
27702 elif ln conf$$.file conf$$ 2>/dev/null; then
27703   as_ln_s=ln
27704 else
27705   as_ln_s='cp -p'
27706 fi
27707 rm -f conf$$ conf$$.exe conf$$.file
27708
27709 if mkdir -p . 2>/dev/null; then
27710   as_mkdir_p=:
27711 else
27712   test -d ./-p && rmdir ./-p
27713   as_mkdir_p=false
27714 fi
27715
27716 as_executable_p="test -f"
27717
27718 # Sed expression to map a string onto a valid CPP name.
27719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27720
27721 # Sed expression to map a string onto a valid variable name.
27722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27723
27724
27725 # IFS
27726 # We need space, tab and new line, in precisely that order.
27727 as_nl='
27728 '
27729 IFS="   $as_nl"
27730
27731 # CDPATH.
27732 $as_unset CDPATH
27733
27734 exec 6>&1
27735
27736 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27737 # report actual input values of CONFIG_FILES etc. instead of their
27738 # values after options handling.  Logging --version etc. is OK.
27739 exec 5>>config.log
27740 {
27741   echo
27742   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27743 ## Running $as_me. ##
27744 _ASBOX
27745 } >&5
27746 cat >&5 <<_CSEOF
27747
27748 This file was extended by util-vserver $as_me 0.30.208, which was
27749 generated by GNU Autoconf 2.59.  Invocation command line was
27750
27751   CONFIG_FILES    = $CONFIG_FILES
27752   CONFIG_HEADERS  = $CONFIG_HEADERS
27753   CONFIG_LINKS    = $CONFIG_LINKS
27754   CONFIG_COMMANDS = $CONFIG_COMMANDS
27755   $ $0 $@
27756
27757 _CSEOF
27758 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27759 echo >&5
27760 _ACEOF
27761
27762 # Files that config.status was made for.
27763 if test -n "$ac_config_files"; then
27764   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27765 fi
27766
27767 if test -n "$ac_config_headers"; then
27768   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27769 fi
27770
27771 if test -n "$ac_config_links"; then
27772   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27773 fi
27774
27775 if test -n "$ac_config_commands"; then
27776   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27777 fi
27778
27779 cat >>$CONFIG_STATUS <<\_ACEOF
27780
27781 ac_cs_usage="\
27782 \`$as_me' instantiates files from templates according to the
27783 current configuration.
27784
27785 Usage: $0 [OPTIONS] [FILE]...
27786
27787   -h, --help       print this help, then exit
27788   -V, --version    print version number, then exit
27789   -q, --quiet      do not print progress messages
27790   -d, --debug      don't remove temporary files
27791       --recheck    update $as_me by reconfiguring in the same conditions
27792   --file=FILE[:TEMPLATE]
27793                    instantiate the configuration file FILE
27794   --header=FILE[:TEMPLATE]
27795                    instantiate the configuration header FILE
27796
27797 Configuration files:
27798 $config_files
27799
27800 Configuration headers:
27801 $config_headers
27802
27803 Configuration commands:
27804 $config_commands
27805
27806 Report bugs to <bug-autoconf@gnu.org>."
27807 _ACEOF
27808
27809 cat >>$CONFIG_STATUS <<_ACEOF
27810 ac_cs_version="\\
27811 util-vserver config.status 0.30.208
27812 configured by $0, generated by GNU Autoconf 2.59,
27813   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27814
27815 Copyright (C) 2003 Free Software Foundation, Inc.
27816 This config.status script is free software; the Free Software Foundation
27817 gives unlimited permission to copy, distribute and modify it."
27818 srcdir=$srcdir
27819 INSTALL="$INSTALL"
27820 _ACEOF
27821
27822 cat >>$CONFIG_STATUS <<\_ACEOF
27823 # If no file are specified by the user, then we need to provide default
27824 # value.  By we need to know if files were specified by the user.
27825 ac_need_defaults=:
27826 while test $# != 0
27827 do
27828   case $1 in
27829   --*=*)
27830     ac_option=`expr "x$1" : 'x\([^=]*\)='`
27831     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27832     ac_shift=:
27833     ;;
27834   -*)
27835     ac_option=$1
27836     ac_optarg=$2
27837     ac_shift=shift
27838     ;;
27839   *) # This is not an option, so the user has probably given explicit
27840      # arguments.
27841      ac_option=$1
27842      ac_need_defaults=false;;
27843   esac
27844
27845   case $ac_option in
27846   # Handling of the options.
27847 _ACEOF
27848 cat >>$CONFIG_STATUS <<\_ACEOF
27849   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27850     ac_cs_recheck=: ;;
27851   --version | --vers* | -V )
27852     echo "$ac_cs_version"; exit 0 ;;
27853   --he | --h)
27854     # Conflict between --help and --header
27855     { { echo "$as_me:$LINENO: error: ambiguous option: $1
27856 Try \`$0 --help' for more information." >&5
27857 echo "$as_me: error: ambiguous option: $1
27858 Try \`$0 --help' for more information." >&2;}
27859    { (exit 1); exit 1; }; };;
27860   --help | --hel | -h )
27861     echo "$ac_cs_usage"; exit 0 ;;
27862   --debug | --d* | -d )
27863     debug=: ;;
27864   --file | --fil | --fi | --f )
27865     $ac_shift
27866     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27867     ac_need_defaults=false;;
27868   --header | --heade | --head | --hea )
27869     $ac_shift
27870     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27871     ac_need_defaults=false;;
27872   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27873   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27874     ac_cs_silent=: ;;
27875
27876   # This is an error.
27877   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27878 Try \`$0 --help' for more information." >&5
27879 echo "$as_me: error: unrecognized option: $1
27880 Try \`$0 --help' for more information." >&2;}
27881    { (exit 1); exit 1; }; } ;;
27882
27883   *) ac_config_targets="$ac_config_targets $1" ;;
27884
27885   esac
27886   shift
27887 done
27888
27889 ac_configure_extra_args=
27890
27891 if $ac_cs_silent; then
27892   exec 6>/dev/null
27893   ac_configure_extra_args="$ac_configure_extra_args --silent"
27894 fi
27895
27896 _ACEOF
27897 cat >>$CONFIG_STATUS <<_ACEOF
27898 if \$ac_cs_recheck; then
27899   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27900   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27901 fi
27902
27903 _ACEOF
27904
27905 cat >>$CONFIG_STATUS <<_ACEOF
27906 #
27907 # INIT-COMMANDS section.
27908 #
27909
27910 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27911
27912 _ACEOF
27913
27914
27915
27916 cat >>$CONFIG_STATUS <<\_ACEOF
27917 for ac_config_target in $ac_config_targets
27918 do
27919   case "$ac_config_target" in
27920   # Handling of arguments.
27921   "util-vserver.spec" ) CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
27922   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27923   "distrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
27924   "lib/apidoc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
27925   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27926   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27927   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27928 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27929    { (exit 1); exit 1; }; };;
27930   esac
27931 done
27932
27933 # If the user did not use the arguments to specify the items to instantiate,
27934 # then the envvar interface is used.  Set only those that are not.
27935 # We use the long form for the default assignment because of an extremely
27936 # bizarre bug on SunOS 4.1.3.
27937 if $ac_need_defaults; then
27938   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27939   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27940   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27941 fi
27942
27943 # Have a temporary directory for convenience.  Make it in the build tree
27944 # simply because there is no reason to put it here, and in addition,
27945 # creating and moving files from /tmp can sometimes cause problems.
27946 # Create a temporary directory, and hook for its removal unless debugging.
27947 $debug ||
27948 {
27949   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27950   trap '{ (exit 1); exit 1; }' 1 2 13 15
27951 }
27952
27953 # Create a (secure) tmp directory for tmp files.
27954
27955 {
27956   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27957   test -n "$tmp" && test -d "$tmp"
27958 }  ||
27959 {
27960   tmp=./confstat$$-$RANDOM
27961   (umask 077 && mkdir $tmp)
27962 } ||
27963 {
27964    echo "$me: cannot create a temporary directory in ." >&2
27965    { (exit 1); exit 1; }
27966 }
27967
27968 _ACEOF
27969
27970 cat >>$CONFIG_STATUS <<_ACEOF
27971
27972 #
27973 # CONFIG_FILES section.
27974 #
27975
27976 # No need to generate the scripts if there are no CONFIG_FILES.
27977 # This happens for instance when ./config.status config.h
27978 if test -n "\$CONFIG_FILES"; then
27979   # Protect against being on the right side of a sed subst in config.status.
27980   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27981    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27982 s,@SHELL@,$SHELL,;t t
27983 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27984 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27985 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27986 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27987 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27988 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27989 s,@exec_prefix@,$exec_prefix,;t t
27990 s,@prefix@,$prefix,;t t
27991 s,@program_transform_name@,$program_transform_name,;t t
27992 s,@bindir@,$bindir,;t t
27993 s,@sbindir@,$sbindir,;t t
27994 s,@libexecdir@,$libexecdir,;t t
27995 s,@datadir@,$datadir,;t t
27996 s,@sysconfdir@,$sysconfdir,;t t
27997 s,@sharedstatedir@,$sharedstatedir,;t t
27998 s,@localstatedir@,$localstatedir,;t t
27999 s,@libdir@,$libdir,;t t
28000 s,@includedir@,$includedir,;t t
28001 s,@oldincludedir@,$oldincludedir,;t t
28002 s,@infodir@,$infodir,;t t
28003 s,@mandir@,$mandir,;t t
28004 s,@build_alias@,$build_alias,;t t
28005 s,@host_alias@,$host_alias,;t t
28006 s,@target_alias@,$target_alias,;t t
28007 s,@DEFS@,$DEFS,;t t
28008 s,@ECHO_C@,$ECHO_C,;t t
28009 s,@ECHO_N@,$ECHO_N,;t t
28010 s,@ECHO_T@,$ECHO_T,;t t
28011 s,@LIBS@,$LIBS,;t t
28012 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28013 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28014 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28015 s,@CYGPATH_W@,$CYGPATH_W,;t t
28016 s,@PACKAGE@,$PACKAGE,;t t
28017 s,@VERSION@,$VERSION,;t t
28018 s,@ACLOCAL@,$ACLOCAL,;t t
28019 s,@AUTOCONF@,$AUTOCONF,;t t
28020 s,@AUTOMAKE@,$AUTOMAKE,;t t
28021 s,@AUTOHEADER@,$AUTOHEADER,;t t
28022 s,@MAKEINFO@,$MAKEINFO,;t t
28023 s,@install_sh@,$install_sh,;t t
28024 s,@STRIP@,$STRIP,;t t
28025 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28026 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28027 s,@mkdir_p@,$mkdir_p,;t t
28028 s,@AWK@,$AWK,;t t
28029 s,@SET_MAKE@,$SET_MAKE,;t t
28030 s,@am__leading_dot@,$am__leading_dot,;t t
28031 s,@AMTAR@,$AMTAR,;t t
28032 s,@am__tar@,$am__tar,;t t
28033 s,@am__untar@,$am__untar,;t t
28034 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28035 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28036 s,@MAINT@,$MAINT,;t t
28037 s,@build@,$build,;t t
28038 s,@build_cpu@,$build_cpu,;t t
28039 s,@build_vendor@,$build_vendor,;t t
28040 s,@build_os@,$build_os,;t t
28041 s,@host@,$host,;t t
28042 s,@host_cpu@,$host_cpu,;t t
28043 s,@host_vendor@,$host_vendor,;t t
28044 s,@host_os@,$host_os,;t t
28045 s,@GPG_KEY@,$GPG_KEY,;t t
28046 s,@CXX@,$CXX,;t t
28047 s,@CXXFLAGS@,$CXXFLAGS,;t t
28048 s,@LDFLAGS@,$LDFLAGS,;t t
28049 s,@CPPFLAGS@,$CPPFLAGS,;t t
28050 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28051 s,@EXEEXT@,$EXEEXT,;t t
28052 s,@OBJEXT@,$OBJEXT,;t t
28053 s,@DEPDIR@,$DEPDIR,;t t
28054 s,@am__include@,$am__include,;t t
28055 s,@am__quote@,$am__quote,;t t
28056 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28057 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28058 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28059 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28060 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28061 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28062 s,@CC@,$CC,;t t
28063 s,@CFLAGS@,$CFLAGS,;t t
28064 s,@ac_ct_CC@,$ac_ct_CC,;t t
28065 s,@CCDEPMODE@,$CCDEPMODE,;t t
28066 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28067 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28068 s,@LN_S@,$LN_S,;t t
28069 s,@ENSC_HAVE_CXX_COMPILER_TRUE@,$ENSC_HAVE_CXX_COMPILER_TRUE,;t t
28070 s,@ENSC_HAVE_CXX_COMPILER_FALSE@,$ENSC_HAVE_CXX_COMPILER_FALSE,;t t
28071 s,@ENSC_HAVE_C99_COMPILER_TRUE@,$ENSC_HAVE_C99_COMPILER_TRUE,;t t
28072 s,@ENSC_HAVE_C99_COMPILER_FALSE@,$ENSC_HAVE_C99_COMPILER_FALSE,;t t
28073 s,@ENSC_PATHPROG_SED@,$ENSC_PATHPROG_SED,;t t
28074 s,@CAT@,$CAT,;t t
28075 s,@CHOWN@,$CHOWN,;t t
28076 s,@CMP@,$CMP,;t t
28077 s,@CP@,$CP,;t t
28078 s,@DIRNAME@,$DIRNAME,;t t
28079 s,@EGREP@,$EGREP,;t t
28080 s,@ENV@,$ENV,;t t
28081 s,@GREP@,$GREP,;t t
28082 s,@LN@,$LN,;t t
28083 s,@MKDIR@,$MKDIR,;t t
28084 s,@MKFIFO@,$MKFIFO,;t t
28085 s,@MKTEMP@,$MKTEMP,;t t
28086 s,@MOUNT@,$MOUNT,;t t
28087 s,@MV@,$MV,;t t
28088 s,@NICE@,$NICE,;t t
28089 s,@PS@,$PS,;t t
28090 s,@RM@,$RM,;t t
28091 s,@RMDIR@,$RMDIR,;t t
28092 s,@SED@,$SED,;t t
28093 s,@SH@,$SH,;t t
28094 s,@TAC@,$TAC,;t t
28095 s,@TAR@,$TAR,;t t
28096 s,@TOUCH@,$TOUCH,;t t
28097 s,@TTY@,$TTY,;t t
28098 s,@UMOUNT@,$UMOUNT,;t t
28099 s,@WC@,$WC,;t t
28100 s,@IP@,$IP,;t t
28101 s,@IPTABLES@,$IPTABLES,;t t
28102 s,@MODPROBE@,$MODPROBE,;t t
28103 s,@NAMEIF@,$NAMEIF,;t t
28104 s,@NOHUP@,$NOHUP,;t t
28105 s,@RMMOD@,$RMMOD,;t t
28106 s,@VCONFIG@,$VCONFIG,;t t
28107 s,@WGET@,$WGET,;t t
28108 s,@DOXYGEN@,$DOXYGEN,;t t
28109 s,@XSLTP@,$XSLTP,;t t
28110 s,@XSLTPROC@,$XSLTPROC,;t t
28111 s,@HAVE_XSLTP_TRUE@,$HAVE_XSLTP_TRUE,;t t
28112 s,@HAVE_XSLTP_FALSE@,$HAVE_XSLTP_FALSE,;t t
28113 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
28114 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
28115 s,@LIB_DEBUG_CPPFLAGS@,$LIB_DEBUG_CPPFLAGS,;t t
28116 s,@ENSC_USE_EXPENSIVE_TESTS@,$ENSC_USE_EXPENSIVE_TESTS,;t t
28117 s,@initrddir@,$initrddir,;t t
28118 s,@RELEASE_CPPFLAGS@,$RELEASE_CPPFLAGS,;t t
28119 s,@DIET@,$DIET,;t t
28120 s,@DIETFLAGS@,$DIETFLAGS,;t t
28121 s,@USE_DIETLIBC_TRUE@,$USE_DIETLIBC_TRUE,;t t
28122 s,@USE_DIETLIBC_FALSE@,$USE_DIETLIBC_FALSE,;t t
28123 s,@USE_DIETLIBC_COMPAT_TRUE@,$USE_DIETLIBC_COMPAT_TRUE,;t t
28124 s,@USE_DIETLIBC_COMPAT_FALSE@,$USE_DIETLIBC_COMPAT_FALSE,;t t
28125 s,@ENSC_USE_DIETLIBC_TRUE@,$ENSC_USE_DIETLIBC_TRUE,;t t
28126 s,@ENSC_USE_DIETLIBC_FALSE@,$ENSC_USE_DIETLIBC_FALSE,;t t
28127 s,@ENSC_USE_GLIBC_TRUE@,$ENSC_USE_GLIBC_TRUE,;t t
28128 s,@ENSC_USE_GLIBC_FALSE@,$ENSC_USE_GLIBC_FALSE,;t t
28129 s,@ECHO@,$ECHO,;t t
28130 s,@AR@,$AR,;t t
28131 s,@ac_ct_AR@,$ac_ct_AR,;t t
28132 s,@RANLIB@,$RANLIB,;t t
28133 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28134 s,@CPP@,$CPP,;t t
28135 s,@CXXCPP@,$CXXCPP,;t t
28136 s,@F77@,$F77,;t t
28137 s,@FFLAGS@,$FFLAGS,;t t
28138 s,@ac_ct_F77@,$ac_ct_F77,;t t
28139 s,@LIBTOOL@,$LIBTOOL,;t t
28140 s,@kernelincludedir@,$kernelincludedir,;t t
28141 s,@vserverdir@,$vserverdir,;t t
28142 s,@CVS2CL_TAG@,$CVS2CL_TAG,;t t
28143 s,@CVS2CL@,$CVS2CL,;t t
28144 s,@HAVE_CVS2CL_TRUE@,$HAVE_CVS2CL_TRUE,;t t
28145 s,@HAVE_CVS2CL_FALSE@,$HAVE_CVS2CL_FALSE,;t t
28146 s,@RCS2LOG@,$RCS2LOG,;t t
28147 s,@HAVE_RCS2LOG_TRUE@,$HAVE_RCS2LOG_TRUE,;t t
28148 s,@HAVE_RCS2LOG_FALSE@,$HAVE_RCS2LOG_FALSE,;t t
28149 s,@ENSC_ENABLE_INTERNAL_HEADERS_TRUE@,$ENSC_ENABLE_INTERNAL_HEADERS_TRUE,;t t
28150 s,@ENSC_ENABLE_INTERNAL_HEADERS_FALSE@,$ENSC_ENABLE_INTERNAL_HEADERS_FALSE,;t t
28151 s,@ENSC_HAVE_BEECRYPT_TRUE@,$ENSC_HAVE_BEECRYPT_TRUE,;t t
28152 s,@ENSC_HAVE_BEECRYPT_FALSE@,$ENSC_HAVE_BEECRYPT_FALSE,;t t
28153 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE,;t t
28154 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE,;t t
28155 s,@LIBOBJS@,$LIBOBJS,;t t
28156 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28157 CEOF
28158
28159 _ACEOF
28160
28161   cat >>$CONFIG_STATUS <<\_ACEOF
28162   # Split the substitutions into bite-sized pieces for seds with
28163   # small command number limits, like on Digital OSF/1 and HP-UX.
28164   ac_max_sed_lines=48
28165   ac_sed_frag=1 # Number of current file.
28166   ac_beg=1 # First line for current file.
28167   ac_end=$ac_max_sed_lines # Line after last line for current file.
28168   ac_more_lines=:
28169   ac_sed_cmds=
28170   while $ac_more_lines; do
28171     if test $ac_beg -gt 1; then
28172       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28173     else
28174       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28175     fi
28176     if test ! -s $tmp/subs.frag; then
28177       ac_more_lines=false
28178     else
28179       # The purpose of the label and of the branching condition is to
28180       # speed up the sed processing (if there are no `@' at all, there
28181       # is no need to browse any of the substitutions).
28182       # These are the two extra sed commands mentioned above.
28183       (echo ':t
28184   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28185       if test -z "$ac_sed_cmds"; then
28186         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28187       else
28188         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28189       fi
28190       ac_sed_frag=`expr $ac_sed_frag + 1`
28191       ac_beg=$ac_end
28192       ac_end=`expr $ac_end + $ac_max_sed_lines`
28193     fi
28194   done
28195   if test -z "$ac_sed_cmds"; then
28196     ac_sed_cmds=cat
28197   fi
28198 fi # test -n "$CONFIG_FILES"
28199
28200 _ACEOF
28201 cat >>$CONFIG_STATUS <<\_ACEOF
28202 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28203   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28204   case $ac_file in
28205   - | *:- | *:-:* ) # input from stdin
28206         cat >$tmp/stdin
28207         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28208         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28209   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28210         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28211   * )   ac_file_in=$ac_file.in ;;
28212   esac
28213
28214   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28215   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28216 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28217          X"$ac_file" : 'X\(//\)[^/]' \| \
28218          X"$ac_file" : 'X\(//\)$' \| \
28219          X"$ac_file" : 'X\(/\)' \| \
28220          .     : '\(.\)' 2>/dev/null ||
28221 echo X"$ac_file" |
28222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28223           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28224           /^X\(\/\/\)$/{ s//\1/; q; }
28225           /^X\(\/\).*/{ s//\1/; q; }
28226           s/.*/./; q'`
28227   { if $as_mkdir_p; then
28228     mkdir -p "$ac_dir"
28229   else
28230     as_dir="$ac_dir"
28231     as_dirs=
28232     while test ! -d "$as_dir"; do
28233       as_dirs="$as_dir $as_dirs"
28234       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28236          X"$as_dir" : 'X\(//\)[^/]' \| \
28237          X"$as_dir" : 'X\(//\)$' \| \
28238          X"$as_dir" : 'X\(/\)' \| \
28239          .     : '\(.\)' 2>/dev/null ||
28240 echo X"$as_dir" |
28241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28242           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28243           /^X\(\/\/\)$/{ s//\1/; q; }
28244           /^X\(\/\).*/{ s//\1/; q; }
28245           s/.*/./; q'`
28246     done
28247     test ! -n "$as_dirs" || mkdir $as_dirs
28248   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28249 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28250    { (exit 1); exit 1; }; }; }
28251
28252   ac_builddir=.
28253
28254 if test "$ac_dir" != .; then
28255   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28256   # A "../" for each directory in $ac_dir_suffix.
28257   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28258 else
28259   ac_dir_suffix= ac_top_builddir=
28260 fi
28261
28262 case $srcdir in
28263   .)  # No --srcdir option.  We are building in place.
28264     ac_srcdir=.
28265     if test -z "$ac_top_builddir"; then
28266        ac_top_srcdir=.
28267     else
28268        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28269     fi ;;
28270   [\\/]* | ?:[\\/]* )  # Absolute path.
28271     ac_srcdir=$srcdir$ac_dir_suffix;
28272     ac_top_srcdir=$srcdir ;;
28273   *) # Relative path.
28274     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28275     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28276 esac
28277
28278 # Do not use `cd foo && pwd` to compute absolute paths, because
28279 # the directories may not exist.
28280 case `pwd` in
28281 .) ac_abs_builddir="$ac_dir";;
28282 *)
28283   case "$ac_dir" in
28284   .) ac_abs_builddir=`pwd`;;
28285   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28286   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28287   esac;;
28288 esac
28289 case $ac_abs_builddir in
28290 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28291 *)
28292   case ${ac_top_builddir}. in
28293   .) ac_abs_top_builddir=$ac_abs_builddir;;
28294   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28295   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28296   esac;;
28297 esac
28298 case $ac_abs_builddir in
28299 .) ac_abs_srcdir=$ac_srcdir;;
28300 *)
28301   case $ac_srcdir in
28302   .) ac_abs_srcdir=$ac_abs_builddir;;
28303   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28304   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28305   esac;;
28306 esac
28307 case $ac_abs_builddir in
28308 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28309 *)
28310   case $ac_top_srcdir in
28311   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28312   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28313   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28314   esac;;
28315 esac
28316
28317
28318   case $INSTALL in
28319   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28320   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28321   esac
28322
28323   if test x"$ac_file" != x-; then
28324     { echo "$as_me:$LINENO: creating $ac_file" >&5
28325 echo "$as_me: creating $ac_file" >&6;}
28326     rm -f "$ac_file"
28327   fi
28328   # Let's still pretend it is `configure' which instantiates (i.e., don't
28329   # use $as_me), people would be surprised to read:
28330   #    /* config.h.  Generated by config.status.  */
28331   if test x"$ac_file" = x-; then
28332     configure_input=
28333   else
28334     configure_input="$ac_file.  "
28335   fi
28336   configure_input=$configure_input"Generated from `echo $ac_file_in |
28337                                      sed 's,.*/,,'` by configure."
28338
28339   # First look for the input files in the build tree, otherwise in the
28340   # src tree.
28341   ac_file_inputs=`IFS=:
28342     for f in $ac_file_in; do
28343       case $f in
28344       -) echo $tmp/stdin ;;
28345       [\\/$]*)
28346          # Absolute (can't be DOS-style, as IFS=:)
28347          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28348 echo "$as_me: error: cannot find input file: $f" >&2;}
28349    { (exit 1); exit 1; }; }
28350          echo "$f";;
28351       *) # Relative
28352          if test -f "$f"; then
28353            # Build tree
28354            echo "$f"
28355          elif test -f "$srcdir/$f"; then
28356            # Source tree
28357            echo "$srcdir/$f"
28358          else
28359            # /dev/null tree
28360            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28361 echo "$as_me: error: cannot find input file: $f" >&2;}
28362    { (exit 1); exit 1; }; }
28363          fi;;
28364       esac
28365     done` || { (exit 1); exit 1; }
28366 _ACEOF
28367 cat >>$CONFIG_STATUS <<_ACEOF
28368   sed "$ac_vpsub
28369 $extrasub
28370 _ACEOF
28371 cat >>$CONFIG_STATUS <<\_ACEOF
28372 :t
28373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28374 s,@configure_input@,$configure_input,;t t
28375 s,@srcdir@,$ac_srcdir,;t t
28376 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28377 s,@top_srcdir@,$ac_top_srcdir,;t t
28378 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28379 s,@builddir@,$ac_builddir,;t t
28380 s,@abs_builddir@,$ac_abs_builddir,;t t
28381 s,@top_builddir@,$ac_top_builddir,;t t
28382 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28383 s,@INSTALL@,$ac_INSTALL,;t t
28384 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28385   rm -f $tmp/stdin
28386   if test x"$ac_file" != x-; then
28387     mv $tmp/out $ac_file
28388   else
28389     cat $tmp/out
28390     rm -f $tmp/out
28391   fi
28392
28393 done
28394 _ACEOF
28395 cat >>$CONFIG_STATUS <<\_ACEOF
28396
28397 #
28398 # CONFIG_HEADER section.
28399 #
28400
28401 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28402 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28403 #
28404 # ac_d sets the value in "#define NAME VALUE" lines.
28405 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
28406 ac_dB='[         ].*$,\1#\2'
28407 ac_dC=' '
28408 ac_dD=',;t'
28409 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28410 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
28411 ac_uB='$,\1#\2define\3'
28412 ac_uC=' '
28413 ac_uD=',;t'
28414
28415 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28416   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28417   case $ac_file in
28418   - | *:- | *:-:* ) # input from stdin
28419         cat >$tmp/stdin
28420         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28421         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28422   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28423         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28424   * )   ac_file_in=$ac_file.in ;;
28425   esac
28426
28427   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28428 echo "$as_me: creating $ac_file" >&6;}
28429
28430   # First look for the input files in the build tree, otherwise in the
28431   # src tree.
28432   ac_file_inputs=`IFS=:
28433     for f in $ac_file_in; do
28434       case $f in
28435       -) echo $tmp/stdin ;;
28436       [\\/$]*)
28437          # Absolute (can't be DOS-style, as IFS=:)
28438          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28439 echo "$as_me: error: cannot find input file: $f" >&2;}
28440    { (exit 1); exit 1; }; }
28441          # Do quote $f, to prevent DOS paths from being IFS'd.
28442          echo "$f";;
28443       *) # Relative
28444          if test -f "$f"; then
28445            # Build tree
28446            echo "$f"
28447          elif test -f "$srcdir/$f"; then
28448            # Source tree
28449            echo "$srcdir/$f"
28450          else
28451            # /dev/null tree
28452            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28453 echo "$as_me: error: cannot find input file: $f" >&2;}
28454    { (exit 1); exit 1; }; }
28455          fi;;
28456       esac
28457     done` || { (exit 1); exit 1; }
28458   # Remove the trailing spaces.
28459   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
28460
28461 _ACEOF
28462
28463 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28464 # `conftest.undefs', that substitutes the proper values into
28465 # config.h.in to produce config.h.  The first handles `#define'
28466 # templates, and the second `#undef' templates.
28467 # And first: Protect against being on the right side of a sed subst in
28468 # config.status.  Protect against being in an unquoted here document
28469 # in config.status.
28470 rm -f conftest.defines conftest.undefs
28471 # Using a here document instead of a string reduces the quoting nightmare.
28472 # Putting comments in sed scripts is not portable.
28473 #
28474 # `end' is used to avoid that the second main sed command (meant for
28475 # 0-ary CPP macros) applies to n-ary macro definitions.
28476 # See the Autoconf documentation for `clear'.
28477 cat >confdef2sed.sed <<\_ACEOF
28478 s/[\\&,]/\\&/g
28479 s,[\\$`],\\&,g
28480 t clear
28481 : clear
28482 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28483 t end
28484 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28485 : end
28486 _ACEOF
28487 # If some macros were called several times there might be several times
28488 # the same #defines, which is useless.  Nevertheless, we may not want to
28489 # sort them, since we want the *last* AC-DEFINE to be honored.
28490 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28491 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28492 rm -f confdef2sed.sed
28493
28494 # This sed command replaces #undef with comments.  This is necessary, for
28495 # example, in the case of _POSIX_SOURCE, which is predefined and required
28496 # on some systems where configure will not decide to define it.
28497 cat >>conftest.undefs <<\_ACEOF
28498 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28499 _ACEOF
28500
28501 # Break up conftest.defines because some shells have a limit on the size
28502 # of here documents, and old seds have small limits too (100 cmds).
28503 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28504 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28505 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28506 echo '  :' >>$CONFIG_STATUS
28507 rm -f conftest.tail
28508 while grep . conftest.defines >/dev/null
28509 do
28510   # Write a limited-size here document to $tmp/defines.sed.
28511   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28512   # Speed up: don't consider the non `#define' lines.
28513   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
28514   # Work around the forget-to-reset-the-flag bug.
28515   echo 't clr' >>$CONFIG_STATUS
28516   echo ': clr' >>$CONFIG_STATUS
28517   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28518   echo 'CEOF
28519   sed -f $tmp/defines.sed $tmp/in >$tmp/out
28520   rm -f $tmp/in
28521   mv $tmp/out $tmp/in
28522 ' >>$CONFIG_STATUS
28523   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28524   rm -f conftest.defines
28525   mv conftest.tail conftest.defines
28526 done
28527 rm -f conftest.defines
28528 echo '  fi # grep' >>$CONFIG_STATUS
28529 echo >>$CONFIG_STATUS
28530
28531 # Break up conftest.undefs because some shells have a limit on the size
28532 # of here documents, and old seds have small limits too (100 cmds).
28533 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
28534 rm -f conftest.tail
28535 while grep . conftest.undefs >/dev/null
28536 do
28537   # Write a limited-size here document to $tmp/undefs.sed.
28538   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28539   # Speed up: don't consider the non `#undef'
28540   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
28541   # Work around the forget-to-reset-the-flag bug.
28542   echo 't clr' >>$CONFIG_STATUS
28543   echo ': clr' >>$CONFIG_STATUS
28544   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28545   echo 'CEOF
28546   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28547   rm -f $tmp/in
28548   mv $tmp/out $tmp/in
28549 ' >>$CONFIG_STATUS
28550   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28551   rm -f conftest.undefs
28552   mv conftest.tail conftest.undefs
28553 done
28554 rm -f conftest.undefs
28555
28556 cat >>$CONFIG_STATUS <<\_ACEOF
28557   # Let's still pretend it is `configure' which instantiates (i.e., don't
28558   # use $as_me), people would be surprised to read:
28559   #    /* config.h.  Generated by config.status.  */
28560   if test x"$ac_file" = x-; then
28561     echo "/* Generated by configure.  */" >$tmp/config.h
28562   else
28563     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28564   fi
28565   cat $tmp/in >>$tmp/config.h
28566   rm -f $tmp/in
28567   if test x"$ac_file" != x-; then
28568     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28569       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28570 echo "$as_me: $ac_file is unchanged" >&6;}
28571     else
28572       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28573 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28574          X"$ac_file" : 'X\(//\)[^/]' \| \
28575          X"$ac_file" : 'X\(//\)$' \| \
28576          X"$ac_file" : 'X\(/\)' \| \
28577          .     : '\(.\)' 2>/dev/null ||
28578 echo X"$ac_file" |
28579     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28580           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28581           /^X\(\/\/\)$/{ s//\1/; q; }
28582           /^X\(\/\).*/{ s//\1/; q; }
28583           s/.*/./; q'`
28584       { if $as_mkdir_p; then
28585     mkdir -p "$ac_dir"
28586   else
28587     as_dir="$ac_dir"
28588     as_dirs=
28589     while test ! -d "$as_dir"; do
28590       as_dirs="$as_dir $as_dirs"
28591       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28592 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28593          X"$as_dir" : 'X\(//\)[^/]' \| \
28594          X"$as_dir" : 'X\(//\)$' \| \
28595          X"$as_dir" : 'X\(/\)' \| \
28596          .     : '\(.\)' 2>/dev/null ||
28597 echo X"$as_dir" |
28598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28599           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28600           /^X\(\/\/\)$/{ s//\1/; q; }
28601           /^X\(\/\).*/{ s//\1/; q; }
28602           s/.*/./; q'`
28603     done
28604     test ! -n "$as_dirs" || mkdir $as_dirs
28605   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28606 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28607    { (exit 1); exit 1; }; }; }
28608
28609       rm -f $ac_file
28610       mv $tmp/config.h $ac_file
28611     fi
28612   else
28613     cat $tmp/config.h
28614     rm -f $tmp/config.h
28615   fi
28616 # Compute $ac_file's index in $config_headers.
28617 _am_stamp_count=1
28618 for _am_header in $config_headers :; do
28619   case $_am_header in
28620     $ac_file | $ac_file:* )
28621       break ;;
28622     * )
28623       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28624   esac
28625 done
28626 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28627 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28628          X$ac_file : 'X\(//\)[^/]' \| \
28629          X$ac_file : 'X\(//\)$' \| \
28630          X$ac_file : 'X\(/\)' \| \
28631          .     : '\(.\)' 2>/dev/null ||
28632 echo X$ac_file |
28633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28634           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28635           /^X\(\/\/\)$/{ s//\1/; q; }
28636           /^X\(\/\).*/{ s//\1/; q; }
28637           s/.*/./; q'`/stamp-h$_am_stamp_count
28638 done
28639 _ACEOF
28640 cat >>$CONFIG_STATUS <<\_ACEOF
28641
28642 #
28643 # CONFIG_COMMANDS section.
28644 #
28645 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28646   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28647   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28648   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28649 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28650          X"$ac_dest" : 'X\(//\)[^/]' \| \
28651          X"$ac_dest" : 'X\(//\)$' \| \
28652          X"$ac_dest" : 'X\(/\)' \| \
28653          .     : '\(.\)' 2>/dev/null ||
28654 echo X"$ac_dest" |
28655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28656           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28657           /^X\(\/\/\)$/{ s//\1/; q; }
28658           /^X\(\/\).*/{ s//\1/; q; }
28659           s/.*/./; q'`
28660   { if $as_mkdir_p; then
28661     mkdir -p "$ac_dir"
28662   else
28663     as_dir="$ac_dir"
28664     as_dirs=
28665     while test ! -d "$as_dir"; do
28666       as_dirs="$as_dir $as_dirs"
28667       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28669          X"$as_dir" : 'X\(//\)[^/]' \| \
28670          X"$as_dir" : 'X\(//\)$' \| \
28671          X"$as_dir" : 'X\(/\)' \| \
28672          .     : '\(.\)' 2>/dev/null ||
28673 echo X"$as_dir" |
28674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28675           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28676           /^X\(\/\/\)$/{ s//\1/; q; }
28677           /^X\(\/\).*/{ s//\1/; q; }
28678           s/.*/./; q'`
28679     done
28680     test ! -n "$as_dirs" || mkdir $as_dirs
28681   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28682 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28683    { (exit 1); exit 1; }; }; }
28684
28685   ac_builddir=.
28686
28687 if test "$ac_dir" != .; then
28688   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28689   # A "../" for each directory in $ac_dir_suffix.
28690   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28691 else
28692   ac_dir_suffix= ac_top_builddir=
28693 fi
28694
28695 case $srcdir in
28696   .)  # No --srcdir option.  We are building in place.
28697     ac_srcdir=.
28698     if test -z "$ac_top_builddir"; then
28699        ac_top_srcdir=.
28700     else
28701        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28702     fi ;;
28703   [\\/]* | ?:[\\/]* )  # Absolute path.
28704     ac_srcdir=$srcdir$ac_dir_suffix;
28705     ac_top_srcdir=$srcdir ;;
28706   *) # Relative path.
28707     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28708     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28709 esac
28710
28711 # Do not use `cd foo && pwd` to compute absolute paths, because
28712 # the directories may not exist.
28713 case `pwd` in
28714 .) ac_abs_builddir="$ac_dir";;
28715 *)
28716   case "$ac_dir" in
28717   .) ac_abs_builddir=`pwd`;;
28718   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28719   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28720   esac;;
28721 esac
28722 case $ac_abs_builddir in
28723 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28724 *)
28725   case ${ac_top_builddir}. in
28726   .) ac_abs_top_builddir=$ac_abs_builddir;;
28727   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28728   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28729   esac;;
28730 esac
28731 case $ac_abs_builddir in
28732 .) ac_abs_srcdir=$ac_srcdir;;
28733 *)
28734   case $ac_srcdir in
28735   .) ac_abs_srcdir=$ac_abs_builddir;;
28736   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28737   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28738   esac;;
28739 esac
28740 case $ac_abs_builddir in
28741 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28742 *)
28743   case $ac_top_srcdir in
28744   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28745   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28746   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28747   esac;;
28748 esac
28749
28750
28751   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28752 echo "$as_me: executing $ac_dest commands" >&6;}
28753   case $ac_dest in
28754     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28755   # Strip MF so we end up with the name of the file.
28756   mf=`echo "$mf" | sed -e 's/:.*$//'`
28757   # Check whether this is an Automake generated Makefile or not.
28758   # We used to match only the files named `Makefile.in', but
28759   # some people rename them; so instead we look at the file content.
28760   # Grep'ing the first line is not enough: some people post-process
28761   # each Makefile.in and add a new line on top of each file to say so.
28762   # So let's grep whole file.
28763   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28764     dirpart=`(dirname "$mf") 2>/dev/null ||
28765 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28766          X"$mf" : 'X\(//\)[^/]' \| \
28767          X"$mf" : 'X\(//\)$' \| \
28768          X"$mf" : 'X\(/\)' \| \
28769          .     : '\(.\)' 2>/dev/null ||
28770 echo X"$mf" |
28771     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28772           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28773           /^X\(\/\/\)$/{ s//\1/; q; }
28774           /^X\(\/\).*/{ s//\1/; q; }
28775           s/.*/./; q'`
28776   else
28777     continue
28778   fi
28779   # Extract the definition of DEPDIR, am__include, and am__quote
28780   # from the Makefile without running `make'.
28781   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28782   test -z "$DEPDIR" && continue
28783   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28784   test -z "am__include" && continue
28785   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28786   # When using ansi2knr, U may be empty or an underscore; expand it
28787   U=`sed -n 's/^U = //p' < "$mf"`
28788   # Find all dependency output files, they are included files with
28789   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28790   # simplest approach to changing $(DEPDIR) to its actual value in the
28791   # expansion.
28792   for file in `sed -n "
28793     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28794        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28795     # Make sure the directory exists.
28796     test -f "$dirpart/$file" && continue
28797     fdir=`(dirname "$file") 2>/dev/null ||
28798 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28799          X"$file" : 'X\(//\)[^/]' \| \
28800          X"$file" : 'X\(//\)$' \| \
28801          X"$file" : 'X\(/\)' \| \
28802          .     : '\(.\)' 2>/dev/null ||
28803 echo X"$file" |
28804     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28805           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28806           /^X\(\/\/\)$/{ s//\1/; q; }
28807           /^X\(\/\).*/{ s//\1/; q; }
28808           s/.*/./; q'`
28809     { if $as_mkdir_p; then
28810     mkdir -p $dirpart/$fdir
28811   else
28812     as_dir=$dirpart/$fdir
28813     as_dirs=
28814     while test ! -d "$as_dir"; do
28815       as_dirs="$as_dir $as_dirs"
28816       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28818          X"$as_dir" : 'X\(//\)[^/]' \| \
28819          X"$as_dir" : 'X\(//\)$' \| \
28820          X"$as_dir" : 'X\(/\)' \| \
28821          .     : '\(.\)' 2>/dev/null ||
28822 echo X"$as_dir" |
28823     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28824           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28825           /^X\(\/\/\)$/{ s//\1/; q; }
28826           /^X\(\/\).*/{ s//\1/; q; }
28827           s/.*/./; q'`
28828     done
28829     test ! -n "$as_dirs" || mkdir $as_dirs
28830   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28831 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28832    { (exit 1); exit 1; }; }; }
28833
28834     # echo "creating $dirpart/$file"
28835     echo '# dummy' > "$dirpart/$file"
28836   done
28837 done
28838  ;;
28839   esac
28840 done
28841 _ACEOF
28842
28843 cat >>$CONFIG_STATUS <<\_ACEOF
28844
28845 { (exit 0); exit 0; }
28846 _ACEOF
28847 chmod +x $CONFIG_STATUS
28848 ac_clean_files=$ac_clean_files_save
28849
28850
28851 # configure is writing to config.log, and then calls config.status.
28852 # config.status does its own redirection, appending to config.log.
28853 # Unfortunately, on DOS this fails, as config.log is still kept open
28854 # by configure, so config.status won't be able to write to it; its
28855 # output is simply discarded.  So we exec the FD to /dev/null,
28856 # effectively closing config.log, so it can be properly (re)opened and
28857 # appended to by config.status.  When coming back to configure, we
28858 # need to make the FD available again.
28859 if test "$no_create" != yes; then
28860   ac_cs_success=:
28861   ac_config_status_args=
28862   test "$silent" = yes &&
28863     ac_config_status_args="$ac_config_status_args --quiet"
28864   exec 5>/dev/null
28865   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28866   exec 5>>config.log
28867   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28868   # would make configure fail if this is the last instruction.
28869   $ac_cs_success || { (exit 1); exit 1; }
28870 fi
28871
28872
28873 { echo "$as_me:$LINENO:
28874
28875 $PACKAGE_STRING
28876
28877 $FEATURES_TXT" >&5
28878 echo "$as_me:
28879
28880 $PACKAGE_STRING
28881
28882 $FEATURES_TXT" >&6;}